diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ClusterRecoveryPointCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ClusterRecoveryPointCollection.cs
new file mode 100644
index 000000000000..51dec53bf850
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ClusterRecoveryPointCollection.cs
@@ -0,0 +1,172 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Samples
+{
+ public partial class Sample_ClusterRecoveryPointCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsARecoveryPoint()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ClusterRecoveryPoint_Get.json
+ // this example is just showing the usage of "ClusterRecoveryPoint_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // get the collection of this ClusterRecoveryPointResource
+ ClusterRecoveryPointCollection collection = vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.GetClusterRecoveryPoints();
+
+ // invoke the operation
+ string recoveryPointName = "06b9ae7f-f21d-4a76-9897-5cf5d6004d80";
+ ClusterRecoveryPointResource result = await collection.GetAsync(recoveryPointName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ClusterRecoveryPointData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAll_GetsTheListOfClusterRecoveryPoints()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ClusterRecoveryPoints_ListByReplicationProtectionCluster.json
+ // this example is just showing the usage of "ClusterRecoveryPoints_ListByReplicationProtectionCluster" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // get the collection of this ClusterRecoveryPointResource
+ ClusterRecoveryPointCollection collection = vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.GetClusterRecoveryPoints();
+
+ // invoke the operation and iterate over the result
+ await foreach (ClusterRecoveryPointResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ClusterRecoveryPointData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetsARecoveryPoint()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ClusterRecoveryPoint_Get.json
+ // this example is just showing the usage of "ClusterRecoveryPoint_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // get the collection of this ClusterRecoveryPointResource
+ ClusterRecoveryPointCollection collection = vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.GetClusterRecoveryPoints();
+
+ // invoke the operation
+ string recoveryPointName = "06b9ae7f-f21d-4a76-9897-5cf5d6004d80";
+ bool result = await collection.ExistsAsync(recoveryPointName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetsARecoveryPoint()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ClusterRecoveryPoint_Get.json
+ // this example is just showing the usage of "ClusterRecoveryPoint_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // get the collection of this ClusterRecoveryPointResource
+ ClusterRecoveryPointCollection collection = vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.GetClusterRecoveryPoints();
+
+ // invoke the operation
+ string recoveryPointName = "06b9ae7f-f21d-4a76-9897-5cf5d6004d80";
+ NullableResponse response = await collection.GetIfExistsAsync(recoveryPointName);
+ ClusterRecoveryPointResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ClusterRecoveryPointData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ClusterRecoveryPointResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ClusterRecoveryPointResource.cs
new file mode 100644
index 000000000000..55d0d5171698
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ClusterRecoveryPointResource.cs
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Samples
+{
+ public partial class Sample_ClusterRecoveryPointResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsARecoveryPoint()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ClusterRecoveryPoint_Get.json
+ // this example is just showing the usage of "ClusterRecoveryPoint_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ClusterRecoveryPointResource created on azure
+ // for more information of creating ClusterRecoveryPointResource, please refer to the document of ClusterRecoveryPointResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ string recoveryPointName = "06b9ae7f-f21d-4a76-9897-5cf5d6004d80";
+ ResourceIdentifier clusterRecoveryPointResourceId = ClusterRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName, recoveryPointName);
+ ClusterRecoveryPointResource clusterRecoveryPoint = client.GetClusterRecoveryPointResource(clusterRecoveryPointResourceId);
+
+ // invoke the operation
+ ClusterRecoveryPointResource result = await clusterRecoveryPoint.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ClusterRecoveryPointData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_MigrationRecoveryPointCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_MigrationRecoveryPointCollection.cs
index 15a6f8943556..3b0c325b1195 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_MigrationRecoveryPointCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_MigrationRecoveryPointCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_MigrationRecoveryPointCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsARecoveryPointForAMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/MigrationRecoveryPoints_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/MigrationRecoveryPoints_Get.json
// this example is just showing the usage of "MigrationRecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -56,7 +56,7 @@ public async Task Get_GetsARecoveryPointForAMigrationItem()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheRecoveryPointsForAMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/MigrationRecoveryPoints_ListByReplicationMigrationItems.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/MigrationRecoveryPoints_ListByReplicationMigrationItems.json
// this example is just showing the usage of "MigrationRecoveryPoints_ListByReplicationMigrationItems" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -95,7 +95,7 @@ public async Task GetAll_GetsTheRecoveryPointsForAMigrationItem()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsARecoveryPointForAMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/MigrationRecoveryPoints_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/MigrationRecoveryPoints_Get.json
// this example is just showing the usage of "MigrationRecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -128,7 +128,7 @@ public async Task Exists_GetsARecoveryPointForAMigrationItem()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsARecoveryPointForAMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/MigrationRecoveryPoints_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/MigrationRecoveryPoints_Get.json
// this example is just showing the usage of "MigrationRecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_MigrationRecoveryPointResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_MigrationRecoveryPointResource.cs
index 45c593b676d2..810b60c7ec79 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_MigrationRecoveryPointResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_MigrationRecoveryPointResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_MigrationRecoveryPointResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsARecoveryPointForAMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/MigrationRecoveryPoints_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/MigrationRecoveryPoints_Get.json
// this example is just showing the usage of "MigrationRecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ProtectionContainerMappingCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ProtectionContainerMappingCollection.cs
index 946e7223a407..b573a13b4505 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ProtectionContainerMappingCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ProtectionContainerMappingCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_ProtectionContainerMappingCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAProtectionContainerMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainerMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainerMappings_Get.json
// this example is just showing the usage of "ReplicationProtectionContainerMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -55,7 +55,7 @@ public async Task Get_GetsAProtectionContainerMapping()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfProtectionContainerMappingsForAProtectionContainer()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainerMappings_ListByReplicationProtectionContainers.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainerMappings_ListByReplicationProtectionContainers.json
// this example is just showing the usage of "ReplicationProtectionContainerMappings_ListByReplicationProtectionContainers" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,7 +93,7 @@ public async Task GetAll_GetsTheListOfProtectionContainerMappingsForAProtectionC
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsAProtectionContainerMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainerMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainerMappings_Get.json
// this example is just showing the usage of "ReplicationProtectionContainerMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -125,7 +125,7 @@ public async Task Exists_GetsAProtectionContainerMapping()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsAProtectionContainerMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainerMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainerMappings_Get.json
// this example is just showing the usage of "ReplicationProtectionContainerMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ProtectionContainerMappingResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ProtectionContainerMappingResource.cs
index 1506a350acd5..8b9936f33d90 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ProtectionContainerMappingResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ProtectionContainerMappingResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_ProtectionContainerMappingResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAProtectionContainerMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainerMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainerMappings_Get.json
// this example is just showing the usage of "ReplicationProtectionContainerMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -53,7 +53,7 @@ public async Task Get_GetsAProtectionContainerMapping()
[Ignore("Only validating compilation of examples")]
public async Task Delete_PurgeProtectionContainerMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainerMappings_Purge.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainerMappings_Purge.json
// this example is just showing the usage of "ReplicationProtectionContainerMappings_Purge" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Delete_PurgeProtectionContainerMapping()
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdateProtectionContainerMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainerMappings_Update.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainerMappings_Update.json
// this example is just showing the usage of "ReplicationProtectionContainerMappings_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -124,7 +124,7 @@ public async Task Update_UpdateProtectionContainerMapping()
[Ignore("Only validating compilation of examples")]
public async Task Delete_RemoveProtectionContainerMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainerMappings_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainerMappings_Delete.json
// this example is just showing the usage of "ReplicationProtectionContainerMappings_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationEligibilityResultCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationEligibilityResultCollection.cs
index e3a585b1305f..a6194be439c5 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationEligibilityResultCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationEligibilityResultCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_ReplicationEligibilityResultCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheValidationErrorsInCaseTheVMIsUnsuitableForProtection()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEligibilityResults_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEligibilityResults_Get.json
// this example is just showing the usage of "ReplicationEligibilityResults_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -53,7 +53,7 @@ public async Task Get_GetsTheValidationErrorsInCaseTheVMIsUnsuitableForProtectio
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheValidationErrorsInCaseTheVMIsUnsuitableForProtection()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEligibilityResults_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEligibilityResults_List.json
// this example is just showing the usage of "ReplicationEligibilityResults_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -89,7 +89,7 @@ public async Task GetAll_GetsTheValidationErrorsInCaseTheVMIsUnsuitableForProtec
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheValidationErrorsInCaseTheVMIsUnsuitableForProtection()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEligibilityResults_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEligibilityResults_Get.json
// this example is just showing the usage of "ReplicationEligibilityResults_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -118,7 +118,7 @@ public async Task Exists_GetsTheValidationErrorsInCaseTheVMIsUnsuitableForProtec
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheValidationErrorsInCaseTheVMIsUnsuitableForProtection()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEligibilityResults_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEligibilityResults_Get.json
// this example is just showing the usage of "ReplicationEligibilityResults_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationEligibilityResultResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationEligibilityResultResource.cs
index d72b9c3bcd1e..318188e8ac0e 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationEligibilityResultResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationEligibilityResultResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_ReplicationEligibilityResultResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheValidationErrorsInCaseTheVMIsUnsuitableForProtection()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEligibilityResults_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEligibilityResults_Get.json
// this example is just showing the usage of "ReplicationEligibilityResults_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectedItemCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectedItemCollection.cs
index a87f31eee735..174d8af1271f 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectedItemCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectedItemCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_ReplicationProtectedItemCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_EnablesProtection()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_Create.json
// this example is just showing the usage of "ReplicationProtectedItems_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -66,7 +66,7 @@ public async Task CreateOrUpdate_EnablesProtection()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAReplicationProtectedItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_Get.json
// this example is just showing the usage of "ReplicationProtectedItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -102,7 +102,7 @@ public async Task Get_GetsTheDetailsOfAReplicationProtectedItem()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfReplicationProtectedItems()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_ListByReplicationProtectionContainers.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_ListByReplicationProtectionContainers.json
// this example is just showing the usage of "ReplicationProtectedItems_ListByReplicationProtectionContainers" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -140,7 +140,7 @@ public async Task GetAll_GetsTheListOfReplicationProtectedItems()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheDetailsOfAReplicationProtectedItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_Get.json
// this example is just showing the usage of "ReplicationProtectedItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -172,7 +172,7 @@ public async Task Exists_GetsTheDetailsOfAReplicationProtectedItem()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheDetailsOfAReplicationProtectedItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_Get.json
// this example is just showing the usage of "ReplicationProtectedItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectedItemResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectedItemResource.cs
index 79d0cc0546ae..f75d822f72e4 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectedItemResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectedItemResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_ReplicationProtectedItemResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAReplicationProtectedItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_Get.json
// this example is just showing the usage of "ReplicationProtectedItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_GetsTheDetailsOfAReplicationProtectedItem()
[Ignore("Only validating compilation of examples")]
public async Task Delete_PurgesProtection()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_Purge.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_Purge.json
// this example is just showing the usage of "ReplicationProtectedItems_Purge" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -83,7 +83,7 @@ public async Task Delete_PurgesProtection()
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdatesTheReplicationProtectedItemSettings()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_Update.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_Update.json
// this example is just showing the usage of "ReplicationProtectedItems_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -140,7 +140,7 @@ public async Task Update_UpdatesTheReplicationProtectedItemSettings()
[Ignore("Only validating compilation of examples")]
public async Task AddDisks_AddDiskSForProtection()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_AddDisks.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_AddDisks.json
// this example is just showing the usage of "ReplicationProtectedItems_AddDisks" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -181,7 +181,7 @@ public async Task AddDisks_AddDiskSForProtection()
[Ignore("Only validating compilation of examples")]
public async Task ApplyRecoveryPoint_ChangeOrApplyRecoveryPoint()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_ApplyRecoveryPoint.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_ApplyRecoveryPoint.json
// this example is just showing the usage of "ReplicationProtectedItems_ApplyRecoveryPoint" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -219,7 +219,7 @@ public async Task ApplyRecoveryPoint_ChangeOrApplyRecoveryPoint()
[Ignore("Only validating compilation of examples")]
public async Task FailoverCancel_ExecuteCancelFailover()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_FailoverCancel.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_FailoverCancel.json
// this example is just showing the usage of "ReplicationProtectedItems_FailoverCancel" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -253,7 +253,7 @@ public async Task FailoverCancel_ExecuteCancelFailover()
[Ignore("Only validating compilation of examples")]
public async Task FailoverCommit_ExecuteCommitFailover()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_FailoverCommit.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_FailoverCommit.json
// this example is just showing the usage of "ReplicationProtectedItems_FailoverCommit" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -287,7 +287,7 @@ public async Task FailoverCommit_ExecuteCommitFailover()
[Ignore("Only validating compilation of examples")]
public async Task PlannedFailover_ExecutePlannedFailover()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_PlannedFailover.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_PlannedFailover.json
// this example is just showing the usage of "ReplicationProtectedItems_PlannedFailover" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -329,7 +329,7 @@ public async Task PlannedFailover_ExecutePlannedFailover()
[Ignore("Only validating compilation of examples")]
public async Task RemoveDisks_RemovesDiskS()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_RemoveDisks.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_RemoveDisks.json
// this example is just showing the usage of "ReplicationProtectedItems_RemoveDisks" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -370,7 +370,7 @@ public async Task RemoveDisks_RemovesDiskS()
[Ignore("Only validating compilation of examples")]
public async Task RepairReplication_ResynchronizeOrRepairReplication()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_RepairReplication.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_RepairReplication.json
// this example is just showing the usage of "ReplicationProtectedItems_RepairReplication" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -404,7 +404,7 @@ public async Task RepairReplication_ResynchronizeOrRepairReplication()
[Ignore("Only validating compilation of examples")]
public async Task Reprotect_ExecuteReverseReplicationReprotect()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_Reprotect.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_Reprotect.json
// this example is just showing the usage of "ReplicationProtectedItems_Reprotect" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -446,7 +446,7 @@ public async Task Reprotect_ExecuteReverseReplicationReprotect()
[Ignore("Only validating compilation of examples")]
public async Task ResolveHealthErrors_ResolveHealthErrors()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_ResolveHealthErrors.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_ResolveHealthErrors.json
// this example is just showing the usage of "ReplicationProtectedItems_ResolveHealthErrors" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -487,7 +487,7 @@ public async Task ResolveHealthErrors_ResolveHealthErrors()
[Ignore("Only validating compilation of examples")]
public async Task SwitchProvider_ExecuteSwitchProvider()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_SwitchProvider.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_SwitchProvider.json
// this example is just showing the usage of "ReplicationProtectedItems_SwitchProvider" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -529,7 +529,7 @@ public async Task SwitchProvider_ExecuteSwitchProvider()
[Ignore("Only validating compilation of examples")]
public async Task TestFailover_ExecuteTestFailover()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_TestFailover.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_TestFailover.json
// this example is just showing the usage of "ReplicationProtectedItems_TestFailover" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -570,7 +570,7 @@ public async Task TestFailover_ExecuteTestFailover()
[Ignore("Only validating compilation of examples")]
public async Task TestFailoverCleanup_ExecuteTestFailoverCleanup()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_TestFailoverCleanup.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_TestFailoverCleanup.json
// this example is just showing the usage of "ReplicationProtectedItems_TestFailoverCleanup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -608,7 +608,7 @@ public async Task TestFailoverCleanup_ExecuteTestFailoverCleanup()
[Ignore("Only validating compilation of examples")]
public async Task UnplannedFailover_ExecuteUnplannedFailover()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_UnplannedFailover.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_UnplannedFailover.json
// this example is just showing the usage of "ReplicationProtectedItems_UnplannedFailover" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -648,7 +648,7 @@ public async Task UnplannedFailover_ExecuteUnplannedFailover()
[Ignore("Only validating compilation of examples")]
public async Task UpdateAppliance_UpdatesApplianceForReplicationProtectedItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_UpdateAppliance.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_UpdateAppliance.json
// this example is just showing the usage of "ReplicationProtectedItems_UpdateAppliance" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -686,7 +686,7 @@ public async Task UpdateAppliance_UpdatesApplianceForReplicationProtectedItem()
[Ignore("Only validating compilation of examples")]
public async Task UpdateMobilityService_UpdateTheMobilityServiceOnAProtectedItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_UpdateMobilityService.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_UpdateMobilityService.json
// this example is just showing the usage of "ReplicationProtectedItems_UpdateMobilityService" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -724,7 +724,7 @@ public async Task UpdateMobilityService_UpdateTheMobilityServiceOnAProtectedItem
[Ignore("Only validating compilation of examples")]
public async Task GetTargetComputeSizesByReplicationProtectedItems_GetsTheListOfTargetComputeSizesForTheReplicationProtectedItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/TargetComputeSizes_ListByReplicationProtectedItems.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/TargetComputeSizes_ListByReplicationProtectedItems.json
// this example is just showing the usage of "TargetComputeSizes_ListByReplicationProtectedItems" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectionIntentCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectionIntentCollection.cs
index 44122877793f..ed5b237637ad 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectionIntentCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectionIntentCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_ReplicationProtectionIntentCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreateProtectionIntentResource()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionIntents_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionIntents_Create.json
// this example is just showing the usage of "ReplicationProtectionIntents_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -66,7 +66,7 @@ public async Task CreateOrUpdate_CreateProtectionIntentResource()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAReplicationProtectionIntentItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionIntents_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionIntents_Get.json
// this example is just showing the usage of "ReplicationProtectionIntents_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -100,7 +100,7 @@ public async Task Get_GetsTheDetailsOfAReplicationProtectionIntentItem()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfReplicationProtectionIntentObjects()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionIntents_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionIntents_List.json
// this example is just showing the usage of "ReplicationProtectionIntents_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -136,7 +136,7 @@ public async Task GetAll_GetsTheListOfReplicationProtectionIntentObjects()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheDetailsOfAReplicationProtectionIntentItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionIntents_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionIntents_Get.json
// this example is just showing the usage of "ReplicationProtectionIntents_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task Exists_GetsTheDetailsOfAReplicationProtectionIntentItem()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheDetailsOfAReplicationProtectionIntentItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionIntents_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionIntents_Get.json
// this example is just showing the usage of "ReplicationProtectionIntents_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectionIntentResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectionIntentResource.cs
index 01cb73c630d6..976a52277cec 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectionIntentResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ReplicationProtectionIntentResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_ReplicationProtectionIntentResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAReplicationProtectionIntentItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionIntents_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionIntents_Get.json
// this example is just showing the usage of "ReplicationProtectionIntents_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_GetsTheDetailsOfAReplicationProtectionIntentItem()
[Ignore("Only validating compilation of examples")]
public async Task Update_CreateProtectionIntentResource()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionIntents_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionIntents_Create.json
// this example is just showing the usage of "ReplicationProtectionIntents_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs
index a3a1d55c16b0..15d658100f2a 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs
@@ -21,7 +21,7 @@ public partial class Sample_ResourceGroupResourceExtensions
[Ignore("Only validating compilation of examples")]
public async Task GetReplicationAppliances_GetsTheListOfAppliances()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationAppliances_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationAppliances_List.json
// this example is just showing the usage of "ReplicationAppliances_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task GetReplicationAppliances_GetsTheListOfAppliances()
[Ignore("Only validating compilation of examples")]
public async Task GetSiteRecoveryNetworks_GetsTheListOfNetworksViewOnlyAPI()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworks_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworks_List.json
// this example is just showing the usage of "ReplicationNetworks_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -83,7 +83,7 @@ public async Task GetSiteRecoveryNetworks_GetsTheListOfNetworksViewOnlyAPI()
[Ignore("Only validating compilation of examples")]
public async Task GetSiteRecoveryNetworkMappings_GetsAllTheNetworkMappingsUnderAVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworkMappings_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworkMappings_List.json
// this example is just showing the usage of "ReplicationNetworkMappings_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -116,7 +116,7 @@ public async Task GetSiteRecoveryNetworkMappings_GetsAllTheNetworkMappingsUnderA
[Ignore("Only validating compilation of examples")]
public async Task GetSiteRecoveryProtectionContainers_GetsTheListOfAllProtectionContainersInAVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainers_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_List.json
// this example is just showing the usage of "ReplicationProtectionContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -149,7 +149,7 @@ public async Task GetSiteRecoveryProtectionContainers_GetsTheListOfAllProtection
[Ignore("Only validating compilation of examples")]
public async Task GetSiteRecoveryMigrationItems_GetsTheListOfMigrationItemsInTheVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_List.json
// this example is just showing the usage of "ReplicationMigrationItems_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -182,7 +182,7 @@ public async Task GetSiteRecoveryMigrationItems_GetsTheListOfMigrationItemsInThe
[Ignore("Only validating compilation of examples")]
public async Task GetReplicationProtectedItems_GetsTheListOfReplicationProtectedItems()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectedItems_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectedItems_List.json
// this example is just showing the usage of "ReplicationProtectedItems_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -211,11 +211,42 @@ public async Task GetReplicationProtectedItems_GetsTheListOfReplicationProtected
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetReplicationProtectionClusters_GetsTheListOfReplicationProtectionClustersInVault()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_List.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // invoke the operation and iterate over the result
+ string resourceName = "vault1";
+ string filter = "SourceFabricName eq 'asr-a2a-default-eastus' and SourceFabricLocation eq 'East US' and InstanceType eq 'A2A'";
+ await foreach (ReplicationProtectionClusterData item in resourceGroupResource.GetReplicationProtectionClustersAsync(resourceName, filter: filter))
+ {
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {item.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetProtectionContainerMappings_GetsTheListOfAllProtectionContainerMappingsInAVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainerMappings_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainerMappings_List.json
// this example is just showing the usage of "ReplicationProtectionContainerMappings_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -248,7 +279,7 @@ public async Task GetProtectionContainerMappings_GetsTheListOfAllProtectionConta
[Ignore("Only validating compilation of examples")]
public async Task GetSiteRecoveryServicesProviders_GetsTheListOfRegisteredRecoveryServicesProvidersInTheVaultThisIsAViewOnlyApi()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_List.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -281,7 +312,7 @@ public async Task GetSiteRecoveryServicesProviders_GetsTheListOfRegisteredRecove
[Ignore("Only validating compilation of examples")]
public async Task GetStorageClassifications_GetsTheListOfStorageClassificationObjectsUnderAVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassifications_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassifications_List.json
// this example is just showing the usage of "ReplicationStorageClassifications_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -314,7 +345,7 @@ public async Task GetStorageClassifications_GetsTheListOfStorageClassificationOb
[Ignore("Only validating compilation of examples")]
public async Task GetStorageClassificationMappings_GetsTheListOfStorageClassificationMappingsObjectsUnderAVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassificationMappings_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassificationMappings_List.json
// this example is just showing the usage of "ReplicationStorageClassificationMappings_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -347,7 +378,7 @@ public async Task GetStorageClassificationMappings_GetsTheListOfStorageClassific
[Ignore("Only validating compilation of examples")]
public async Task GetSiteRecoveryVCenters_GetsTheListOfVCenterRegisteredUnderTheVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationvCenters_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationvCenters_List.json
// this example is just showing the usage of "ReplicationvCenters_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -380,7 +411,7 @@ public async Task GetSiteRecoveryVCenters_GetsTheListOfVCenterRegisteredUnderThe
[Ignore("Only validating compilation of examples")]
public async Task GetSupportedOperatingSystem_GetsTheDataOfSupportedOperatingSystemsBySRS()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/SupportedOperatingSystems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/SupportedOperatingSystems_Get.json
// this example is just showing the usage of "SupportedOperatingSystems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -406,7 +437,7 @@ public async Task GetSupportedOperatingSystem_GetsTheDataOfSupportedOperatingSys
[Ignore("Only validating compilation of examples")]
public async Task GetReplicationVaultHealth_GetsTheHealthSummaryForTheVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationVaultHealth_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationVaultHealth_Get.json
// this example is just showing the usage of "ReplicationVaultHealth_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -432,7 +463,7 @@ public async Task GetReplicationVaultHealth_GetsTheHealthSummaryForTheVault()
[Ignore("Only validating compilation of examples")]
public async Task RefreshReplicationVaultHealth_RefreshesHealthSummaryOfTheVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationVaultHealth_Refresh.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationVaultHealth_Refresh.json
// this example is just showing the usage of "ReplicationVaultHealth_Refresh" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryAlertCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryAlertCollection.cs
index 46f7c67ffb72..fec19de6f19d 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryAlertCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryAlertCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_SiteRecoveryAlertCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_ConfiguresEmailNotificationsForThisVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationAlertSettings_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationAlertSettings_Create.json
// this example is just showing the usage of "ReplicationAlertSettings_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -65,7 +65,7 @@ public async Task CreateOrUpdate_ConfiguresEmailNotificationsForThisVault()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAnEmailNotificationAlertConfiguration()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationAlertSettings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationAlertSettings_Get.json
// this example is just showing the usage of "ReplicationAlertSettings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -99,7 +99,7 @@ public async Task Get_GetsAnEmailNotificationAlertConfiguration()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfConfiguredEmailNotificationAlertConfigurations()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationAlertSettings_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationAlertSettings_List.json
// this example is just showing the usage of "ReplicationAlertSettings_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -135,7 +135,7 @@ public async Task GetAll_GetsTheListOfConfiguredEmailNotificationAlertConfigurat
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsAnEmailNotificationAlertConfiguration()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationAlertSettings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationAlertSettings_Get.json
// this example is just showing the usage of "ReplicationAlertSettings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -165,7 +165,7 @@ public async Task Exists_GetsAnEmailNotificationAlertConfiguration()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsAnEmailNotificationAlertConfiguration()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationAlertSettings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationAlertSettings_Get.json
// this example is just showing the usage of "ReplicationAlertSettings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryAlertResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryAlertResource.cs
index e62551456ecd..1f61d1f2a07e 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryAlertResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryAlertResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryAlertResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsAnEmailNotificationAlertConfiguration()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationAlertSettings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationAlertSettings_Get.json
// this example is just showing the usage of "ReplicationAlertSettings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_GetsAnEmailNotificationAlertConfiguration()
[Ignore("Only validating compilation of examples")]
public async Task Update_ConfiguresEmailNotificationsForThisVault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationAlertSettings_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationAlertSettings_Create.json
// this example is just showing the usage of "ReplicationAlertSettings_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryEventCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryEventCollection.cs
index 6f7c8ce6f06e..061ecb856c43 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryEventCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryEventCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryEventCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetTheDetailsOfAnAzureSiteRecoveryEvent()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEvents_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEvents_Get.json
// this example is just showing the usage of "ReplicationEvents_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_GetTheDetailsOfAnAzureSiteRecoveryEvent()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfAzureSiteRecoveryEvents()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEvents_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEvents_List.json
// this example is just showing the usage of "ReplicationEvents_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -90,7 +90,7 @@ public async Task GetAll_GetsTheListOfAzureSiteRecoveryEvents()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetTheDetailsOfAnAzureSiteRecoveryEvent()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEvents_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEvents_Get.json
// this example is just showing the usage of "ReplicationEvents_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -120,7 +120,7 @@ public async Task Exists_GetTheDetailsOfAnAzureSiteRecoveryEvent()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetTheDetailsOfAnAzureSiteRecoveryEvent()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEvents_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEvents_Get.json
// this example is just showing the usage of "ReplicationEvents_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryEventResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryEventResource.cs
index 4b982754886d..8b5524f68ae1 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryEventResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryEventResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryEventResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetTheDetailsOfAnAzureSiteRecoveryEvent()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationEvents_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationEvents_Get.json
// this example is just showing the usage of "ReplicationEvents_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryFabricCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryFabricCollection.cs
index 264c61b40a4c..a4157ca0a3da 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryFabricCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryFabricCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryFabricCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAnASRFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_Get.json
// this example is just showing the usage of "ReplicationFabrics_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_GetsTheDetailsOfAnASRFabric()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfASRFabrics()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_List.json
// this example is just showing the usage of "ReplicationFabrics_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -90,7 +90,7 @@ public async Task GetAll_GetsTheListOfASRFabrics()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheDetailsOfAnASRFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_Get.json
// this example is just showing the usage of "ReplicationFabrics_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -120,7 +120,7 @@ public async Task Exists_GetsTheDetailsOfAnASRFabric()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheDetailsOfAnASRFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_Get.json
// this example is just showing the usage of "ReplicationFabrics_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryFabricResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryFabricResource.cs
index cc20e5524090..5a65cddd9b40 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryFabricResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryFabricResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryFabricResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAnASRFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_Get.json
// this example is just showing the usage of "ReplicationFabrics_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_GetsTheDetailsOfAnASRFabric()
[Ignore("Only validating compilation of examples")]
public async Task CheckConsistency_ChecksTheConsistencyOfTheASRFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_CheckConsistency.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_CheckConsistency.json
// this example is just showing the usage of "ReplicationFabrics_CheckConsistency" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -83,7 +83,7 @@ public async Task CheckConsistency_ChecksTheConsistencyOfTheASRFabric()
[Ignore("Only validating compilation of examples")]
public async Task MigrateToAad_MigratesTheSiteToAAD()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_MigrateToAad.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_MigrateToAad.json
// this example is just showing the usage of "ReplicationFabrics_MigrateToAad" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -110,7 +110,7 @@ public async Task MigrateToAad_MigratesTheSiteToAAD()
[Ignore("Only validating compilation of examples")]
public async Task ReassociateGateway_PerformFailoverOfTheProcessServer()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_ReassociateGateway.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_ReassociateGateway.json
// this example is just showing the usage of "ReplicationFabrics_ReassociateGateway" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -153,7 +153,7 @@ public async Task ReassociateGateway_PerformFailoverOfTheProcessServer()
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeletesTheSite()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_Delete.json
// this example is just showing the usage of "ReplicationFabrics_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -180,7 +180,7 @@ public async Task Delete_DeletesTheSite()
[Ignore("Only validating compilation of examples")]
public async Task RenewCertificate_RenewsCertificateForTheFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationFabrics_RenewCertificate.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationFabrics_RenewCertificate.json
// this example is just showing the usage of "ReplicationFabrics_RenewCertificate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -216,7 +216,7 @@ public async Task RenewCertificate_RenewsCertificateForTheFabric()
[Ignore("Only validating compilation of examples")]
public async Task RemoveInfra_RemovesTheApplianceSInfrastructureUnderTheFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationInfrastructure_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationInfrastructure_Delete.json
// this example is just showing the usage of "ReplicationFabrics_RemoveInfra" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryJobCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryJobCollection.cs
index 83cae466b8c0..d27454950f15 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryJobCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryJobCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryJobCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheJobDetails()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationJobs_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationJobs_Get.json
// this example is just showing the usage of "ReplicationJobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_GetsTheJobDetails()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfJobs()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationJobs_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationJobs_List.json
// this example is just showing the usage of "ReplicationJobs_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -90,7 +90,7 @@ public async Task GetAll_GetsTheListOfJobs()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheJobDetails()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationJobs_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationJobs_Get.json
// this example is just showing the usage of "ReplicationJobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -120,7 +120,7 @@ public async Task Exists_GetsTheJobDetails()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheJobDetails()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationJobs_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationJobs_Get.json
// this example is just showing the usage of "ReplicationJobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryJobResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryJobResource.cs
index 1f9684776e97..fdbe79208340 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryJobResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryJobResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryJobResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheJobDetails()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationJobs_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationJobs_Get.json
// this example is just showing the usage of "ReplicationJobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_GetsTheJobDetails()
[Ignore("Only validating compilation of examples")]
public async Task Cancel_CancelsTheSpecifiedJob()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationJobs_Cancel.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationJobs_Cancel.json
// this example is just showing the usage of "ReplicationJobs_Cancel" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -83,7 +83,7 @@ public async Task Cancel_CancelsTheSpecifiedJob()
[Ignore("Only validating compilation of examples")]
public async Task Restart_RestartsTheSpecifiedJob()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationJobs_Restart.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationJobs_Restart.json
// this example is just showing the usage of "ReplicationJobs_Restart" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -115,7 +115,7 @@ public async Task Restart_RestartsTheSpecifiedJob()
[Ignore("Only validating compilation of examples")]
public async Task Resume_ResumesTheSpecifiedJob()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationJobs_Resume.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationJobs_Resume.json
// this example is just showing the usage of "ReplicationJobs_Resume" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryLogicalNetworkCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryLogicalNetworkCollection.cs
index 38884b66192c..1f112df79862 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryLogicalNetworkCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryLogicalNetworkCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryLogicalNetworkCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsALogicalNetworkWithSpecifiedServerIdAndLogicalNetworkName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationLogicalNetworks_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationLogicalNetworks_Get.json
// this example is just showing the usage of "ReplicationLogicalNetworks_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_GetsALogicalNetworkWithSpecifiedServerIdAndLogicalNetworkN
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfLogicalNetworksUnderAFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationLogicalNetworks_ListByReplicationFabrics.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationLogicalNetworks_ListByReplicationFabrics.json
// this example is just showing the usage of "ReplicationLogicalNetworks_ListByReplicationFabrics" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -91,7 +91,7 @@ public async Task GetAll_GetsTheListOfLogicalNetworksUnderAFabric()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsALogicalNetworkWithSpecifiedServerIdAndLogicalNetworkName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationLogicalNetworks_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationLogicalNetworks_Get.json
// this example is just showing the usage of "ReplicationLogicalNetworks_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -122,7 +122,7 @@ public async Task Exists_GetsALogicalNetworkWithSpecifiedServerIdAndLogicalNetwo
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsALogicalNetworkWithSpecifiedServerIdAndLogicalNetworkName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationLogicalNetworks_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationLogicalNetworks_Get.json
// this example is just showing the usage of "ReplicationLogicalNetworks_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryLogicalNetworkResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryLogicalNetworkResource.cs
index 57f0b077c94f..9404aa8da734 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryLogicalNetworkResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryLogicalNetworkResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryLogicalNetworkResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsALogicalNetworkWithSpecifiedServerIdAndLogicalNetworkName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationLogicalNetworks_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationLogicalNetworks_Get.json
// this example is just showing the usage of "ReplicationLogicalNetworks_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryMigrationItemCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryMigrationItemCollection.cs
index 058fd0a23777..a73eeadb9c7f 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryMigrationItemCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryMigrationItemCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryMigrationItemCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_EnablesMigration()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_Create.json
// this example is just showing the usage of "ReplicationMigrationItems_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,6 +48,11 @@ public async Task CreateOrUpdate_EnablesMigration()
new VMwareCbtDiskContent[]
{
new VMwareCbtDiskContent("disk1", "true", new ResourceIdentifier("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Storage/storageAccounts/logStorageAccount1"), "logStorageSas")
+{
+Iops = 3000L,
+ThroughputInMbps = 5000L,
+DiskSizeInGB = 60L,
+}
},
new ResourceIdentifier("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/runasaccounts/dataMoverRunAsAccount1"),
new ResourceIdentifier("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/runasaccounts/snapshotRunAsAccount1"),
@@ -67,7 +72,7 @@ public async Task CreateOrUpdate_EnablesMigration()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_Get.json
// this example is just showing the usage of "ReplicationMigrationItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -103,7 +108,7 @@ public async Task Get_GetsTheDetailsOfAMigrationItem()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfMigrationItemsInTheProtectionContainer()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_ListByReplicationProtectionContainers.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_ListByReplicationProtectionContainers.json
// this example is just showing the usage of "ReplicationMigrationItems_ListByReplicationProtectionContainers" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -141,7 +146,7 @@ public async Task GetAll_GetsTheListOfMigrationItemsInTheProtectionContainer()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheDetailsOfAMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_Get.json
// this example is just showing the usage of "ReplicationMigrationItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -173,7 +178,7 @@ public async Task Exists_GetsTheDetailsOfAMigrationItem()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheDetailsOfAMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_Get.json
// this example is just showing the usage of "ReplicationMigrationItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryMigrationItemResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryMigrationItemResource.cs
index c25117eeb604..147defb2b03d 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryMigrationItemResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryMigrationItemResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryMigrationItemResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_Get.json
// this example is just showing the usage of "ReplicationMigrationItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -53,7 +53,7 @@ public async Task Get_GetsTheDetailsOfAMigrationItem()
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeleteTheMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_Delete.json
// this example is just showing the usage of "ReplicationMigrationItems_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Delete_DeleteTheMigrationItem()
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdatesMigrationItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_Update.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_Update.json
// this example is just showing the usage of "ReplicationMigrationItems_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -120,7 +120,7 @@ public async Task Update_UpdatesMigrationItem()
[Ignore("Only validating compilation of examples")]
public async Task Migrate_MigrateItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_Migrate.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_Migrate.json
// this example is just showing the usage of "ReplicationMigrationItems_Migrate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -155,7 +155,7 @@ public async Task Migrate_MigrateItem()
[Ignore("Only validating compilation of examples")]
public async Task PauseReplication_PauseReplication()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_PauseReplication.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_PauseReplication.json
// this example is just showing the usage of "ReplicationMigrationItems_PauseReplication" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -190,7 +190,7 @@ public async Task PauseReplication_PauseReplication()
[Ignore("Only validating compilation of examples")]
public async Task ResumeReplication_ResumeReplication()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_ResumeReplication.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_ResumeReplication.json
// this example is just showing the usage of "ReplicationMigrationItems_ResumeReplication" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -228,7 +228,7 @@ public async Task ResumeReplication_ResumeReplication()
[Ignore("Only validating compilation of examples")]
public async Task Resync_ResynchronizesReplication()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_Resync.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_Resync.json
// this example is just showing the usage of "ReplicationMigrationItems_Resync" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -263,7 +263,7 @@ public async Task Resync_ResynchronizesReplication()
[Ignore("Only validating compilation of examples")]
public async Task TestMigrate_TestMigrateItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_TestMigrate.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_TestMigrate.json
// this example is just showing the usage of "ReplicationMigrationItems_TestMigrate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -283,7 +283,10 @@ public async Task TestMigrate_TestMigrateItem()
SiteRecoveryMigrationItemResource siteRecoveryMigrationItem = client.GetSiteRecoveryMigrationItemResource(siteRecoveryMigrationItemResourceId);
// invoke the operation
- TestMigrateContent content = new TestMigrateContent(new TestMigrateProperties(new VMwareCbtTestMigrateContent(new ResourceIdentifier("/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"), new ResourceIdentifier("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1"))));
+ TestMigrateContent content = new TestMigrateContent(new TestMigrateProperties(new VMwareCbtTestMigrateContent(new ResourceIdentifier("/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"), new ResourceIdentifier("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1"))
+ {
+ OSUpgradeVersion = "Microsoft Windows Server 2019 (64-bit)",
+ }));
ArmOperation lro = await siteRecoveryMigrationItem.TestMigrateAsync(WaitUntil.Completed, content);
SiteRecoveryMigrationItemResource result = lro.Value;
@@ -298,7 +301,7 @@ public async Task TestMigrate_TestMigrateItem()
[Ignore("Only validating compilation of examples")]
public async Task TestMigrateCleanup_TestMigrateCleanup()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationMigrationItems_TestMigrateCleanup.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationMigrationItems_TestMigrateCleanup.json
// this example is just showing the usage of "ReplicationMigrationItems_TestMigrateCleanup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkCollection.cs
index 33604a3de252..a64184834b60 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryNetworkCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsANetworkWithSpecifiedServerIdAndNetworkName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworks_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworks_Get.json
// this example is just showing the usage of "ReplicationNetworks_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_GetsANetworkWithSpecifiedServerIdAndNetworkName()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfNetworksUnderAFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworks_ListByReplicationFabrics.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworks_ListByReplicationFabrics.json
// this example is just showing the usage of "ReplicationNetworks_ListByReplicationFabrics" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -91,7 +91,7 @@ public async Task GetAll_GetsTheListOfNetworksUnderAFabric()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsANetworkWithSpecifiedServerIdAndNetworkName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworks_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworks_Get.json
// this example is just showing the usage of "ReplicationNetworks_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -122,7 +122,7 @@ public async Task Exists_GetsANetworkWithSpecifiedServerIdAndNetworkName()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsANetworkWithSpecifiedServerIdAndNetworkName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworks_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworks_Get.json
// this example is just showing the usage of "ReplicationNetworks_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkMappingCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkMappingCollection.cs
index a1d0a5cd0aae..06a464494c98 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkMappingCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkMappingCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryNetworkMappingCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreatesNetworkMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworkMappings_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworkMappings_Create.json
// this example is just showing the usage of "ReplicationNetworkMappings_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -62,7 +62,7 @@ public async Task CreateOrUpdate_CreatesNetworkMapping()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsNetworkMappingByName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworkMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworkMappings_Get.json
// this example is just showing the usage of "ReplicationNetworkMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -98,7 +98,7 @@ public async Task Get_GetsNetworkMappingByName()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsAllTheNetworkMappingsUnderANetwork()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworkMappings_ListByReplicationNetworks.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworkMappings_ListByReplicationNetworks.json
// this example is just showing the usage of "ReplicationNetworkMappings_ListByReplicationNetworks" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -136,7 +136,7 @@ public async Task GetAll_GetsAllTheNetworkMappingsUnderANetwork()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsNetworkMappingByName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworkMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworkMappings_Get.json
// this example is just showing the usage of "ReplicationNetworkMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -168,7 +168,7 @@ public async Task Exists_GetsNetworkMappingByName()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsNetworkMappingByName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworkMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworkMappings_Get.json
// this example is just showing the usage of "ReplicationNetworkMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkMappingResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkMappingResource.cs
index 560ed7d2f262..3525c8e2c541 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkMappingResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkMappingResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryNetworkMappingResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsNetworkMappingByName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworkMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworkMappings_Get.json
// this example is just showing the usage of "ReplicationNetworkMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -53,7 +53,7 @@ public async Task Get_GetsNetworkMappingByName()
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeleteNetworkMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworkMappings_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworkMappings_Delete.json
// this example is just showing the usage of "ReplicationNetworkMappings_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Delete_DeleteNetworkMapping()
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdatesNetworkMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworkMappings_Update.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworkMappings_Update.json
// this example is just showing the usage of "ReplicationNetworkMappings_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkResource.cs
index 64ed3e42080c..39158324ffcb 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryNetworkResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryNetworkResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsANetworkWithSpecifiedServerIdAndNetworkName()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationNetworks_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationNetworks_Get.json
// this example is just showing the usage of "ReplicationNetworks_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPointCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPointCollection.cs
index 8562905b6c2d..6b80f30132dc 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPointCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPointCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryPointCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsARecoveryPoint()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/RecoveryPoints_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/RecoveryPoints_Get.json
// this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -56,7 +56,7 @@ public async Task Get_GetsARecoveryPoint()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfRecoveryPointsForAReplicationProtectedItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/RecoveryPoints_ListByReplicationProtectedItems.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/RecoveryPoints_ListByReplicationProtectedItems.json
// this example is just showing the usage of "RecoveryPoints_ListByReplicationProtectedItems" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -95,7 +95,7 @@ public async Task GetAll_GetsTheListOfRecoveryPointsForAReplicationProtectedItem
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsARecoveryPoint()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/RecoveryPoints_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/RecoveryPoints_Get.json
// this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -128,7 +128,7 @@ public async Task Exists_GetsARecoveryPoint()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsARecoveryPoint()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/RecoveryPoints_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/RecoveryPoints_Get.json
// this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPointResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPointResource.cs
index 70ad9648ed33..c81bf8d74906 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPointResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPointResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryPointResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsARecoveryPoint()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/RecoveryPoints_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/RecoveryPoints_Get.json
// this example is just showing the usage of "RecoveryPoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPolicyCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPolicyCollection.cs
index 981c4931f78f..fd554babca56 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPolicyCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPolicyCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_SiteRecoveryPolicyCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreatesThePolicy()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationPolicies_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationPolicies_Create.json
// this example is just showing the usage of "ReplicationPolicies_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -60,7 +60,7 @@ public async Task CreateOrUpdate_CreatesThePolicy()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheRequestedPolicy()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationPolicies_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationPolicies_Get.json
// this example is just showing the usage of "ReplicationPolicies_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -94,7 +94,7 @@ public async Task Get_GetsTheRequestedPolicy()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfReplicationPolicies()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationPolicies_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationPolicies_List.json
// this example is just showing the usage of "ReplicationPolicies_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -130,7 +130,7 @@ public async Task GetAll_GetsTheListOfReplicationPolicies()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheRequestedPolicy()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationPolicies_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationPolicies_Get.json
// this example is just showing the usage of "ReplicationPolicies_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -160,7 +160,7 @@ public async Task Exists_GetsTheRequestedPolicy()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheRequestedPolicy()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationPolicies_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationPolicies_Get.json
// this example is just showing the usage of "ReplicationPolicies_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPolicyResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPolicyResource.cs
index 2874507e89ee..168576d2d48d 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPolicyResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryPolicyResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryPolicyResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheRequestedPolicy()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationPolicies_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationPolicies_Get.json
// this example is just showing the usage of "ReplicationPolicies_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_GetsTheRequestedPolicy()
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeleteThePolicy()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationPolicies_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationPolicies_Delete.json
// this example is just showing the usage of "ReplicationPolicies_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -78,7 +78,7 @@ public async Task Delete_DeleteThePolicy()
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdatesThePolicy()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationPolicies_Update.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationPolicies_Update.json
// this example is just showing the usage of "ReplicationPolicies_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectableItemCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectableItemCollection.cs
index 360e47e19663..2523d6b54cb1 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectableItemCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectableItemCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryProtectableItemCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAProtectableItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectableItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectableItems_Get.json
// this example is just showing the usage of "ReplicationProtectableItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -55,7 +55,7 @@ public async Task Get_GetsTheDetailsOfAProtectableItem()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfProtectableItems()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectableItems_ListByReplicationProtectionContainers.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectableItems_ListByReplicationProtectionContainers.json
// this example is just showing the usage of "ReplicationProtectableItems_ListByReplicationProtectionContainers" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,7 +93,7 @@ public async Task GetAll_GetsTheListOfProtectableItems()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheDetailsOfAProtectableItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectableItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectableItems_Get.json
// this example is just showing the usage of "ReplicationProtectableItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -125,7 +125,7 @@ public async Task Exists_GetsTheDetailsOfAProtectableItem()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheDetailsOfAProtectableItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectableItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectableItems_Get.json
// this example is just showing the usage of "ReplicationProtectableItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectableItemResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectableItemResource.cs
index de8080302d57..1b4625d7ef5d 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectableItemResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectableItemResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryProtectableItemResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAProtectableItem()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectableItems_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectableItems_Get.json
// this example is just showing the usage of "ReplicationProtectableItems_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectionContainerCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectionContainerCollection.cs
index 8279e1c6466e..271f87381e12 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectionContainerCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectionContainerCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_SiteRecoveryProtectionContainerCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheProtectionContainerDetails()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainers_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_Get.json
// this example is just showing the usage of "ReplicationProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_GetsTheProtectionContainerDetails()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfProtectionContainerForAFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainers_ListByReplicationFabrics.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_ListByReplicationFabrics.json
// this example is just showing the usage of "ReplicationProtectionContainers_ListByReplicationFabrics" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -91,7 +91,7 @@ public async Task GetAll_GetsTheListOfProtectionContainerForAFabric()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheProtectionContainerDetails()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainers_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_Get.json
// this example is just showing the usage of "ReplicationProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -122,7 +122,7 @@ public async Task Exists_GetsTheProtectionContainerDetails()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheProtectionContainerDetails()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainers_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_Get.json
// this example is just showing the usage of "ReplicationProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectionContainerResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectionContainerResource.cs
index 9ac2f70c0a8b..2c67e79c437a 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectionContainerResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryProtectionContainerResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_SiteRecoveryProtectionContainerResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheProtectionContainerDetails()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainers_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_Get.json
// this example is just showing the usage of "ReplicationProtectionContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -53,7 +53,7 @@ public async Task Get_GetsTheProtectionContainerDetails()
[Ignore("Only validating compilation of examples")]
public async Task DiscoverProtectableItem_AddsAProtectableItemToTheReplicationProtectionContainer()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainers_DiscoverProtectableItem.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_DiscoverProtectableItem.json
// this example is just showing the usage of "ReplicationProtectionContainers_DiscoverProtectableItem" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -95,7 +95,7 @@ public async Task DiscoverProtectableItem_AddsAProtectableItemToTheReplicationPr
[Ignore("Only validating compilation of examples")]
public async Task Delete_RemovesAProtectionContainer()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainers_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_Delete.json
// this example is just showing the usage of "ReplicationProtectionContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -119,11 +119,67 @@ public async Task Delete_RemovesAProtectionContainer()
Console.WriteLine("Succeeded");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task SwitchClusterProtection_SwitchesProtectionFromOneContainerToAnotherOrOneReplicationProviderToAnother()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_SwitchClusterProtection.json
+ // this example is just showing the usage of "ReplicationProtectionContainers_SwitchClusterProtection" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SiteRecoveryProtectionContainerResource created on azure
+ // for more information of creating SiteRecoveryProtectionContainerResource, please refer to the document of SiteRecoveryProtectionContainerResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ ResourceIdentifier siteRecoveryProtectionContainerResourceId = SiteRecoveryProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName);
+ SiteRecoveryProtectionContainerResource siteRecoveryProtectionContainer = client.GetSiteRecoveryProtectionContainerResource(siteRecoveryProtectionContainerResourceId);
+
+ // invoke the operation
+ SwitchClusterProtectionContent content = new SwitchClusterProtectionContent
+ {
+ Properties = new SwitchClusterProtectionContentProperties
+ {
+ ReplicationProtectionClusterName = "testcluster",
+ ProviderSpecificDetails = new A2ASwitchClusterProtectionContent
+ {
+ RecoveryContainerId = new ResourceIdentifier("/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/fabric-rec-westus/replicationProtectionContainers/rec-cloud-westus"),
+ PolicyId = new ResourceIdentifier("/Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/klncksan"),
+ ProtectedItemsDetail = {new A2AProtectedItemDetail
+{
+VmManagedDisks = {new A2AVmManagedDiskDetails("/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourcegroups/clustertestrg-19-01/providers/microsoft.compute/disks/sdgql0-osdisk", new ResourceIdentifier("/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/clustertestrg-19-01/providers/Microsoft.Storage/storageAccounts/ix701lvaasrcache"), new ResourceIdentifier("/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr"))},
+RecoveryResourceGroupId = new ResourceIdentifier("/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr"),
+ReplicationProtectedItemName = "yNdYnDYKZ7hYU7zyVeBychFBCyAbEkrJcJNUarDrXio",
+}, new A2AProtectedItemDetail
+{
+VmManagedDisks = {new A2AVmManagedDiskDetails("/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourcegroups/clustertestrg-19-01/providers/microsoft.compute/disks/sdgql1-osdisk", new ResourceIdentifier("/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/clustertestrg-19-01/providers/Microsoft.Storage/storageAccounts/ix701lvaasrcache"), new ResourceIdentifier("/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr"))},
+RecoveryResourceGroupId = new ResourceIdentifier("/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr"),
+ReplicationProtectedItemName = "kdUdWvpVnm3QgOQPHoVMX8YAtAO8OC4kKNjt40ERSr4",
+}},
+ },
+ },
+ };
+ ArmOperation lro = await siteRecoveryProtectionContainer.SwitchClusterProtectionAsync(WaitUntil.Completed, content);
+ SiteRecoveryProtectionContainerResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ SiteRecoveryProtectionContainerData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task SwitchProtection_SwitchesProtectionFromOneContainerToAnotherOrOneReplicationProviderToAnother()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationProtectionContainers_SwitchProtection.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionContainers_SwitchProtection.json
// this example is just showing the usage of "ReplicationProtectionContainers_SwitchProtection" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryRecoveryPlanCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryRecoveryPlanCollection.cs
index 5be2f5e88590..f7b6b324c8d6 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryRecoveryPlanCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryRecoveryPlanCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_SiteRecoveryRecoveryPlanCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreatesARecoveryPlanWithTheGivenDetails()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_Create.json
// this example is just showing the usage of "ReplicationRecoveryPlans_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -72,7 +72,7 @@ public async Task CreateOrUpdate_CreatesARecoveryPlanWithTheGivenDetails()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheRequestedRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_Get.json
// this example is just showing the usage of "ReplicationRecoveryPlans_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -106,7 +106,7 @@ public async Task Get_GetsTheRequestedRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfRecoveryPlans()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_List.json
// this example is just showing the usage of "ReplicationRecoveryPlans_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -142,7 +142,7 @@ public async Task GetAll_GetsTheListOfRecoveryPlans()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheRequestedRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_Get.json
// this example is just showing the usage of "ReplicationRecoveryPlans_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -172,7 +172,7 @@ public async Task Exists_GetsTheRequestedRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheRequestedRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_Get.json
// this example is just showing the usage of "ReplicationRecoveryPlans_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryRecoveryPlanResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryRecoveryPlanResource.cs
index 133e29ebbb96..22b5849bcdbf 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryRecoveryPlanResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryRecoveryPlanResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryRecoveryPlanResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheRequestedRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_Get.json
// this example is just showing the usage of "ReplicationRecoveryPlans_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_GetsTheRequestedRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeletesTheSpecifiedRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_Delete.json
// this example is just showing the usage of "ReplicationRecoveryPlans_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -78,7 +78,7 @@ public async Task Delete_DeletesTheSpecifiedRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdatesTheGivenRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_Update.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_Update.json
// this example is just showing the usage of "ReplicationRecoveryPlans_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -142,7 +142,7 @@ public async Task Update_UpdatesTheGivenRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task FailoverCancel_ExecuteCancelFailoverOfTheRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_FailoverCancel.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_FailoverCancel.json
// this example is just showing the usage of "ReplicationRecoveryPlans_FailoverCancel" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -174,7 +174,7 @@ public async Task FailoverCancel_ExecuteCancelFailoverOfTheRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task FailoverCommit_ExecuteCommitFailoverOfTheRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_FailoverCommit.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_FailoverCommit.json
// this example is just showing the usage of "ReplicationRecoveryPlans_FailoverCommit" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -206,7 +206,7 @@ public async Task FailoverCommit_ExecuteCommitFailoverOfTheRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task PlannedFailover_ExecutePlannedFailoverOfTheRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_PlannedFailover.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_PlannedFailover.json
// this example is just showing the usage of "ReplicationRecoveryPlans_PlannedFailover" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -242,7 +242,7 @@ public async Task PlannedFailover_ExecutePlannedFailoverOfTheRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task Reprotect_ExecuteReprotectOfTheRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_Reprotect.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_Reprotect.json
// this example is just showing the usage of "ReplicationRecoveryPlans_Reprotect" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -274,7 +274,7 @@ public async Task Reprotect_ExecuteReprotectOfTheRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task TestFailover_ExecuteTestFailoverOfTheRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_TestFailover.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_TestFailover.json
// this example is just showing the usage of "ReplicationRecoveryPlans_TestFailover" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -311,7 +311,7 @@ public async Task TestFailover_ExecuteTestFailoverOfTheRecoveryPlan()
[Ignore("Only validating compilation of examples")]
public async Task TestFailoverCleanup_ExecuteTestFailoverCleanupOfTheRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_TestFailoverCleanup.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_TestFailoverCleanup.json
// this example is just showing the usage of "ReplicationRecoveryPlans_TestFailoverCleanup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -347,7 +347,7 @@ public async Task TestFailoverCleanup_ExecuteTestFailoverCleanupOfTheRecoveryPla
[Ignore("Only validating compilation of examples")]
public async Task UnplannedFailover_ExecuteUnplannedFailoverOfTheRecoveryPlan()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryPlans_UnplannedFailover.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryPlans_UnplannedFailover.json
// this example is just showing the usage of "ReplicationRecoveryPlans_UnplannedFailover" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryServicesProviderCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryServicesProviderCollection.cs
index b46954da0526..848334854c91 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryServicesProviderCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryServicesProviderCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryServicesProviderCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_AddsARecoveryServicesProvider()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_Create.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task CreateOrUpdate_AddsARecoveryServicesProvider()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfARecoveryServicesProvider()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_Get.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetsTheDetailsOfARecoveryServicesProvider()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfRegisteredRecoveryServicesProvidersForTheFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_ListByReplicationFabrics.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_ListByReplicationFabrics.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_ListByReplicationFabrics" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -129,7 +129,7 @@ public async Task GetAll_GetsTheListOfRegisteredRecoveryServicesProvidersForTheF
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheDetailsOfARecoveryServicesProvider()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_Get.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -160,7 +160,7 @@ public async Task Exists_GetsTheDetailsOfARecoveryServicesProvider()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheDetailsOfARecoveryServicesProvider()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_Get.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryServicesProviderResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryServicesProviderResource.cs
index 4584b74c4be1..2cff18358c63 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryServicesProviderResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryServicesProviderResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryServicesProviderResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfARecoveryServicesProvider()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_Get.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -52,7 +52,7 @@ public async Task Get_GetsTheDetailsOfARecoveryServicesProvider()
[Ignore("Only validating compilation of examples")]
public async Task Update_AddsARecoveryServicesProvider()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_Create.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -86,7 +86,7 @@ public async Task Update_AddsARecoveryServicesProvider()
[Ignore("Only validating compilation of examples")]
public async Task RefreshProvider_RefreshDetailsFromTheRecoveryServicesProvider()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_RefreshProvider.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_RefreshProvider.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_RefreshProvider" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -119,7 +119,7 @@ public async Task RefreshProvider_RefreshDetailsFromTheRecoveryServicesProvider(
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeletesProviderFromFabricNoteDeletingProviderForAnyFabricOtherThanSingleHostIsUnsupportedToMaintainBackwardCompatibilityForReleasedClientsTheObjectDeleteRspInputIsUsedIfTheObjectIsEmptyWeAssumeThatItIsOldClientAndContinueTheOldBehavior()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationRecoveryServicesProviders_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationRecoveryServicesProviders_Delete.json
// this example is just showing the usage of "ReplicationRecoveryServicesProviders_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVCenterCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVCenterCollection.cs
index 819790a7a642..2a2a70c8c82f 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVCenterCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVCenterCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_SiteRecoveryVCenterCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_AddVCenter()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationvCenters_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationvCenters_Create.json
// this example is just showing the usage of "ReplicationvCenters_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -68,7 +68,7 @@ public async Task CreateOrUpdate_AddVCenter()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAVCenter()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationvCenters_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationvCenters_Get.json
// this example is just showing the usage of "ReplicationvCenters_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -103,7 +103,7 @@ public async Task Get_GetsTheDetailsOfAVCenter()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfVCenterRegisteredUnderAFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationvCenters_ListByReplicationFabrics.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationvCenters_ListByReplicationFabrics.json
// this example is just showing the usage of "ReplicationvCenters_ListByReplicationFabrics" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -140,7 +140,7 @@ public async Task GetAll_GetsTheListOfVCenterRegisteredUnderAFabric()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheDetailsOfAVCenter()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationvCenters_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationvCenters_Get.json
// this example is just showing the usage of "ReplicationvCenters_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -171,7 +171,7 @@ public async Task Exists_GetsTheDetailsOfAVCenter()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheDetailsOfAVCenter()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationvCenters_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationvCenters_Get.json
// this example is just showing the usage of "ReplicationvCenters_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVCenterResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVCenterResource.cs
index 4c94af298a12..d8418d577d74 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVCenterResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVCenterResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_SiteRecoveryVCenterResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAVCenter()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationvCenters_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationvCenters_Get.json
// this example is just showing the usage of "ReplicationvCenters_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -53,7 +53,7 @@ public async Task Get_GetsTheDetailsOfAVCenter()
[Ignore("Only validating compilation of examples")]
public async Task Delete_RemoveVCenterOperation()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationvCenters_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationvCenters_Delete.json
// this example is just showing the usage of "ReplicationvCenters_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -81,7 +81,7 @@ public async Task Delete_RemoveVCenterOperation()
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdateVCenterOperation()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationvCenters_Update.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationvCenters_Update.json
// this example is just showing the usage of "ReplicationvCenters_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVaultSettingCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVaultSettingCollection.cs
index 08a94531a9b4..e0a1643134e9 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVaultSettingCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVaultSettingCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_SiteRecoveryVaultSettingCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_UpdatesVaultSettingAVaultSettingObjectIsASingletonPerVaultAndItIsAlwaysPresentByDefault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationVaultSetting_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationVaultSetting_Create.json
// this example is just showing the usage of "ReplicationVaultSetting_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -60,7 +60,7 @@ public async Task CreateOrUpdate_UpdatesVaultSettingAVaultSettingObjectIsASingle
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheVaultSetting()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationVaultSetting_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationVaultSetting_Get.json
// this example is just showing the usage of "ReplicationVaultSetting_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -94,7 +94,7 @@ public async Task Get_GetsTheVaultSetting()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfVaultSetting()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationVaultSetting_List.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationVaultSetting_List.json
// this example is just showing the usage of "ReplicationVaultSetting_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -130,7 +130,7 @@ public async Task GetAll_GetsTheListOfVaultSetting()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheVaultSetting()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationVaultSetting_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationVaultSetting_Get.json
// this example is just showing the usage of "ReplicationVaultSetting_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -160,7 +160,7 @@ public async Task Exists_GetsTheVaultSetting()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheVaultSetting()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationVaultSetting_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationVaultSetting_Get.json
// this example is just showing the usage of "ReplicationVaultSetting_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVaultSettingResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVaultSettingResource.cs
index c0b334704649..57946d84d7a5 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVaultSettingResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_SiteRecoveryVaultSettingResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SiteRecoveryVaultSettingResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheVaultSetting()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationVaultSetting_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationVaultSetting_Get.json
// this example is just showing the usage of "ReplicationVaultSetting_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_GetsTheVaultSetting()
[Ignore("Only validating compilation of examples")]
public async Task Update_UpdatesVaultSettingAVaultSettingObjectIsASingletonPerVaultAndItIsAlwaysPresentByDefault()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationVaultSetting_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationVaultSetting_Create.json
// this example is just showing the usage of "ReplicationVaultSetting_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationCollection.cs
index 6bbc82ff31c8..b3fb3835b24a 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_StorageClassificationCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAStorageClassification()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassifications_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassifications_Get.json
// this example is just showing the usage of "ReplicationStorageClassifications_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_GetsTheDetailsOfAStorageClassification()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfStorageClassificationObjectsUnderAFabric()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassifications_ListByReplicationFabrics.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassifications_ListByReplicationFabrics.json
// this example is just showing the usage of "ReplicationStorageClassifications_ListByReplicationFabrics" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -91,7 +91,7 @@ public async Task GetAll_GetsTheListOfStorageClassificationObjectsUnderAFabric()
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheDetailsOfAStorageClassification()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassifications_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassifications_Get.json
// this example is just showing the usage of "ReplicationStorageClassifications_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -122,7 +122,7 @@ public async Task Exists_GetsTheDetailsOfAStorageClassification()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheDetailsOfAStorageClassification()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassifications_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassifications_Get.json
// this example is just showing the usage of "ReplicationStorageClassifications_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationMappingCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationMappingCollection.cs
index 9af19abc4081..a1f74fd63a32 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationMappingCollection.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationMappingCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_StorageClassificationMappingCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_CreateStorageClassificationMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassificationMappings_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassificationMappings_Create.json
// this example is just showing the usage of "ReplicationStorageClassificationMappings_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -61,7 +61,7 @@ public async Task CreateOrUpdate_CreateStorageClassificationMapping()
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAStorageClassificationMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassificationMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassificationMappings_Get.json
// this example is just showing the usage of "ReplicationStorageClassificationMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -97,7 +97,7 @@ public async Task Get_GetsTheDetailsOfAStorageClassificationMapping()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_GetsTheListOfStorageClassificationMappingsObjectsUnderAStorage()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications.json
// this example is just showing the usage of "ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -135,7 +135,7 @@ public async Task GetAll_GetsTheListOfStorageClassificationMappingsObjectsUnderA
[Ignore("Only validating compilation of examples")]
public async Task Exists_GetsTheDetailsOfAStorageClassificationMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassificationMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassificationMappings_Get.json
// this example is just showing the usage of "ReplicationStorageClassificationMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -167,7 +167,7 @@ public async Task Exists_GetsTheDetailsOfAStorageClassificationMapping()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_GetsTheDetailsOfAStorageClassificationMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassificationMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassificationMappings_Get.json
// this example is just showing the usage of "ReplicationStorageClassificationMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationMappingResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationMappingResource.cs
index a3c93980b2fb..532c52f7b9ac 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationMappingResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationMappingResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_StorageClassificationMappingResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAStorageClassificationMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassificationMappings_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassificationMappings_Get.json
// this example is just showing the usage of "ReplicationStorageClassificationMappings_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -53,7 +53,7 @@ public async Task Get_GetsTheDetailsOfAStorageClassificationMapping()
[Ignore("Only validating compilation of examples")]
public async Task Delete_DeleteAStorageClassificationMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassificationMappings_Delete.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassificationMappings_Delete.json
// this example is just showing the usage of "ReplicationStorageClassificationMappings_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Delete_DeleteAStorageClassificationMapping()
[Ignore("Only validating compilation of examples")]
public async Task Update_CreateStorageClassificationMapping()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassificationMappings_Create.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassificationMappings_Create.json
// this example is just showing the usage of "ReplicationStorageClassificationMappings_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationResource.cs
index cffeec0d0916..7f21daa0c752 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_StorageClassificationResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_StorageClassificationResource
[Ignore("Only validating compilation of examples")]
public async Task Get_GetsTheDetailsOfAStorageClassification()
{
- // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-08-01/examples/ReplicationStorageClassifications_Get.json
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationStorageClassifications_Get.json
// this example is just showing the usage of "ReplicationStorageClassifications_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterCollection.cs
new file mode 100644
index 000000000000..0d8ad39f337b
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterCollection.cs
@@ -0,0 +1,215 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.RecoveryServicesSiteRecovery.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Samples
+{
+ public partial class Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_CreateReplicationProtectionCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_Create.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SiteRecoveryProtectionContainerResource created on azure
+ // for more information of creating SiteRecoveryProtectionContainerResource, please refer to the document of SiteRecoveryProtectionContainerResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ ResourceIdentifier siteRecoveryProtectionContainerResourceId = SiteRecoveryProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName);
+ SiteRecoveryProtectionContainerResource siteRecoveryProtectionContainer = client.GetSiteRecoveryProtectionContainerResource(siteRecoveryProtectionContainerResourceId);
+
+ // get the collection of this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterCollection collection = siteRecoveryProtectionContainer.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusters();
+
+ // invoke the operation
+ string replicationProtectionClusterName = "cluster12";
+ ReplicationProtectionClusterData data = new ReplicationProtectionClusterData
+ {
+ Properties = new ReplicationProtectionClusterProperties
+ {
+ RecoveryContainerId = new ResourceIdentifier("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/centraluseuap/replicationProtectionContainers/centraluseuap-container"),
+ ProviderSpecificDetails = new A2AReplicationProtectionClusterDetails(),
+ PolicyId = new ResourceIdentifier("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/24-hour-retention-policy"),
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, replicationProtectionClusterName, data);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsTheDetailsOfAReplicationProtectionCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_Get.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SiteRecoveryProtectionContainerResource created on azure
+ // for more information of creating SiteRecoveryProtectionContainerResource, please refer to the document of SiteRecoveryProtectionContainerResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ ResourceIdentifier siteRecoveryProtectionContainerResourceId = SiteRecoveryProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName);
+ SiteRecoveryProtectionContainerResource siteRecoveryProtectionContainer = client.GetSiteRecoveryProtectionContainerResource(siteRecoveryProtectionContainerResourceId);
+
+ // get the collection of this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterCollection collection = siteRecoveryProtectionContainer.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusters();
+
+ // invoke the operation
+ string replicationProtectionClusterName = "cluster1";
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = await collection.GetAsync(replicationProtectionClusterName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAll_GetsTheListOfReplicationProtectionClustersInFabricContainer()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_ListByReplicationProtectionContainers.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_ListByReplicationProtectionContainers" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SiteRecoveryProtectionContainerResource created on azure
+ // for more information of creating SiteRecoveryProtectionContainerResource, please refer to the document of SiteRecoveryProtectionContainerResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ ResourceIdentifier siteRecoveryProtectionContainerResourceId = SiteRecoveryProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName);
+ SiteRecoveryProtectionContainerResource siteRecoveryProtectionContainer = client.GetSiteRecoveryProtectionContainerResource(siteRecoveryProtectionContainerResourceId);
+
+ // get the collection of this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterCollection collection = siteRecoveryProtectionContainer.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusters();
+
+ // invoke the operation and iterate over the result
+ await foreach (VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_GetsTheDetailsOfAReplicationProtectionCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_Get.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SiteRecoveryProtectionContainerResource created on azure
+ // for more information of creating SiteRecoveryProtectionContainerResource, please refer to the document of SiteRecoveryProtectionContainerResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ ResourceIdentifier siteRecoveryProtectionContainerResourceId = SiteRecoveryProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName);
+ SiteRecoveryProtectionContainerResource siteRecoveryProtectionContainer = client.GetSiteRecoveryProtectionContainerResource(siteRecoveryProtectionContainerResourceId);
+
+ // get the collection of this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterCollection collection = siteRecoveryProtectionContainer.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusters();
+
+ // invoke the operation
+ string replicationProtectionClusterName = "cluster1";
+ bool result = await collection.ExistsAsync(replicationProtectionClusterName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_GetsTheDetailsOfAReplicationProtectionCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_Get.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SiteRecoveryProtectionContainerResource created on azure
+ // for more information of creating SiteRecoveryProtectionContainerResource, please refer to the document of SiteRecoveryProtectionContainerResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ ResourceIdentifier siteRecoveryProtectionContainerResourceId = SiteRecoveryProtectionContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName);
+ SiteRecoveryProtectionContainerResource siteRecoveryProtectionContainer = client.GetSiteRecoveryProtectionContainerResource(siteRecoveryProtectionContainerResourceId);
+
+ // get the collection of this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterCollection collection = siteRecoveryProtectionContainer.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusters();
+
+ // invoke the operation
+ string replicationProtectionClusterName = "cluster1";
+ NullableResponse response = await collection.GetIfExistsAsync(replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultCollection.cs
new file mode 100644
index 000000000000..647a0686342f
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultCollection.cs
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Samples
+{
+ public partial class Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_TracksTheReplicationProtectionClusterAsyncOperation()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_GetOperationResults.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_GetOperationResults" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ string replicationProtectionClusterName = "cluster1";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // get the collection of this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultCollection collection = vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResults();
+
+ // invoke the operation
+ ResourceIdentifier jobId = new ResourceIdentifier("ea63a935-59d5-4b12-aff2-98773f63c116");
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource result = await collection.GetAsync(jobId);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Exists_TracksTheReplicationProtectionClusterAsyncOperation()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_GetOperationResults.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_GetOperationResults" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ string replicationProtectionClusterName = "cluster1";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // get the collection of this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultCollection collection = vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResults();
+
+ // invoke the operation
+ ResourceIdentifier jobId = new ResourceIdentifier("ea63a935-59d5-4b12-aff2-98773f63c116");
+ bool result = await collection.ExistsAsync(jobId);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_TracksTheReplicationProtectionClusterAsyncOperation()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_GetOperationResults.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_GetOperationResults" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ string replicationProtectionClusterName = "cluster1";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // get the collection of this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultCollection collection = vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResults();
+
+ // invoke the operation
+ ResourceIdentifier jobId = new ResourceIdentifier("ea63a935-59d5-4b12-aff2-98773f63c116");
+ NullableResponse response = await collection.GetIfExistsAsync(jobId);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource.cs
new file mode 100644
index 000000000000..fc09883f9104
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource.cs
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Samples
+{
+ public partial class Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_TracksTheReplicationProtectionClusterAsyncOperation()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_GetOperationResults.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_GetOperationResults" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ string replicationProtectionClusterName = "cluster1";
+ ResourceIdentifier jobId = new ResourceIdentifier("ea63a935-59d5-4b12-aff2-98773f63c116");
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName, jobId);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResult = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResourceId);
+
+ // invoke the operation
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource result = await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResult.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.cs
new file mode 100644
index 000000000000..62c7f2de7a41
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/samples/Generated/Samples/Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.cs
@@ -0,0 +1,358 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.RecoveryServicesSiteRecovery.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery.Samples
+{
+ public partial class Sample_VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_GetsTheDetailsOfAReplicationProtectionCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_Get.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ string replicationProtectionClusterName = "cluster1";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // invoke the operation
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Delete_PurgeTheReplicationProtectionCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_Purge.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_Purge" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ string replicationProtectionClusterName = "cluster1";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // invoke the operation
+ await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_CreateReplicationProtectionCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_Create.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ string replicationProtectionClusterName = "cluster12";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // invoke the operation
+ ReplicationProtectionClusterData data = new ReplicationProtectionClusterData
+ {
+ Properties = new ReplicationProtectionClusterProperties
+ {
+ RecoveryContainerId = new ResourceIdentifier("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/centraluseuap/replicationProtectionContainers/centraluseuap-container"),
+ ProviderSpecificDetails = new A2AReplicationProtectionClusterDetails(),
+ PolicyId = new ResourceIdentifier("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/24-hour-retention-policy"),
+ },
+ };
+ ArmOperation lro = await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.UpdateAsync(WaitUntil.Completed, data);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task ApplyRecoveryPoint_ExecuteTheChangeRecoveryPointOperationForCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_ApplyRecoveryPoint.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_ApplyRecoveryPoint" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // invoke the operation
+ ApplyClusterRecoveryPointContent content = new ApplyClusterRecoveryPointContent(new ApplyClusterRecoveryPointContentProperties(new A2AApplyClusterRecoveryPointContent())
+ {
+ ClusterRecoveryPointId = new ResourceIdentifier("/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"),
+ IndividualNodeRecoveryPoints = { new ResourceIdentifier("/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") },
+ });
+ ArmOperation lro = await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.ApplyRecoveryPointAsync(WaitUntil.Completed, content);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task FailoverCommit_ExecuteCommitFailoverForCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_FailoverCommit.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_FailoverCommit" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // invoke the operation
+ ArmOperation lro = await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.FailoverCommitAsync(WaitUntil.Completed);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task RepairReplication_ResynchronizeOrRepairReplicationOfProtectionCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_RepairReplication.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_RepairReplication" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "c183865e-6077-46f2-a3b1-deb0f4f4650a";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "eastus";
+ string protectionContainerName = "eastus-container";
+ string replicationProtectionClusterName = "cluster12";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // invoke the operation
+ ArmOperation lro = await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.RepairReplicationAsync(WaitUntil.Completed);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task TestFailover_ExecuteTestFailoverForCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_TestFailover.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_TestFailover" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // invoke the operation
+ ClusterTestFailoverContent content = new ClusterTestFailoverContent(new ClusterTestFailoverContentProperties
+ {
+ FailoverDirection = FailoverDirection.PrimaryToRecovery,
+ NetworkType = "VmNetworkAsInput",
+ NetworkId = new ResourceIdentifier("/subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/ClusterTestRG-19-01-asr/providers/Microsoft.Network/virtualNetworks/adVNET-asr"),
+ ProviderSpecificDetails = new A2AClusterTestFailoverContent
+ {
+ ClusterRecoveryPointId = new ResourceIdentifier("/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"),
+ IndividualNodeRecoveryPoints = { "/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" },
+ },
+ });
+ ArmOperation lro = await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.TestFailoverAsync(WaitUntil.Completed, content);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task TestFailoverCleanup_ExecuteTestFailoverCleanupForCluster()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_TestFailoverCleanup.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_TestFailoverCleanup" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // invoke the operation
+ ClusterTestFailoverCleanupContent content = new ClusterTestFailoverCleanupContent(new ClusterTestFailoverCleanupContentProperties
+ {
+ Comments = "Test Failover Cleanup",
+ });
+ ArmOperation lro = await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.TestFailoverCleanupAsync(WaitUntil.Completed, content);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task UnplannedFailover_ExecuteUnplannedClusterFailover()
+ {
+ // Generated from example definition: specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ReplicationProtectionClusters_UnplannedFailover.json
+ // this example is just showing the usage of "ReplicationProtectionClusters_UnplannedFailover" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource created on azure
+ // for more information of creating VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource, please refer to the document of VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource
+ string subscriptionId = "7c943c1b-5122-4097-90c8-861411bdd574";
+ string resourceGroupName = "resourceGroupPS1";
+ string resourceName = "vault1";
+ string fabricName = "fabric-pri-eastus";
+ string protectionContainerName = "pri-cloud-eastus";
+ string replicationProtectionClusterName = "testcluster";
+ ResourceIdentifier vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId = VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, resourceName, fabricName, protectionContainerName, replicationProtectionClusterName);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster = client.GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(vaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResourceId);
+
+ // invoke the operation
+ ClusterUnplannedFailoverContent content = new ClusterUnplannedFailoverContent(new ClusterUnplannedFailoverContentProperties
+ {
+ FailoverDirection = "primarytorecovery",
+ SourceSiteOperations = "NotRequired",
+ ProviderSpecificDetails = new A2AClusterUnplannedFailoverContent
+ {
+ ClusterRecoveryPointId = new ResourceIdentifier("/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"),
+ IndividualNodeRecoveryPoints = { "/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" },
+ },
+ });
+ ArmOperation lro = await vaultReplicationFabricReplicationProtectionContainerReplicationProtectionCluster.UnplannedFailoverAsync(WaitUntil.Completed, content);
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ReplicationProtectionClusterData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ArmRecoveryServicesSiteRecoveryModelFactory.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ArmRecoveryServicesSiteRecoveryModelFactory.cs
index f9fce4c5c09f..30fddf9e5541 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ArmRecoveryServicesSiteRecoveryModelFactory.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ArmRecoveryServicesSiteRecoveryModelFactory.cs
@@ -165,82 +165,6 @@ public static SiteRecoveryEventProperties SiteRecoveryEventProperties(string eve
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException.
- /// Source of error.
- /// Type of error.
- /// Level of error.
- /// Category of error.
- /// Error code.
- /// Summary message of the entity.
- /// Error message.
- /// Possible causes of error.
- /// Recommended action to resolve error.
- /// Error creation time (UTC).
- /// DRA error message.
- /// ID of the entity.
- /// The health error unique id.
- /// Value indicating whether the health error is customer resolvable.
- /// A new instance for mocking.
- public static SiteRecoveryHealthError SiteRecoveryHealthError(IEnumerable innerHealthErrors = null, string errorSource = null, string errorType = null, string errorLevel = null, string errorCategory = null, string errorCode = null, string summaryMessage = null, string errorMessage = null, string possibleCauses = null, string recommendedAction = null, DateTimeOffset? creationTimeUtc = null, string recoveryProviderErrorMessage = null, string entityId = null, string errorId = null, HealthErrorCustomerResolvability? customerResolvability = null)
- {
- innerHealthErrors ??= new List();
-
- return new SiteRecoveryHealthError(
- innerHealthErrors?.ToList(),
- errorSource,
- errorType,
- errorLevel,
- errorCategory,
- errorCode,
- summaryMessage,
- errorMessage,
- possibleCauses,
- recommendedAction,
- creationTimeUtc,
- recoveryProviderErrorMessage,
- entityId,
- errorId,
- customerResolvability,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Source of error.
- /// Type of error.
- /// Level of error.
- /// Category of error.
- /// Error code.
- /// Summary message of the entity.
- /// Error message.
- /// Possible causes of error.
- /// Recommended action to resolve error.
- /// Error creation time (UTC).
- /// DRA error message.
- /// ID of the entity.
- /// The health error unique id.
- /// Value indicating whether the health error is customer resolvable.
- /// A new instance for mocking.
- public static SiteRecoveryInnerHealthError SiteRecoveryInnerHealthError(string errorSource = null, string errorType = null, string errorLevel = null, string errorCategory = null, string errorCode = null, string summaryMessage = null, string errorMessage = null, string possibleCauses = null, string recommendedAction = null, DateTimeOffset? createdOn = null, string recoveryProviderErrorMessage = null, string entityId = null, string errorId = null, HealthErrorCustomerResolvability? customerResolvability = null)
- {
- return new SiteRecoveryInnerHealthError(
- errorSource,
- errorType,
- errorLevel,
- errorCategory,
- errorCode,
- summaryMessage,
- errorMessage,
- possibleCauses,
- recommendedAction,
- createdOn,
- recoveryProviderErrorMessage,
- entityId,
- errorId,
- customerResolvability,
- serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -753,16 +677,6 @@ public static ReplicationProtectedItemProperties ReplicationProtectedItemPropert
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// Scenario name.
- /// ARM Id of the job being executed.
- /// Start time of the workflow.
- /// A new instance for mocking.
- public static CurrentScenarioDetails CurrentScenarioDetails(string scenarioName = null, ResourceIdentifier jobId = null, DateTimeOffset? startOn = null)
- {
- return new CurrentScenarioDetails(scenarioName, jobId, startOn, serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// The recovery point Id.
///
@@ -868,6 +782,152 @@ public static SiteRecoveryComputeSizeErrorDetails SiteRecoveryComputeSizeErrorDe
return new SiteRecoveryComputeSizeErrorDetails(message, severity, serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The custom data.
+ /// A new instance for mocking.
+ public static ReplicationProtectionClusterData ReplicationProtectionClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ReplicationProtectionClusterProperties properties = null)
+ {
+ return new ReplicationProtectionClusterData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The type of protection cluster type.
+ /// The friendly name of the primary fabric.
+ /// The fabric provider of the primary fabric.
+ /// The friendly name of recovery fabric.
+ /// The Arm Id of recovery fabric.
+ /// The name of primary protection container friendly name.
+ /// The name of recovery container friendly name.
+ /// The protection status.
+ /// The protection state description.
+ /// The Current active location of the Protection cluster.
+ /// The Test failover state.
+ /// The Test failover state description.
+ /// The allowed operations on the Replication protection cluster.
+ /// The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration.
+ /// List of health errors.
+ /// The last successful failover time.
+ /// The last successful test failover time.
+ /// The name of Policy governing this PE.
+ /// The current scenario.
+ /// The recovery container Id.
+ /// The Agent cluster Id.
+ /// The cluster FQDN.
+ /// The List of cluster Node FQDNs.
+ /// The List of Protected Item Id's.
+ /// The provisioning state of the cluster.
+ /// A value indicating whether all nodes of the cluster are registered or not.
+ /// The registered node details.
+ ///
+ /// The Replication cluster provider custom settings.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include .
+ ///
+ /// The shared disk properties.
+ /// The Policy Id.
+ /// A new instance for mocking.
+ public static ReplicationProtectionClusterProperties ReplicationProtectionClusterProperties(string protectionClusterType = null, string primaryFabricFriendlyName = null, string primaryFabricProvider = null, string recoveryFabricFriendlyName = null, ResourceIdentifier recoveryFabricId = null, string primaryProtectionContainerFriendlyName = null, string recoveryProtectionContainerFriendlyName = null, string protectionState = null, string protectionStateDescription = null, string activeLocation = null, string testFailoverState = null, string testFailoverStateDescription = null, IEnumerable allowedOperations = null, string replicationHealth = null, IEnumerable healthErrors = null, DateTimeOffset? lastSuccessfulFailoverOn = null, DateTimeOffset? lastSuccessfulTestFailoverOn = null, string policyFriendlyName = null, CurrentScenarioDetails currentScenario = null, ResourceIdentifier recoveryContainerId = null, string agentClusterId = null, string clusterFqdn = null, IEnumerable clusterNodeFqdns = null, IEnumerable clusterProtectedItemIds = null, string provisioningState = null, bool? areAllClusterNodesRegistered = null, IEnumerable clusterRegisteredNodes = null, ReplicationClusterProviderSpecificSettings providerSpecificDetails = null, SharedDiskReplicationItemProperties sharedDiskProperties = null, ResourceIdentifier policyId = null)
+ {
+ allowedOperations ??= new List();
+ healthErrors ??= new List();
+ clusterNodeFqdns ??= new List();
+ clusterProtectedItemIds ??= new List();
+ clusterRegisteredNodes ??= new List();
+
+ return new ReplicationProtectionClusterProperties(
+ protectionClusterType,
+ primaryFabricFriendlyName,
+ primaryFabricProvider,
+ recoveryFabricFriendlyName,
+ recoveryFabricId,
+ primaryProtectionContainerFriendlyName,
+ recoveryProtectionContainerFriendlyName,
+ protectionState,
+ protectionStateDescription,
+ activeLocation,
+ testFailoverState,
+ testFailoverStateDescription,
+ allowedOperations?.ToList(),
+ replicationHealth,
+ healthErrors?.ToList(),
+ lastSuccessfulFailoverOn,
+ lastSuccessfulTestFailoverOn,
+ policyFriendlyName,
+ currentScenario,
+ recoveryContainerId,
+ agentClusterId,
+ clusterFqdn,
+ clusterNodeFqdns?.ToList(),
+ clusterProtectedItemIds?.ToList(),
+ provisioningState,
+ areAllClusterNodesRegistered,
+ clusterRegisteredNodes?.ToList(),
+ providerSpecificDetails,
+ sharedDiskProperties,
+ policyId,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The cluster recovery point id to be passed to failover to a particular recovery point.
+ /// The list of individual node recovery points.
+ ///
+ /// The provider specific input for applying cluster recovery point.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include .
+ ///
+ /// A new instance for mocking.
+ public static ApplyClusterRecoveryPointContentProperties ApplyClusterRecoveryPointContentProperties(ResourceIdentifier clusterRecoveryPointId = null, IEnumerable individualNodeRecoveryPoints = null, ApplyClusterRecoveryPointProviderSpecificContent providerSpecificDetails = null)
+ {
+ individualNodeRecoveryPoints ??= new List();
+
+ return new ApplyClusterRecoveryPointContentProperties(clusterRecoveryPointId, individualNodeRecoveryPoints?.ToList(), providerSpecificDetails, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource type.
+ /// The recovery point properties.
+ /// A new instance for mocking.
+ public static ClusterRecoveryPointData ClusterRecoveryPointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string clusterRecoveryPointType = null, ClusterRecoveryPointProperties properties = null)
+ {
+ return new ClusterRecoveryPointData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ clusterRecoveryPointType,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The recovery point time.
+ /// The recovery point type.
+ ///
+ /// The provider specific details for the recovery point.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include .
+ ///
+ /// A new instance for mocking.
+ public static ClusterRecoveryPointProperties ClusterRecoveryPointProperties(DateTimeOffset? recoveryPointOn = null, ClusterRecoveryPointType? recoveryPointType = null, ClusterProviderSpecificRecoveryPointDetails providerSpecificDetails = null)
+ {
+ return new ClusterRecoveryPointProperties(recoveryPointOn, recoveryPointType, providerSpecificDetails, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -1172,7 +1232,7 @@ public static SiteRecoveryJobData SiteRecoveryJobData(ResourceIdentifier id = nu
///
/// The custom job details like test failover job details.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , , and .
+ /// The available derived classes include , , , , , , and .
///
/// A new instance for mocking.
public static SiteRecoveryJobProperties SiteRecoveryJobProperties(string activityId = null, string scenarioName = null, string friendlyName = null, string state = null, string stateDescription = null, IEnumerable tasks = null, IEnumerable errors = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable allowedActions = null, string targetObjectId = null, string targetObjectName = null, string targetInstanceType = null, SiteRecoveryJobDetails customDetails = null)
@@ -1712,6 +1772,17 @@ public static A2AVmManagedDiskDetails A2AVmManagedDiskDetails(string diskId = nu
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// A value indicating whether the recovery point is multi VM consistent.
+ /// The list of nodes representing the cluster.
+ /// A new instance for mocking.
+ public static A2AClusterRecoveryPointDetails A2AClusterRecoveryPointDetails(RecoveryPointSyncType? recoveryPointSyncType = null, IEnumerable nodes = null)
+ {
+ nodes ??= new List();
+
+ return new A2AClusterRecoveryPointDetails("A2A", serializedAdditionalRawData: null, recoveryPointSyncType, nodes?.ToList());
+ }
+
/// Initializes a new instance of .
/// The fabric specific object Id of the virtual machine.
/// The primary location for the virtual machine.
@@ -1824,6 +1895,7 @@ public static A2ACrossClusterMigrationReplicationDetails A2ACrossClusterMigratio
/// The list of vm managed disk details.
/// The multi vm group name.
/// The multi vm group id.
+ /// The replication protection cluster Id.
/// The boot diagnostic storage account.
/// The recovery disk encryption information (for two pass flows).
/// The recovery availability zone.
@@ -1834,7 +1906,7 @@ public static A2ACrossClusterMigrationReplicationDetails A2ACrossClusterMigratio
/// The recovery capacity reservation group Id.
/// A value indicating whether the auto protection is enabled.
/// A new instance for mocking.
- public static A2AEnableProtectionContent A2AEnableProtectionContent(ResourceIdentifier fabricObjectId = null, ResourceIdentifier recoveryContainerId = null, ResourceIdentifier recoveryResourceGroupId = null, string recoveryCloudServiceId = null, ResourceIdentifier recoveryAvailabilitySetId = null, ResourceIdentifier recoveryProximityPlacementGroupId = null, IEnumerable vmDisks = null, IEnumerable vmManagedDisks = null, string multiVmGroupName = null, string multiVmGroupId = null, ResourceIdentifier recoveryBootDiagStorageAccountId = null, SiteRecoveryDiskEncryptionInfo diskEncryptionInfo = null, string recoveryAvailabilityZone = null, SiteRecoveryExtendedLocation recoveryExtendedLocation = null, ResourceIdentifier recoveryAzureNetworkId = null, string recoverySubnetName = null, ResourceIdentifier recoveryVirtualMachineScaleSetId = null, ResourceIdentifier recoveryCapacityReservationGroupId = null, AutoProtectionOfDataDisk? autoProtectionOfDataDisk = null)
+ public static A2AEnableProtectionContent A2AEnableProtectionContent(ResourceIdentifier fabricObjectId = null, ResourceIdentifier recoveryContainerId = null, ResourceIdentifier recoveryResourceGroupId = null, string recoveryCloudServiceId = null, ResourceIdentifier recoveryAvailabilitySetId = null, ResourceIdentifier recoveryProximityPlacementGroupId = null, IEnumerable vmDisks = null, IEnumerable vmManagedDisks = null, string multiVmGroupName = null, string multiVmGroupId = null, ResourceIdentifier protectionClusterId = null, ResourceIdentifier recoveryBootDiagStorageAccountId = null, SiteRecoveryDiskEncryptionInfo diskEncryptionInfo = null, string recoveryAvailabilityZone = null, SiteRecoveryExtendedLocation recoveryExtendedLocation = null, ResourceIdentifier recoveryAzureNetworkId = null, string recoverySubnetName = null, ResourceIdentifier recoveryVirtualMachineScaleSetId = null, ResourceIdentifier recoveryCapacityReservationGroupId = null, AutoProtectionOfDataDisk? autoProtectionOfDataDisk = null)
{
vmDisks ??= new List();
vmManagedDisks ??= new List();
@@ -1852,6 +1924,7 @@ public static A2AEnableProtectionContent A2AEnableProtectionContent(ResourceIden
vmManagedDisks?.ToList(),
multiVmGroupName,
multiVmGroupId,
+ protectionClusterId,
recoveryBootDiagStorageAccountId,
diskEncryptionInfo,
recoveryAvailabilityZone,
@@ -2017,72 +2090,6 @@ public static A2AProtectedDiskDetails A2AProtectedDiskDetails(Uri diskUri = null
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// The managed disk Arm id.
- /// The recovery disk resource group Arm Id.
- /// Recovery target disk Arm Id.
- /// Recovery replica disk Arm Id.
- /// Recovery original target disk Arm Id.
- /// The replica disk type. Its an optional value and will be same as source disk type if not user provided.
- /// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided.
- /// The recovery disk encryption set Id.
- /// The primary disk encryption set Id.
- /// The disk name.
- /// The disk capacity in bytes.
- /// The primary staging storage account.
- /// The type of disk.
- /// A value indicating whether resync is required for this disk.
- /// The percentage of the monitoring job. The type of the monitoring job is defined by MonitoringJobType property.
- /// The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion property.
- /// The data pending for replication in MB at staging account.
- /// The data pending at source virtual machine in MB.
- /// The disk state.
- /// The disk level operations list.
- /// A value indicating whether vm has encrypted os disk or not.
- /// The secret URL / identifier (BEK).
- /// The KeyVault resource id for secret (BEK).
- /// A value indicating whether disk key got encrypted or not.
- /// The key URL / identifier (KEK).
- /// The KeyVault resource id for key (KEK).
- /// The failover name for the managed disk.
- /// The test failover name for the managed disk.
- /// A new instance for mocking.
- public static A2AProtectedManagedDiskDetails A2AProtectedManagedDiskDetails(string diskId = null, ResourceIdentifier recoveryResourceGroupId = null, ResourceIdentifier recoveryTargetDiskId = null, ResourceIdentifier recoveryReplicaDiskId = null, ResourceIdentifier recoveryOrignalTargetDiskId = null, string recoveryReplicaDiskAccountType = null, string recoveryTargetDiskAccountType = null, ResourceIdentifier recoveryDiskEncryptionSetId = null, ResourceIdentifier primaryDiskEncryptionSetId = null, string diskName = null, long? diskCapacityInBytes = null, ResourceIdentifier primaryStagingAzureStorageAccountId = null, string diskType = null, bool? isResyncRequired = null, int? monitoringPercentageCompletion = null, string monitoringJobType = null, double? dataPendingInStagingStorageAccountInMB = null, double? dataPendingAtSourceAgentInMB = null, string diskState = null, IEnumerable allowedDiskLevelOperation = null, bool? isDiskEncrypted = null, string secretIdentifier = null, ResourceIdentifier dekKeyVaultArmId = null, bool? isDiskKeyEncrypted = null, string keyIdentifier = null, ResourceIdentifier kekKeyVaultArmId = null, string failoverDiskName = null, string tfoDiskName = null)
- {
- allowedDiskLevelOperation ??= new List();
-
- return new A2AProtectedManagedDiskDetails(
- diskId,
- recoveryResourceGroupId,
- recoveryTargetDiskId,
- recoveryReplicaDiskId,
- recoveryOrignalTargetDiskId,
- recoveryReplicaDiskAccountType,
- recoveryTargetDiskAccountType,
- recoveryDiskEncryptionSetId,
- primaryDiskEncryptionSetId,
- diskName,
- diskCapacityInBytes,
- primaryStagingAzureStorageAccountId,
- diskType,
- isResyncRequired,
- monitoringPercentageCompletion,
- monitoringJobType,
- dataPendingInStagingStorageAccountInMB,
- dataPendingAtSourceAgentInMB,
- diskState,
- allowedDiskLevelOperation?.ToList(),
- isDiskEncrypted,
- secretIdentifier,
- dekKeyVaultArmId,
- isDiskKeyEncrypted,
- keyIdentifier,
- kekKeyVaultArmId,
- failoverDiskName,
- tfoDiskName,
- serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// A value indicating whether the auto update is enabled.
/// The automation account arm id.
@@ -2125,6 +2132,8 @@ public static A2ARecoveryPointDetails A2ARecoveryPointDetails(RecoveryPointSyncT
/// The multi vm group name.
/// Whether Multi VM group is auto created or specified by user.
/// The management Id.
+ /// The replication protection cluster Id.
+ /// A value indicating if the cluster infra is ready or not.
/// The list of protected disks.
/// The list of unprotected disks.
/// The list of protected managed disks.
@@ -2169,7 +2178,7 @@ public static A2ARecoveryPointDetails A2ARecoveryPointDetails(RecoveryPointSyncT
/// The recovery capacity reservation group Id.
/// A value indicating the churn option selected by user.
/// A new instance for mocking.
- public static A2AReplicationDetails A2AReplicationDetails(ResourceIdentifier fabricObjectId = null, string initialPrimaryZone = null, AzureLocation? initialPrimaryFabricLocation = null, string initialRecoveryZone = null, SiteRecoveryExtendedLocation initialPrimaryExtendedLocation = null, SiteRecoveryExtendedLocation initialRecoveryExtendedLocation = null, AzureLocation? initialRecoveryFabricLocation = null, string multiVmGroupId = null, string multiVmGroupName = null, MultiVmGroupCreateOption? multiVmGroupCreateOption = null, string managementId = null, IEnumerable protectedDisks = null, IEnumerable unprotectedDisks = null, IEnumerable protectedManagedDisks = null, ResourceIdentifier recoveryBootDiagStorageAccountId = null, AzureLocation? primaryFabricLocation = null, AzureLocation? recoveryFabricLocation = null, string osType = null, string recoveryAzureVmSize = null, string recoveryAzureVmName = null, ResourceIdentifier recoveryAzureResourceGroupId = null, string recoveryCloudService = null, string recoveryAvailabilitySet = null, ResourceIdentifier selectedRecoveryAzureNetworkId = null, ResourceIdentifier selectedTfoAzureNetworkId = null, IEnumerable vmNics = null, A2AVmSyncedConfigDetails vmSyncedConfigDetails = null, int? monitoringPercentageCompletion = null, string monitoringJobType = null, DateTimeOffset? lastHeartbeat = null, string agentVersion = null, DateTimeOffset? agentExpireOn = null, bool? isReplicationAgentUpdateRequired = null, DateTimeOffset? agentCertificateExpireOn = null, bool? isReplicationAgentCertificateUpdateRequired = null, ResourceIdentifier recoveryFabricObjectId = null, string vmProtectionState = null, string vmProtectionStateDescription = null, string lifecycleId = null, ResourceIdentifier testFailoverRecoveryFabricObjectId = null, long? rpoInSeconds = null, DateTimeOffset? lastRpoCalculatedOn = null, string primaryAvailabilityZone = null, string recoveryAvailabilityZone = null, SiteRecoveryExtendedLocation primaryExtendedLocation = null, SiteRecoveryExtendedLocation recoveryExtendedLocation = null, SiteRecoveryVmEncryptionType? vmEncryptionType = null, string tfoAzureVmName = null, string recoveryAzureGeneration = null, ResourceIdentifier recoveryProximityPlacementGroupId = null, AutoProtectionOfDataDisk? autoProtectionOfDataDisk = null, ResourceIdentifier recoveryVirtualMachineScaleSetId = null, ResourceIdentifier recoveryCapacityReservationGroupId = null, ChurnOptionSelected? churnOptionSelected = null)
+ public static A2AReplicationDetails A2AReplicationDetails(ResourceIdentifier fabricObjectId = null, string initialPrimaryZone = null, AzureLocation? initialPrimaryFabricLocation = null, string initialRecoveryZone = null, SiteRecoveryExtendedLocation initialPrimaryExtendedLocation = null, SiteRecoveryExtendedLocation initialRecoveryExtendedLocation = null, AzureLocation? initialRecoveryFabricLocation = null, string multiVmGroupId = null, string multiVmGroupName = null, MultiVmGroupCreateOption? multiVmGroupCreateOption = null, string managementId = null, string protectionClusterId = null, bool? isClusterInfraReady = null, IEnumerable protectedDisks = null, IEnumerable unprotectedDisks = null, IEnumerable protectedManagedDisks = null, ResourceIdentifier recoveryBootDiagStorageAccountId = null, AzureLocation? primaryFabricLocation = null, AzureLocation? recoveryFabricLocation = null, string osType = null, string recoveryAzureVmSize = null, string recoveryAzureVmName = null, ResourceIdentifier recoveryAzureResourceGroupId = null, string recoveryCloudService = null, string recoveryAvailabilitySet = null, ResourceIdentifier selectedRecoveryAzureNetworkId = null, ResourceIdentifier selectedTfoAzureNetworkId = null, IEnumerable vmNics = null, A2AVmSyncedConfigDetails vmSyncedConfigDetails = null, int? monitoringPercentageCompletion = null, string monitoringJobType = null, DateTimeOffset? lastHeartbeat = null, string agentVersion = null, DateTimeOffset? agentExpireOn = null, bool? isReplicationAgentUpdateRequired = null, DateTimeOffset? agentCertificateExpireOn = null, bool? isReplicationAgentCertificateUpdateRequired = null, ResourceIdentifier recoveryFabricObjectId = null, string vmProtectionState = null, string vmProtectionStateDescription = null, string lifecycleId = null, ResourceIdentifier testFailoverRecoveryFabricObjectId = null, long? rpoInSeconds = null, DateTimeOffset? lastRpoCalculatedOn = null, string primaryAvailabilityZone = null, string recoveryAvailabilityZone = null, SiteRecoveryExtendedLocation primaryExtendedLocation = null, SiteRecoveryExtendedLocation recoveryExtendedLocation = null, SiteRecoveryVmEncryptionType? vmEncryptionType = null, string tfoAzureVmName = null, string recoveryAzureGeneration = null, ResourceIdentifier recoveryProximityPlacementGroupId = null, AutoProtectionOfDataDisk? autoProtectionOfDataDisk = null, ResourceIdentifier recoveryVirtualMachineScaleSetId = null, ResourceIdentifier recoveryCapacityReservationGroupId = null, ChurnOptionSelected? churnOptionSelected = null)
{
protectedDisks ??= new List();
unprotectedDisks ??= new List();
@@ -2190,6 +2199,8 @@ public static A2AReplicationDetails A2AReplicationDetails(ResourceIdentifier fab
multiVmGroupName,
multiVmGroupCreateOption,
managementId,
+ protectionClusterId,
+ isClusterInfraReady,
protectedDisks?.ToList(),
unprotectedDisks?.ToList(),
protectedManagedDisks?.ToList(),
@@ -2235,15 +2246,6 @@ public static A2AReplicationDetails A2AReplicationDetails(ResourceIdentifier fab
churnOptionSelected);
}
- /// Initializes a new instance of .
- /// The source lun Id for the data disk.
- /// A value indicating whether the disk auto protection is enabled.
- /// A new instance for mocking.
- public static A2AUnprotectedDiskDetails A2AUnprotectedDiskDetails(int? diskLunId = null, AutoProtectionOfDataDisk? diskAutoProtectionStatus = null)
- {
- return new A2AUnprotectedDiskDetails(diskLunId, diskAutoProtectionStatus, serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// The nic Id.
/// The replica nic Id.
@@ -2436,6 +2438,24 @@ public static A2AReplicationIntentDetails A2AReplicationIntentDetails(ResourceId
automationAccountAuthenticationType);
}
+ /// Initializes a new instance of .
+ /// The error code.
+ /// The error code enum.
+ /// The error message.
+ /// The possible causes.
+ /// The recommended action.
+ /// A new instance for mocking.
+ public static A2ASharedDiskIRErrorDetails A2ASharedDiskIRErrorDetails(string errorCode = null, string errorCodeEnum = null, string errorMessage = null, string possibleCauses = null, string recommendedAction = null)
+ {
+ return new A2ASharedDiskIRErrorDetails(
+ errorCode,
+ errorCodeEnum,
+ errorMessage,
+ possibleCauses,
+ recommendedAction,
+ serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// Source zone info.
/// The target zone info.
@@ -2632,6 +2652,81 @@ public static SiteRecoveryVmDiskDetails SiteRecoveryVmDiskDetails(string vhdType
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow object details.
+ /// The test VM details.
+ /// A new instance for mocking.
+ public static ClusterFailoverJobDetails ClusterFailoverJobDetails(IReadOnlyDictionary affectedObjectDetails = null, IEnumerable protectedItemDetails = null)
+ {
+ affectedObjectDetails ??= new Dictionary();
+ protectedItemDetails ??= new List();
+
+ return new ClusterFailoverJobDetails("ClusterFailoverJobDetails", affectedObjectDetails, serializedAdditionalRawData: null, protectedItemDetails?.ToList());
+ }
+
+ /// Initializes a new instance of .
+ /// The name.
+ /// The friendly name.
+ /// The test Vm name.
+ /// The test Vm friendly name.
+ /// The network connection status.
+ /// The network friendly name.
+ /// The network subnet.
+ /// The recovery point Id.
+ /// The recovery point time.
+ /// A new instance for mocking.
+ public static FailoverReplicationProtectedItemDetails FailoverReplicationProtectedItemDetails(string name = null, string friendlyName = null, string testVmName = null, string testVmFriendlyName = null, string networkConnectionStatus = null, string networkFriendlyName = null, string subnet = null, ResourceIdentifier recoveryPointId = null, DateTimeOffset? recoveryPointOn = null)
+ {
+ return new FailoverReplicationProtectedItemDetails(
+ name,
+ friendlyName,
+ testVmName,
+ testVmFriendlyName,
+ networkConnectionStatus,
+ networkFriendlyName,
+ subnet,
+ recoveryPointId,
+ recoveryPointOn,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow object details.
+ /// ARM Id of the new replication protection cluster.
+ /// A new instance for mocking.
+ public static ClusterSwitchProtectionJobDetails ClusterSwitchProtectionJobDetails(IReadOnlyDictionary affectedObjectDetails = null, string newReplicationProtectionClusterId = null)
+ {
+ affectedObjectDetails ??= new Dictionary();
+
+ return new ClusterSwitchProtectionJobDetails("ClusterSwitchProtectionJobDetails", affectedObjectDetails, serializedAdditionalRawData: null, newReplicationProtectionClusterId);
+ }
+
+ /// Initializes a new instance of .
+ /// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow object details.
+ /// The test failover status.
+ /// The test failover comments.
+ /// The test network name.
+ /// The test network friendly name.
+ /// The test network type (see TestFailoverInput enum for possible values).
+ /// The test VM details.
+ /// A new instance for mocking.
+ public static ClusterTestFailoverJobDetails ClusterTestFailoverJobDetails(IReadOnlyDictionary affectedObjectDetails = null, string testFailoverStatus = null, string comments = null, string networkName = null, string networkFriendlyName = null, string networkType = null, IEnumerable protectedItemDetails = null)
+ {
+ affectedObjectDetails ??= new Dictionary();
+ protectedItemDetails ??= new List();
+
+ return new ClusterTestFailoverJobDetails(
+ "ClusterTestFailoverJobDetails",
+ affectedObjectDetails,
+ serializedAdditionalRawData: null,
+ testFailoverStatus,
+ comments,
+ networkName,
+ networkFriendlyName,
+ networkType,
+ protectedItemDetails?.ToList());
+ }
+
/// Initializes a new instance of .
/// The list of inconsistent Vm details.
/// A new instance for mocking.
@@ -2784,32 +2879,6 @@ public static FailoverJobDetails FailoverJobDetails(IReadOnlyDictionary Initializes a new instance of .
- /// The name.
- /// The friendly name.
- /// The test Vm name.
- /// The test Vm friendly name.
- /// The network connection status.
- /// The network friendly name.
- /// The network subnet.
- /// The recovery point Id.
- /// The recovery point time.
- /// A new instance for mocking.
- public static FailoverReplicationProtectedItemDetails FailoverReplicationProtectedItemDetails(string name = null, string friendlyName = null, string testVmName = null, string testVmFriendlyName = null, string networkConnectionStatus = null, string networkFriendlyName = null, string subnet = null, ResourceIdentifier recoveryPointId = null, DateTimeOffset? recoveryPointOn = null)
- {
- return new FailoverReplicationProtectedItemDetails(
- name,
- friendlyName,
- testVmName,
- testVmFriendlyName,
- networkConnectionStatus,
- networkFriendlyName,
- subnet,
- recoveryPointId,
- recoveryPointOn,
- serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// A value indicating the state of gateway operation.
/// A value indicating the progress percentage of gateway operation.
@@ -2895,10 +2964,25 @@ public static HyperVReplicaAzureEventDetails HyperVReplicaAzureEventDetails(stri
/// Seed managed disk Id.
/// The replica disk type.
/// The disk encryption set ARM Id.
+ /// The disk type.
+ /// The logical sector size (in bytes), 512 by default.
+ /// The number of IOPS allowed for Premium V2 and Ultra disks.
+ /// The total throughput in Mbps for Premium V2 and Ultra disks.
+ /// The target disk size in GB.
/// A new instance for mocking.
- public static HyperVReplicaAzureManagedDiskDetails HyperVReplicaAzureManagedDiskDetails(string diskId = null, string seedManagedDiskId = null, string replicaDiskType = null, ResourceIdentifier diskEncryptionSetId = null)
+ public static HyperVReplicaAzureManagedDiskDetails HyperVReplicaAzureManagedDiskDetails(string diskId = null, string seedManagedDiskId = null, string replicaDiskType = null, ResourceIdentifier diskEncryptionSetId = null, SiteRecoveryDiskAccountType? targetDiskAccountType = null, int? sectorSizeInBytes = null, long? iops = null, long? throughputInMbps = null, long? diskSizeInGB = null)
{
- return new HyperVReplicaAzureManagedDiskDetails(diskId, seedManagedDiskId, replicaDiskType, diskEncryptionSetId, serializedAdditionalRawData: null);
+ return new HyperVReplicaAzureManagedDiskDetails(
+ diskId,
+ seedManagedDiskId,
+ replicaDiskType,
+ diskEncryptionSetId,
+ targetDiskAccountType,
+ sectorSizeInBytes,
+ iops,
+ throughputInMbps,
+ diskSizeInGB,
+ serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -2950,6 +3034,7 @@ public static HyperVReplicaAzurePolicyDetails HyperVReplicaAzurePolicyDetails(in
/// A value indicating whether managed disks should be used during failover.
/// License Type of the VM to be used.
/// The SQL Server license type.
+ /// The license type for Linux VM's.
/// The last recovery point received time.
/// The target VM tags.
/// The tags for the seed managed disks.
@@ -2957,8 +3042,9 @@ public static HyperVReplicaAzurePolicyDetails HyperVReplicaAzurePolicyDetails(in
/// The tags for the target NICs.
/// The list of protected managed disks.
/// A value indicating all available inplace OS Upgrade configurations.
+ /// The target VM security profile.
/// A new instance for mocking.
- public static HyperVReplicaAzureReplicationDetails HyperVReplicaAzureReplicationDetails(IEnumerable azureVmDiskDetails = null, string recoveryAzureVmName = null, string recoveryAzureVmSize = null, string recoveryAzureStorageAccount = null, ResourceIdentifier recoveryAzureLogStorageAccountId = null, DateTimeOffset? lastReplicatedOn = null, long? rpoInSeconds = null, DateTimeOffset? lastRpoCalculatedOn = null, string vmId = null, string vmProtectionState = null, string vmProtectionStateDescription = null, InitialReplicationDetails initialReplicationDetails = null, IEnumerable vmNics = null, ResourceIdentifier selectedRecoveryAzureNetworkId = null, string selectedSourceNicId = null, string encryption = null, SiteRecoveryOSDetails osDetails = null, int? sourceVmRamSizeInMB = null, int? sourceVmCpuCount = null, string enableRdpOnTargetOption = null, ResourceIdentifier recoveryAzureResourceGroupId = null, ResourceIdentifier recoveryAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, string useManagedDisks = null, string licenseType = null, string sqlServerLicenseType = null, DateTimeOffset? lastRecoveryPointReceived = null, IReadOnlyDictionary targetVmTags = null, IReadOnlyDictionary seedManagedDiskTags = null, IReadOnlyDictionary targetManagedDiskTags = null, IReadOnlyDictionary targetNicTags = null, IEnumerable protectedManagedDisks = null, IEnumerable allAvailableOSUpgradeConfigurations = null)
+ public static HyperVReplicaAzureReplicationDetails HyperVReplicaAzureReplicationDetails(IEnumerable azureVmDiskDetails = null, string recoveryAzureVmName = null, string recoveryAzureVmSize = null, string recoveryAzureStorageAccount = null, ResourceIdentifier recoveryAzureLogStorageAccountId = null, DateTimeOffset? lastReplicatedOn = null, long? rpoInSeconds = null, DateTimeOffset? lastRpoCalculatedOn = null, string vmId = null, string vmProtectionState = null, string vmProtectionStateDescription = null, InitialReplicationDetails initialReplicationDetails = null, IEnumerable vmNics = null, ResourceIdentifier selectedRecoveryAzureNetworkId = null, string selectedSourceNicId = null, string encryption = null, SiteRecoveryOSDetails osDetails = null, int? sourceVmRamSizeInMB = null, int? sourceVmCpuCount = null, string enableRdpOnTargetOption = null, ResourceIdentifier recoveryAzureResourceGroupId = null, ResourceIdentifier recoveryAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, string useManagedDisks = null, string licenseType = null, string sqlServerLicenseType = null, LinuxLicenseType? linuxLicenseType = null, DateTimeOffset? lastRecoveryPointReceived = null, IReadOnlyDictionary targetVmTags = null, IReadOnlyDictionary seedManagedDiskTags = null, IReadOnlyDictionary targetManagedDiskTags = null, IReadOnlyDictionary targetNicTags = null, IEnumerable protectedManagedDisks = null, IEnumerable allAvailableOSUpgradeConfigurations = null, SecurityProfileProperties targetVmSecurityProfile = null)
{
azureVmDiskDetails ??= new List();
vmNics ??= new List();
@@ -2999,13 +3085,15 @@ public static HyperVReplicaAzureReplicationDetails HyperVReplicaAzureReplication
useManagedDisks,
licenseType,
sqlServerLicenseType,
+ linuxLicenseType,
lastRecoveryPointReceived,
targetVmTags,
seedManagedDiskTags,
targetManagedDiskTags,
targetNicTags,
protectedManagedDisks?.ToList(),
- allAvailableOSUpgradeConfigurations?.ToList());
+ allAvailableOSUpgradeConfigurations?.ToList(),
+ targetVmSecurityProfile);
}
/// Initializes a new instance of .
@@ -3024,8 +3112,9 @@ public static InitialReplicationDetails InitialReplicationDetails(string initial
/// The OS Version.
/// The OS Major Version.
/// The OS Minor Version.
+ /// The OS name selected by user.
/// A new instance for mocking.
- public static SiteRecoveryOSDetails SiteRecoveryOSDetails(string osType = null, string productType = null, string osEdition = null, string osVersion = null, string osMajorVersion = null, string osMinorVersion = null)
+ public static SiteRecoveryOSDetails SiteRecoveryOSDetails(string osType = null, string productType = null, string osEdition = null, string osVersion = null, string osMajorVersion = null, string osMinorVersion = null, string userSelectedOSName = null)
{
return new SiteRecoveryOSDetails(
osType,
@@ -3034,6 +3123,7 @@ public static SiteRecoveryOSDetails SiteRecoveryOSDetails(string osType = null,
osVersion,
osMajorVersion,
osMinorVersion,
+ userSelectedOSName,
serializedAdditionalRawData: null);
}
@@ -3051,10 +3141,19 @@ public static OSUpgradeSupportedVersions OSUpgradeSupportedVersions(string suppo
/// Initializes a new instance of .
/// The disk Id.
/// The target disk name.
+ /// The number of IOPS allowed for Premium V2 and Ultra disks.
+ /// The total throughput in Mbps for Premium V2 and Ultra disks.
+ /// The target disk size in GB.
/// A new instance for mocking.
- public static UpdateDiskContent UpdateDiskContent(string diskId = null, string targetDiskName = null)
+ public static UpdateDiskContent UpdateDiskContent(string diskId = null, string targetDiskName = null, long? iops = null, long? throughputInMbps = null, long? diskSizeInGB = null)
{
- return new UpdateDiskContent(diskId, targetDiskName, serializedAdditionalRawData: null);
+ return new UpdateDiskContent(
+ diskId,
+ targetDiskName,
+ iops,
+ throughputInMbps,
+ diskSizeInGB,
+ serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -3828,6 +3927,30 @@ public static InMageProtectedDiskDetails InMageProtectedDiskDetails(string diskI
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The disk Id.
+ /// The log storage account ARM Id.
+ /// The disk type.
+ /// The DiskEncryptionSet ARM Id.
+ /// The logical sector size (in bytes), 512 by default.
+ /// The number of IOPS allowed for Premium V2 and Ultra disks.
+ /// The total throughput in Mbps for Premium V2 and Ultra disks.
+ /// The target disk size in GB.
+ /// A new instance for mocking.
+ public static InMageRcmDiskContent InMageRcmDiskContent(string diskId = null, ResourceIdentifier logStorageAccountId = null, SiteRecoveryDiskAccountType diskType = default, ResourceIdentifier diskEncryptionSetId = null, int? sectorSizeInBytes = null, long? iops = null, long? throughputInMbps = null, long? diskSizeInGB = null)
+ {
+ return new InMageRcmDiskContent(
+ diskId,
+ logStorageAccountId,
+ diskType,
+ diskEncryptionSetId,
+ sectorSizeInBytes,
+ iops,
+ throughputInMbps,
+ diskSizeInGB,
+ serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The error code.
/// The error message.
@@ -4179,25 +4302,26 @@ public static InMageRcmDiscoveredProtectedVmDetails InMageRcmDiscoveredProtected
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// The disk Id.
- /// The log storage account ARM Id.
- /// The disk type.
- /// The DiskEncryptionSet ARM Id.
- /// A new instance for mocking.
- public static InMageRcmDiskContent InMageRcmDiskContent(string diskId = null, ResourceIdentifier logStorageAccountId = null, SiteRecoveryDiskAccountType diskType = default, ResourceIdentifier diskEncryptionSetId = null)
- {
- return new InMageRcmDiskContent(diskId, logStorageAccountId, diskType, diskEncryptionSetId, serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// The log storage account ARM Id.
/// The disk type.
/// The DiskEncryptionSet ARM Id.
+ /// The logical sector size (in bytes), 512 by default.
+ /// The number of IOPS allowed for Premium V2 and Ultra disks.
+ /// The total throughput in Mbps for Premium V2 and Ultra disks.
+ /// The target disk size in GB.
/// A new instance for mocking.
- public static InMageRcmDisksDefaultContent InMageRcmDisksDefaultContent(ResourceIdentifier logStorageAccountId = null, SiteRecoveryDiskAccountType diskType = default, ResourceIdentifier diskEncryptionSetId = null)
+ public static InMageRcmDisksDefaultContent InMageRcmDisksDefaultContent(ResourceIdentifier logStorageAccountId = null, SiteRecoveryDiskAccountType diskType = default, ResourceIdentifier diskEncryptionSetId = null, int? sectorSizeInBytes = null, long? iops = null, long? throughputInMbps = null, long? diskSizeInGB = null)
{
- return new InMageRcmDisksDefaultContent(logStorageAccountId, diskType, diskEncryptionSetId, serializedAdditionalRawData: null);
+ return new InMageRcmDisksDefaultContent(
+ logStorageAccountId,
+ diskType,
+ diskEncryptionSetId,
+ sectorSizeInBytes,
+ iops,
+ throughputInMbps,
+ diskSizeInGB,
+ serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -4219,10 +4343,22 @@ public static InMageRcmDisksDefaultContent InMageRcmDisksDefaultContent(Resource
/// The run-as account Id.
/// The process server Id.
/// The multi VM group name.
+ /// The SQL Server license type.
+ /// The license type for Linux VM's.
+ /// The target VM tags.
+ /// The tags for the seed managed disks.
+ /// The tags for the target managed disks.
+ /// The tags for the target NICs.
+ /// The OS name selected by user.
+ /// The target VM security profile.
/// A new instance for mocking.
- public static InMageRcmEnableProtectionContent InMageRcmEnableProtectionContent(string fabricDiscoveryMachineId = null, IEnumerable disksToInclude = null, InMageRcmDisksDefaultContent disksDefault = null, ResourceIdentifier targetResourceGroupId = null, ResourceIdentifier targetNetworkId = null, ResourceIdentifier testNetworkId = null, string targetSubnetName = null, string testSubnetName = null, string targetVmName = null, string targetVmSize = null, SiteRecoveryLicenseType? licenseType = null, ResourceIdentifier targetAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, ResourceIdentifier targetBootDiagnosticsStorageAccountId = null, string runAsAccountId = null, Guid processServerId = default, string multiVmGroupName = null)
+ public static InMageRcmEnableProtectionContent InMageRcmEnableProtectionContent(string fabricDiscoveryMachineId = null, IEnumerable disksToInclude = null, InMageRcmDisksDefaultContent disksDefault = null, ResourceIdentifier targetResourceGroupId = null, ResourceIdentifier targetNetworkId = null, ResourceIdentifier testNetworkId = null, string targetSubnetName = null, string testSubnetName = null, string targetVmName = null, string targetVmSize = null, SiteRecoveryLicenseType? licenseType = null, ResourceIdentifier targetAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, ResourceIdentifier targetBootDiagnosticsStorageAccountId = null, string runAsAccountId = null, Guid processServerId = default, string multiVmGroupName = null, SiteRecoverySqlServerLicenseType? sqlServerLicenseType = null, LinuxLicenseType? linuxLicenseType = null, IEnumerable targetVmTags = null, IEnumerable seedManagedDiskTags = null, IEnumerable targetManagedDiskTags = null, IEnumerable targetNicTags = null, string userSelectedOSName = null, SecurityProfileProperties targetVmSecurityProfile = null)
{
disksToInclude ??= new List();
+ targetVmTags ??= new List();
+ seedManagedDiskTags ??= new List();
+ targetManagedDiskTags ??= new List();
+ targetNicTags ??= new List();
return new InMageRcmEnableProtectionContent(
"InMageRcm",
@@ -4244,7 +4380,15 @@ public static InMageRcmEnableProtectionContent InMageRcmEnableProtectionContent(
targetBootDiagnosticsStorageAccountId,
runAsAccountId,
processServerId,
- multiVmGroupName);
+ multiVmGroupName,
+ sqlServerLicenseType,
+ linuxLicenseType,
+ targetVmTags?.ToList(),
+ seedManagedDiskTags?.ToList(),
+ targetManagedDiskTags?.ToList(),
+ targetNicTags?.ToList(),
+ userSelectedOSName,
+ targetVmSecurityProfile);
}
/// Initializes a new instance of .
@@ -4643,8 +4787,9 @@ public static InMageRcmMobilityAgentDetails InMageRcmMobilityAgentDetails(string
/// Test subnet name.
/// The test IP address.
/// The test IP address type.
+ /// The target NIC name.
/// A new instance for mocking.
- public static InMageRcmNicDetails InMageRcmNicDetails(string nicId = null, string isPrimaryNic = null, string isSelectedForFailover = null, IPAddress sourceIPAddress = null, SiteRecoveryEthernetAddressType? sourceIPAddressType = null, ResourceIdentifier sourceNetworkId = null, string sourceSubnetName = null, IPAddress targetIPAddress = null, SiteRecoveryEthernetAddressType? targetIPAddressType = null, string targetSubnetName = null, string testSubnetName = null, IPAddress testIPAddress = null, SiteRecoveryEthernetAddressType? testIPAddressType = null)
+ public static InMageRcmNicDetails InMageRcmNicDetails(string nicId = null, string isPrimaryNic = null, string isSelectedForFailover = null, IPAddress sourceIPAddress = null, SiteRecoveryEthernetAddressType? sourceIPAddressType = null, ResourceIdentifier sourceNetworkId = null, string sourceSubnetName = null, IPAddress targetIPAddress = null, SiteRecoveryEthernetAddressType? targetIPAddressType = null, string targetSubnetName = null, string testSubnetName = null, IPAddress testIPAddress = null, SiteRecoveryEthernetAddressType? testIPAddressType = null, string targetNicName = null)
{
return new InMageRcmNicDetails(
nicId,
@@ -4660,6 +4805,7 @@ public static InMageRcmNicDetails InMageRcmNicDetails(string nicId = null, strin
testSubnetName,
testIPAddress,
testIPAddressType,
+ targetNicName,
serializedAdditionalRawData: null);
}
@@ -4671,8 +4817,9 @@ public static InMageRcmNicDetails InMageRcmNicDetails(string nicId = null, strin
/// The target static IP address.
/// The test subnet name.
/// The test static IP address.
+ /// The target NIC name.
/// A new instance for mocking.
- public static InMageRcmNicContent InMageRcmNicContent(string nicId = null, string isPrimaryNic = null, string isSelectedForFailover = null, string targetSubnetName = null, IPAddress targetStaticIPAddress = null, string testSubnetName = null, IPAddress testStaticIPAddress = null)
+ public static InMageRcmNicContent InMageRcmNicContent(string nicId = null, string isPrimaryNic = null, string isSelectedForFailover = null, string targetSubnetName = null, IPAddress targetStaticIPAddress = null, string testSubnetName = null, IPAddress testStaticIPAddress = null, string targetNicName = null)
{
return new InMageRcmNicContent(
nicId,
@@ -4682,6 +4829,7 @@ public static InMageRcmNicContent InMageRcmNicContent(string nicId = null, strin
targetStaticIPAddress,
testSubnetName,
testStaticIPAddress,
+ targetNicName,
serializedAdditionalRawData: null);
}
@@ -4707,6 +4855,7 @@ public static InMageRcmPolicyDetails InMageRcmPolicyDetails(int? recoveryPointHi
/// The disk name.
/// A value indicating whether the disk is the OS disk.
/// The disk capacity in bytes.
+ /// The disk state.
/// The log storage account ARM Id.
/// The DiskEncryptionSet ARM Id.
/// The ARM Id of the seed managed disk.
@@ -4718,14 +4867,20 @@ public static InMageRcmPolicyDetails InMageRcmPolicyDetails(int? recoveryPointHi
/// A value indicating whether initial replication is complete or not.
/// The initial replication details.
/// The resync details.
+ /// The custom target Azure disk name.
+ /// The logical sector size (in bytes), 512 by default.
+ /// The number of IOPS allowed for Premium V2 and Ultra disks.
+ /// The total throughput in Mbps for Premium V2 and Ultra disks.
+ /// The target disk size in GB.
/// A new instance for mocking.
- public static InMageRcmProtectedDiskDetails InMageRcmProtectedDiskDetails(string diskId = null, string diskName = null, string isOSDisk = null, long? capacityInBytes = null, ResourceIdentifier logStorageAccountId = null, ResourceIdentifier diskEncryptionSetId = null, string seedManagedDiskId = null, Uri seedBlobUri = null, string targetManagedDiskId = null, SiteRecoveryDiskAccountType? diskType = null, double? dataPendingInLogDataStoreInMB = null, double? dataPendingAtSourceAgentInMB = null, string isInitialReplicationComplete = null, InMageRcmSyncDetails irDetails = null, InMageRcmSyncDetails resyncDetails = null)
+ public static InMageRcmProtectedDiskDetails InMageRcmProtectedDiskDetails(string diskId = null, string diskName = null, string isOSDisk = null, long? capacityInBytes = null, DiskState? diskState = null, ResourceIdentifier logStorageAccountId = null, ResourceIdentifier diskEncryptionSetId = null, string seedManagedDiskId = null, Uri seedBlobUri = null, string targetManagedDiskId = null, SiteRecoveryDiskAccountType? diskType = null, double? dataPendingInLogDataStoreInMB = null, double? dataPendingAtSourceAgentInMB = null, string isInitialReplicationComplete = null, InMageRcmSyncDetails irDetails = null, InMageRcmSyncDetails resyncDetails = null, string customTargetDiskName = null, int? sectorSizeInBytes = null, long? iops = null, long? throughputInMbps = null, long? diskSizeInGB = null)
{
return new InMageRcmProtectedDiskDetails(
diskId,
diskName,
isOSDisk,
capacityInBytes,
+ diskState,
logStorageAccountId,
diskEncryptionSetId,
seedManagedDiskId,
@@ -4737,6 +4892,11 @@ public static InMageRcmProtectedDiskDetails InMageRcmProtectedDiskDetails(string
isInitialReplicationComplete,
irDetails,
resyncDetails,
+ customTargetDiskName,
+ sectorSizeInBytes,
+ iops,
+ throughputInMbps,
+ diskSizeInGB,
serializedAdditionalRawData: null);
}
@@ -4764,6 +4924,16 @@ public static InMageRcmSyncDetails InMageRcmSyncDetails(SiteRecoveryDiskReplicat
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The disk Id.
+ /// The disk name.
+ /// The disk capacity in bytes.
+ /// A new instance for mocking.
+ public static InMageRcmUnProtectedDiskDetails InMageRcmUnProtectedDiskDetails(string diskId = null, string diskName = null, long? capacityInBytes = null)
+ {
+ return new InMageRcmUnProtectedDiskDetails(diskId, diskName, capacityInBytes, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// A value indicating whether the flag for enable agent auto upgrade.
/// A new instance for mocking.
@@ -4795,6 +4965,7 @@ public static InMageRcmRecoveryPointDetails InMageRcmRecoveryPointDetails(string
/// The IP address of the primary network interface.
/// The target generation.
/// License Type of the VM to be used.
+ /// The license type for Linux VM's.
/// The replication storage account ARM Id. This is applicable only for the blob based replication test hook.
/// Target VM name.
/// The target VM size.
@@ -4826,6 +4997,7 @@ public static InMageRcmRecoveryPointDetails InMageRcmRecoveryPointDetails(string
/// The agent upgrade job Id.
/// The agent version to which last agent upgrade was attempted.
/// The list of protected disks.
+ /// The list of unprotected disks.
/// A value indicating whether last agent upgrade was successful or not.
/// A value indicating whether agent registration was successful after failover.
/// The mobility agent information.
@@ -4833,13 +5005,27 @@ public static InMageRcmRecoveryPointDetails InMageRcmRecoveryPointDetails(string
/// The agent upgrade blocking error information.
/// The network details.
/// The discovered VM details.
+ /// The target VM tags.
+ /// The tags for the seed managed disks.
+ /// The tags for the target managed disks.
+ /// The tags for the target NICs.
+ /// The SQL Server license type.
+ /// A value indicating the inplace OS Upgrade version.
+ /// The OS name associated with VM.
+ /// The target VM security profile.
/// A new instance for mocking.
- public static InMageRcmReplicationDetails InMageRcmReplicationDetails(string internalIdentifier = null, string fabricDiscoveryMachineId = null, string multiVmGroupName = null, string discoveryType = null, Guid? processServerId = null, int? processorCoreCount = null, double? allocatedMemoryInMB = null, string processServerName = null, string runAsAccountId = null, string osType = null, string firmwareType = null, IPAddress primaryNicIPAddress = null, string targetGeneration = null, string licenseType = null, ResourceIdentifier storageAccountId = null, string targetVmName = null, string targetVmSize = null, ResourceIdentifier targetResourceGroupId = null, string targetLocation = null, ResourceIdentifier targetAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, ResourceIdentifier targetBootDiagnosticsStorageAccountId = null, ResourceIdentifier targetNetworkId = null, ResourceIdentifier testNetworkId = null, ResourceIdentifier failoverRecoveryPointId = null, DateTimeOffset? lastRecoveryPointReceived = null, long? lastRpoInSeconds = null, DateTimeOffset? lastRpoCalculatedOn = null, ResourceIdentifier lastRecoveryPointId = null, int? initialReplicationProgressPercentage = null, long? initialReplicationProcessedBytes = null, long? initialReplicationTransferredBytes = null, VmReplicationProgressHealth? initialReplicationProgressHealth = null, int? resyncProgressPercentage = null, long? resyncProcessedBytes = null, long? resyncTransferredBytes = null, VmReplicationProgressHealth? resyncProgressHealth = null, string resyncRequired = null, SiteRecoveryResyncState? resyncState = null, MobilityAgentUpgradeState? agentUpgradeState = null, string lastAgentUpgradeType = null, string agentUpgradeJobId = null, string agentUpgradeAttemptToVersion = null, IEnumerable protectedDisks = null, string isLastUpgradeSuccessful = null, bool? isAgentRegistrationSuccessfulAfterFailover = null, InMageRcmMobilityAgentDetails mobilityAgentDetails = null, IEnumerable lastAgentUpgradeErrorDetails = null, IEnumerable agentUpgradeBlockingErrorDetails = null, IEnumerable vmNics = null, InMageRcmDiscoveredProtectedVmDetails discoveredVmDetails = null)
+ public static InMageRcmReplicationDetails InMageRcmReplicationDetails(string internalIdentifier = null, string fabricDiscoveryMachineId = null, string multiVmGroupName = null, string discoveryType = null, Guid? processServerId = null, int? processorCoreCount = null, double? allocatedMemoryInMB = null, string processServerName = null, string runAsAccountId = null, string osType = null, string firmwareType = null, IPAddress primaryNicIPAddress = null, string targetGeneration = null, string licenseType = null, LinuxLicenseType? linuxLicenseType = null, ResourceIdentifier storageAccountId = null, string targetVmName = null, string targetVmSize = null, ResourceIdentifier targetResourceGroupId = null, string targetLocation = null, ResourceIdentifier targetAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, ResourceIdentifier targetBootDiagnosticsStorageAccountId = null, ResourceIdentifier targetNetworkId = null, ResourceIdentifier testNetworkId = null, ResourceIdentifier failoverRecoveryPointId = null, DateTimeOffset? lastRecoveryPointReceived = null, long? lastRpoInSeconds = null, DateTimeOffset? lastRpoCalculatedOn = null, ResourceIdentifier lastRecoveryPointId = null, int? initialReplicationProgressPercentage = null, long? initialReplicationProcessedBytes = null, long? initialReplicationTransferredBytes = null, VmReplicationProgressHealth? initialReplicationProgressHealth = null, int? resyncProgressPercentage = null, long? resyncProcessedBytes = null, long? resyncTransferredBytes = null, VmReplicationProgressHealth? resyncProgressHealth = null, string resyncRequired = null, SiteRecoveryResyncState? resyncState = null, MobilityAgentUpgradeState? agentUpgradeState = null, string lastAgentUpgradeType = null, string agentUpgradeJobId = null, string agentUpgradeAttemptToVersion = null, IEnumerable protectedDisks = null, IEnumerable unprotectedDisks = null, string isLastUpgradeSuccessful = null, bool? isAgentRegistrationSuccessfulAfterFailover = null, InMageRcmMobilityAgentDetails mobilityAgentDetails = null, IEnumerable lastAgentUpgradeErrorDetails = null, IEnumerable agentUpgradeBlockingErrorDetails = null, IEnumerable vmNics = null, InMageRcmDiscoveredProtectedVmDetails discoveredVmDetails = null, IEnumerable targetVmTags = null, IEnumerable seedManagedDiskTags = null, IEnumerable targetManagedDiskTags = null, IEnumerable targetNicTags = null, string sqlServerLicenseType = null, IEnumerable supportedOSVersions = null, string osName = null, SecurityProfileProperties targetVmSecurityProfile = null)
{
protectedDisks ??= new List();
+ unprotectedDisks ??= new List();
lastAgentUpgradeErrorDetails ??= new List();
agentUpgradeBlockingErrorDetails ??= new List();
vmNics ??= new List();
+ targetVmTags ??= new List();
+ seedManagedDiskTags ??= new List();
+ targetManagedDiskTags ??= new List();
+ targetNicTags ??= new List();
+ supportedOSVersions ??= new List();
return new InMageRcmReplicationDetails(
"InMageRcm",
@@ -4858,6 +5044,7 @@ public static InMageRcmReplicationDetails InMageRcmReplicationDetails(string int
primaryNicIPAddress,
targetGeneration,
licenseType,
+ linuxLicenseType,
storageAccountId,
targetVmName,
targetVmSize,
@@ -4889,13 +5076,22 @@ public static InMageRcmReplicationDetails InMageRcmReplicationDetails(string int
agentUpgradeJobId,
agentUpgradeAttemptToVersion,
protectedDisks?.ToList(),
+ unprotectedDisks?.ToList(),
isLastUpgradeSuccessful,
isAgentRegistrationSuccessfulAfterFailover,
mobilityAgentDetails,
lastAgentUpgradeErrorDetails?.ToList(),
agentUpgradeBlockingErrorDetails?.ToList(),
vmNics?.ToList(),
- discoveredVmDetails);
+ discoveredVmDetails,
+ targetVmTags?.ToList(),
+ seedManagedDiskTags?.ToList(),
+ targetManagedDiskTags?.ToList(),
+ targetNicTags?.ToList(),
+ sqlServerLicenseType,
+ supportedOSVersions?.ToList(),
+ osName,
+ targetVmSecurityProfile);
}
/// Initializes a new instance of .
@@ -4918,10 +5114,11 @@ public static InMageRcmReprotectContent InMageRcmReprotectContent(string reprote
/// Initializes a new instance of .
/// A value indicating whether VM is to be shutdown.
/// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed.
+ /// A value indicating the inplace OS Upgrade version.
/// A new instance for mocking.
- public static InMageRcmUnplannedFailoverContent InMageRcmUnplannedFailoverContent(string performShutdown = null, ResourceIdentifier recoveryPointId = null)
+ public static InMageRcmUnplannedFailoverContent InMageRcmUnplannedFailoverContent(string performShutdown = null, ResourceIdentifier recoveryPointId = null, string osUpgradeVersion = null)
{
- return new InMageRcmUnplannedFailoverContent("InMageRcm", serializedAdditionalRawData: null, performShutdown, recoveryPointId);
+ return new InMageRcmUnplannedFailoverContent("InMageRcm", serializedAdditionalRawData: null, performShutdown, recoveryPointId, osUpgradeVersion);
}
/// Initializes a new instance of .
@@ -5491,8 +5688,12 @@ public static VMwareCbtContainerMappingContent VMwareCbtContainerMappingContent(
/// The log storage account ARM Id.
/// The key vault secret name of the log storage account.
/// The DiskEncryptionSet ARM Id.
+ /// The logical sector size (in bytes), 512 by default.
+ /// The number of IOPS allowed for Premium V2 and Ultra disks.
+ /// The total throughput in Mbps for Premium V2 and Ultra disks.
+ /// The target disk size in GB.
/// A new instance for mocking.
- public static VMwareCbtDiskContent VMwareCbtDiskContent(string diskId = null, SiteRecoveryDiskAccountType? diskType = null, string isOSDisk = null, ResourceIdentifier logStorageAccountId = null, string logStorageAccountSasSecretName = null, ResourceIdentifier diskEncryptionSetId = null)
+ public static VMwareCbtDiskContent VMwareCbtDiskContent(string diskId = null, SiteRecoveryDiskAccountType? diskType = null, string isOSDisk = null, ResourceIdentifier logStorageAccountId = null, string logStorageAccountSasSecretName = null, ResourceIdentifier diskEncryptionSetId = null, int? sectorSizeInBytes = null, long? iops = null, long? throughputInMbps = null, long? diskSizeInGB = null)
{
return new VMwareCbtDiskContent(
diskId,
@@ -5501,6 +5702,10 @@ public static VMwareCbtDiskContent VMwareCbtDiskContent(string diskId = null, Si
logStorageAccountId,
logStorageAccountSasSecretName,
diskEncryptionSetId,
+ sectorSizeInBytes,
+ iops,
+ throughputInMbps,
+ diskSizeInGB,
serializedAdditionalRawData: null);
}
@@ -5509,6 +5714,7 @@ public static VMwareCbtDiskContent VMwareCbtDiskContent(string diskId = null, Si
/// The disks to include list.
/// License type.
/// The SQL Server license type.
+ /// The license type for Linux VM's.
/// A value indicating whether bulk SQL RP registration to be done.
/// The data mover run as account Id.
/// The snapshot run as account Id.
@@ -5530,8 +5736,9 @@ public static VMwareCbtDiskContent VMwareCbtDiskContent(string diskId = null, Si
/// The tags for the seed disks.
/// The tags for the target disks.
/// The tags for the target NICs.
+ /// The OS name selected by user.
/// A new instance for mocking.
- public static VMwareCbtEnableMigrationContent VMwareCbtEnableMigrationContent(ResourceIdentifier vmwareMachineId = null, IEnumerable disksToInclude = null, SiteRecoveryLicenseType? licenseType = null, SiteRecoverySqlServerLicenseType? sqlServerLicenseType = null, string performSqlBulkRegistration = null, ResourceIdentifier dataMoverRunAsAccountId = null, ResourceIdentifier snapshotRunAsAccountId = null, string targetVmName = null, string targetVmSize = null, ResourceIdentifier targetResourceGroupId = null, ResourceIdentifier targetNetworkId = null, ResourceIdentifier testNetworkId = null, string targetSubnetName = null, string testSubnetName = null, ResourceIdentifier targetAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, ResourceIdentifier confidentialVmKeyVaultId = null, VMwareCbtSecurityProfileProperties targetVmSecurityProfile = null, ResourceIdentifier targetBootDiagnosticsStorageAccountId = null, string performAutoResync = null, IDictionary targetVmTags = null, IDictionary seedDiskTags = null, IDictionary targetDiskTags = null, IDictionary targetNicTags = null)
+ public static VMwareCbtEnableMigrationContent VMwareCbtEnableMigrationContent(ResourceIdentifier vmwareMachineId = null, IEnumerable disksToInclude = null, SiteRecoveryLicenseType? licenseType = null, SiteRecoverySqlServerLicenseType? sqlServerLicenseType = null, LinuxLicenseType? linuxLicenseType = null, string performSqlBulkRegistration = null, ResourceIdentifier dataMoverRunAsAccountId = null, ResourceIdentifier snapshotRunAsAccountId = null, string targetVmName = null, string targetVmSize = null, ResourceIdentifier targetResourceGroupId = null, ResourceIdentifier targetNetworkId = null, ResourceIdentifier testNetworkId = null, string targetSubnetName = null, string testSubnetName = null, ResourceIdentifier targetAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, ResourceIdentifier confidentialVmKeyVaultId = null, VMwareCbtSecurityProfileProperties targetVmSecurityProfile = null, ResourceIdentifier targetBootDiagnosticsStorageAccountId = null, string performAutoResync = null, IDictionary targetVmTags = null, IDictionary seedDiskTags = null, IDictionary targetDiskTags = null, IDictionary targetNicTags = null, string userSelectedOSName = null)
{
disksToInclude ??= new List();
targetVmTags ??= new Dictionary();
@@ -5546,6 +5753,7 @@ public static VMwareCbtEnableMigrationContent VMwareCbtEnableMigrationContent(Re
disksToInclude?.ToList(),
licenseType,
sqlServerLicenseType,
+ linuxLicenseType,
performSqlBulkRegistration,
dataMoverRunAsAccountId,
snapshotRunAsAccountId,
@@ -5566,7 +5774,8 @@ public static VMwareCbtEnableMigrationContent VMwareCbtEnableMigrationContent(Re
targetVmTags,
seedDiskTags,
targetDiskTags,
- targetNicTags);
+ targetNicTags,
+ userSelectedOSName);
}
/// Initializes a new instance of .
@@ -5580,10 +5789,13 @@ public static VMwareCbtEventDetails VMwareCbtEventDetails(string migrationItemNa
/// Initializes a new instance of .
/// A value indicating whether VM is to be shutdown.
/// A value indicating the inplace OS Upgrade version.
+ /// The managed run command script input.
/// A new instance for mocking.
- public static VMwareCbtMigrateContent VMwareCbtMigrateContent(string performShutdown = null, string osUpgradeVersion = null)
+ public static VMwareCbtMigrateContent VMwareCbtMigrateContent(string performShutdown = null, string osUpgradeVersion = null, IEnumerable postMigrationSteps = null)
{
- return new VMwareCbtMigrateContent("VMwareCbt", serializedAdditionalRawData: null, performShutdown, osUpgradeVersion);
+ postMigrationSteps ??= new List();
+
+ return new VMwareCbtMigrateContent("VMwareCbt", serializedAdditionalRawData: null, performShutdown, osUpgradeVersion, postMigrationSteps?.ToList());
}
/// Initializes a new instance of .
@@ -5594,6 +5806,7 @@ public static VMwareCbtMigrateContent VMwareCbtMigrateContent(string performShut
/// The target generation.
/// License Type of the VM to be used.
/// The SQL Server license type.
+ /// The license type for Linux VM's.
/// The data mover run as account Id.
/// The snapshot run as account Id.
/// The replication storage account ARM Id. This is applicable only for the blob based replication test hook.
@@ -5636,7 +5849,7 @@ public static VMwareCbtMigrateContent VMwareCbtMigrateContent(string performShut
/// A value indicating the gateway operation details.
/// A value indicating the SRS operation name.
/// A new instance for mocking.
- public static VMwareCbtMigrationDetails VMwareCbtMigrationDetails(ResourceIdentifier vmwareMachineId = null, string osType = null, string osName = null, string firmwareType = null, string targetGeneration = null, string licenseType = null, string sqlServerLicenseType = null, ResourceIdentifier dataMoverRunAsAccountId = null, ResourceIdentifier snapshotRunAsAccountId = null, ResourceIdentifier storageAccountId = null, string targetVmName = null, string targetVmSize = null, string targetLocation = null, ResourceIdentifier targetResourceGroupId = null, ResourceIdentifier targetAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, ResourceIdentifier confidentialVmKeyVaultId = null, VMwareCbtSecurityProfileProperties targetVmSecurityProfile = null, ResourceIdentifier targetBootDiagnosticsStorageAccountId = null, IReadOnlyDictionary targetVmTags = null, IEnumerable protectedDisks = null, ResourceIdentifier targetNetworkId = null, ResourceIdentifier testNetworkId = null, IEnumerable vmNics = null, IReadOnlyDictionary targetNicTags = null, ResourceIdentifier migrationRecoveryPointId = null, DateTimeOffset? lastRecoveryPointReceived = null, ResourceIdentifier lastRecoveryPointId = null, int? initialSeedingProgressPercentage = null, int? migrationProgressPercentage = null, int? resyncProgressPercentage = null, int? resumeProgressPercentage = null, int? deltaSyncProgressPercentage = null, string isCheckSumResyncCycle = null, long? initialSeedingRetryCount = null, long? resyncRetryCount = null, long? resumeRetryCount = null, long? deltaSyncRetryCount = null, string resyncRequired = null, SiteRecoveryResyncState? resyncState = null, string performAutoResync = null, IReadOnlyDictionary seedDiskTags = null, IReadOnlyDictionary targetDiskTags = null, IEnumerable supportedOSVersions = null, ApplianceMonitoringDetails applianceMonitoringDetails = null, GatewayOperationDetails gatewayOperationDetails = null, string operationName = null)
+ public static VMwareCbtMigrationDetails VMwareCbtMigrationDetails(ResourceIdentifier vmwareMachineId = null, string osType = null, string osName = null, string firmwareType = null, string targetGeneration = null, string licenseType = null, string sqlServerLicenseType = null, LinuxLicenseType? linuxLicenseType = null, ResourceIdentifier dataMoverRunAsAccountId = null, ResourceIdentifier snapshotRunAsAccountId = null, ResourceIdentifier storageAccountId = null, string targetVmName = null, string targetVmSize = null, string targetLocation = null, ResourceIdentifier targetResourceGroupId = null, ResourceIdentifier targetAvailabilitySetId = null, string targetAvailabilityZone = null, ResourceIdentifier targetProximityPlacementGroupId = null, ResourceIdentifier confidentialVmKeyVaultId = null, VMwareCbtSecurityProfileProperties targetVmSecurityProfile = null, ResourceIdentifier targetBootDiagnosticsStorageAccountId = null, IReadOnlyDictionary targetVmTags = null, IEnumerable protectedDisks = null, ResourceIdentifier targetNetworkId = null, ResourceIdentifier testNetworkId = null, IEnumerable vmNics = null, IReadOnlyDictionary targetNicTags = null, ResourceIdentifier migrationRecoveryPointId = null, DateTimeOffset? lastRecoveryPointReceived = null, ResourceIdentifier lastRecoveryPointId = null, int? initialSeedingProgressPercentage = null, int? migrationProgressPercentage = null, int? resyncProgressPercentage = null, int? resumeProgressPercentage = null, int? deltaSyncProgressPercentage = null, string isCheckSumResyncCycle = null, long? initialSeedingRetryCount = null, long? resyncRetryCount = null, long? resumeRetryCount = null, long? deltaSyncRetryCount = null, string resyncRequired = null, SiteRecoveryResyncState? resyncState = null, string performAutoResync = null, IReadOnlyDictionary seedDiskTags = null, IReadOnlyDictionary targetDiskTags = null, IEnumerable supportedOSVersions = null, ApplianceMonitoringDetails applianceMonitoringDetails = null, GatewayOperationDetails gatewayOperationDetails = null, string operationName = null)
{
targetVmTags ??= new Dictionary();
protectedDisks ??= new List();
@@ -5656,6 +5869,7 @@ public static VMwareCbtMigrationDetails VMwareCbtMigrationDetails(ResourceIdenti
targetGeneration,
licenseType,
sqlServerLicenseType,
+ linuxLicenseType,
dataMoverRunAsAccountId,
snapshotRunAsAccountId,
storageAccountId,
@@ -5715,8 +5929,12 @@ public static VMwareCbtMigrationDetails VMwareCbtMigrationDetails(ResourceIdenti
/// The uri of the target blob.
/// The name for the target managed disk.
/// A value indicating the gateway operation details.
+ /// The logical sector size (in bytes), 512 by default.
+ /// The number of IOPS allowed for Premium V2 and Ultra disks.
+ /// The total throughput in Mbps for Premium V2 and Ultra disks.
+ /// The target disk size in GB.
/// A new instance for mocking.
- public static VMwareCbtProtectedDiskDetails VMwareCbtProtectedDiskDetails(string diskId = null, string diskName = null, SiteRecoveryDiskAccountType? diskType = null, string diskPath = null, string isOSDisk = null, long? capacityInBytes = null, ResourceIdentifier logStorageAccountId = null, string logStorageAccountSasSecretName = null, ResourceIdentifier diskEncryptionSetId = null, string seedManagedDiskId = null, Uri seedBlobUri = null, string targetManagedDiskId = null, Uri targetBlobUri = null, string targetDiskName = null, GatewayOperationDetails gatewayOperationDetails = null)
+ public static VMwareCbtProtectedDiskDetails VMwareCbtProtectedDiskDetails(string diskId = null, string diskName = null, SiteRecoveryDiskAccountType? diskType = null, string diskPath = null, string isOSDisk = null, long? capacityInBytes = null, ResourceIdentifier logStorageAccountId = null, string logStorageAccountSasSecretName = null, ResourceIdentifier diskEncryptionSetId = null, string seedManagedDiskId = null, Uri seedBlobUri = null, string targetManagedDiskId = null, Uri targetBlobUri = null, string targetDiskName = null, GatewayOperationDetails gatewayOperationDetails = null, int? sectorSizeInBytes = null, long? iops = null, long? throughputInMbps = null, long? diskSizeInGB = null)
{
return new VMwareCbtProtectedDiskDetails(
diskId,
@@ -5734,6 +5952,10 @@ public static VMwareCbtProtectedDiskDetails VMwareCbtProtectedDiskDetails(string
targetBlobUri,
targetDiskName,
gatewayOperationDetails,
+ sectorSizeInBytes,
+ iops,
+ throughputInMbps,
+ diskSizeInGB,
serializedAdditionalRawData: null);
}
@@ -5848,10 +6070,12 @@ public static VMwareCbtResyncContent VMwareCbtResyncContent(string skipCbtReset
/// The test network Id.
/// The list of NIC details.
/// A value indicating the inplace OS Upgrade version.
+ /// The managed run command script input.
/// A new instance for mocking.
- public static VMwareCbtTestMigrateContent VMwareCbtTestMigrateContent(ResourceIdentifier recoveryPointId = null, ResourceIdentifier networkId = null, IEnumerable vmNics = null, string osUpgradeVersion = null)
+ public static VMwareCbtTestMigrateContent VMwareCbtTestMigrateContent(ResourceIdentifier recoveryPointId = null, ResourceIdentifier networkId = null, IEnumerable vmNics = null, string osUpgradeVersion = null, IEnumerable postMigrationSteps = null)
{
vmNics ??= new List();
+ postMigrationSteps ??= new List();
return new VMwareCbtTestMigrateContent(
"VMwareCbt",
@@ -5859,17 +6083,28 @@ public static VMwareCbtTestMigrateContent VMwareCbtTestMigrateContent(ResourceId
recoveryPointId,
networkId,
vmNics?.ToList(),
- osUpgradeVersion);
+ osUpgradeVersion,
+ postMigrationSteps?.ToList());
}
/// Initializes a new instance of .
/// The disk Id.
/// The target disk name.
/// A value indicating whether the disk is the OS disk.
+ /// The number of IOPS allowed for Premium V2 and Ultra disks.
+ /// The total throughput in Mbps for Premium V2 and Ultra disks.
+ /// The target disk size in GB.
/// A new instance for mocking.
- public static VMwareCbtUpdateDiskContent VMwareCbtUpdateDiskContent(string diskId = null, string targetDiskName = null, string isOSDisk = null)
+ public static VMwareCbtUpdateDiskContent VMwareCbtUpdateDiskContent(string diskId = null, string targetDiskName = null, string isOSDisk = null, long? iops = null, long? throughputInMbps = null, long? diskSizeInGB = null)
{
- return new VMwareCbtUpdateDiskContent(diskId, targetDiskName, isOSDisk, serializedAdditionalRawData: null);
+ return new VMwareCbtUpdateDiskContent(
+ diskId,
+ targetDiskName,
+ isOSDisk,
+ iops,
+ throughputInMbps,
+ diskSizeInGB,
+ serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -6019,6 +6254,510 @@ public static VMwareVmDetails VMwareVmDetails(string agentGeneratedId = null, st
validationErrors?.ToList());
}
+ /// Initializes a new instance of .
+ /// The fabric specific object Id of the virtual machine.
+ /// The recovery container Id.
+ /// The recovery resource group Id. Valid for V2 scenarios.
+ /// The recovery cloud service Id. Valid for V1 scenarios.
+ /// The recovery availability set Id.
+ /// The recovery proximity placement group Id.
+ /// The list of vm disk details.
+ /// The list of vm managed disk details.
+ /// The multi vm group name.
+ /// The multi vm group id.
+ /// The boot diagnostic storage account.
+ /// The recovery disk encryption information (for two pass flows).
+ /// The recovery availability zone.
+ /// The recovery extended location.
+ /// The recovery Azure virtual network ARM id.
+ /// The recovery subnet name.
+ /// The virtual machine scale set Id.
+ /// The recovery capacity reservation group Id.
+ /// A value indicating whether the auto protection is enabled.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static A2AEnableProtectionContent A2AEnableProtectionContent(ResourceIdentifier fabricObjectId, ResourceIdentifier recoveryContainerId, ResourceIdentifier recoveryResourceGroupId, string recoveryCloudServiceId, ResourceIdentifier recoveryAvailabilitySetId, ResourceIdentifier recoveryProximityPlacementGroupId, IEnumerable vmDisks, IEnumerable vmManagedDisks, string multiVmGroupName, string multiVmGroupId, ResourceIdentifier recoveryBootDiagStorageAccountId, SiteRecoveryDiskEncryptionInfo diskEncryptionInfo, string recoveryAvailabilityZone, SiteRecoveryExtendedLocation recoveryExtendedLocation, ResourceIdentifier recoveryAzureNetworkId, string recoverySubnetName, ResourceIdentifier recoveryVirtualMachineScaleSetId, ResourceIdentifier recoveryCapacityReservationGroupId, AutoProtectionOfDataDisk? autoProtectionOfDataDisk)
+ {
+ return A2AEnableProtectionContent(fabricObjectId: fabricObjectId, recoveryContainerId: recoveryContainerId, recoveryResourceGroupId: recoveryResourceGroupId, recoveryCloudServiceId: recoveryCloudServiceId, recoveryAvailabilitySetId: recoveryAvailabilitySetId, recoveryProximityPlacementGroupId: recoveryProximityPlacementGroupId, vmDisks: vmDisks, vmManagedDisks: vmManagedDisks, multiVmGroupName: multiVmGroupName, multiVmGroupId: multiVmGroupId, protectionClusterId: default, recoveryBootDiagStorageAccountId: recoveryBootDiagStorageAccountId, diskEncryptionInfo: diskEncryptionInfo, recoveryAvailabilityZone: recoveryAvailabilityZone, recoveryExtendedLocation: recoveryExtendedLocation, recoveryAzureNetworkId: recoveryAzureNetworkId, recoverySubnetName: recoverySubnetName, recoveryVirtualMachineScaleSetId: recoveryVirtualMachineScaleSetId, recoveryCapacityReservationGroupId: recoveryCapacityReservationGroupId, autoProtectionOfDataDisk: autoProtectionOfDataDisk);
+ }
+
+ /// Initializes a new instance of .
+ /// The fabric specific object Id of the virtual machine.
+ /// The initial primary availability zone.
+ /// The initial primary fabric location.
+ /// The initial recovery availability zone.
+ /// The initial primary extended location.
+ /// The initial recovery extended location.
+ /// The initial recovery fabric location.
+ /// The multi vm group Id.
+ /// The multi vm group name.
+ /// Whether Multi VM group is auto created or specified by user.
+ /// The management Id.
+ /// The list of protected disks.
+ /// The list of unprotected disks.
+ /// The list of protected managed disks.
+ /// The recovery boot diagnostic storage account Arm Id.
+ /// Primary fabric location.
+ /// The recovery fabric location.
+ /// The type of operating system.
+ /// The size of recovery virtual machine.
+ /// The name of recovery virtual machine.
+ /// The recovery resource group.
+ /// The recovery cloud service.
+ /// The recovery availability set.
+ /// The recovery virtual network.
+ /// The test failover virtual network.
+ /// The virtual machine nic details.
+ /// The synced configuration details.
+ /// The percentage of the monitoring job. The type of the monitoring job is defined by MonitoringJobType property.
+ /// The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion property.
+ /// The last heartbeat received from the source server.
+ /// The agent version.
+ /// Agent expiry date.
+ /// A value indicating whether replication agent update is required.
+ /// Agent certificate expiry date.
+ /// A value indicating whether agent certificate update is required.
+ /// The recovery fabric object Id.
+ /// The protection state for the vm.
+ /// The protection state description for the vm.
+ /// An id associated with the PE that survives actions like switch protection which change the backing PE/CPE objects internally.The lifecycle id gets carried forward to have a link/continuity in being able to have an Id that denotes the "same" protected item even though other internal Ids/ARM Id might be changing.
+ /// The test failover fabric object Id.
+ /// The last RPO value in seconds.
+ /// The time (in UTC) when the last RPO value was calculated by Protection Service.
+ /// The primary availability zone.
+ /// The recovery availability zone.
+ /// The primary Extended Location.
+ /// The recovery Extended Location.
+ /// The encryption type of the VM.
+ /// The test failover vm name.
+ /// The recovery azure generation.
+ /// The recovery proximity placement group Id.
+ /// A value indicating whether the auto protection is enabled.
+ /// The recovery virtual machine scale set id.
+ /// The recovery capacity reservation group Id.
+ /// A value indicating the churn option selected by user.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static A2AReplicationDetails A2AReplicationDetails(ResourceIdentifier fabricObjectId, string initialPrimaryZone, AzureLocation? initialPrimaryFabricLocation, string initialRecoveryZone, SiteRecoveryExtendedLocation initialPrimaryExtendedLocation, SiteRecoveryExtendedLocation initialRecoveryExtendedLocation, AzureLocation? initialRecoveryFabricLocation, string multiVmGroupId, string multiVmGroupName, MultiVmGroupCreateOption? multiVmGroupCreateOption, string managementId, IEnumerable protectedDisks, IEnumerable unprotectedDisks, IEnumerable protectedManagedDisks, ResourceIdentifier recoveryBootDiagStorageAccountId, AzureLocation? primaryFabricLocation, AzureLocation? recoveryFabricLocation, string osType, string recoveryAzureVmSize, string recoveryAzureVmName, ResourceIdentifier recoveryAzureResourceGroupId, string recoveryCloudService, string recoveryAvailabilitySet, ResourceIdentifier selectedRecoveryAzureNetworkId, ResourceIdentifier selectedTfoAzureNetworkId, IEnumerable vmNics, A2AVmSyncedConfigDetails vmSyncedConfigDetails, int? monitoringPercentageCompletion, string monitoringJobType, DateTimeOffset? lastHeartbeat, string agentVersion, DateTimeOffset? agentExpireOn, bool? isReplicationAgentUpdateRequired, DateTimeOffset? agentCertificateExpireOn, bool? isReplicationAgentCertificateUpdateRequired, ResourceIdentifier recoveryFabricObjectId, string vmProtectionState, string vmProtectionStateDescription, string lifecycleId, ResourceIdentifier testFailoverRecoveryFabricObjectId, long? rpoInSeconds, DateTimeOffset? lastRpoCalculatedOn, string primaryAvailabilityZone, string recoveryAvailabilityZone, SiteRecoveryExtendedLocation primaryExtendedLocation, SiteRecoveryExtendedLocation recoveryExtendedLocation, SiteRecoveryVmEncryptionType? vmEncryptionType, string tfoAzureVmName, string recoveryAzureGeneration, ResourceIdentifier recoveryProximityPlacementGroupId, AutoProtectionOfDataDisk? autoProtectionOfDataDisk, ResourceIdentifier recoveryVirtualMachineScaleSetId, ResourceIdentifier recoveryCapacityReservationGroupId, ChurnOptionSelected? churnOptionSelected)
+ {
+ return A2AReplicationDetails(fabricObjectId: fabricObjectId, initialPrimaryZone: initialPrimaryZone, initialPrimaryFabricLocation: initialPrimaryFabricLocation, initialRecoveryZone: initialRecoveryZone, initialPrimaryExtendedLocation: initialPrimaryExtendedLocation, initialRecoveryExtendedLocation: initialRecoveryExtendedLocation, initialRecoveryFabricLocation: initialRecoveryFabricLocation, multiVmGroupId: multiVmGroupId, multiVmGroupName: multiVmGroupName, multiVmGroupCreateOption: multiVmGroupCreateOption, managementId: managementId, protectionClusterId: default, isClusterInfraReady: default, protectedDisks: protectedDisks, unprotectedDisks: unprotectedDisks, protectedManagedDisks: protectedManagedDisks, recoveryBootDiagStorageAccountId: recoveryBootDiagStorageAccountId, primaryFabricLocation: primaryFabricLocation, recoveryFabricLocation: recoveryFabricLocation, osType: osType, recoveryAzureVmSize: recoveryAzureVmSize, recoveryAzureVmName: recoveryAzureVmName, recoveryAzureResourceGroupId: recoveryAzureResourceGroupId, recoveryCloudService: recoveryCloudService, recoveryAvailabilitySet: recoveryAvailabilitySet, selectedRecoveryAzureNetworkId: selectedRecoveryAzureNetworkId, selectedTfoAzureNetworkId: selectedTfoAzureNetworkId, vmNics: vmNics, vmSyncedConfigDetails: vmSyncedConfigDetails, monitoringPercentageCompletion: monitoringPercentageCompletion, monitoringJobType: monitoringJobType, lastHeartbeat: lastHeartbeat, agentVersion: agentVersion, agentExpireOn: agentExpireOn, isReplicationAgentUpdateRequired: isReplicationAgentUpdateRequired, agentCertificateExpireOn: agentCertificateExpireOn, isReplicationAgentCertificateUpdateRequired: isReplicationAgentCertificateUpdateRequired, recoveryFabricObjectId: recoveryFabricObjectId, vmProtectionState: vmProtectionState, vmProtectionStateDescription: vmProtectionStateDescription, lifecycleId: lifecycleId, testFailoverRecoveryFabricObjectId: testFailoverRecoveryFabricObjectId, rpoInSeconds: rpoInSeconds, lastRpoCalculatedOn: lastRpoCalculatedOn, primaryAvailabilityZone: primaryAvailabilityZone, recoveryAvailabilityZone: recoveryAvailabilityZone, primaryExtendedLocation: primaryExtendedLocation, recoveryExtendedLocation: recoveryExtendedLocation, vmEncryptionType: vmEncryptionType, tfoAzureVmName: tfoAzureVmName, recoveryAzureGeneration: recoveryAzureGeneration, recoveryProximityPlacementGroupId: recoveryProximityPlacementGroupId, autoProtectionOfDataDisk: autoProtectionOfDataDisk, recoveryVirtualMachineScaleSetId: recoveryVirtualMachineScaleSetId, recoveryCapacityReservationGroupId: recoveryCapacityReservationGroupId, churnOptionSelected: churnOptionSelected);
+ }
+
+ /// Initializes a new instance of .
+ /// The disk Id.
+ /// Seed managed disk Id.
+ /// The replica disk type.
+ /// The disk encryption set ARM Id.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static HyperVReplicaAzureManagedDiskDetails HyperVReplicaAzureManagedDiskDetails(string diskId, string seedManagedDiskId, string replicaDiskType, ResourceIdentifier diskEncryptionSetId)
+ {
+ return HyperVReplicaAzureManagedDiskDetails(diskId: diskId, seedManagedDiskId: seedManagedDiskId, replicaDiskType: replicaDiskType, diskEncryptionSetId: diskEncryptionSetId, targetDiskAccountType: default, sectorSizeInBytes: default, iops: default, throughputInMbps: default, diskSizeInGB: default);
+ }
+
+ /// Initializes a new instance of .
+ /// Azure VM Disk details.
+ /// Recovery Azure given name.
+ /// The Recovery Azure VM size.
+ /// The recovery Azure storage account.
+ /// The ARM id of the log storage account used for replication. This will be set to null if no log storage account was provided during enable protection.
+ /// The Last replication time.
+ /// Last RPO value.
+ /// The last RPO calculated time.
+ /// The virtual machine Id.
+ /// The protection state for the vm.
+ /// The protection state description for the vm.
+ /// Initial replication details.
+ /// The PE Network details.
+ /// The selected recovery azure network Id.
+ /// The selected source nic Id which will be used as the primary nic during failover.
+ /// The encryption info.
+ /// The operating system info.
+ /// The RAM size of the VM on the primary side.
+ /// The CPU count of the VM on the primary side.
+ /// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption enum.
+ /// The target resource group Id.
+ /// The recovery availability set Id.
+ /// The target availability zone.
+ /// The target proximity placement group Id.
+ /// A value indicating whether managed disks should be used during failover.
+ /// License Type of the VM to be used.
+ /// The SQL Server license type.
+ /// The last recovery point received time.
+ /// The target VM tags.
+ /// The tags for the seed managed disks.
+ /// The tags for the target managed disks.
+ /// The tags for the target NICs.
+ /// The list of protected managed disks.
+ /// A value indicating all available inplace OS Upgrade configurations.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static HyperVReplicaAzureReplicationDetails HyperVReplicaAzureReplicationDetails(IEnumerable azureVmDiskDetails, string recoveryAzureVmName, string recoveryAzureVmSize, string recoveryAzureStorageAccount, ResourceIdentifier recoveryAzureLogStorageAccountId, DateTimeOffset? lastReplicatedOn, long? rpoInSeconds, DateTimeOffset? lastRpoCalculatedOn, string vmId, string vmProtectionState, string vmProtectionStateDescription, InitialReplicationDetails initialReplicationDetails, IEnumerable vmNics, ResourceIdentifier selectedRecoveryAzureNetworkId, string selectedSourceNicId, string encryption, SiteRecoveryOSDetails osDetails, int? sourceVmRamSizeInMB, int? sourceVmCpuCount, string enableRdpOnTargetOption, ResourceIdentifier recoveryAzureResourceGroupId, ResourceIdentifier recoveryAvailabilitySetId, string targetAvailabilityZone, ResourceIdentifier targetProximityPlacementGroupId, string useManagedDisks, string licenseType, string sqlServerLicenseType, DateTimeOffset? lastRecoveryPointReceived, IReadOnlyDictionary targetVmTags, IReadOnlyDictionary seedManagedDiskTags, IReadOnlyDictionary targetManagedDiskTags, IReadOnlyDictionary targetNicTags, IEnumerable protectedManagedDisks, IEnumerable allAvailableOSUpgradeConfigurations)
+ {
+ return HyperVReplicaAzureReplicationDetails(azureVmDiskDetails: azureVmDiskDetails, recoveryAzureVmName: recoveryAzureVmName, recoveryAzureVmSize: recoveryAzureVmSize, recoveryAzureStorageAccount: recoveryAzureStorageAccount, recoveryAzureLogStorageAccountId: recoveryAzureLogStorageAccountId, lastReplicatedOn: lastReplicatedOn, rpoInSeconds: rpoInSeconds, lastRpoCalculatedOn: lastRpoCalculatedOn, vmId: vmId, vmProtectionState: vmProtectionState, vmProtectionStateDescription: vmProtectionStateDescription, initialReplicationDetails: initialReplicationDetails, vmNics: vmNics, selectedRecoveryAzureNetworkId: selectedRecoveryAzureNetworkId, selectedSourceNicId: selectedSourceNicId, encryption: encryption, osDetails: osDetails, sourceVmRamSizeInMB: sourceVmRamSizeInMB, sourceVmCpuCount: sourceVmCpuCount, enableRdpOnTargetOption: enableRdpOnTargetOption, recoveryAzureResourceGroupId: recoveryAzureResourceGroupId, recoveryAvailabilitySetId: recoveryAvailabilitySetId, targetAvailabilityZone: targetAvailabilityZone, targetProximityPlacementGroupId: targetProximityPlacementGroupId, useManagedDisks: useManagedDisks, licenseType: licenseType, sqlServerLicenseType: sqlServerLicenseType, linuxLicenseType: default, lastRecoveryPointReceived: lastRecoveryPointReceived, targetVmTags: targetVmTags, seedManagedDiskTags: seedManagedDiskTags, targetManagedDiskTags: targetManagedDiskTags, targetNicTags: targetNicTags, protectedManagedDisks: protectedManagedDisks, allAvailableOSUpgradeConfigurations: allAvailableOSUpgradeConfigurations, targetVmSecurityProfile: default);
+ }
+
+ /// Initializes a new instance of .
+ /// VM Disk details.
+ /// Product type.
+ /// The OSEdition.
+ /// The OS Version.
+ /// The OS Major Version.
+ /// The OS Minor Version.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static SiteRecoveryOSDetails SiteRecoveryOSDetails(string osType, string productType, string osEdition, string osVersion, string osMajorVersion, string osMinorVersion)
+ {
+ return SiteRecoveryOSDetails(osType: osType, productType: productType, osEdition: osEdition, osVersion: osVersion, osMajorVersion: osMajorVersion, osMinorVersion: osMinorVersion, userSelectedOSName: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The disk Id.
+ /// The target disk name.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static UpdateDiskContent UpdateDiskContent(string diskId, string targetDiskName)
+ {
+ return UpdateDiskContent(diskId: diskId, targetDiskName: targetDiskName, iops: default, throughputInMbps: default, diskSizeInGB: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The disk Id.
+ /// The log storage account ARM Id.
+ /// The disk type.
+ /// The DiskEncryptionSet ARM Id.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static InMageRcmDiskContent InMageRcmDiskContent(string diskId, ResourceIdentifier logStorageAccountId, SiteRecoveryDiskAccountType diskType, ResourceIdentifier diskEncryptionSetId)
+ {
+ return InMageRcmDiskContent(diskId: diskId, logStorageAccountId: logStorageAccountId, diskType: diskType, diskEncryptionSetId: diskEncryptionSetId, sectorSizeInBytes: default, iops: default, throughputInMbps: default, diskSizeInGB: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The log storage account ARM Id.
+ /// The disk type.
+ /// The DiskEncryptionSet ARM Id.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static InMageRcmDisksDefaultContent InMageRcmDisksDefaultContent(ResourceIdentifier logStorageAccountId, SiteRecoveryDiskAccountType diskType, ResourceIdentifier diskEncryptionSetId)
+ {
+ return InMageRcmDisksDefaultContent(logStorageAccountId: logStorageAccountId, diskType: diskType, diskEncryptionSetId: diskEncryptionSetId, sectorSizeInBytes: default, iops: default, throughputInMbps: default, diskSizeInGB: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The ARM Id of discovered machine.
+ /// The disks to include list.
+ /// The default disk input.
+ /// The target resource group ARM Id.
+ /// The selected target network ARM Id.
+ /// The selected test network ARM Id.
+ /// The selected target subnet name.
+ /// The selected test subnet name.
+ /// The target VM name.
+ /// The target VM size.
+ /// The license type.
+ /// The target availability set ARM Id.
+ /// The target availability zone.
+ /// The target proximity placement group Id.
+ /// The target boot diagnostics storage account ARM Id.
+ /// The run-as account Id.
+ /// The process server Id.
+ /// The multi VM group name.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static InMageRcmEnableProtectionContent InMageRcmEnableProtectionContent(string fabricDiscoveryMachineId, IEnumerable disksToInclude, InMageRcmDisksDefaultContent disksDefault, ResourceIdentifier targetResourceGroupId, ResourceIdentifier targetNetworkId, ResourceIdentifier testNetworkId, string targetSubnetName, string testSubnetName, string targetVmName, string targetVmSize, SiteRecoveryLicenseType? licenseType, ResourceIdentifier targetAvailabilitySetId, string targetAvailabilityZone, ResourceIdentifier targetProximityPlacementGroupId, ResourceIdentifier targetBootDiagnosticsStorageAccountId, string runAsAccountId, Guid processServerId, string multiVmGroupName)
+ {
+ return InMageRcmEnableProtectionContent(fabricDiscoveryMachineId: fabricDiscoveryMachineId, disksToInclude: disksToInclude, disksDefault: disksDefault, targetResourceGroupId: targetResourceGroupId, targetNetworkId: targetNetworkId, testNetworkId: testNetworkId, targetSubnetName: targetSubnetName, testSubnetName: testSubnetName, targetVmName: targetVmName, targetVmSize: targetVmSize, licenseType: licenseType, targetAvailabilitySetId: targetAvailabilitySetId, targetAvailabilityZone: targetAvailabilityZone, targetProximityPlacementGroupId: targetProximityPlacementGroupId, targetBootDiagnosticsStorageAccountId: targetBootDiagnosticsStorageAccountId, runAsAccountId: runAsAccountId, processServerId: processServerId, multiVmGroupName: multiVmGroupName, sqlServerLicenseType: default, linuxLicenseType: default, targetVmTags: default, seedManagedDiskTags: default, targetManagedDiskTags: default, targetNicTags: default, userSelectedOSName: default, targetVmSecurityProfile: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The NIC Id.
+ /// A value indicating whether this is the primary NIC.
+ /// A value indicating whether this NIC is selected for failover.
+ /// The source IP address.
+ /// The source IP address type.
+ /// Source network Id.
+ /// Source subnet name.
+ /// The target IP address.
+ /// The target IP address type.
+ /// Target subnet name.
+ /// Test subnet name.
+ /// The test IP address.
+ /// The test IP address type.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static InMageRcmNicDetails InMageRcmNicDetails(string nicId, string isPrimaryNic, string isSelectedForFailover, IPAddress sourceIPAddress, SiteRecoveryEthernetAddressType? sourceIPAddressType, ResourceIdentifier sourceNetworkId, string sourceSubnetName, IPAddress targetIPAddress, SiteRecoveryEthernetAddressType? targetIPAddressType, string targetSubnetName, string testSubnetName, IPAddress testIPAddress, SiteRecoveryEthernetAddressType? testIPAddressType)
+ {
+ return InMageRcmNicDetails(nicId: nicId, isPrimaryNic: isPrimaryNic, isSelectedForFailover: isSelectedForFailover, sourceIPAddress: sourceIPAddress, sourceIPAddressType: sourceIPAddressType, sourceNetworkId: sourceNetworkId, sourceSubnetName: sourceSubnetName, targetIPAddress: targetIPAddress, targetIPAddressType: targetIPAddressType, targetSubnetName: targetSubnetName, testSubnetName: testSubnetName, testIPAddress: testIPAddress, testIPAddressType: testIPAddressType, targetNicName: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The NIC Id.
+ /// A value indicating whether this is the primary NIC.
+ /// A value indicating whether this NIC is selected for failover.
+ /// Target subnet name.
+ /// The target static IP address.
+ /// The test subnet name.
+ /// The test static IP address.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static InMageRcmNicContent InMageRcmNicContent(string nicId, string isPrimaryNic, string isSelectedForFailover, string targetSubnetName, IPAddress targetStaticIPAddress, string testSubnetName, IPAddress testStaticIPAddress)
+ {
+ return InMageRcmNicContent(nicId: nicId, isPrimaryNic: isPrimaryNic, isSelectedForFailover: isSelectedForFailover, targetSubnetName: targetSubnetName, targetStaticIPAddress: targetStaticIPAddress, testSubnetName: testSubnetName, testStaticIPAddress: testStaticIPAddress, targetNicName: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The disk Id.
+ /// The disk name.
+ /// A value indicating whether the disk is the OS disk.
+ /// The disk capacity in bytes.
+ /// The log storage account ARM Id.
+ /// The DiskEncryptionSet ARM Id.
+ /// The ARM Id of the seed managed disk.
+ /// The uri of the seed blob.
+ /// The ARM Id of the target managed disk.
+ /// The disk type.
+ /// The data pending in log data store in MB.
+ /// The data pending at source agent in MB.
+ /// A value indicating whether initial replication is complete or not.
+ /// The initial replication details.
+ /// The resync details.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static InMageRcmProtectedDiskDetails InMageRcmProtectedDiskDetails(string diskId, string diskName, string isOSDisk, long? capacityInBytes, ResourceIdentifier logStorageAccountId, ResourceIdentifier diskEncryptionSetId, string seedManagedDiskId, Uri seedBlobUri, string targetManagedDiskId, SiteRecoveryDiskAccountType? diskType, double? dataPendingInLogDataStoreInMB, double? dataPendingAtSourceAgentInMB, string isInitialReplicationComplete, InMageRcmSyncDetails irDetails, InMageRcmSyncDetails resyncDetails)
+ {
+ return InMageRcmProtectedDiskDetails(diskId: diskId, diskName: diskName, isOSDisk: isOSDisk, capacityInBytes: capacityInBytes, diskState: default, logStorageAccountId: logStorageAccountId, diskEncryptionSetId: diskEncryptionSetId, seedManagedDiskId: seedManagedDiskId, seedBlobUri: seedBlobUri, targetManagedDiskId: targetManagedDiskId, diskType: diskType, dataPendingInLogDataStoreInMB: dataPendingInLogDataStoreInMB, dataPendingAtSourceAgentInMB: dataPendingAtSourceAgentInMB, isInitialReplicationComplete: isInitialReplicationComplete, irDetails: irDetails, resyncDetails: resyncDetails, customTargetDiskName: default, sectorSizeInBytes: default, iops: default, throughputInMbps: default, diskSizeInGB: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The virtual machine internal identifier.
+ /// The ARM Id of the discovered VM.
+ /// The multi VM group name.
+ /// The type of the discovered VM.
+ /// The process server Id.
+ /// The processor core count.
+ /// The allocated memory in MB.
+ /// The process server name.
+ /// The run-as account Id.
+ /// The type of the OS on the VM.
+ /// The firmware type.
+ /// The IP address of the primary network interface.
+ /// The target generation.
+ /// License Type of the VM to be used.
+ /// The replication storage account ARM Id. This is applicable only for the blob based replication test hook.
+ /// Target VM name.
+ /// The target VM size.
+ /// The target resource group Id.
+ /// The target location.
+ /// The target availability set Id.
+ /// The target availability zone.
+ /// The target proximity placement group Id.
+ /// The target boot diagnostics storage account ARM Id.
+ /// The target network Id.
+ /// The test network Id.
+ /// The recovery point Id to which the VM was failed over.
+ /// The last recovery point received time.
+ /// The last recovery point objective value.
+ /// The last recovery point objective calculated time.
+ /// The last recovery point Id.
+ /// The initial replication progress percentage. This is calculated based on total bytes processed for all disks in the source VM.
+ /// The initial replication processed bytes. This includes sum of total bytes transferred and matched bytes on all selected disks in source VM.
+ /// The initial replication transferred bytes from source VM to azure for all selected disks on source VM.
+ /// The initial replication progress health.
+ /// The resync progress percentage. This is calculated based on total bytes processed for all disks in the source VM.
+ /// The resync processed bytes. This includes sum of total bytes transferred and matched bytes on all selected disks in source VM.
+ /// The resync transferred bytes from source VM to azure for all selected disks on source VM.
+ /// The resync progress health.
+ /// A value indicating whether resync is required.
+ /// The resync state.
+ /// The agent auto upgrade state.
+ /// The last agent upgrade type.
+ /// The agent upgrade job Id.
+ /// The agent version to which last agent upgrade was attempted.
+ /// The list of protected disks.
+ /// A value indicating whether last agent upgrade was successful or not.
+ /// A value indicating whether agent registration was successful after failover.
+ /// The mobility agent information.
+ /// The last agent upgrade error information.
+ /// The agent upgrade blocking error information.
+ /// The network details.
+ /// The discovered VM details.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static InMageRcmReplicationDetails InMageRcmReplicationDetails(string internalIdentifier, string fabricDiscoveryMachineId, string multiVmGroupName, string discoveryType, Guid? processServerId, int? processorCoreCount, double? allocatedMemoryInMB, string processServerName, string runAsAccountId, string osType, string firmwareType, IPAddress primaryNicIPAddress, string targetGeneration, string licenseType, ResourceIdentifier storageAccountId, string targetVmName, string targetVmSize, ResourceIdentifier targetResourceGroupId, string targetLocation, ResourceIdentifier targetAvailabilitySetId, string targetAvailabilityZone, ResourceIdentifier targetProximityPlacementGroupId, ResourceIdentifier targetBootDiagnosticsStorageAccountId, ResourceIdentifier targetNetworkId, ResourceIdentifier testNetworkId, ResourceIdentifier failoverRecoveryPointId, DateTimeOffset? lastRecoveryPointReceived, long? lastRpoInSeconds, DateTimeOffset? lastRpoCalculatedOn, ResourceIdentifier lastRecoveryPointId, int? initialReplicationProgressPercentage, long? initialReplicationProcessedBytes, long? initialReplicationTransferredBytes, VmReplicationProgressHealth? initialReplicationProgressHealth, int? resyncProgressPercentage, long? resyncProcessedBytes, long? resyncTransferredBytes, VmReplicationProgressHealth? resyncProgressHealth, string resyncRequired, SiteRecoveryResyncState? resyncState, MobilityAgentUpgradeState? agentUpgradeState, string lastAgentUpgradeType, string agentUpgradeJobId, string agentUpgradeAttemptToVersion, IEnumerable protectedDisks, string isLastUpgradeSuccessful, bool? isAgentRegistrationSuccessfulAfterFailover, InMageRcmMobilityAgentDetails mobilityAgentDetails, IEnumerable lastAgentUpgradeErrorDetails, IEnumerable agentUpgradeBlockingErrorDetails, IEnumerable vmNics, InMageRcmDiscoveredProtectedVmDetails discoveredVmDetails)
+ {
+ return InMageRcmReplicationDetails(internalIdentifier: internalIdentifier, fabricDiscoveryMachineId: fabricDiscoveryMachineId, multiVmGroupName: multiVmGroupName, discoveryType: discoveryType, processServerId: processServerId, processorCoreCount: processorCoreCount, allocatedMemoryInMB: allocatedMemoryInMB, processServerName: processServerName, runAsAccountId: runAsAccountId, osType: osType, firmwareType: firmwareType, primaryNicIPAddress: primaryNicIPAddress, targetGeneration: targetGeneration, licenseType: licenseType, linuxLicenseType: default, storageAccountId: storageAccountId, targetVmName: targetVmName, targetVmSize: targetVmSize, targetResourceGroupId: targetResourceGroupId, targetLocation: targetLocation, targetAvailabilitySetId: targetAvailabilitySetId, targetAvailabilityZone: targetAvailabilityZone, targetProximityPlacementGroupId: targetProximityPlacementGroupId, targetBootDiagnosticsStorageAccountId: targetBootDiagnosticsStorageAccountId, targetNetworkId: targetNetworkId, testNetworkId: testNetworkId, failoverRecoveryPointId: failoverRecoveryPointId, lastRecoveryPointReceived: lastRecoveryPointReceived, lastRpoInSeconds: lastRpoInSeconds, lastRpoCalculatedOn: lastRpoCalculatedOn, lastRecoveryPointId: lastRecoveryPointId, initialReplicationProgressPercentage: initialReplicationProgressPercentage, initialReplicationProcessedBytes: initialReplicationProcessedBytes, initialReplicationTransferredBytes: initialReplicationTransferredBytes, initialReplicationProgressHealth: initialReplicationProgressHealth, resyncProgressPercentage: resyncProgressPercentage, resyncProcessedBytes: resyncProcessedBytes, resyncTransferredBytes: resyncTransferredBytes, resyncProgressHealth: resyncProgressHealth, resyncRequired: resyncRequired, resyncState: resyncState, agentUpgradeState: agentUpgradeState, lastAgentUpgradeType: lastAgentUpgradeType, agentUpgradeJobId: agentUpgradeJobId, agentUpgradeAttemptToVersion: agentUpgradeAttemptToVersion, protectedDisks: protectedDisks, unprotectedDisks: default, isLastUpgradeSuccessful: isLastUpgradeSuccessful, isAgentRegistrationSuccessfulAfterFailover: isAgentRegistrationSuccessfulAfterFailover, mobilityAgentDetails: mobilityAgentDetails, lastAgentUpgradeErrorDetails: lastAgentUpgradeErrorDetails, agentUpgradeBlockingErrorDetails: agentUpgradeBlockingErrorDetails, vmNics: vmNics, discoveredVmDetails: discoveredVmDetails, targetVmTags: default, seedManagedDiskTags: default, targetManagedDiskTags: default, targetNicTags: default, sqlServerLicenseType: default, supportedOSVersions: default, osName: default, targetVmSecurityProfile: default);
+ }
+
+ /// Initializes a new instance of .
+ /// A value indicating whether VM is to be shutdown.
+ /// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static InMageRcmUnplannedFailoverContent InMageRcmUnplannedFailoverContent(string performShutdown, ResourceIdentifier recoveryPointId)
+ {
+ return InMageRcmUnplannedFailoverContent(performShutdown: performShutdown, recoveryPointId: recoveryPointId, osUpgradeVersion: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The disk Id.
+ /// The disk type.
+ /// A value indicating whether the disk is the OS disk.
+ /// The log storage account ARM Id.
+ /// The key vault secret name of the log storage account.
+ /// The DiskEncryptionSet ARM Id.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static VMwareCbtDiskContent VMwareCbtDiskContent(string diskId, SiteRecoveryDiskAccountType? diskType, string isOSDisk, ResourceIdentifier logStorageAccountId, string logStorageAccountSasSecretName, ResourceIdentifier diskEncryptionSetId)
+ {
+ return VMwareCbtDiskContent(diskId: diskId, diskType: diskType, isOSDisk: isOSDisk, logStorageAccountId: logStorageAccountId, logStorageAccountSasSecretName: logStorageAccountSasSecretName, diskEncryptionSetId: diskEncryptionSetId, sectorSizeInBytes: default, iops: default, throughputInMbps: default, diskSizeInGB: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The ARM Id of the VM discovered in VMware.
+ /// The disks to include list.
+ /// License type.
+ /// The SQL Server license type.
+ /// A value indicating whether bulk SQL RP registration to be done.
+ /// The data mover run as account Id.
+ /// The snapshot run as account Id.
+ /// The target VM name.
+ /// The target VM size.
+ /// The target resource group ARM Id.
+ /// The target network ARM Id.
+ /// The selected test network ARM Id.
+ /// The target subnet name.
+ /// The selected test subnet name.
+ /// The target availability set ARM Id.
+ /// The target availability zone.
+ /// The target proximity placement group ARM Id.
+ /// The confidential VM key vault Id for ADE installation.
+ /// The target VM security profile.
+ /// The target boot diagnostics storage account ARM Id.
+ /// A value indicating whether auto resync is to be done.
+ /// The target VM tags.
+ /// The tags for the seed disks.
+ /// The tags for the target disks.
+ /// The tags for the target NICs.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static VMwareCbtEnableMigrationContent VMwareCbtEnableMigrationContent(ResourceIdentifier vmwareMachineId, IEnumerable disksToInclude, SiteRecoveryLicenseType? licenseType, SiteRecoverySqlServerLicenseType? sqlServerLicenseType, string performSqlBulkRegistration, ResourceIdentifier dataMoverRunAsAccountId, ResourceIdentifier snapshotRunAsAccountId, string targetVmName, string targetVmSize, ResourceIdentifier targetResourceGroupId, ResourceIdentifier targetNetworkId, ResourceIdentifier testNetworkId, string targetSubnetName, string testSubnetName, ResourceIdentifier targetAvailabilitySetId, string targetAvailabilityZone, ResourceIdentifier targetProximityPlacementGroupId, ResourceIdentifier confidentialVmKeyVaultId, VMwareCbtSecurityProfileProperties targetVmSecurityProfile, ResourceIdentifier targetBootDiagnosticsStorageAccountId, string performAutoResync, IDictionary targetVmTags, IDictionary seedDiskTags, IDictionary targetDiskTags, IDictionary targetNicTags)
+ {
+ return VMwareCbtEnableMigrationContent(vmwareMachineId: vmwareMachineId, disksToInclude: disksToInclude, licenseType: licenseType, sqlServerLicenseType: sqlServerLicenseType, linuxLicenseType: default, performSqlBulkRegistration: performSqlBulkRegistration, dataMoverRunAsAccountId: dataMoverRunAsAccountId, snapshotRunAsAccountId: snapshotRunAsAccountId, targetVmName: targetVmName, targetVmSize: targetVmSize, targetResourceGroupId: targetResourceGroupId, targetNetworkId: targetNetworkId, testNetworkId: testNetworkId, targetSubnetName: targetSubnetName, testSubnetName: testSubnetName, targetAvailabilitySetId: targetAvailabilitySetId, targetAvailabilityZone: targetAvailabilityZone, targetProximityPlacementGroupId: targetProximityPlacementGroupId, confidentialVmKeyVaultId: confidentialVmKeyVaultId, targetVmSecurityProfile: targetVmSecurityProfile, targetBootDiagnosticsStorageAccountId: targetBootDiagnosticsStorageAccountId, performAutoResync: performAutoResync, targetVmTags: targetVmTags, seedDiskTags: seedDiskTags, targetDiskTags: targetDiskTags, targetNicTags: targetNicTags, userSelectedOSName: default);
+ }
+
+ /// Initializes a new instance of .
+ /// A value indicating whether VM is to be shutdown.
+ /// A value indicating the inplace OS Upgrade version.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static VMwareCbtMigrateContent VMwareCbtMigrateContent(string performShutdown, string osUpgradeVersion)
+ {
+ return VMwareCbtMigrateContent(performShutdown: performShutdown, osUpgradeVersion: osUpgradeVersion, postMigrationSteps: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The ARM Id of the VM discovered in VMware.
+ /// The type of the OS on the VM.
+ /// The name of the OS on the VM.
+ /// The firmware type.
+ /// The target generation.
+ /// License Type of the VM to be used.
+ /// The SQL Server license type.
+ /// The data mover run as account Id.
+ /// The snapshot run as account Id.
+ /// The replication storage account ARM Id. This is applicable only for the blob based replication test hook.
+ /// Target VM name.
+ /// The target VM size.
+ /// The target location.
+ /// The target resource group Id.
+ /// The target availability set Id.
+ /// The target availability zone.
+ /// The target proximity placement group Id.
+ /// The confidential VM key vault Id for ADE installation.
+ /// The target VM security profile.
+ /// The target boot diagnostics storage account ARM Id.
+ /// The target VM tags.
+ /// The list of protected disks.
+ /// The target network Id.
+ /// The test network Id.
+ /// The network details.
+ /// The tags for the target NICs.
+ /// The recovery point Id to which the VM was migrated.
+ /// The last recovery point received time.
+ /// The last recovery point Id.
+ /// The initial seeding progress percentage.
+ /// The migration progress percentage.
+ /// The resync progress percentage.
+ /// The resume progress percentage.
+ /// The delta sync progress percentage.
+ /// A value indicating whether checksum resync cycle is in progress.
+ /// The initial seeding retry count.
+ /// The resync retry count.
+ /// The resume retry count.
+ /// The delta sync retry count.
+ /// A value indicating whether resync is required.
+ /// The resync state.
+ /// A value indicating whether auto resync is to be done.
+ /// The tags for the seed disks.
+ /// The tags for the target disks.
+ /// A value indicating the inplace OS Upgrade version.
+ /// A value indicating the appliance monitoring details.
+ /// A value indicating the gateway operation details.
+ /// A value indicating the SRS operation name.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static VMwareCbtMigrationDetails VMwareCbtMigrationDetails(ResourceIdentifier vmwareMachineId, string osType, string osName, string firmwareType, string targetGeneration, string licenseType, string sqlServerLicenseType, ResourceIdentifier dataMoverRunAsAccountId, ResourceIdentifier snapshotRunAsAccountId, ResourceIdentifier storageAccountId, string targetVmName, string targetVmSize, string targetLocation, ResourceIdentifier targetResourceGroupId, ResourceIdentifier targetAvailabilitySetId, string targetAvailabilityZone, ResourceIdentifier targetProximityPlacementGroupId, ResourceIdentifier confidentialVmKeyVaultId, VMwareCbtSecurityProfileProperties targetVmSecurityProfile, ResourceIdentifier targetBootDiagnosticsStorageAccountId, IReadOnlyDictionary targetVmTags, IEnumerable protectedDisks, ResourceIdentifier targetNetworkId, ResourceIdentifier testNetworkId, IEnumerable vmNics, IReadOnlyDictionary targetNicTags, ResourceIdentifier migrationRecoveryPointId, DateTimeOffset? lastRecoveryPointReceived, ResourceIdentifier lastRecoveryPointId, int? initialSeedingProgressPercentage, int? migrationProgressPercentage, int? resyncProgressPercentage, int? resumeProgressPercentage, int? deltaSyncProgressPercentage, string isCheckSumResyncCycle, long? initialSeedingRetryCount, long? resyncRetryCount, long? resumeRetryCount, long? deltaSyncRetryCount, string resyncRequired, SiteRecoveryResyncState? resyncState, string performAutoResync, IReadOnlyDictionary seedDiskTags, IReadOnlyDictionary targetDiskTags, IEnumerable supportedOSVersions, ApplianceMonitoringDetails applianceMonitoringDetails, GatewayOperationDetails gatewayOperationDetails, string operationName)
+ {
+ return VMwareCbtMigrationDetails(vmwareMachineId: vmwareMachineId, osType: osType, osName: osName, firmwareType: firmwareType, targetGeneration: targetGeneration, licenseType: licenseType, sqlServerLicenseType: sqlServerLicenseType, linuxLicenseType: default, dataMoverRunAsAccountId: dataMoverRunAsAccountId, snapshotRunAsAccountId: snapshotRunAsAccountId, storageAccountId: storageAccountId, targetVmName: targetVmName, targetVmSize: targetVmSize, targetLocation: targetLocation, targetResourceGroupId: targetResourceGroupId, targetAvailabilitySetId: targetAvailabilitySetId, targetAvailabilityZone: targetAvailabilityZone, targetProximityPlacementGroupId: targetProximityPlacementGroupId, confidentialVmKeyVaultId: confidentialVmKeyVaultId, targetVmSecurityProfile: targetVmSecurityProfile, targetBootDiagnosticsStorageAccountId: targetBootDiagnosticsStorageAccountId, targetVmTags: targetVmTags, protectedDisks: protectedDisks, targetNetworkId: targetNetworkId, testNetworkId: testNetworkId, vmNics: vmNics, targetNicTags: targetNicTags, migrationRecoveryPointId: migrationRecoveryPointId, lastRecoveryPointReceived: lastRecoveryPointReceived, lastRecoveryPointId: lastRecoveryPointId, initialSeedingProgressPercentage: initialSeedingProgressPercentage, migrationProgressPercentage: migrationProgressPercentage, resyncProgressPercentage: resyncProgressPercentage, resumeProgressPercentage: resumeProgressPercentage, deltaSyncProgressPercentage: deltaSyncProgressPercentage, isCheckSumResyncCycle: isCheckSumResyncCycle, initialSeedingRetryCount: initialSeedingRetryCount, resyncRetryCount: resyncRetryCount, resumeRetryCount: resumeRetryCount, deltaSyncRetryCount: deltaSyncRetryCount, resyncRequired: resyncRequired, resyncState: resyncState, performAutoResync: performAutoResync, seedDiskTags: seedDiskTags, targetDiskTags: targetDiskTags, supportedOSVersions: supportedOSVersions, applianceMonitoringDetails: applianceMonitoringDetails, gatewayOperationDetails: gatewayOperationDetails, operationName: operationName);
+ }
+
+ /// Initializes a new instance of .
+ /// The disk id.
+ /// The disk name.
+ /// The disk type.
+ /// The disk path.
+ /// A value indicating whether the disk is the OS disk.
+ /// The disk capacity in bytes.
+ /// The log storage account ARM Id.
+ /// The key vault secret name of the log storage account.
+ /// The DiskEncryptionSet ARM Id.
+ /// The ARM Id of the seed managed disk.
+ /// The uri of the seed blob.
+ /// The ARM Id of the target managed disk.
+ /// The uri of the target blob.
+ /// The name for the target managed disk.
+ /// A value indicating the gateway operation details.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static VMwareCbtProtectedDiskDetails VMwareCbtProtectedDiskDetails(string diskId, string diskName, SiteRecoveryDiskAccountType? diskType, string diskPath, string isOSDisk, long? capacityInBytes, ResourceIdentifier logStorageAccountId, string logStorageAccountSasSecretName, ResourceIdentifier diskEncryptionSetId, string seedManagedDiskId, Uri seedBlobUri, string targetManagedDiskId, Uri targetBlobUri, string targetDiskName, GatewayOperationDetails gatewayOperationDetails)
+ {
+ return VMwareCbtProtectedDiskDetails(diskId: diskId, diskName: diskName, diskType: diskType, diskPath: diskPath, isOSDisk: isOSDisk, capacityInBytes: capacityInBytes, logStorageAccountId: logStorageAccountId, logStorageAccountSasSecretName: logStorageAccountSasSecretName, diskEncryptionSetId: diskEncryptionSetId, seedManagedDiskId: seedManagedDiskId, seedBlobUri: seedBlobUri, targetManagedDiskId: targetManagedDiskId, targetBlobUri: targetBlobUri, targetDiskName: targetDiskName, gatewayOperationDetails: gatewayOperationDetails, sectorSizeInBytes: default, iops: default, throughputInMbps: default, diskSizeInGB: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The recovery point Id.
+ /// The test network Id.
+ /// The list of NIC details.
+ /// A value indicating the inplace OS Upgrade version.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static VMwareCbtTestMigrateContent VMwareCbtTestMigrateContent(ResourceIdentifier recoveryPointId, ResourceIdentifier networkId, IEnumerable vmNics, string osUpgradeVersion)
+ {
+ return VMwareCbtTestMigrateContent(recoveryPointId: recoveryPointId, networkId: networkId, vmNics: vmNics, osUpgradeVersion: osUpgradeVersion, postMigrationSteps: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The disk Id.
+ /// The target disk name.
+ /// A value indicating whether the disk is the OS disk.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static VMwareCbtUpdateDiskContent VMwareCbtUpdateDiskContent(string diskId, string targetDiskName, string isOSDisk)
+ {
+ return VMwareCbtUpdateDiskContent(diskId: diskId, targetDiskName: targetDiskName, isOSDisk: isOSDisk, iops: default, throughputInMbps: default, diskSizeInGB: default);
+ }
+
/// Initializes a new instance of A2AReplicationDetails.
/// The fabric specific object Id of the virtual machine.
/// The initial primary availability zone.
@@ -6077,7 +6816,7 @@ public static VMwareVmDetails VMwareVmDetails(string agentGeneratedId = null, st
[EditorBrowsable(EditorBrowsableState.Never)]
public static A2AReplicationDetails A2AReplicationDetails(ResourceIdentifier fabricObjectId, string initialPrimaryZone, AzureLocation? initialPrimaryFabricLocation, string initialRecoveryZone, SiteRecoveryExtendedLocation initialPrimaryExtendedLocation, SiteRecoveryExtendedLocation initialRecoveryExtendedLocation, AzureLocation? initialRecoveryFabricLocation, string multiVmGroupId, string multiVmGroupName, MultiVmGroupCreateOption? multiVmGroupCreateOption, string managementId, IEnumerable protectedDisks, IEnumerable unprotectedDisks, IEnumerable protectedManagedDisks, ResourceIdentifier recoveryBootDiagStorageAccountId, AzureLocation? primaryFabricLocation, AzureLocation? recoveryFabricLocation, string osType, string recoveryAzureVmSize, string recoveryAzureVmName, ResourceIdentifier recoveryAzureResourceGroupId, string recoveryCloudService, string recoveryAvailabilitySet, ResourceIdentifier selectedRecoveryAzureNetworkId, ResourceIdentifier selectedTfoAzureNetworkId, IEnumerable vmNics, A2AVmSyncedConfigDetails vmSyncedConfigDetails, int? monitoringPercentageCompletion, string monitoringJobType, DateTimeOffset? lastHeartbeat, string agentVersion, DateTimeOffset? agentExpireOn, bool? isReplicationAgentUpdateRequired, DateTimeOffset? agentCertificateExpireOn, bool? isReplicationAgentCertificateUpdateRequired, ResourceIdentifier recoveryFabricObjectId, string vmProtectionState, string vmProtectionStateDescription, string lifecycleId, ResourceIdentifier testFailoverRecoveryFabricObjectId, long? rpoInSeconds, DateTimeOffset? lastRpoCalculatedOn, string primaryAvailabilityZone, string recoveryAvailabilityZone, SiteRecoveryExtendedLocation primaryExtendedLocation, SiteRecoveryExtendedLocation recoveryExtendedLocation, SiteRecoveryVmEncryptionType? vmEncryptionType, string tfoAzureVmName, string recoveryAzureGeneration, ResourceIdentifier recoveryProximityPlacementGroupId, AutoProtectionOfDataDisk? autoProtectionOfDataDisk, ResourceIdentifier recoveryVirtualMachineScaleSetId, ResourceIdentifier recoveryCapacityReservationGroupId)
{
- return A2AReplicationDetails(fabricObjectId: fabricObjectId, initialPrimaryZone: initialPrimaryZone, initialPrimaryFabricLocation: initialPrimaryFabricLocation, initialRecoveryZone: initialRecoveryZone, initialPrimaryExtendedLocation: initialPrimaryExtendedLocation, initialRecoveryExtendedLocation: initialRecoveryExtendedLocation, initialRecoveryFabricLocation: initialRecoveryFabricLocation, multiVmGroupId: multiVmGroupId, multiVmGroupName: multiVmGroupName, multiVmGroupCreateOption: multiVmGroupCreateOption, managementId: managementId, protectedDisks: protectedDisks, unprotectedDisks: unprotectedDisks, protectedManagedDisks: protectedManagedDisks, recoveryBootDiagStorageAccountId: recoveryBootDiagStorageAccountId, primaryFabricLocation: primaryFabricLocation, recoveryFabricLocation: recoveryFabricLocation, osType: osType, recoveryAzureVmSize: recoveryAzureVmSize, recoveryAzureVmName: recoveryAzureVmName, recoveryAzureResourceGroupId: recoveryAzureResourceGroupId, recoveryCloudService: recoveryCloudService, recoveryAvailabilitySet: recoveryAvailabilitySet, selectedRecoveryAzureNetworkId: selectedRecoveryAzureNetworkId, selectedTfoAzureNetworkId: selectedTfoAzureNetworkId, vmNics: vmNics, vmSyncedConfigDetails: vmSyncedConfigDetails, monitoringPercentageCompletion: monitoringPercentageCompletion, monitoringJobType: monitoringJobType, lastHeartbeat: lastHeartbeat, agentVersion: agentVersion, agentExpireOn: agentExpireOn, isReplicationAgentUpdateRequired: isReplicationAgentUpdateRequired, agentCertificateExpireOn: agentCertificateExpireOn, isReplicationAgentCertificateUpdateRequired: isReplicationAgentCertificateUpdateRequired, recoveryFabricObjectId: recoveryFabricObjectId, vmProtectionState: vmProtectionState, vmProtectionStateDescription: vmProtectionStateDescription, lifecycleId: lifecycleId, testFailoverRecoveryFabricObjectId: testFailoverRecoveryFabricObjectId, rpoInSeconds: rpoInSeconds, lastRpoCalculatedOn: lastRpoCalculatedOn, primaryAvailabilityZone: primaryAvailabilityZone, recoveryAvailabilityZone: recoveryAvailabilityZone, primaryExtendedLocation: primaryExtendedLocation, recoveryExtendedLocation: recoveryExtendedLocation, vmEncryptionType: vmEncryptionType, tfoAzureVmName: tfoAzureVmName, recoveryAzureGeneration: recoveryAzureGeneration, recoveryProximityPlacementGroupId: recoveryProximityPlacementGroupId, autoProtectionOfDataDisk: autoProtectionOfDataDisk, recoveryVirtualMachineScaleSetId: recoveryVirtualMachineScaleSetId, recoveryCapacityReservationGroupId: recoveryCapacityReservationGroupId, churnOptionSelected: default);
+ return A2AReplicationDetails(fabricObjectId: fabricObjectId, initialPrimaryZone: initialPrimaryZone, initialPrimaryFabricLocation: initialPrimaryFabricLocation, initialRecoveryZone: initialRecoveryZone, initialPrimaryExtendedLocation: initialPrimaryExtendedLocation, initialRecoveryExtendedLocation: initialRecoveryExtendedLocation, initialRecoveryFabricLocation: initialRecoveryFabricLocation, multiVmGroupId: multiVmGroupId, multiVmGroupName: multiVmGroupName, multiVmGroupCreateOption: multiVmGroupCreateOption, managementId: managementId, protectionClusterId: default, isClusterInfraReady: default, protectedDisks: protectedDisks, unprotectedDisks: unprotectedDisks, protectedManagedDisks: protectedManagedDisks, recoveryBootDiagStorageAccountId: recoveryBootDiagStorageAccountId, primaryFabricLocation: primaryFabricLocation, recoveryFabricLocation: recoveryFabricLocation, osType: osType, recoveryAzureVmSize: recoveryAzureVmSize, recoveryAzureVmName: recoveryAzureVmName, recoveryAzureResourceGroupId: recoveryAzureResourceGroupId, recoveryCloudService: recoveryCloudService, recoveryAvailabilitySet: recoveryAvailabilitySet, selectedRecoveryAzureNetworkId: selectedRecoveryAzureNetworkId, selectedTfoAzureNetworkId: selectedTfoAzureNetworkId, vmNics: vmNics, vmSyncedConfigDetails: vmSyncedConfigDetails, monitoringPercentageCompletion: monitoringPercentageCompletion, monitoringJobType: monitoringJobType, lastHeartbeat: lastHeartbeat, agentVersion: agentVersion, agentExpireOn: agentExpireOn, isReplicationAgentUpdateRequired: isReplicationAgentUpdateRequired, agentCertificateExpireOn: agentCertificateExpireOn, isReplicationAgentCertificateUpdateRequired: isReplicationAgentCertificateUpdateRequired, recoveryFabricObjectId: recoveryFabricObjectId, vmProtectionState: vmProtectionState, vmProtectionStateDescription: vmProtectionStateDescription, lifecycleId: lifecycleId, testFailoverRecoveryFabricObjectId: testFailoverRecoveryFabricObjectId, rpoInSeconds: rpoInSeconds, lastRpoCalculatedOn: lastRpoCalculatedOn, primaryAvailabilityZone: primaryAvailabilityZone, recoveryAvailabilityZone: recoveryAvailabilityZone, primaryExtendedLocation: primaryExtendedLocation, recoveryExtendedLocation: recoveryExtendedLocation, vmEncryptionType: vmEncryptionType, tfoAzureVmName: tfoAzureVmName, recoveryAzureGeneration: recoveryAzureGeneration, recoveryProximityPlacementGroupId: recoveryProximityPlacementGroupId, autoProtectionOfDataDisk: autoProtectionOfDataDisk, recoveryVirtualMachineScaleSetId: recoveryVirtualMachineScaleSetId, recoveryCapacityReservationGroupId: recoveryCapacityReservationGroupId, churnOptionSelected: default);
}
/// Initializes a new instance of HyperVReplicaAzureReplicationDetails.
@@ -6118,7 +6857,7 @@ public static A2AReplicationDetails A2AReplicationDetails(ResourceIdentifier fab
[EditorBrowsable(EditorBrowsableState.Never)]
public static HyperVReplicaAzureReplicationDetails HyperVReplicaAzureReplicationDetails(IEnumerable azureVmDiskDetails, string recoveryAzureVmName, string recoveryAzureVmSize, string recoveryAzureStorageAccount, ResourceIdentifier recoveryAzureLogStorageAccountId, DateTimeOffset? lastReplicatedOn, long? rpoInSeconds, DateTimeOffset? lastRpoCalculatedOn, string vmId, string vmProtectionState, string vmProtectionStateDescription, InitialReplicationDetails initialReplicationDetails, IEnumerable vmNics, ResourceIdentifier selectedRecoveryAzureNetworkId, string selectedSourceNicId, string encryption, SiteRecoveryOSDetails osDetails, int? sourceVmRamSizeInMB, int? sourceVmCpuCount, string enableRdpOnTargetOption, ResourceIdentifier recoveryAzureResourceGroupId, ResourceIdentifier recoveryAvailabilitySetId, string targetAvailabilityZone, ResourceIdentifier targetProximityPlacementGroupId, string useManagedDisks, string licenseType, string sqlServerLicenseType, DateTimeOffset? lastRecoveryPointReceived, IReadOnlyDictionary targetVmTags, IReadOnlyDictionary seedManagedDiskTags, IReadOnlyDictionary targetManagedDiskTags, IReadOnlyDictionary targetNicTags, IEnumerable protectedManagedDisks)
{
- return HyperVReplicaAzureReplicationDetails(azureVmDiskDetails: azureVmDiskDetails, recoveryAzureVmName: recoveryAzureVmName, recoveryAzureVmSize: recoveryAzureVmSize, recoveryAzureStorageAccount: recoveryAzureStorageAccount, recoveryAzureLogStorageAccountId: recoveryAzureLogStorageAccountId, lastReplicatedOn: lastReplicatedOn, rpoInSeconds: rpoInSeconds, lastRpoCalculatedOn: lastRpoCalculatedOn, vmId: vmId, vmProtectionState: vmProtectionState, vmProtectionStateDescription: vmProtectionStateDescription, initialReplicationDetails: initialReplicationDetails, vmNics: vmNics, selectedRecoveryAzureNetworkId: selectedRecoveryAzureNetworkId, selectedSourceNicId: selectedSourceNicId, encryption: encryption, osDetails: osDetails, sourceVmRamSizeInMB: sourceVmRamSizeInMB, sourceVmCpuCount: sourceVmCpuCount, enableRdpOnTargetOption: enableRdpOnTargetOption, recoveryAzureResourceGroupId: recoveryAzureResourceGroupId, recoveryAvailabilitySetId: recoveryAvailabilitySetId, targetAvailabilityZone: targetAvailabilityZone, targetProximityPlacementGroupId: targetProximityPlacementGroupId, useManagedDisks: useManagedDisks, licenseType: licenseType, sqlServerLicenseType: sqlServerLicenseType, lastRecoveryPointReceived: lastRecoveryPointReceived, targetVmTags: targetVmTags, seedManagedDiskTags: seedManagedDiskTags, targetManagedDiskTags: targetManagedDiskTags, targetNicTags: targetNicTags, protectedManagedDisks: protectedManagedDisks, allAvailableOSUpgradeConfigurations: default);
+ return HyperVReplicaAzureReplicationDetails(azureVmDiskDetails: azureVmDiskDetails, recoveryAzureVmName: recoveryAzureVmName, recoveryAzureVmSize: recoveryAzureVmSize, recoveryAzureStorageAccount: recoveryAzureStorageAccount, recoveryAzureLogStorageAccountId: recoveryAzureLogStorageAccountId, lastReplicatedOn: lastReplicatedOn, rpoInSeconds: rpoInSeconds, lastRpoCalculatedOn: lastRpoCalculatedOn, vmId: vmId, vmProtectionState: vmProtectionState, vmProtectionStateDescription: vmProtectionStateDescription, initialReplicationDetails: initialReplicationDetails, vmNics: vmNics, selectedRecoveryAzureNetworkId: selectedRecoveryAzureNetworkId, selectedSourceNicId: selectedSourceNicId, encryption: encryption, osDetails: osDetails, sourceVmRamSizeInMB: sourceVmRamSizeInMB, sourceVmCpuCount: sourceVmCpuCount, enableRdpOnTargetOption: enableRdpOnTargetOption, recoveryAzureResourceGroupId: recoveryAzureResourceGroupId, recoveryAvailabilitySetId: recoveryAvailabilitySetId, targetAvailabilityZone: targetAvailabilityZone, targetProximityPlacementGroupId: targetProximityPlacementGroupId, useManagedDisks: useManagedDisks, licenseType: licenseType, sqlServerLicenseType: sqlServerLicenseType, linuxLicenseType: default, lastRecoveryPointReceived: lastRecoveryPointReceived, targetVmTags: targetVmTags, seedManagedDiskTags: seedManagedDiskTags, targetManagedDiskTags: targetManagedDiskTags, targetNicTags: targetNicTags, protectedManagedDisks: protectedManagedDisks, allAvailableOSUpgradeConfigurations: default, targetVmSecurityProfile: default);
}
/// Initializes a new instance of InMageAzureV2ReplicationDetails.
@@ -6243,7 +6982,7 @@ public static InMageAzureV2ReplicationDetails InMageAzureV2ReplicationDetails(st
[EditorBrowsable(EditorBrowsableState.Never)]
public static VMwareCbtMigrationDetails VMwareCbtMigrationDetails(ResourceIdentifier vmwareMachineId, string osType, string osName, string firmwareType, string targetGeneration, string licenseType, string sqlServerLicenseType, ResourceIdentifier dataMoverRunAsAccountId, ResourceIdentifier snapshotRunAsAccountId, ResourceIdentifier storageAccountId, string targetVmName, string targetVmSize, string targetLocation, ResourceIdentifier targetResourceGroupId, ResourceIdentifier targetAvailabilitySetId, string targetAvailabilityZone, ResourceIdentifier targetProximityPlacementGroupId, ResourceIdentifier confidentialVmKeyVaultId, VMwareCbtSecurityProfileProperties targetVmSecurityProfile, ResourceIdentifier targetBootDiagnosticsStorageAccountId, IReadOnlyDictionary targetVmTags, IEnumerable protectedDisks, ResourceIdentifier targetNetworkId, ResourceIdentifier testNetworkId, IEnumerable vmNics, IReadOnlyDictionary targetNicTags, ResourceIdentifier migrationRecoveryPointId, DateTimeOffset? lastRecoveryPointReceived, ResourceIdentifier lastRecoveryPointId, int? initialSeedingProgressPercentage, int? migrationProgressPercentage, int? resyncProgressPercentage, int? resumeProgressPercentage, long? initialSeedingRetryCount, long? resyncRetryCount, long? resumeRetryCount, string resyncRequired, SiteRecoveryResyncState? resyncState, string performAutoResync, IReadOnlyDictionary seedDiskTags, IReadOnlyDictionary targetDiskTags, IEnumerable supportedOSVersions)
{
- return VMwareCbtMigrationDetails(vmwareMachineId: vmwareMachineId, osType: osType, osName: osName, firmwareType: firmwareType, targetGeneration: targetGeneration, licenseType: licenseType, sqlServerLicenseType: sqlServerLicenseType, dataMoverRunAsAccountId: dataMoverRunAsAccountId, snapshotRunAsAccountId: snapshotRunAsAccountId, storageAccountId: storageAccountId, targetVmName: targetVmName, targetVmSize: targetVmSize, targetLocation: targetLocation, targetResourceGroupId: targetResourceGroupId, targetAvailabilitySetId: targetAvailabilitySetId, targetAvailabilityZone: targetAvailabilityZone, targetProximityPlacementGroupId: targetProximityPlacementGroupId, confidentialVmKeyVaultId: confidentialVmKeyVaultId, targetVmSecurityProfile: targetVmSecurityProfile, targetBootDiagnosticsStorageAccountId: targetBootDiagnosticsStorageAccountId, targetVmTags: targetVmTags, protectedDisks: protectedDisks, targetNetworkId: targetNetworkId, testNetworkId: testNetworkId, vmNics: vmNics, targetNicTags: targetNicTags, migrationRecoveryPointId: migrationRecoveryPointId, lastRecoveryPointReceived: lastRecoveryPointReceived, lastRecoveryPointId: lastRecoveryPointId, initialSeedingProgressPercentage: initialSeedingProgressPercentage, migrationProgressPercentage: migrationProgressPercentage, resyncProgressPercentage: resyncProgressPercentage, resumeProgressPercentage: resumeProgressPercentage, deltaSyncProgressPercentage: default, isCheckSumResyncCycle: default, initialSeedingRetryCount: initialSeedingRetryCount, resyncRetryCount: resyncRetryCount, resumeRetryCount: resumeRetryCount, deltaSyncRetryCount: default, resyncRequired: resyncRequired, resyncState: resyncState, performAutoResync: performAutoResync, seedDiskTags: seedDiskTags, targetDiskTags: targetDiskTags, supportedOSVersions: supportedOSVersions, applianceMonitoringDetails: default, gatewayOperationDetails: default, operationName: default);
+ return VMwareCbtMigrationDetails(vmwareMachineId: vmwareMachineId, osType: osType, osName: osName, firmwareType: firmwareType, targetGeneration: targetGeneration, licenseType: licenseType, sqlServerLicenseType: sqlServerLicenseType, linuxLicenseType: default, dataMoverRunAsAccountId: dataMoverRunAsAccountId, snapshotRunAsAccountId: snapshotRunAsAccountId, storageAccountId: storageAccountId, targetVmName: targetVmName, targetVmSize: targetVmSize, targetLocation: targetLocation, targetResourceGroupId: targetResourceGroupId, targetAvailabilitySetId: targetAvailabilitySetId, targetAvailabilityZone: targetAvailabilityZone, targetProximityPlacementGroupId: targetProximityPlacementGroupId, confidentialVmKeyVaultId: confidentialVmKeyVaultId, targetVmSecurityProfile: targetVmSecurityProfile, targetBootDiagnosticsStorageAccountId: targetBootDiagnosticsStorageAccountId, targetVmTags: targetVmTags, protectedDisks: protectedDisks, targetNetworkId: targetNetworkId, testNetworkId: testNetworkId, vmNics: vmNics, targetNicTags: targetNicTags, migrationRecoveryPointId: migrationRecoveryPointId, lastRecoveryPointReceived: lastRecoveryPointReceived, lastRecoveryPointId: lastRecoveryPointId, initialSeedingProgressPercentage: initialSeedingProgressPercentage, migrationProgressPercentage: migrationProgressPercentage, resyncProgressPercentage: resyncProgressPercentage, resumeProgressPercentage: resumeProgressPercentage, deltaSyncProgressPercentage: default, isCheckSumResyncCycle: default, initialSeedingRetryCount: initialSeedingRetryCount, resyncRetryCount: resyncRetryCount, resumeRetryCount: resumeRetryCount, deltaSyncRetryCount: default, resyncRequired: resyncRequired, resyncState: resyncState, performAutoResync: performAutoResync, seedDiskTags: seedDiskTags, targetDiskTags: targetDiskTags, supportedOSVersions: supportedOSVersions, applianceMonitoringDetails: default, gatewayOperationDetails: default, operationName: default);
}
/// Initializes a new instance of VMwareCbtProtectedDiskDetails.
@@ -6265,7 +7004,7 @@ public static VMwareCbtMigrationDetails VMwareCbtMigrationDetails(ResourceIdenti
[EditorBrowsable(EditorBrowsableState.Never)]
public static VMwareCbtProtectedDiskDetails VMwareCbtProtectedDiskDetails(string diskId, string diskName, SiteRecoveryDiskAccountType? diskType, string diskPath, string isOSDisk, long? capacityInBytes, ResourceIdentifier logStorageAccountId, string logStorageAccountSasSecretName, ResourceIdentifier diskEncryptionSetId, string seedManagedDiskId, Uri seedBlobUri, string targetManagedDiskId, Uri targetBlobUri, string targetDiskName)
{
- return VMwareCbtProtectedDiskDetails(diskId: diskId, diskName: diskName, diskType: diskType, diskPath: diskPath, isOSDisk: isOSDisk, capacityInBytes: capacityInBytes, logStorageAccountId: logStorageAccountId, logStorageAccountSasSecretName: logStorageAccountSasSecretName, diskEncryptionSetId: diskEncryptionSetId, seedManagedDiskId: seedManagedDiskId, seedBlobUri: seedBlobUri, targetManagedDiskId: targetManagedDiskId, targetBlobUri: targetBlobUri, targetDiskName: targetDiskName, gatewayOperationDetails: default);
+ return VMwareCbtProtectedDiskDetails(diskId: diskId, diskName: diskName, diskType: diskType, diskPath: diskPath, isOSDisk: isOSDisk, capacityInBytes: capacityInBytes, logStorageAccountId: logStorageAccountId, logStorageAccountSasSecretName: logStorageAccountSasSecretName, diskEncryptionSetId: diskEncryptionSetId, seedManagedDiskId: seedManagedDiskId, seedBlobUri: seedBlobUri, targetManagedDiskId: targetManagedDiskId, targetBlobUri: targetBlobUri, targetDiskName: targetDiskName, gatewayOperationDetails: default, sectorSizeInBytes: default, iops: default, throughputInMbps: default, diskSizeInGB: default);
}
}
}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointCollection.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointCollection.cs
new file mode 100644
index 000000000000..3f6f97cc7ebb
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointCollection.cs
@@ -0,0 +1,400 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get a instance call the GetClusterRecoveryPoints method from an instance of .
+ ///
+ public partial class ClusterRecoveryPointCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _clusterRecoveryPointClientDiagnostics;
+ private readonly ClusterRecoveryPointRestOperations _clusterRecoveryPointRestClient;
+ private readonly ClientDiagnostics _clusterRecoveryPointClientDiagnostics0;
+ private readonly ClusterRecoveryPointsRestOperations _clusterRecoveryPointRestClient0;
+
+ /// Initializes a new instance of the class for mocking.
+ protected ClusterRecoveryPointCollection()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the parent resource that is the target of operations.
+ internal ClusterRecoveryPointCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _clusterRecoveryPointClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesSiteRecovery", ClusterRecoveryPointResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ClusterRecoveryPointResource.ResourceType, out string clusterRecoveryPointApiVersion);
+ _clusterRecoveryPointRestClient = new ClusterRecoveryPointRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, clusterRecoveryPointApiVersion);
+ _clusterRecoveryPointClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesSiteRecovery", ClusterRecoveryPointResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ClusterRecoveryPointResource.ResourceType, out string clusterRecoveryPointApiVersion);
+ _clusterRecoveryPointRestClient = new ClusterRecoveryPointsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, clusterRecoveryPointApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Get the details of specified recovery point.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoint_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The recovery point name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string recoveryPointName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(recoveryPointName, nameof(recoveryPointName));
+
+ using var scope = _clusterRecoveryPointClientDiagnostics.CreateScope("ClusterRecoveryPointCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _clusterRecoveryPointRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ClusterRecoveryPointResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get the details of specified recovery point.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoint_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The recovery point name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string recoveryPointName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(recoveryPointName, nameof(recoveryPointName));
+
+ using var scope = _clusterRecoveryPointClientDiagnostics.CreateScope("ClusterRecoveryPointCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _clusterRecoveryPointRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ClusterRecoveryPointResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// The list of cluster recovery points.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoints_ListByReplicationProtectionCluster
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _clusterRecoveryPointRestClient.CreateListByReplicationProtectionClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _clusterRecoveryPointRestClient.CreateListByReplicationProtectionClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ClusterRecoveryPointResource(Client, ClusterRecoveryPointData.DeserializeClusterRecoveryPointData(e)), _clusterRecoveryPointClientDiagnostics, Pipeline, "ClusterRecoveryPointCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// The list of cluster recovery points.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoints_ListByReplicationProtectionCluster
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _clusterRecoveryPointRestClient.CreateListByReplicationProtectionClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _clusterRecoveryPointRestClient.CreateListByReplicationProtectionClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ClusterRecoveryPointResource(Client, ClusterRecoveryPointData.DeserializeClusterRecoveryPointData(e)), _clusterRecoveryPointClientDiagnostics, Pipeline, "ClusterRecoveryPointCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoint_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The recovery point name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string recoveryPointName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(recoveryPointName, nameof(recoveryPointName));
+
+ using var scope = _clusterRecoveryPointClientDiagnostics.CreateScope("ClusterRecoveryPointCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _clusterRecoveryPointRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoint_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The recovery point name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string recoveryPointName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(recoveryPointName, nameof(recoveryPointName));
+
+ using var scope = _clusterRecoveryPointClientDiagnostics.CreateScope("ClusterRecoveryPointCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _clusterRecoveryPointRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointName, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoint_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The recovery point name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string recoveryPointName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(recoveryPointName, nameof(recoveryPointName));
+
+ using var scope = _clusterRecoveryPointClientDiagnostics.CreateScope("ClusterRecoveryPointCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _clusterRecoveryPointRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new ClusterRecoveryPointResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoint_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The recovery point name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string recoveryPointName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(recoveryPointName, nameof(recoveryPointName));
+
+ using var scope = _clusterRecoveryPointClientDiagnostics.CreateScope("ClusterRecoveryPointCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _clusterRecoveryPointRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, recoveryPointName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new ClusterRecoveryPointResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
+ {
+ return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointData.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointData.Serialization.cs
new file mode 100644
index 000000000000..23e5f00281ff
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointData.Serialization.cs
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.RecoveryServicesSiteRecovery.Models;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery
+{
+ public partial class ClusterRecoveryPointData : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ClusterRecoveryPointData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(ClusterRecoveryPointType))
+ {
+ writer.WritePropertyName("type"u8);
+ writer.WriteStringValue(ClusterRecoveryPointType);
+ }
+ if (Optional.IsDefined(Properties))
+ {
+ writer.WritePropertyName("properties"u8);
+ writer.WriteObjectValue(Properties, options);
+ }
+ }
+
+ ClusterRecoveryPointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ClusterRecoveryPointData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeClusterRecoveryPointData(document.RootElement, options);
+ }
+
+ internal static ClusterRecoveryPointData DeserializeClusterRecoveryPointData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string type = default;
+ ClusterRecoveryPointProperties properties = default;
+ ResourceIdentifier id = default;
+ string name = default;
+ ResourceType type0 = default;
+ SystemData systemData = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("type"u8))
+ {
+ type = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ properties = ClusterRecoveryPointProperties.DeserializeClusterRecoveryPointProperties(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("id"u8))
+ {
+ id = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("type"u8))
+ {
+ type0 = new ResourceType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("systemData"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ systemData = JsonSerializer.Deserialize(property.Value.GetRawText());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ClusterRecoveryPointData(
+ id,
+ name,
+ type0,
+ systemData,
+ type,
+ properties,
+ serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(ClusterRecoveryPointData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ClusterRecoveryPointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions);
+ return DeserializeClusterRecoveryPointData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ClusterRecoveryPointData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointData.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointData.cs
new file mode 100644
index 000000000000..46e0bb6d9d46
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointData.cs
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.RecoveryServicesSiteRecovery.Models;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery
+{
+ ///
+ /// A class representing the ClusterRecoveryPoint data model.
+ /// Recovery point.
+ ///
+ public partial class ClusterRecoveryPointData : ResourceData
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ internal ClusterRecoveryPointData()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The resource type.
+ /// The recovery point properties.
+ /// Keeps track of any properties unknown to the library.
+ internal ClusterRecoveryPointData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string clusterRecoveryPointType, ClusterRecoveryPointProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ ClusterRecoveryPointType = clusterRecoveryPointType;
+ Properties = properties;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The resource type.
+ public string ClusterRecoveryPointType { get; }
+ /// The recovery point properties.
+ public ClusterRecoveryPointProperties Properties { get; }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointResource.Serialization.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointResource.Serialization.cs
new file mode 100644
index 000000000000..a53669131ce9
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointResource.Serialization.cs
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery
+{
+ public partial class ClusterRecoveryPointResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ ClusterRecoveryPointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ ClusterRecoveryPointData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointResource.cs
new file mode 100644
index 000000000000..bedf6fbdcd9d
--- /dev/null
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/ClusterRecoveryPointResource.cs
@@ -0,0 +1,174 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.RecoveryServicesSiteRecovery
+{
+ ///
+ /// A Class representing a ClusterRecoveryPoint along with the instance operations that can be performed on it.
+ /// If you have a you can construct a
+ /// from an instance of using the GetClusterRecoveryPointResource method.
+ /// Otherwise you can get one from its parent resource using the GetClusterRecoveryPoint method.
+ ///
+ public partial class ClusterRecoveryPointResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The resourceName.
+ /// The fabricName.
+ /// The protectionContainerName.
+ /// The replicationProtectionClusterName.
+ /// The recoveryPointName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName, string fabricName, string protectionContainerName, string replicationProtectionClusterName, string recoveryPointName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _clusterRecoveryPointClientDiagnostics;
+ private readonly ClusterRecoveryPointRestOperations _clusterRecoveryPointRestClient;
+ private readonly ClusterRecoveryPointData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectionClusters/recoveryPoints";
+
+ /// Initializes a new instance of the class for mocking.
+ protected ClusterRecoveryPointResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal ClusterRecoveryPointResource(ArmClient client, ClusterRecoveryPointData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal ClusterRecoveryPointResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _clusterRecoveryPointClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesSiteRecovery", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string clusterRecoveryPointApiVersion);
+ _clusterRecoveryPointRestClient = new ClusterRecoveryPointRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, clusterRecoveryPointApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ /// Throws if there is no data loaded in the current instance.
+ public virtual ClusterRecoveryPointData Data
+ {
+ get
+ {
+ if (!HasData)
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ return _data;
+ }
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+
+ ///
+ /// Get the details of specified recovery point.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoint_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _clusterRecoveryPointClientDiagnostics.CreateScope("ClusterRecoveryPointResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _clusterRecoveryPointRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ClusterRecoveryPointResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get the details of specified recovery point.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}/recoveryPoints/{recoveryPointName}
+ ///
+ /// -
+ /// Operation Id
+ /// ClusterRecoveryPoint_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _clusterRecoveryPointClientDiagnostics.CreateScope("ClusterRecoveryPointResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _clusterRecoveryPointRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ClusterRecoveryPointResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/MockableRecoveryServicesSiteRecoveryArmClient.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/MockableRecoveryServicesSiteRecoveryArmClient.cs
index 2ace92574b67..41d4f0e07910 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/MockableRecoveryServicesSiteRecoveryArmClient.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/MockableRecoveryServicesSiteRecoveryArmClient.cs
@@ -190,6 +190,42 @@ public virtual SiteRecoveryPointResource GetSiteRecoveryPointResource(ResourceId
return new SiteRecoveryPointResource(Client, id);
}
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(ResourceIdentifier id)
+ {
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource.ValidateResourceId(id);
+ return new VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource GetVaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource(ResourceIdentifier id)
+ {
+ VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource.ValidateResourceId(id);
+ return new VaultReplicationFabricReplicationProtectionContainerReplicationProtectionClusterOperationResultResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual ClusterRecoveryPointResource GetClusterRecoveryPointResource(ResourceIdentifier id)
+ {
+ ClusterRecoveryPointResource.ValidateResourceId(id);
+ return new ClusterRecoveryPointResource(Client, id);
+ }
+
///
/// Gets an object representing a along with the instance operations that can be performed on it but with no data.
/// You can use to create a from its components.
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/MockableRecoveryServicesSiteRecoveryResourceGroupResource.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/MockableRecoveryServicesSiteRecoveryResourceGroupResource.cs
index 2103a298c82d..f26aea17e4c4 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/MockableRecoveryServicesSiteRecoveryResourceGroupResource.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/MockableRecoveryServicesSiteRecoveryResourceGroupResource.cs
@@ -30,6 +30,8 @@ public partial class MockableRecoveryServicesSiteRecoveryResourceGroupResource :
private ReplicationMigrationItemsRestOperations _siteRecoveryMigrationItemReplicationMigrationItemsRestClient;
private ClientDiagnostics _replicationProtectedItemClientDiagnostics;
private ReplicationProtectedItemsRestOperations _replicationProtectedItemRestClient;
+ private ClientDiagnostics _replicationProtectionClustersClientDiagnostics;
+ private ReplicationProtectionClustersRestOperations _replicationProtectionClustersRestClient;
private ClientDiagnostics _protectionContainerMappingReplicationProtectionContainerMappingsClientDiagnostics;
private ReplicationProtectionContainerMappingsRestOperations _protectionContainerMappingReplicationProtectionContainerMappingsRestClient;
private ClientDiagnostics _siteRecoveryServicesProviderReplicationRecoveryServicesProvidersClientDiagnostics;
@@ -69,6 +71,8 @@ internal MockableRecoveryServicesSiteRecoveryResourceGroupResource(ArmClient cli
private ReplicationMigrationItemsRestOperations SiteRecoveryMigrationItemReplicationMigrationItemsRestClient => _siteRecoveryMigrationItemReplicationMigrationItemsRestClient ??= new ReplicationMigrationItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(SiteRecoveryMigrationItemResource.ResourceType));
private ClientDiagnostics ReplicationProtectedItemClientDiagnostics => _replicationProtectedItemClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesSiteRecovery", ReplicationProtectedItemResource.ResourceType.Namespace, Diagnostics);
private ReplicationProtectedItemsRestOperations ReplicationProtectedItemRestClient => _replicationProtectedItemRestClient ??= new ReplicationProtectedItemsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ReplicationProtectedItemResource.ResourceType));
+ private ClientDiagnostics ReplicationProtectionClustersClientDiagnostics => _replicationProtectionClustersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesSiteRecovery", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ private ReplicationProtectionClustersRestOperations ReplicationProtectionClustersRestClient => _replicationProtectionClustersRestClient ??= new ReplicationProtectionClustersRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
private ClientDiagnostics ProtectionContainerMappingReplicationProtectionContainerMappingsClientDiagnostics => _protectionContainerMappingReplicationProtectionContainerMappingsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesSiteRecovery", ProtectionContainerMappingResource.ResourceType.Namespace, Diagnostics);
private ReplicationProtectionContainerMappingsRestOperations ProtectionContainerMappingReplicationProtectionContainerMappingsRestClient => _protectionContainerMappingReplicationProtectionContainerMappingsRestClient ??= new ReplicationProtectionContainerMappingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(ProtectionContainerMappingResource.ResourceType));
private ClientDiagnostics SiteRecoveryServicesProviderReplicationRecoveryServicesProvidersClientDiagnostics => _siteRecoveryServicesProviderReplicationRecoveryServicesProvidersClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RecoveryServicesSiteRecovery", SiteRecoveryServicesProviderResource.ResourceType.Namespace, Diagnostics);
@@ -113,7 +117,7 @@ public virtual SiteRecoveryAlertCollection GetSiteRecoveryAlerts(string resource
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -145,7 +149,7 @@ public virtual async Task> GetSiteRecoveryAl
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -187,7 +191,7 @@ public virtual ReplicationEligibilityResultCollection GetReplicationEligibilityR
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -218,7 +222,7 @@ public virtual async Task> GetRep
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -259,7 +263,7 @@ public virtual SiteRecoveryEventCollection GetSiteRecoveryEvents(string resource
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -291,7 +295,7 @@ public virtual async Task> GetSiteRecoveryEv
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -333,7 +337,7 @@ public virtual SiteRecoveryFabricCollection GetSiteRecoveryFabrics(string resour
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -366,7 +370,7 @@ public virtual async Task> GetSiteRecoveryF
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -409,7 +413,7 @@ public virtual SiteRecoveryJobCollection GetSiteRecoveryJobs(string resourceName
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -441,7 +445,7 @@ public virtual async Task> GetSiteRecoveryJobA
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -483,7 +487,7 @@ public virtual SiteRecoveryPolicyCollection GetSiteRecoveryPolicies(string resou
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -515,7 +519,7 @@ public virtual async Task> GetSiteRecoveryP
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -557,7 +561,7 @@ public virtual ReplicationProtectionIntentCollection GetReplicationProtectionInt
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -589,7 +593,7 @@ public virtual async Task> GetRepl
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -631,7 +635,7 @@ public virtual SiteRecoveryRecoveryPlanCollection GetSiteRecoveryRecoveryPlans(s
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -663,7 +667,7 @@ public virtual async Task> GetSiteRec
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -705,7 +709,7 @@ public virtual SiteRecoveryVaultSettingCollection GetSiteRecoveryVaultSettings(s
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -737,7 +741,7 @@ public virtual async Task> GetSiteRec
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -769,7 +773,7 @@ public virtual Response GetSiteRecoveryVaultSe
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
///
///
@@ -801,7 +805,7 @@ public virtual AsyncPageable GetReplicationApp
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
///
///
@@ -833,7 +837,7 @@ public virtual Pageable GetReplicationApplianc
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -868,7 +872,7 @@ public virtual AsyncPageable GetSiteRecoveryNetwork
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -903,7 +907,7 @@ public virtual Pageable GetSiteRecoveryNetworks(str
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -938,7 +942,7 @@ public virtual AsyncPageable GetSiteRecovery
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -973,7 +977,7 @@ public virtual Pageable GetSiteRecoveryNetwo
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1008,7 +1012,7 @@ public virtual AsyncPageable GetSiteRec
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1043,7 +1047,7 @@ public virtual Pageable GetSiteRecovery
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1081,7 +1085,7 @@ public virtual AsyncPageable GetSiteRecoveryM
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1119,7 +1123,7 @@ public virtual Pageable GetSiteRecoveryMigrat
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1156,7 +1160,7 @@ public virtual AsyncPageable GetReplicationPro
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1180,6 +1184,72 @@ public virtual Pageable GetReplicationProtecte
return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ReplicationProtectedItemResource(Client, ReplicationProtectedItemData.DeserializeReplicationProtectedItemData(e)), ReplicationProtectedItemClientDiagnostics, Pipeline, "MockableRecoveryServicesSiteRecoveryResourceGroupResource.GetReplicationProtectedItems", "value", "nextLink", cancellationToken);
}
+ ///
+ /// Gets the list of ASR replication protected clusters in the vault.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionClusters
+ ///
+ /// -
+ /// Operation Id
+ /// ReplicationProtectionClusters_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ ///
+ ///
+ /// The name of the recovery services vault.
+ /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null.
+ /// OData filter options.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetReplicationProtectionClustersAsync(string resourceName, string skipToken = null, string filter = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => ReplicationProtectionClustersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, resourceName, skipToken, filter);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ReplicationProtectionClustersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, resourceName, skipToken, filter);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ReplicationProtectionClusterData.DeserializeReplicationProtectionClusterData(e), ReplicationProtectionClustersClientDiagnostics, Pipeline, "MockableRecoveryServicesSiteRecoveryResourceGroupResource.GetReplicationProtectionClusters", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Gets the list of ASR replication protected clusters in the vault.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionClusters
+ ///
+ /// -
+ /// Operation Id
+ /// ReplicationProtectionClusters_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2025-02-01
+ ///
+ ///
+ ///
+ /// The name of the recovery services vault.
+ /// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null.
+ /// OData filter options.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetReplicationProtectionClusters(string resourceName, string skipToken = null, string filter = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName));
+
+ HttpMessage FirstPageRequest(int? pageSizeHint) => ReplicationProtectionClustersRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, resourceName, skipToken, filter);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => ReplicationProtectionClustersRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, resourceName, skipToken, filter);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ReplicationProtectionClusterData.DeserializeReplicationProtectionClusterData(e), ReplicationProtectionClustersClientDiagnostics, Pipeline, "MockableRecoveryServicesSiteRecoveryResourceGroupResource.GetReplicationProtectionClusters", "value", "nextLink", cancellationToken);
+ }
+
///
/// Lists the protection container mappings in the vault.
///
@@ -1193,7 +1263,7 @@ public virtual Pageable GetReplicationProtecte
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1228,7 +1298,7 @@ public virtual AsyncPageable GetProtectionCo
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1263,7 +1333,7 @@ public virtual Pageable GetProtectionContain
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1298,7 +1368,7 @@ public virtual AsyncPageable GetSiteRecove
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1333,7 +1403,7 @@ public virtual Pageable GetSiteRecoverySer
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1368,7 +1438,7 @@ public virtual AsyncPageable GetStorageClassifica
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1403,7 +1473,7 @@ public virtual Pageable GetStorageClassifications
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1438,7 +1508,7 @@ public virtual AsyncPageable GetStorageCla
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1473,7 +1543,7 @@ public virtual Pageable GetStorageClassifi
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1508,7 +1578,7 @@ public virtual AsyncPageable GetSiteRecoveryVCenter
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
/// -
/// Resource
@@ -1543,7 +1613,7 @@ public virtual Pageable GetSiteRecoveryVCenters(str
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
///
///
@@ -1583,7 +1653,7 @@ public virtual async Task> GetSu
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
///
///
@@ -1623,7 +1693,7 @@ public virtual Response GetSupportedOpera
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
///
///
@@ -1662,7 +1732,7 @@ public virtual async Task> GetReplicationVaultHealt
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
///
///
@@ -1701,7 +1771,7 @@ public virtual Response GetReplicationVaultHealth(string res
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
///
///
@@ -1744,7 +1814,7 @@ public virtual async Task> RefreshReplicationVa
///
/// -
/// Default Api Version
- /// 2023-08-01
+ /// 2025-02-01
///
///
///
diff --git a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/RecoveryServicesSiteRecoveryExtensions.cs b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/RecoveryServicesSiteRecoveryExtensions.cs
index fd642d1c924f..244d39c91186 100644
--- a/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/RecoveryServicesSiteRecoveryExtensions.cs
+++ b/sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/src/Generated/Extensions/RecoveryServicesSiteRecoveryExtensions.cs
@@ -275,6 +275,63 @@ public static SiteRecoveryPointResource GetSiteRecoveryPointResource(this ArmCli
return GetMockableRecoveryServicesSiteRecoveryArmClient(client).GetSiteRecoveryPointResource(id);
}
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock