diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineCollection.cs index c453f4bd5f2c..1c17e953b036 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupEngineCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetDpmAzureBackupServerLajollaBackupEngineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Dpm/BackupEngines_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Dpm/BackupEngines_Get.json // this example is just showing the usage of "BackupEngines_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_GetDpmAzureBackupServerLajollaBackupEngineDetails() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListDpmAzureBackupServerLajollaBackupEngines() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Dpm/BackupEngines_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Dpm/BackupEngines_List.json // this example is just showing the usage of "BackupEngines_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_ListDpmAzureBackupServerLajollaBackupEngines() [Ignore("Only validating compilation of examples")] public async Task Exists_GetDpmAzureBackupServerLajollaBackupEngineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Dpm/BackupEngines_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Dpm/BackupEngines_Get.json // this example is just showing the usage of "BackupEngines_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_GetDpmAzureBackupServerLajollaBackupEngineDetails() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDpmAzureBackupServerLajollaBackupEngineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Dpm/BackupEngines_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Dpm/BackupEngines_Get.json // this example is just showing the usage of "BackupEngines_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineResource.cs index 5333446bdc36..0bbc9150a854 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupEngineResource.cs @@ -19,7 +19,7 @@ public partial class Sample_BackupEngineResource [Ignore("Only validating compilation of examples")] public async Task Get_GetDpmAzureBackupServerLajollaBackupEngineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Dpm/BackupEngines_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Dpm/BackupEngines_Get.json // this example is just showing the usage of "BackupEngines_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobCollection.cs index e0feb1a33700..c6b36f1d7c74 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupJobCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetJobDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/GetJobDetails.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/GetJobDetails.json // this example is just showing the usage of "JobDetails_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_GetJobDetails() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllJobs() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/ListJobs.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/ListJobs.json // this example is just showing the usage of "BackupJobs_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_ListAllJobs() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListJobsWithFilters() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/ListJobsWithAllSupportedFilters.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/ListJobsWithAllSupportedFilters.json // this example is just showing the usage of "BackupJobs_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 @@ -127,7 +127,7 @@ public async Task GetAll_ListJobsWithFilters() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListJobsWithTimeFilter() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/ListJobsWithStartTimeAndEndTimeFilters.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/ListJobsWithStartTimeAndEndTimeFilters.json // this example is just showing the usage of "BackupJobs_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 @@ -164,7 +164,7 @@ public async Task GetAll_ListJobsWithTimeFilter() [Ignore("Only validating compilation of examples")] public async Task Exists_GetJobDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/GetJobDetails.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/GetJobDetails.json // this example is just showing the usage of "JobDetails_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 @@ -194,7 +194,7 @@ public async Task Exists_GetJobDetails() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetJobDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/GetJobDetails.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/GetJobDetails.json // this example is just showing the usage of "JobDetails_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobResource.cs index 38c62a03cf9a..71f92248f780 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupJobResource.cs @@ -19,7 +19,7 @@ public partial class Sample_BackupJobResource [Ignore("Only validating compilation of examples")] public async Task Get_GetJobDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/GetJobDetails.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/GetJobDetails.json // this example is just showing the usage of "JobDetails_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 @@ -50,7 +50,7 @@ public async Task Get_GetJobDetails() [Ignore("Only validating compilation of examples")] public async Task TriggerJobCancellation_CancelJob() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/TriggerCancelJob.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/TriggerCancelJob.json // this example is just showing the usage of "JobCancellations_Trigger" 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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionCollection.cs index 007f376cc099..57e383e88abc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BackupPrivateEndpointConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdatePrivateEndpointConnection() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnection_Put" 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 @@ -70,7 +70,7 @@ public async Task CreateOrUpdate_UpdatePrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndpointConnection() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnection_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 @@ -104,7 +104,7 @@ public async Task Get_GetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateEndpointConnection() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnection_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 @@ -134,7 +134,7 @@ public async Task Exists_GetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateEndpointConnection() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnection_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionResource.cs index 654c19055fc4..1b9896de1664 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupPrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndpointConnection() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnection_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_GetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePrivateEndpointConnection() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/DeletePrivateEndpointConnection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/PrivateEndpointConnection/DeletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnection_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_DeletePrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Update_UpdatePrivateEndpointConnection() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnection_Put" 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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs index 437bd8ca4043..6d91bfe05642 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupProtectedItemCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_EnableProtectionOnAzureIaasVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ConfigureProtection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ConfigureProtection.json // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" 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_EnableProtectionOnAzureIaasVm() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StopProtectionWithRetainDataOnAzureIaasVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/StopProtection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/StopProtection.json // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" 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 CreateOrUpdate_StopProtectionWithRetainDataOnAzureIaasVm() [Ignore("Only validating compilation of examples")] public async Task Get_GetProtectedClassicVirtualMachineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json // this example is just showing the usage of "ProtectedItems_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 @@ -146,7 +146,7 @@ public async Task Get_GetProtectedClassicVirtualMachineDetails() [Ignore("Only validating compilation of examples")] public async Task Get_GetProtectedVirtualMachineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json // this example is just showing the usage of "ProtectedItems_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 @@ -182,7 +182,7 @@ public async Task Get_GetProtectedVirtualMachineDetails() [Ignore("Only validating compilation of examples")] public async Task Exists_GetProtectedClassicVirtualMachineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json // this example is just showing the usage of "ProtectedItems_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 @@ -214,7 +214,7 @@ public async Task Exists_GetProtectedClassicVirtualMachineDetails() [Ignore("Only validating compilation of examples")] public async Task Exists_GetProtectedVirtualMachineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json // this example is just showing the usage of "ProtectedItems_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 @@ -246,7 +246,7 @@ public async Task Exists_GetProtectedVirtualMachineDetails() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetProtectedClassicVirtualMachineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json // this example is just showing the usage of "ProtectedItems_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 @@ -290,7 +290,7 @@ public async Task GetIfExists_GetProtectedClassicVirtualMachineDetails() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetProtectedVirtualMachineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json // this example is just showing the usage of "ProtectedItems_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs index e5d07076cad7..c88f10edcf60 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectedItemResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupProtectedItemResource [Ignore("Only validating compilation of examples")] public async Task Get_GetProtectedClassicVirtualMachineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json // this example is just showing the usage of "ProtectedItems_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_GetProtectedClassicVirtualMachineDetails() [Ignore("Only validating compilation of examples")] public async Task Get_GetProtectedVirtualMachineDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json // this example is just showing the usage of "ProtectedItems_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 @@ -86,7 +86,7 @@ public async Task Get_GetProtectedVirtualMachineDetails() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteProtectionFromAzureVirtualMachine() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/ProtectedItem_Delete.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/ProtectedItem_Delete.json // this example is just showing the usage of "ProtectedItems_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 @@ -115,7 +115,7 @@ public async Task Delete_DeleteProtectionFromAzureVirtualMachine() [Ignore("Only validating compilation of examples")] public async Task Update_EnableProtectionOnAzureIaasVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ConfigureProtection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ConfigureProtection.json // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" 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 @@ -157,7 +157,7 @@ public async Task Update_EnableProtectionOnAzureIaasVm() [Ignore("Only validating compilation of examples")] public async Task Update_StopProtectionWithRetainDataOnAzureIaasVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/StopProtection.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/StopProtection.json // this example is just showing the usage of "ProtectedItems_CreateOrUpdate" 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 @@ -199,7 +199,7 @@ public async Task Update_StopProtectionWithRetainDataOnAzureIaasVm() [Ignore("Only validating compilation of examples")] public async Task TriggerBackup_TriggerBackup() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/TriggerBackup_Post.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/TriggerBackup_Post.json // this example is just showing the usage of "Backups_Trigger" 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 @@ -232,7 +232,7 @@ public async Task TriggerBackup_TriggerBackup() [Ignore("Only validating compilation of examples")] public async Task GetRecoveryPointsRecommendedForMove_GetProtectedAzureVmRecoveryPointsRecommendedForMove() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json // this example is just showing the usage of "RecoveryPointsRecommendedForMove_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 diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerCollection.cs index 2f0fad2f6168..5e1181eaf241 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BackupProtectionContainerCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_RegisterAzureStorageProtectionContainers() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionContainers_Register.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionContainers_Register.json // this example is just showing the usage of "ProtectionContainers_Register" 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 @@ -67,7 +67,7 @@ public async Task CreateOrUpdate_RegisterAzureStorageProtectionContainers() [Ignore("Only validating compilation of examples")] public async Task Get_GetProtectionContainerDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionContainers_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/ProtectionContainers_Get.json // this example is just showing the usage of "ProtectionContainers_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_GetProtectionContainerDetails() [Ignore("Only validating compilation of examples")] public async Task Exists_GetProtectionContainerDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionContainers_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/ProtectionContainers_Get.json // this example is just showing the usage of "ProtectionContainers_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 @@ -133,7 +133,7 @@ public async Task Exists_GetProtectionContainerDetails() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetProtectionContainerDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionContainers_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/ProtectionContainers_Get.json // this example is just showing the usage of "ProtectionContainers_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerResource.cs index 08a7712765a7..16acb0730901 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionContainerResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupProtectionContainerResource [Ignore("Only validating compilation of examples")] public async Task Get_GetProtectionContainerDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionContainers_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/ProtectionContainers_Get.json // this example is just showing the usage of "ProtectionContainers_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_GetProtectionContainerDetails() [Ignore("Only validating compilation of examples")] public async Task Delete_UnregisterProtectionContainer() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionContainers_Unregister.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/ProtectionContainers_Unregister.json // this example is just showing the usage of "ProtectionContainers_Unregister" 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 @@ -80,7 +80,7 @@ public async Task Delete_UnregisterProtectionContainer() [Ignore("Only validating compilation of examples")] public async Task Update_RegisterAzureStorageProtectionContainers() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionContainers_Register.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionContainers_Register.json // this example is just showing the usage of "ProtectionContainers_Register" 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 @@ -123,7 +123,7 @@ public async Task Update_RegisterAzureStorageProtectionContainers() [Ignore("Only validating compilation of examples")] public async Task Inquire_InquireAzureStorageProtectionContainers() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionContainers_Inquire.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionContainers_Inquire.json // this example is just showing the usage of "ProtectionContainers_Inquire" 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 @@ -151,7 +151,7 @@ public async Task Inquire_InquireAzureStorageProtectionContainers() [Ignore("Only validating compilation of examples")] public async Task GetBackupWorkloadItems_ListWorkloadItemsInContainer() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupWorkloadItems_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/BackupWorkloadItems_List.json // this example is just showing the usage of "BackupWorkloadItems_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 diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentCollection.cs index 8ead089c03a3..c6fcb9cc5419 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BackupProtectionIntentCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAzureVmProtectionIntent() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json // this example is just showing the usage of "ProtectionIntent_CreateOrUpdate" 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_CreateOrUpdateAzureVmProtectionIntent() [Ignore("Only validating compilation of examples")] public async Task Get_GetProtectionIntentForAnItem() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupProtectionIntent_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/BackupProtectionIntent_Get.json // this example is just showing the usage of "ProtectionIntent_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_GetProtectionIntentForAnItem() [Ignore("Only validating compilation of examples")] public async Task Exists_GetProtectionIntentForAnItem() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupProtectionIntent_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/BackupProtectionIntent_Get.json // this example is just showing the usage of "ProtectionIntent_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 @@ -131,7 +131,7 @@ public async Task Exists_GetProtectionIntentForAnItem() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetProtectionIntentForAnItem() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupProtectionIntent_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/BackupProtectionIntent_Get.json // this example is just showing the usage of "ProtectionIntent_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentResource.cs index 2a7cc20477a6..5be433c71c53 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionIntentResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupProtectionIntentResource [Ignore("Only validating compilation of examples")] public async Task Get_GetProtectionIntentForAnItem() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupProtectionIntent_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/BackupProtectionIntent_Get.json // this example is just showing the usage of "ProtectionIntent_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_GetProtectionIntentForAnItem() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteProtectionIntentFromItem() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json // this example is just showing the usage of "ProtectionIntent_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 @@ -80,7 +80,7 @@ public async Task Delete_DeleteProtectionIntentFromItem() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateAzureVmProtectionIntent() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json // this example is just showing the usage of "ProtectionIntent_CreateOrUpdate" 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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyCollection.cs index c13199adb5b3..a5241e2809ca 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BackupProtectionPolicyCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAzureStorageVaultStandardProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hardened.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hardened.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 CreateOrUpdate_CreateOrUpdateAzureStorageVaultStandardProtecti [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateDailyAzureStorageProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -223,7 +223,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDailyAzureStorageProtectionPolicy [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithHourlyBackup() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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,6 +314,7 @@ public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWi InstantRPRetentionRangeInDays = 30, TimeZone = "India Standard Time", PolicyType = IaasVmPolicyType.V2, + SnapshotConsistencyType = IaasVmSnapshotConsistencyType.OnlyCrashConsistent, }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); @@ -330,7 +331,7 @@ public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWi [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithDailyBackup() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -416,6 +417,7 @@ public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWi InstantRPRetentionRangeInDays = 30, TimeZone = "India Standard Time", PolicyType = IaasVmPolicyType.V2, + SnapshotConsistencyType = IaasVmSnapshotConsistencyType.OnlyCrashConsistent, }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, policyName, data); @@ -432,7 +434,7 @@ public async Task CreateOrUpdate_CreateOrUpdateEnhancedAzureVmProtectionPolicyWi [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateFullAzureVmProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -524,7 +526,7 @@ public async Task CreateOrUpdate_CreateOrUpdateFullAzureVmProtectionPolicy() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateFullAzureWorkloadProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -657,7 +659,7 @@ public async Task CreateOrUpdate_CreateOrUpdateFullAzureWorkloadProtectionPolicy [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateHourlyAzureStorageProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -763,7 +765,7 @@ public async Task CreateOrUpdate_CreateOrUpdateHourlyAzureStorageProtectionPolic [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateSimpleAzureVmProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -822,7 +824,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSimpleAzureVmProtectionPolicy() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureIaasVmEnhancedProtectionPolicyDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json // this example is just showing the usage of "ProtectionPolicies_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 @@ -856,7 +858,7 @@ public async Task Get_GetAzureIaasVmEnhancedProtectionPolicyDetails() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureIaasVmProtectionPolicyDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionPolicies_Get.json // this example is just showing the usage of "ProtectionPolicies_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 @@ -890,7 +892,7 @@ public async Task Get_GetAzureIaasVmProtectionPolicyDetails() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsAzureIaasVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/BackupPolicies_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/BackupPolicies_List.json // this example is just showing the usage of "BackupPolicies_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 @@ -927,7 +929,7 @@ public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsA [Ignore("Only validating compilation of examples")] public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsAzureIaasVmWithBothV1AndV2Policies() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/v2-List-Policies.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/v2-List-Policies.json // this example is just showing the usage of "BackupPolicies_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 @@ -964,7 +966,7 @@ public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsA [Ignore("Only validating compilation of examples")] public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsAzureWorkload() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupPolicies_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/BackupPolicies_List.json // this example is just showing the usage of "BackupPolicies_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 @@ -1001,7 +1003,7 @@ public async Task GetAll_ListProtectionPoliciesWithBackupManagementTypeFilterAsA [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureIaasVmEnhancedProtectionPolicyDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json // this example is just showing the usage of "ProtectionPolicies_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 @@ -1031,7 +1033,7 @@ public async Task Exists_GetAzureIaasVmEnhancedProtectionPolicyDetails() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureIaasVmProtectionPolicyDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionPolicies_Get.json // this example is just showing the usage of "ProtectionPolicies_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 @@ -1061,7 +1063,7 @@ public async Task Exists_GetAzureIaasVmProtectionPolicyDetails() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureIaasVmEnhancedProtectionPolicyDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json // this example is just showing the usage of "ProtectionPolicies_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 @@ -1103,7 +1105,7 @@ public async Task GetIfExists_GetAzureIaasVmEnhancedProtectionPolicyDetails() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureIaasVmProtectionPolicyDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionPolicies_Get.json // this example is just showing the usage of "ProtectionPolicies_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyResource.cs index b0f8f66f2611..10ddce278a10 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupProtectionPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupProtectionPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureIaasVmEnhancedProtectionPolicyDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json // this example is just showing the usage of "ProtectionPolicies_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_GetAzureIaasVmEnhancedProtectionPolicyDetails() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureIaasVmProtectionPolicyDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionPolicies_Get.json // this example is just showing the usage of "ProtectionPolicies_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 @@ -82,7 +82,7 @@ public async Task Get_GetAzureIaasVmProtectionPolicyDetails() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAzureVmProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json // this example is just showing the usage of "ProtectionPolicies_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 @@ -109,7 +109,7 @@ public async Task Delete_DeleteAzureVmProtectionPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateAzureStorageVaultStandardProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hardened.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hardened.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -207,7 +207,7 @@ public async Task Update_CreateOrUpdateAzureStorageVaultStandardProtectionPolicy [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateDailyAzureStorageProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -305,7 +305,7 @@ public async Task Update_CreateOrUpdateDailyAzureStorageProtectionPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithHourlyBackup() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -393,6 +393,7 @@ public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithHourly InstantRPRetentionRangeInDays = 30, TimeZone = "India Standard Time", PolicyType = IaasVmPolicyType.V2, + SnapshotConsistencyType = IaasVmSnapshotConsistencyType.OnlyCrashConsistent, }, }; ArmOperation lro = await backupProtectionPolicy.UpdateAsync(WaitUntil.Completed, data); @@ -409,7 +410,7 @@ public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithHourly [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithDailyBackup() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -492,6 +493,7 @@ public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithDailyB InstantRPRetentionRangeInDays = 30, TimeZone = "India Standard Time", PolicyType = IaasVmPolicyType.V2, + SnapshotConsistencyType = IaasVmSnapshotConsistencyType.OnlyCrashConsistent, }, }; ArmOperation lro = await backupProtectionPolicy.UpdateAsync(WaitUntil.Completed, data); @@ -508,7 +510,7 @@ public async Task Update_CreateOrUpdateEnhancedAzureVmProtectionPolicyWithDailyB [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateFullAzureVmProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -597,7 +599,7 @@ public async Task Update_CreateOrUpdateFullAzureVmProtectionPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateFullAzureWorkloadProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -727,7 +729,7 @@ public async Task Update_CreateOrUpdateFullAzureWorkloadProtectionPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateHourlyAzureStorageProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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 @@ -830,7 +832,7 @@ public async Task Update_CreateOrUpdateHourlyAzureStorageProtectionPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateSimpleAzureVmProtectionPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json // this example is just showing the usage of "ProtectionPolicies_CreateOrUpdate" 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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointCollection.cs index ea7dafd4da2b..ae1453dbcc42 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_BackupRecoveryPointCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureVmRecoveryPointDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/RecoveryPoints_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/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_GetAzureVmRecoveryPointDetails() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetProtectedAzureVmRecoveryPoints() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/RecoveryPoints_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/RecoveryPoints_List.json // this example is just showing the usage of "RecoveryPoints_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 @@ -95,7 +95,7 @@ public async Task GetAll_GetProtectedAzureVmRecoveryPoints() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureVmRecoveryPointDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/RecoveryPoints_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/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_GetAzureVmRecoveryPointDetails() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureVmRecoveryPointDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/RecoveryPoints_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointResource.cs index bb07df5f7ebb..965664290e2c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupRecoveryPointResource.cs @@ -21,7 +21,7 @@ public partial class Sample_BackupRecoveryPointResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureVmRecoveryPointDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/RecoveryPoints_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/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 @@ -55,7 +55,7 @@ public async Task Get_GetAzureVmRecoveryPointDetails() [Ignore("Only validating compilation of examples")] public async Task MoveRecoveryPoint_TriggerRPMoveOperation() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/TriggerRecoveryPointMove_Post.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/TriggerRecoveryPointMove_Post.json // this example is just showing the usage of "MoveRecoveryPoint" 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 MoveRecoveryPoint_TriggerRPMoveOperation() [Ignore("Only validating compilation of examples")] public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreRequest() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json // this example is just showing the usage of "Restores_Trigger" 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 @@ -148,7 +148,7 @@ public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreRequest() [Ignore("Only validating compilation of examples")] public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json // this example is just showing the usage of "Restores_Trigger" 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 @@ -203,7 +203,7 @@ public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreRequestWithIdentit [Ignore("Only validating compilation of examples")] public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreWithRehydrationRequest() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json // this example is just showing the usage of "Restores_Trigger" 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 @@ -255,7 +255,7 @@ public async Task TriggerRestore_RestoreDisksWithIaasVMRestoreWithRehydrationReq [Ignore("Only validating compilation of examples")] public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreRequest() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json // this example is just showing the usage of "Restores_Trigger" 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 @@ -310,7 +310,7 @@ public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreRequest [Ignore("Only validating compilation of examples")] public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json // this example is just showing the usage of "Restores_Trigger" 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 @@ -368,7 +368,7 @@ public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreRequest [Ignore("Only validating compilation of examples")] public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreWithRehydrationRequest() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json // this example is just showing the usage of "Restores_Trigger" 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 @@ -420,11 +420,67 @@ public async Task TriggerRestore_RestoreToNewAzureIaasVmWithIaasVMRestoreWithReh Console.WriteLine("Succeeded"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task TriggerRestore_RestoreWithResourceGuardEnabled() + { + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/TriggerRestore_ResourceGuardEnabled.json + // this example is just showing the usage of "Restores_Trigger" 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 BackupRecoveryPointResource created on azure + // for more information of creating BackupRecoveryPointResource, please refer to the document of BackupRecoveryPointResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "netsdktestrg"; + string vaultName = "testVault"; + string fabricName = "Azure"; + string containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1"; + string recoveryPointId = "348916168024334"; + ResourceIdentifier backupRecoveryPointResourceId = BackupRecoveryPointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId); + BackupRecoveryPointResource backupRecoveryPoint = client.GetBackupRecoveryPointResource(backupRecoveryPointResourceId); + + // invoke the operation + TriggerRestoreContent content = new TriggerRestoreContent(default) + { + Properties = new IaasVmRestoreContent + { + RecoveryPointId = "348916168024334", + RecoveryType = FileShareRecoveryType.RestoreDisks, + SourceResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"), + Region = new AzureLocation("southeastasia"), + DoesCreateNewCloudService = true, + OriginalStorageAccountOption = false, + EncryptionDetails = new VmEncryptionDetails + { + IsEncryptionEnabled = false, + }, + IdentityInfo = new BackupIdentityInfo + { + IsSystemAssignedIdentity = false, + ManagedIdentityResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"), + }, + IdentityBasedRestoreDetails = new IdentityBasedRestoreDetails + { + TargetStorageAccountId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"), + }, + ResourceGuardOperationRequests = { "/subscriptions/063bf7bc-e4dc-4cde-8840-8416fbd7921e/resourcegroups/ankurRG1/providers/Microsoft.DataProtection/resourceGuards/RG341/triggerRestoreRequests/default" }, + }, + }; + await backupRecoveryPoint.TriggerRestoreAsync(WaitUntil.Completed, content); + + Console.WriteLine("Succeeded"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task ProvisionItemLevelRecoveryConnection_ProvisionInstantItemLevelRecoveryForAzureVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/Provision_Ilr.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/Provision_Ilr.json // this example is just showing the usage of "ItemLevelRecoveryConnections_Provision" 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 @@ -464,7 +520,7 @@ public async Task ProvisionItemLevelRecoveryConnection_ProvisionInstantItemLevel [Ignore("Only validating compilation of examples")] public async Task RevokeItemLevelRecoveryConnection_RevokeInstantItemLevelRecoveryForAzureVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/Revoke_Ilr.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/Revoke_Ilr.json // this example is just showing the usage of "ItemLevelRecoveryConnections_Revoke" 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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigCollection.cs index 4a1d82d445de..74b888284cb4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BackupResourceConfigCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateVaultStorageConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupStorageConfig_Put.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupStorageConfig_Put.json // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_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 @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_UpdateVaultStorageConfiguration() [Ignore("Only validating compilation of examples")] public async Task Get_GetVaultStorageConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupStorageConfig_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupStorageConfig_Get.json // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_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 @@ -96,7 +96,7 @@ public async Task Get_GetVaultStorageConfiguration() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVaultStorageConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupStorageConfig_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupStorageConfig_Get.json // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_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_GetVaultStorageConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVaultStorageConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupStorageConfig_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupStorageConfig_Get.json // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs index fe3dbdd3523e..b81f68613c7e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceConfigResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupResourceConfigResource [Ignore("Only validating compilation of examples")] public async Task Get_GetVaultStorageConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupStorageConfig_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupStorageConfig_Get.json // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_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 @@ -50,7 +50,7 @@ public async Task Get_GetVaultStorageConfiguration() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateVaultStorageConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupStorageConfig_Patch.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupStorageConfig_Patch.json // this example is just showing the usage of "BackupResourceStorageConfigsNonCRR_Patch" 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 @@ -88,7 +88,7 @@ public async Task Update_UpdateVaultStorageConfiguration() [Ignore("Only validating compilation of examples")] public async Task PrepareDataMove_PrepareDataMove() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/BackupDataMove/PrepareDataMove_Post.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/BackupDataMove/PrepareDataMove_Post.json // this example is just showing the usage of "BMSPrepareDataMove" 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 PrepareDataMove_PrepareDataMove() [Ignore("Only validating compilation of examples")] public async Task TriggerDataMove_TriggerDataMove() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/BackupDataMove/TriggerDataMove_Post.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/BackupDataMove/TriggerDataMove_Post.json // this example is just showing the usage of "BMSTriggerDataMove" 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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedCollection.cs index 6421edc870df..43612dd4b3bc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BackupResourceEncryptionConfigExtendedCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateVaultEncryptionConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/BackupResourceEncryptionConfig_Put.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/BackupResourceEncryptionConfig_Put.json // this example is just showing the usage of "BackupResourceEncryptionConfigs_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 @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_UpdateVaultEncryptionConfiguration() [Ignore("Only validating compilation of examples")] public async Task Get_GetVaultEncryptionConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/BackupResourceEncryptionConfig_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/BackupResourceEncryptionConfig_Get.json // this example is just showing the usage of "BackupResourceEncryptionConfigs_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 @@ -93,7 +93,7 @@ public async Task Get_GetVaultEncryptionConfiguration() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVaultEncryptionConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/BackupResourceEncryptionConfig_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/BackupResourceEncryptionConfig_Get.json // this example is just showing the usage of "BackupResourceEncryptionConfigs_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_GetVaultEncryptionConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVaultEncryptionConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/BackupResourceEncryptionConfig_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/BackupResourceEncryptionConfig_Get.json // this example is just showing the usage of "BackupResourceEncryptionConfigs_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs index 2f48003e9d55..2d6087869a5d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceEncryptionConfigExtendedResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupResourceEncryptionConfigExtendedResource [Ignore("Only validating compilation of examples")] public async Task Get_GetVaultEncryptionConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/BackupResourceEncryptionConfig_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/BackupResourceEncryptionConfig_Get.json // this example is just showing the usage of "BackupResourceEncryptionConfigs_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 @@ -50,7 +50,7 @@ public async Task Get_GetVaultEncryptionConfiguration() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateVaultEncryptionConfiguration() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/BackupResourceEncryptionConfig_Put.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/BackupResourceEncryptionConfig_Put.json // this example is just showing the usage of "BackupResourceEncryptionConfigs_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigCollection.cs index e74334e01849..ec3c965b91c9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BackupResourceVaultConfigCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateVaultSecurityConfig() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupResourceVaultConfigs_Put.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupResourceVaultConfigs_Put.json // this example is just showing the usage of "BackupResourceVaultConfigs_Put" 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 @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_UpdateVaultSecurityConfig() [Ignore("Only validating compilation of examples")] public async Task Get_GetVaultSecurityConfig() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupResourceVaultConfigs_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupResourceVaultConfigs_Get.json // this example is just showing the usage of "BackupResourceVaultConfigs_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 @@ -96,7 +96,7 @@ public async Task Get_GetVaultSecurityConfig() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVaultSecurityConfig() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupResourceVaultConfigs_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupResourceVaultConfigs_Get.json // this example is just showing the usage of "BackupResourceVaultConfigs_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_GetVaultSecurityConfig() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVaultSecurityConfig() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupResourceVaultConfigs_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupResourceVaultConfigs_Get.json // this example is just showing the usage of "BackupResourceVaultConfigs_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs index 4464b8cd144c..95b658c52159 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_BackupResourceVaultConfigResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackupResourceVaultConfigResource [Ignore("Only validating compilation of examples")] public async Task Get_GetVaultSecurityConfig() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupResourceVaultConfigs_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupResourceVaultConfigs_Get.json // this example is just showing the usage of "BackupResourceVaultConfigs_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 @@ -50,7 +50,7 @@ public async Task Get_GetVaultSecurityConfig() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateVaultSecurityConfig() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupResourceVaultConfigs_Patch.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupResourceVaultConfigs_Patch.json // this example is just showing the usage of "BackupResourceVaultConfigs_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs index e423e344b6fa..51819871abbd 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_ResourceGroupResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetBackupProtectionIntents_ListProtectionIntentWithBackupManagementTypeFilter() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupProtectionIntent_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureWorkload/BackupProtectionIntent_List.json // this example is just showing the usage of "BackupProtectionIntent_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 @@ -54,7 +54,7 @@ public async Task GetBackupProtectionIntents_ListProtectionIntentWithBackupManag [Ignore("Only validating compilation of examples")] public async Task GetBackupUsageSummaries_GetProtectedContainersUsagesSummary() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupProtectionContainers_UsageSummary_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupProtectionContainers_UsageSummary_Get.json // this example is just showing the usage of "BackupUsageSummaries_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 @@ -84,7 +84,7 @@ public async Task GetBackupUsageSummaries_GetProtectedContainersUsagesSummary() [Ignore("Only validating compilation of examples")] public async Task GetBackupUsageSummaries_GetProtectedItemsUsagesSummary() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupProtectedItem_UsageSummary_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupProtectedItem_UsageSummary_Get.json // this example is just showing the usage of "BackupUsageSummaries_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 @@ -114,7 +114,7 @@ public async Task GetBackupUsageSummaries_GetProtectedItemsUsagesSummary() [Ignore("Only validating compilation of examples")] public async Task ExportJob_ExportJobs() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/TriggerExportJobs.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/TriggerExportJobs.json // this example is just showing the usage of "Jobs_Export" 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 ExportJob_ExportJobs() [Ignore("Only validating compilation of examples")] public async Task GetBackupProtectedItems_ListProtectedItemsWithBackupManagementTypeFilterAsAzureIaasVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/BackupProtectedItems_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/BackupProtectedItems_List.json // this example is just showing the usage of "BackupProtectedItems_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 @@ -174,7 +174,7 @@ public async Task GetBackupProtectedItems_ListProtectedItemsWithBackupManagement [Ignore("Only validating compilation of examples")] public async Task GetProtectableContainers_ListProtectableItemsWithBackupManagementTypeFilterAsAzureStorage() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectableContainers_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectableContainers_List.json // this example is just showing the usage of "ProtectableContainers_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 @@ -205,7 +205,7 @@ public async Task GetProtectableContainers_ListProtectableItemsWithBackupManagem [Ignore("Only validating compilation of examples")] public async Task RefreshProtectionContainer_TriggerAzureVmDiscovery() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/RefreshContainers.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/RefreshContainers.json // this example is just showing the usage of "ProtectionContainers_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 @@ -232,7 +232,7 @@ public async Task RefreshProtectionContainer_TriggerAzureVmDiscovery() [Ignore("Only validating compilation of examples")] public async Task GetBackupProtectableItems_ListProtectableItemsWithBackupManagementTypeFilterAsAzureIaasVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/BackupProtectableItems_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/BackupProtectableItems_List.json // this example is just showing the usage of "BackupProtectableItems_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 @@ -262,7 +262,7 @@ public async Task GetBackupProtectableItems_ListProtectableItemsWithBackupManage [Ignore("Only validating compilation of examples")] public async Task GetBackupProtectionContainers_ListBackupProtectionContainers() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionContainers_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/ProtectionContainers_List.json // this example is just showing the usage of "BackupProtectionContainers_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 @@ -296,7 +296,7 @@ public async Task GetBackupProtectionContainers_ListBackupProtectionContainers() [Ignore("Only validating compilation of examples")] public async Task GetSoftDeletedProtectionContainers_ListBackupProtectionContainers() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/SoftDeletedContainers_List.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureStorage/SoftDeletedContainers_List.json // this example is just showing the usage of "DeletedProtectionContainers_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 @@ -330,7 +330,7 @@ public async Task GetSoftDeletedProtectionContainers_ListBackupProtectionContain [Ignore("Only validating compilation of examples")] public async Task GetSecurityPin_GetVaultSecurityPin() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/BackupSecurityPin_Get.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/Common/BackupSecurityPin_Get.json // this example is just showing the usage of "SecurityPINs_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 @@ -356,7 +356,7 @@ public async Task GetSecurityPin_GetVaultSecurityPin() [Ignore("Only validating compilation of examples")] public async Task PostFetchTieringCost_GetTheRehydrationCostForRecoveryPoint() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/TieringCost/FetchTieringCostForRehydrate.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/TieringCost/FetchTieringCostForRehydrate.json // this example is just showing the usage of "FetchTieringCost_Post" 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 @@ -390,7 +390,7 @@ public async Task PostFetchTieringCost_GetTheRehydrationCostForRecoveryPoint() [Ignore("Only validating compilation of examples")] public async Task PostFetchTieringCost_GetTheTieringSavingsCostInfoForPolicy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/TieringCost/FetchTieringCostForPolicy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/TieringCost/FetchTieringCostForPolicy.json // this example is just showing the usage of "FetchTieringCost_Post" 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 @@ -418,7 +418,7 @@ public async Task PostFetchTieringCost_GetTheTieringSavingsCostInfoForPolicy() [Ignore("Only validating compilation of examples")] public async Task PostFetchTieringCost_GetTheTieringSavingsCostInfoForProtectedItem() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/TieringCost/FetchTieringCostForProtectedItem.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/TieringCost/FetchTieringCostForProtectedItem.json // this example is just showing the usage of "FetchTieringCost_Post" 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 PostFetchTieringCost_GetTheTieringSavingsCostInfoForProtectedI [Ignore("Only validating compilation of examples")] public async Task PostFetchTieringCost_GetTheTieringSavingsCostInfoForVault() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/TieringCost/FetchTieringCostForVault.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/TieringCost/FetchTieringCostForVault.json // this example is just showing the usage of "FetchTieringCost_Post" 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 @@ -474,7 +474,7 @@ public async Task PostFetchTieringCost_GetTheTieringSavingsCostInfoForVault() [Ignore("Only validating compilation of examples")] public async Task GetGetTieringCostOperationResult_FetchTieringCostOperationResult() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/TieringCost/GetTieringCostOperationResult.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/TieringCost/GetTieringCostOperationResult.json // this example is just showing the usage of "GetTieringCostOperationResult_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyCollection.cs index 0901f8b971a2..99c33339b502 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ResourceGuardProxyCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateResourceGuardProxy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json // this example is just showing the usage of "ResourceGuardProxy_Put" 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_CreateResourceGuardProxy() [Ignore("Only validating compilation of examples")] public async Task Get_GetResourceGuardProxy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json // this example is just showing the usage of "ResourceGuardProxy_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_GetResourceGuardProxy() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetVaultGuardProxies() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json // this example is just showing the usage of "ResourceGuardProxy_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_GetVaultGuardProxies() [Ignore("Only validating compilation of examples")] public async Task Exists_GetResourceGuardProxy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json // this example is just showing the usage of "ResourceGuardProxy_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_GetResourceGuardProxy() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetResourceGuardProxy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json // this example is just showing the usage of "ResourceGuardProxy_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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyResource.cs index 94ba195a1ba3..0464f188003f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_ResourceGuardProxyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ResourceGuardProxyResource [Ignore("Only validating compilation of examples")] public async Task Get_GetResourceGuardProxy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json // this example is just showing the usage of "ResourceGuardProxy_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_GetResourceGuardProxy() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteResourceGuardProxy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json // this example is just showing the usage of "ResourceGuardProxy_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_DeleteResourceGuardProxy() [Ignore("Only validating compilation of examples")] public async Task Update_CreateResourceGuardProxy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json // this example is just showing the usage of "ResourceGuardProxy_Put" 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 @@ -114,7 +114,7 @@ public async Task Update_CreateResourceGuardProxy() [Ignore("Only validating compilation of examples")] public async Task UnlockDelete_UnlockDeleteResourceGuardProxy() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json // this example is just showing the usage of "ResourceGuardProxy_UnlockDelete" 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-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 8ce03fd7f740..a8aada4e5f86 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task ValidateProtectionIntent_ValidateEnableProtectionOnAzureVm() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionIntent_Validate.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/ProtectionIntent_Validate.json // this example is just showing the usage of "ProtectionIntent_Validate" 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 ValidateProtectionIntent_ValidateEnableProtectionOnAzureVm() [Ignore("Only validating compilation of examples")] public async Task GetBackupStatus_GetAzureVirtualMachineBackupStatus() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/GetBackupStatus.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/GetBackupStatus.json // this example is just showing the usage of "BackupStatus_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 @@ -83,7 +83,7 @@ public async Task GetBackupStatus_GetAzureVirtualMachineBackupStatus() [Ignore("Only validating compilation of examples")] public async Task ValidateFeatureSupport_CheckAzureVmBackupFeatureSupport() { - // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/BackupFeature_Validate.json + // Generated from example definition: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2025-02-01/examples/AzureIaasVm/BackupFeature_Validate.json // this example is just showing the usage of "FeatureSupport_Validate" 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-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs index a62d480dd80c..4eccd01a6374 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ArmRecoveryServicesBackupModelFactory.cs @@ -400,7 +400,7 @@ public static BackupGenericProtectedItem BackupGenericProtectedItem(string prote /// /// RecoveryPointResource properties /// 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 . /// /// Optional ETag. /// A new instance for mocking. @@ -430,7 +430,7 @@ public static BackupRecoveryPointData BackupRecoveryPointData(ResourceIdentifier /// /// RestoreRequestResource properties /// 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 . /// /// Optional ETag. /// A new instance for mocking. @@ -700,7 +700,7 @@ public static ProvisionIlrConnectionContent ProvisionIlrConnectionContent(Resour /// /// WorkloadProtectableItemResource properties /// 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 . /// /// Optional ETag. /// A new instance for mocking. @@ -898,8 +898,9 @@ public static FileshareProtectedItemExtendedInfo FileshareProtectedItemExtendedI /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. + /// Type of the policy used for protection. /// A new instance for mocking. - public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) + public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null, string policyType = null) { resourceGuardOperationRequests ??= new List(); healthDetails ??= new List(); @@ -937,7 +938,8 @@ public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedIte lastBackupOn, protectedItemDataId, extendedInfo, - extendedProperties); + extendedProperties, + policyType); } /// Initializes a new instance of . @@ -971,8 +973,9 @@ public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedIte /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. + /// Type of the policy used for protection. /// A new instance for mocking. - public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) + public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null, string policyType = null) { resourceGuardOperationRequests ??= new List(); healthDetails ??= new List(); @@ -1010,7 +1013,8 @@ public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? back lastBackupOn, protectedItemDataId, extendedInfo, - extendedProperties); + extendedProperties, + policyType); } /// Initializes a new instance of . @@ -1057,8 +1061,9 @@ public static IaasVmHealthDetails IaasVmHealthDetails(int? code = null, string t /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. + /// Type of the policy used for protection. /// A new instance for mocking. - public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null) + public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManagementType? backupManagementType = null, BackupDataSourceType? workloadType = null, string containerName = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier policyId = null, DateTimeOffset? lastRecoverOn = null, string backupSetName = null, BackupCreateMode? createMode = null, DateTimeOffset? deferredDeletedOn = null, bool? isScheduledForDeferredDelete = null, string deferredDeleteTimeRemaining = null, bool? isDeferredDeleteScheduleUpcoming = null, bool? isRehydrate = null, IEnumerable resourceGuardOperationRequests = null, bool? isArchiveEnabled = null, string policyName = null, int? softDeleteRetentionPeriodInDays = null, string vaultId = null, string friendlyName = null, ResourceIdentifier virtualMachineId = null, string protectionStatus = null, BackupProtectionState? protectionState = null, IaasVmProtectedItemHealthStatus? healthStatus = null, IEnumerable healthDetails = null, IDictionary kpisHealths = null, string lastBackupStatus = null, DateTimeOffset? lastBackupOn = null, string protectedItemDataId = null, IaasVmProtectedItemExtendedInfo extendedInfo = null, IaasVmBackupExtendedProperties extendedProperties = null, string policyType = null) { resourceGuardOperationRequests ??= new List(); healthDetails ??= new List(); @@ -1096,7 +1101,8 @@ public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManage lastBackupOn, protectedItemDataId, extendedInfo, - extendedProperties); + extendedProperties, + policyType); } /// Initializes a new instance of . @@ -1843,6 +1849,120 @@ public static FetchTieringCostSavingsInfoForVaultContent FetchTieringCostSavings return new FetchTieringCostSavingsInfoForVaultContent(sourceTierType, targetTierType, "FetchTieringCostSavingsInfoForVaultRequest", serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the VM represented by this backup item. + /// Fully qualified ARM ID of the virtual machine represented by this item. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Health status of protected item. + /// Health details on this backup item. + /// Health details of different KPIs. + /// Last backup operation status. + /// Timestamp of the last backup operation on this backup item. + /// Data ID of the protected item. + /// Additional information for this backup item. + /// Extended Properties for Azure IaasVM Backup. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IEnumerable healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) + { + return IaasClassicComputeVmProtectedItem(backupManagementType: backupManagementType, workloadType: workloadType, containerName: containerName, sourceResourceId: sourceResourceId, policyId: policyId, lastRecoverOn: lastRecoverOn, backupSetName: backupSetName, createMode: createMode, deferredDeletedOn: deferredDeletedOn, isScheduledForDeferredDelete: isScheduledForDeferredDelete, deferredDeleteTimeRemaining: deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming: isDeferredDeleteScheduleUpcoming, isRehydrate: isRehydrate, resourceGuardOperationRequests: resourceGuardOperationRequests, isArchiveEnabled: isArchiveEnabled, policyName: policyName, softDeleteRetentionPeriodInDays: softDeleteRetentionPeriodInDays, vaultId: vaultId, friendlyName: friendlyName, virtualMachineId: virtualMachineId, protectionStatus: protectionStatus, protectionState: protectionState, healthStatus: healthStatus, healthDetails: healthDetails, kpisHealths: kpisHealths, lastBackupStatus: lastBackupStatus, lastBackupOn: lastBackupOn, protectedItemDataId: protectedItemDataId, extendedInfo: extendedInfo, extendedProperties: extendedProperties, policyType: default); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the VM represented by this backup item. + /// Fully qualified ARM ID of the virtual machine represented by this item. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Health status of protected item. + /// Health details on this backup item. + /// Health details of different KPIs. + /// Last backup operation status. + /// Timestamp of the last backup operation on this backup item. + /// Data ID of the protected item. + /// Additional information for this backup item. + /// Extended Properties for Azure IaasVM Backup. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IEnumerable healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) + { + return IaasVmProtectedItem(backupManagementType: backupManagementType, workloadType: workloadType, containerName: containerName, sourceResourceId: sourceResourceId, policyId: policyId, lastRecoverOn: lastRecoverOn, backupSetName: backupSetName, createMode: createMode, deferredDeletedOn: deferredDeletedOn, isScheduledForDeferredDelete: isScheduledForDeferredDelete, deferredDeleteTimeRemaining: deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming: isDeferredDeleteScheduleUpcoming, isRehydrate: isRehydrate, resourceGuardOperationRequests: resourceGuardOperationRequests, isArchiveEnabled: isArchiveEnabled, policyName: policyName, softDeleteRetentionPeriodInDays: softDeleteRetentionPeriodInDays, vaultId: vaultId, friendlyName: friendlyName, virtualMachineId: virtualMachineId, protectionStatus: protectionStatus, protectionState: protectionState, healthStatus: healthStatus, healthDetails: healthDetails, kpisHealths: kpisHealths, lastBackupStatus: lastBackupStatus, lastBackupOn: lastBackupOn, protectedItemDataId: protectedItemDataId, extendedInfo: extendedInfo, extendedProperties: extendedProperties, policyType: default); + } + + /// Initializes a new instance of . + /// Type of backup management for the backed up item. + /// Type of workload this item represents. + /// Unique name of container. + /// ARM ID of the resource to be backed up. + /// ID of the backup policy with which this item is backed up. + /// Timestamp when the last (latest) backup copy was created for this backup item. + /// Name of the backup set the backup item belongs to. + /// Create mode to indicate recovery of existing soft deleted data source or creation of new data source. + /// Time for deferred deletion in UTC. + /// Flag to identify whether the DS is scheduled for deferred delete. + /// Time remaining before the DS marked for deferred delete is permanently deleted. + /// Flag to identify whether the deferred deleted DS is to be purged soon. + /// Flag to identify that deferred deleted DS is to be moved into Pause state. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Flag to identify whether datasource is protected in archive. + /// Name of the policy used for protection. + /// Soft delete retention period in days. + /// ID of the vault which protects this item. + /// Friendly name of the VM represented by this backup item. + /// Fully qualified ARM ID of the virtual machine represented by this item. + /// Backup status of this backup item. + /// Backup state of this backup item. + /// Health status of protected item. + /// Health details on this backup item. + /// Health details of different KPIs. + /// Last backup operation status. + /// Timestamp of the last backup operation on this backup item. + /// Data ID of the protected item. + /// Additional information for this backup item. + /// Extended Properties for Azure IaasVM Backup. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IEnumerable healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) + { + return IaasComputeVmProtectedItem(backupManagementType: backupManagementType, workloadType: workloadType, containerName: containerName, sourceResourceId: sourceResourceId, policyId: policyId, lastRecoverOn: lastRecoverOn, backupSetName: backupSetName, createMode: createMode, deferredDeletedOn: deferredDeletedOn, isScheduledForDeferredDelete: isScheduledForDeferredDelete, deferredDeleteTimeRemaining: deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming: isDeferredDeleteScheduleUpcoming, isRehydrate: isRehydrate, resourceGuardOperationRequests: resourceGuardOperationRequests, isArchiveEnabled: isArchiveEnabled, policyName: policyName, softDeleteRetentionPeriodInDays: softDeleteRetentionPeriodInDays, vaultId: vaultId, friendlyName: friendlyName, virtualMachineId: virtualMachineId, protectionStatus: protectionStatus, protectionState: protectionState, healthStatus: healthStatus, healthDetails: healthDetails, kpisHealths: kpisHealths, lastBackupStatus: lastBackupStatus, lastBackupOn: lastBackupOn, protectedItemDataId: protectedItemDataId, extendedInfo: extendedInfo, extendedProperties: extendedProperties, policyType: default); + } + /// Initializes a new instance of . /// backup item type. /// Type of backup management for the backed up item. @@ -2012,7 +2132,7 @@ public static GenericProtectedItem GenericProtectedItem(BackupManagementType? ba [EditorBrowsable(EditorBrowsableState.Never)] public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedItem(BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IEnumerable healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) { - return IaasClassicComputeVmProtectedItem(backupManagementType: backupManagementType, workloadType: workloadType, containerName: containerName, sourceResourceId: sourceResourceId, policyId: policyId, lastRecoverOn: lastRecoverOn, backupSetName: backupSetName, createMode: createMode, deferredDeletedOn: deferredDeletedOn, isScheduledForDeferredDelete: isScheduledForDeferredDelete, deferredDeleteTimeRemaining: deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming: isDeferredDeleteScheduleUpcoming, isRehydrate: isRehydrate, resourceGuardOperationRequests: resourceGuardOperationRequests, isArchiveEnabled: isArchiveEnabled, policyName: policyName, softDeleteRetentionPeriodInDays: softDeleteRetentionPeriodInDays, vaultId: default, friendlyName: friendlyName, virtualMachineId: virtualMachineId, protectionStatus: protectionStatus, protectionState: protectionState, healthStatus: healthStatus, healthDetails: healthDetails, kpisHealths: kpisHealths, lastBackupStatus: lastBackupStatus, lastBackupOn: lastBackupOn, protectedItemDataId: protectedItemDataId, extendedInfo: extendedInfo, extendedProperties: extendedProperties); + return IaasClassicComputeVmProtectedItem(backupManagementType: backupManagementType, workloadType: workloadType, containerName: containerName, sourceResourceId: sourceResourceId, policyId: policyId, lastRecoverOn: lastRecoverOn, backupSetName: backupSetName, createMode: createMode, deferredDeletedOn: deferredDeletedOn, isScheduledForDeferredDelete: isScheduledForDeferredDelete, deferredDeleteTimeRemaining: deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming: isDeferredDeleteScheduleUpcoming, isRehydrate: isRehydrate, resourceGuardOperationRequests: resourceGuardOperationRequests, isArchiveEnabled: isArchiveEnabled, policyName: policyName, softDeleteRetentionPeriodInDays: softDeleteRetentionPeriodInDays, vaultId: default, friendlyName: friendlyName, virtualMachineId: virtualMachineId, protectionStatus: protectionStatus, protectionState: protectionState, healthStatus: healthStatus, healthDetails: healthDetails, kpisHealths: kpisHealths, lastBackupStatus: lastBackupStatus, lastBackupOn: lastBackupOn, protectedItemDataId: protectedItemDataId, extendedInfo: extendedInfo, extendedProperties: extendedProperties, policyType: default); } /// Initializes a new instance of . @@ -2049,7 +2169,7 @@ public static IaasClassicComputeVmProtectedItem IaasClassicComputeVmProtectedIte [EditorBrowsable(EditorBrowsableState.Never)] public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IEnumerable healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) { - return IaasComputeVmProtectedItem(backupManagementType: backupManagementType, workloadType: workloadType, containerName: containerName, sourceResourceId: sourceResourceId, policyId: policyId, lastRecoverOn: lastRecoverOn, backupSetName: backupSetName, createMode: createMode, deferredDeletedOn: deferredDeletedOn, isScheduledForDeferredDelete: isScheduledForDeferredDelete, deferredDeleteTimeRemaining: deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming: isDeferredDeleteScheduleUpcoming, isRehydrate: isRehydrate, resourceGuardOperationRequests: resourceGuardOperationRequests, isArchiveEnabled: isArchiveEnabled, policyName: policyName, softDeleteRetentionPeriodInDays: softDeleteRetentionPeriodInDays, vaultId: default, friendlyName: friendlyName, virtualMachineId: virtualMachineId, protectionStatus: protectionStatus, protectionState: protectionState, healthStatus: healthStatus, healthDetails: healthDetails, kpisHealths: kpisHealths, lastBackupStatus: lastBackupStatus, lastBackupOn: lastBackupOn, protectedItemDataId: protectedItemDataId, extendedInfo: extendedInfo, extendedProperties: extendedProperties); + return IaasComputeVmProtectedItem(backupManagementType: backupManagementType, workloadType: workloadType, containerName: containerName, sourceResourceId: sourceResourceId, policyId: policyId, lastRecoverOn: lastRecoverOn, backupSetName: backupSetName, createMode: createMode, deferredDeletedOn: deferredDeletedOn, isScheduledForDeferredDelete: isScheduledForDeferredDelete, deferredDeleteTimeRemaining: deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming: isDeferredDeleteScheduleUpcoming, isRehydrate: isRehydrate, resourceGuardOperationRequests: resourceGuardOperationRequests, isArchiveEnabled: isArchiveEnabled, policyName: policyName, softDeleteRetentionPeriodInDays: softDeleteRetentionPeriodInDays, vaultId: default, friendlyName: friendlyName, virtualMachineId: virtualMachineId, protectionStatus: protectionStatus, protectionState: protectionState, healthStatus: healthStatus, healthDetails: healthDetails, kpisHealths: kpisHealths, lastBackupStatus: lastBackupStatus, lastBackupOn: lastBackupOn, protectedItemDataId: protectedItemDataId, extendedInfo: extendedInfo, extendedProperties: extendedProperties, policyType: default); } /// Initializes a new instance of . @@ -2086,7 +2206,7 @@ public static IaasComputeVmProtectedItem IaasComputeVmProtectedItem(BackupManage [EditorBrowsable(EditorBrowsableState.Never)] public static IaasVmProtectedItem IaasVmProtectedItem(BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IEnumerable resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IEnumerable healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) { - return IaasVmProtectedItem(backupManagementType: backupManagementType, workloadType: workloadType, containerName: containerName, sourceResourceId: sourceResourceId, policyId: policyId, lastRecoverOn: lastRecoverOn, backupSetName: backupSetName, createMode: createMode, deferredDeletedOn: deferredDeletedOn, isScheduledForDeferredDelete: isScheduledForDeferredDelete, deferredDeleteTimeRemaining: deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming: isDeferredDeleteScheduleUpcoming, isRehydrate: isRehydrate, resourceGuardOperationRequests: resourceGuardOperationRequests, isArchiveEnabled: isArchiveEnabled, policyName: policyName, softDeleteRetentionPeriodInDays: softDeleteRetentionPeriodInDays, vaultId: default, friendlyName: friendlyName, virtualMachineId: virtualMachineId, protectionStatus: protectionStatus, protectionState: protectionState, healthStatus: healthStatus, healthDetails: healthDetails, kpisHealths: kpisHealths, lastBackupStatus: lastBackupStatus, lastBackupOn: lastBackupOn, protectedItemDataId: protectedItemDataId, extendedInfo: extendedInfo, extendedProperties: extendedProperties); + return IaasVmProtectedItem(backupManagementType: backupManagementType, workloadType: workloadType, containerName: containerName, sourceResourceId: sourceResourceId, policyId: policyId, lastRecoverOn: lastRecoverOn, backupSetName: backupSetName, createMode: createMode, deferredDeletedOn: deferredDeletedOn, isScheduledForDeferredDelete: isScheduledForDeferredDelete, deferredDeleteTimeRemaining: deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming: isDeferredDeleteScheduleUpcoming, isRehydrate: isRehydrate, resourceGuardOperationRequests: resourceGuardOperationRequests, isArchiveEnabled: isArchiveEnabled, policyName: policyName, softDeleteRetentionPeriodInDays: softDeleteRetentionPeriodInDays, vaultId: default, friendlyName: friendlyName, virtualMachineId: virtualMachineId, protectionStatus: protectionStatus, protectionState: protectionState, healthStatus: healthStatus, healthDetails: healthDetails, kpisHealths: kpisHealths, lastBackupStatus: lastBackupStatus, lastBackupOn: lastBackupOn, protectedItemDataId: protectedItemDataId, extendedInfo: extendedInfo, extendedProperties: extendedProperties, policyType: default); } /// Initializes a new instance of . diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineCollection.cs index e942adc9f039..b27c3899c2aa 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineCollection.cs @@ -70,7 +70,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> GetAsync(string backup /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual Response Get(string backupEngineName, strin /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -196,7 +196,7 @@ public virtual AsyncPageable GetAllAsync(string filter = n /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual Pageable GetAll(string filter = null, strin /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -273,7 +273,7 @@ public virtual async Task> ExistsAsync(string backupEngineName, s /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual Response Exists(string backupEngineName, string filter = nu /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineResource.cs index 12e8aa3ae709..3bc7f627b568 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupEngineResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string filter /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobCollection.cs index 1558ecdb51eb..1d8c2b6d931b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobCollection.cs @@ -75,7 +75,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -120,7 +120,7 @@ public virtual async Task> GetAsync(string jobName, /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -165,7 +165,7 @@ public virtual Response Get(string jobName, CancellationToken /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -197,7 +197,7 @@ public virtual AsyncPageable GetAllAsync(string filter = null /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual Pageable GetAll(string filter = null, string s /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual async Task> ExistsAsync(string jobName, Cancellati /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Response Exists(string jobName, CancellationToken cancellat /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> GetIfExistsAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobResource.cs index 3ccb1bb1edf6..5d2223113e24 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupJobResource.cs @@ -106,7 +106,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> GetAsync(CancellationToke /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(CancellationToken cancellationTok /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -222,7 +222,7 @@ public virtual async Task TriggerJobCancellationAsync(CancellationToke /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionCollection.cs index 4bece750e0f3..c3610354e785 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string vaul /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -303,7 +303,7 @@ public virtual async Task> ExistsAsync(string vaultName, string p /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -348,7 +348,7 @@ public virtual Response Exists(string vaultName, string privateEndpointCon /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -395,7 +395,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionResource.cs index 4e054a8dca9c..67516dd6a2e9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupPrivateEndpointConnectionResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual ArmOperation Update(Wait /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -416,7 +416,7 @@ public virtual async Task> Add /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -473,7 +473,7 @@ public virtual Response AddTag(string k /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -529,7 +529,7 @@ public virtual async Task> Set /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -585,7 +585,7 @@ public virtual Response SetTags(IDictio /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -640,7 +640,7 @@ public virtual async Task> Rem /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemCollection.cs index 9eb4680cbc87..eca5ef253225 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -73,10 +73,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// Item name to be backed up. /// resource backed up item. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string protectedItemName, BackupProtectedItemData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string protectedItemName, BackupProtectedItemData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNull(data, nameof(data)); @@ -85,8 +86,8 @@ public virtual async Task> CreateOrUpd scope.Start(); try { - var response = await _backupProtectedItemProtectedItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(new BackupProtectedItemOperationSource(Client), _backupProtectedItemProtectedItemsClientDiagnostics, Pipeline, _backupProtectedItemProtectedItemsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data).Request, response, OperationFinalStateVia.Location); + var response = await _backupProtectedItemProtectedItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, xMsAuthorizationAuxiliary, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(new BackupProtectedItemOperationSource(Client), _backupProtectedItemProtectedItemsClientDiagnostics, Pipeline, _backupProtectedItemProtectedItemsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, xMsAuthorizationAuxiliary).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -112,7 +113,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -123,10 +124,11 @@ public virtual async Task> CreateOrUpd /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// Item name to be backed up. /// resource backed up item. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string protectedItemName, BackupProtectedItemData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string protectedItemName, BackupProtectedItemData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNull(data, nameof(data)); @@ -135,8 +137,8 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti scope.Start(); try { - var response = _backupProtectedItemProtectedItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(new BackupProtectedItemOperationSource(Client), _backupProtectedItemProtectedItemsClientDiagnostics, Pipeline, _backupProtectedItemProtectedItemsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data).Request, response, OperationFinalStateVia.Location); + var response = _backupProtectedItemProtectedItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, xMsAuthorizationAuxiliary, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(new BackupProtectedItemOperationSource(Client), _backupProtectedItemProtectedItemsClientDiagnostics, Pipeline, _backupProtectedItemProtectedItemsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, protectedItemName, data, xMsAuthorizationAuxiliary).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -162,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -209,7 +211,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -255,7 +257,7 @@ public virtual Response Get(string protectedItemNam /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -299,7 +301,7 @@ public virtual async Task> ExistsAsync(string protectedItemName, /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -343,7 +345,7 @@ public virtual Response Exists(string protectedItemName, string filter = n /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -389,7 +391,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs index 1a66971fbd87..6ffd51a8fc23 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectedItemResource.cs @@ -122,7 +122,7 @@ public virtual BackupRecoveryPointCollection GetBackupRecoveryPoints() /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual async Task> GetBackupRecove /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual Response GetBackupRecoveryPoint(stri /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual Response Get(string filter = null, C /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -370,9 +370,10 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// resource backed up item. + /// The to use. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, BackupProtectedItemData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, BackupProtectedItemData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -380,8 +381,8 @@ public virtual async Task> UpdateAsync scope.Start(); try { - var response = await _backupProtectedItemProtectedItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(new BackupProtectedItemOperationSource(Client), _backupProtectedItemProtectedItemsClientDiagnostics, Pipeline, _backupProtectedItemProtectedItemsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = await _backupProtectedItemProtectedItemsRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, xMsAuthorizationAuxiliary, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(new BackupProtectedItemOperationSource(Client), _backupProtectedItemProtectedItemsClientDiagnostics, Pipeline, _backupProtectedItemProtectedItemsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, xMsAuthorizationAuxiliary).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -407,7 +408,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -417,9 +418,10 @@ public virtual async Task> UpdateAsync /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// resource backed up item. + /// The to use. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, BackupProtectedItemData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, BackupProtectedItemData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -427,8 +429,8 @@ public virtual ArmOperation Update(WaitUntil waitUn scope.Start(); try { - var response = _backupProtectedItemProtectedItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(new BackupProtectedItemOperationSource(Client), _backupProtectedItemProtectedItemsClientDiagnostics, Pipeline, _backupProtectedItemProtectedItemsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.Location); + var response = _backupProtectedItemProtectedItemsRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, xMsAuthorizationAuxiliary, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(new BackupProtectedItemOperationSource(Client), _backupProtectedItemProtectedItemsClientDiagnostics, Pipeline, _backupProtectedItemProtectedItemsRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, xMsAuthorizationAuxiliary).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -454,7 +456,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -493,7 +495,7 @@ public virtual async Task TriggerBackupAsync(TriggerBackupContent cont /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -531,7 +533,7 @@ public virtual Response TriggerBackup(TriggerBackupContent content, Cancellation /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -561,7 +563,7 @@ public virtual AsyncPageable GetRecoveryPointsRecom /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -591,7 +593,7 @@ public virtual Pageable GetRecoveryPointsRecommende /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -648,7 +650,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -705,7 +707,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -761,7 +763,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -817,7 +819,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -872,7 +874,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerCollection.cs index f1380df6878a..c55d684205cb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -119,7 +119,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -221,7 +221,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual Response Get(string vaultName, /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> ExistsAsync(string vaultName, string f /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual Response Exists(string vaultName, string fabricName, string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs index af451bf54056..67930abbb936 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionContainerResource.cs @@ -118,7 +118,7 @@ public virtual BackupProtectedItemCollection GetBackupProtectedItems() /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -151,7 +151,7 @@ public virtual async Task> GetBackupProtec /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response GetBackupProtectedItem(stri /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -264,7 +264,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -488,7 +488,7 @@ public virtual async Task InquireAsync(string filter = null, Cancellat /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -528,7 +528,7 @@ public virtual Response Inquire(string filter = null, CancellationToken cancella /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -557,7 +557,7 @@ public virtual AsyncPageable GetBackupWorkloadItemsAsync(s /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -585,7 +585,7 @@ public virtual Pageable GetBackupWorkloadItems(string filt /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -642,7 +642,7 @@ public virtual async Task> AddTagAsy /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -699,7 +699,7 @@ public virtual Response AddTag(string key, st /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -755,7 +755,7 @@ public virtual async Task> SetTagsAs /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -811,7 +811,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -866,7 +866,7 @@ public virtual async Task> RemoveTag /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs index bbde1aa358a4..e98f4a0cc1c1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -117,7 +117,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -173,7 +173,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual Response Get(string vaultName, st /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task> ExistsAsync(string vaultName, string f /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual Response Exists(string vaultName, string fabricName, string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs index 777e07c73959..3a21e19d90d3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionIntentResource.cs @@ -105,7 +105,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -370,7 +370,7 @@ public virtual ArmOperation Update(WaitUntil wai /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -427,7 +427,7 @@ public virtual async Task> AddTagAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual Response AddTag(string key, strin /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> SetTagsAsync /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -596,7 +596,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsy /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs index a4e2dbd2dc60..2b0c087e5210 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyCollection.cs @@ -76,7 +76,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -87,10 +87,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// Backup policy to be created. /// resource backup policy. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string policyName, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string policyName, BackupProtectionPolicyData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); Argument.AssertNotNull(data, nameof(data)); @@ -99,8 +100,8 @@ public virtual async Task> CreateOr scope.Start(); try { - var response = await _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, cancellationToken).ConfigureAwait(false); - var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data); + var response = await _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, xMsAuthorizationAuxiliary, cancellationToken).ConfigureAwait(false); + var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, xMsAuthorizationAuxiliary); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -128,7 +129,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -139,10 +140,11 @@ public virtual async Task> CreateOr /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// Backup policy to be created. /// resource backup policy. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string policyName, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string policyName, BackupProtectionPolicyData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); Argument.AssertNotNull(data, nameof(data)); @@ -151,8 +153,8 @@ public virtual ArmOperation CreateOrUpdate(WaitU scope.Start(); try { - var response = _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, cancellationToken); - var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data); + var response = _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, xMsAuthorizationAuxiliary, cancellationToken); + var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, _vaultName, policyName, data, xMsAuthorizationAuxiliary); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -180,7 +182,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -226,7 +228,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -272,7 +274,7 @@ public virtual Response Get(string policyName, C /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -304,7 +306,7 @@ public virtual AsyncPageable GetAllAsync(string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -335,7 +337,7 @@ public virtual Pageable GetAll(string filter = n /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -378,7 +380,7 @@ public virtual async Task> ExistsAsync(string policyName, Cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -421,7 +423,7 @@ public virtual Response Exists(string policyName, CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -466,7 +468,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs index c6a10344fe1b..97b45b297e4f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupProtectionPolicyResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -282,9 +282,10 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// resource backup policy. + /// The to use. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, BackupProtectionPolicyData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -292,8 +293,8 @@ public virtual async Task> UpdateAs scope.Start(); try { - var response = await _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var response = await _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, xMsAuthorizationAuxiliary, cancellationToken).ConfigureAwait(false); + var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, xMsAuthorizationAuxiliary); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -321,7 +322,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -331,9 +332,10 @@ public virtual async Task> UpdateAs /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// resource backup policy. + /// The to use. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, BackupProtectionPolicyData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -341,8 +343,8 @@ public virtual ArmOperation Update(WaitUntil wai scope.Start(); try { - var response = _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, cancellationToken); - var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data); + var response = _backupProtectionPolicyProtectionPoliciesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, xMsAuthorizationAuxiliary, cancellationToken); + var uri = _backupProtectionPolicyProtectionPoliciesRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, xMsAuthorizationAuxiliary); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupProtectionPolicyResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -369,7 +371,7 @@ public virtual ArmOperation Update(WaitUntil wai /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -426,7 +428,7 @@ public virtual async Task> AddTagAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -483,7 +485,7 @@ public virtual Response AddTag(string key, strin /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -539,7 +541,7 @@ public virtual async Task> SetTagsAsync /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -595,7 +597,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -650,7 +652,7 @@ public virtual async Task> RemoveTagAsy /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointCollection.cs index 878409884c79..71c299bc4981 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual Response Get(string recoveryPointId, /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(string fil /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual Pageable GetAll(string filter = null /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual async Task> ExistsAsync(string recoveryPointId, Ca /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -304,7 +304,7 @@ public virtual Response Exists(string recoveryPointId, CancellationToken c /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -349,7 +349,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointData.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointData.cs index 3d0e22cb4f52..13be6ea3c3c7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointData.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointData.cs @@ -67,7 +67,7 @@ public BackupRecoveryPointData(AzureLocation location) : base(location) /// /// RecoveryPointResource properties /// 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 . /// /// Optional ETag. /// Keeps track of any properties unknown to the library. @@ -86,7 +86,7 @@ internal BackupRecoveryPointData() /// /// RecoveryPointResource properties /// 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 . /// public BackupGenericRecoveryPoint Properties { get; set; } /// Optional ETag. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointResource.cs index 12a16c0466ef..754746e2812c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupRecoveryPointResource.cs @@ -118,7 +118,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -159,7 +159,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -199,7 +199,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -241,7 +241,7 @@ public virtual async Task MoveRecoveryPointAsync(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -284,15 +284,16 @@ public virtual ArmOperation MoveRecoveryPoint(WaitUntil waitUntil, MoveRPAcrossT /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// resource restore request. + /// The to use. /// The cancellation token to use. /// is null. - public virtual async Task TriggerRestoreAsync(WaitUntil waitUntil, TriggerRestoreContent content, CancellationToken cancellationToken = default) + public virtual async Task TriggerRestoreAsync(WaitUntil waitUntil, TriggerRestoreContent content, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -300,8 +301,8 @@ public virtual async Task TriggerRestoreAsync(WaitUntil waitUntil, scope.Start(); try { - var response = await _restoresRestClient.TriggerAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new RecoveryServicesBackupArmOperation(_restoresClientDiagnostics, Pipeline, _restoresRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _restoresRestClient.TriggerAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, xMsAuthorizationAuxiliary, cancellationToken).ConfigureAwait(false); + var operation = new RecoveryServicesBackupArmOperation(_restoresClientDiagnostics, Pipeline, _restoresRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, xMsAuthorizationAuxiliary).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -327,15 +328,16 @@ public virtual async Task TriggerRestoreAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// resource restore request. + /// The to use. /// The cancellation token to use. /// is null. - public virtual ArmOperation TriggerRestore(WaitUntil waitUntil, TriggerRestoreContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation TriggerRestore(WaitUntil waitUntil, TriggerRestoreContent content, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); @@ -343,8 +345,8 @@ public virtual ArmOperation TriggerRestore(WaitUntil waitUntil, TriggerRestoreCo scope.Start(); try { - var response = _restoresRestClient.Trigger(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new RecoveryServicesBackupArmOperation(_restoresClientDiagnostics, Pipeline, _restoresRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _restoresRestClient.Trigger(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, xMsAuthorizationAuxiliary, cancellationToken); + var operation = new RecoveryServicesBackupArmOperation(_restoresClientDiagnostics, Pipeline, _restoresRestClient.CreateTriggerRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, content, xMsAuthorizationAuxiliary).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -371,7 +373,7 @@ public virtual ArmOperation TriggerRestore(WaitUntil waitUntil, TriggerRestoreCo /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -411,7 +413,7 @@ public virtual async Task ProvisionItemLevelRecoveryConnectionAsync(Pr /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -450,7 +452,7 @@ public virtual Response ProvisionItemLevelRecoveryConnection(ProvisionIlrConnect /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -485,7 +487,7 @@ public virtual async Task RevokeItemLevelRecoveryConnectionAsync(Cance /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs index 1d86e90c648e..8d88fbac939e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string vaultName, Canc /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual async Task> ExistsAsync(string vaultName, Cancella /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -340,7 +340,7 @@ public virtual Response Exists(string vaultName, CancellationToken cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResource.cs index 960b00ba8f18..ef556c5bba64 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceConfigResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task> UpdateAsync(Ba /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual Response Update(BackupResourceConfi /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -313,7 +313,7 @@ public virtual async Task PrepareDataMoveAsync(WaitUntil waitUntil /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -355,7 +355,7 @@ public virtual ArmOperation PrepareDataMove(WaitUntil waitUntil, PrepareDataMove /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -397,7 +397,7 @@ public virtual async Task TriggerDataMoveAsync(WaitUntil waitUntil /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -439,7 +439,7 @@ public virtual ArmOperation TriggerDataMove(WaitUntil waitUntil, TriggerDataMove /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -501,7 +501,7 @@ public virtual async Task> AddTagAsync(st /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -563,7 +563,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -620,7 +620,7 @@ public virtual async Task> SetTagsAsync(I /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -677,7 +677,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -737,7 +737,7 @@ public virtual async Task> RemoveTagAsync /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs index 9a0ae3106b20..0d16f999e5bc 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedCollection.cs @@ -63,7 +63,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -165,7 +165,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(stri /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -298,7 +298,7 @@ public virtual async Task> ExistsAsync(string vaultName, Cancella /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual Response Exists(string vaultName, CancellationToken cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -386,7 +386,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs index e3baae89f447..ad6201406df0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceEncryptionConfigExtendedResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Canc /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -231,7 +231,7 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, BackupR /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, BackupResourceEncryption /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response AddTag(s /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -460,7 +460,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -517,7 +517,7 @@ public virtual Response SetTags( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -577,7 +577,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs index 7661cdbeb1fb..5aff3b188171 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -73,10 +73,11 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The name of the recovery services vault. /// resource config request. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); @@ -85,8 +86,8 @@ public virtual async Task> Creat scope.Start(); try { - var response = await _backupResourceVaultConfigRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken).ConfigureAwait(false); - var uri = _backupResourceVaultConfigRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data); + var response = await _backupResourceVaultConfigRestClient.PutAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, xMsAuthorizationAuxiliary, cancellationToken).ConfigureAwait(false); + var uri = _backupResourceVaultConfigRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, xMsAuthorizationAuxiliary); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceVaultConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -113,7 +114,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -124,10 +125,11 @@ public virtual async Task> Creat /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The name of the recovery services vault. /// resource config request. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); @@ -136,8 +138,8 @@ public virtual ArmOperation CreateOrUpdate(Wa scope.Start(); try { - var response = _backupResourceVaultConfigRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, cancellationToken); - var uri = _backupResourceVaultConfigRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data); + var response = _backupResourceVaultConfigRestClient.Put(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, xMsAuthorizationAuxiliary, cancellationToken); + var uri = _backupResourceVaultConfigRestClient.CreatePutRequestUri(Id.SubscriptionId, Id.ResourceGroupName, vaultName, data, xMsAuthorizationAuxiliary); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new RecoveryServicesBackupArmOperation(Response.FromValue(new BackupResourceVaultConfigResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -164,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -209,7 +211,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -254,7 +256,7 @@ public virtual Response Get(string vaultName, /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -297,7 +299,7 @@ public virtual async Task> ExistsAsync(string vaultName, Cancella /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -340,7 +342,7 @@ public virtual Response Exists(string vaultName, CancellationToken cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -385,7 +387,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResource.cs index 6bbc33d5f088..2a45189e6eba 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/BackupResourceVaultConfigResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -191,9 +191,10 @@ public virtual Response Get(CancellationToken /// /// /// resource config request. + /// The to use. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -201,7 +202,7 @@ public virtual async Task> UpdateAsy scope.Start(); try { - var response = await _backupResourceVaultConfigRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken).ConfigureAwait(false); + var response = await _backupResourceVaultConfigRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, xMsAuthorizationAuxiliary, cancellationToken).ConfigureAwait(false); return Response.FromValue(new BackupResourceVaultConfigResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -224,7 +225,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -233,9 +234,10 @@ public virtual async Task> UpdateAsy /// /// /// resource config request. + /// The to use. /// The cancellation token to use. /// is null. - public virtual Response Update(BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) + public virtual Response Update(BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -243,7 +245,7 @@ public virtual Response Update(BackupResource scope.Start(); try { - var response = _backupResourceVaultConfigRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, cancellationToken); + var response = _backupResourceVaultConfigRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, data, xMsAuthorizationAuxiliary, cancellationToken); return Response.FromValue(new BackupResourceVaultConfigResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -266,7 +268,7 @@ public virtual Response Update(BackupResource /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -328,7 +330,7 @@ public virtual async Task> AddTagAsy /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -390,7 +392,7 @@ public virtual Response AddTag(string key, st /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -447,7 +449,7 @@ public virtual async Task> SetTagsAs /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -504,7 +506,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -564,7 +566,7 @@ public virtual async Task> RemoveTag /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/MockableRecoveryServicesBackupResourceGroupResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/MockableRecoveryServicesBackupResourceGroupResource.cs index 3d43681ba3ff..1fa7d9435c5d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/MockableRecoveryServicesBackupResourceGroupResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/MockableRecoveryServicesBackupResourceGroupResource.cs @@ -106,7 +106,7 @@ public virtual BackupResourceConfigCollection GetBackupResourceConfigs() /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -137,7 +137,7 @@ public virtual async Task> GetBackupResou /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -176,7 +176,7 @@ public virtual BackupProtectionIntentCollection GetBackupProtectionIntents() /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetBackupPro /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual BackupResourceVaultConfigCollection GetBackupResourceVaultConfigs /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetBackup /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual BackupResourceEncryptionConfigExtendedCollection GetBackupResourc /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -350,7 +350,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -388,7 +388,7 @@ public virtual BackupPrivateEndpointConnectionCollection GetBackupPrivateEndpoin /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -420,7 +420,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -463,7 +463,7 @@ public virtual BackupProtectionPolicyCollection GetBackupProtectionPolicies(stri /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -496,7 +496,7 @@ public virtual async Task> GetBackupPro /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -538,7 +538,7 @@ public virtual BackupJobCollection GetBackupJobs(string vaultName) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -570,7 +570,7 @@ public virtual async Task> GetBackupJobAsync(string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -612,7 +612,7 @@ public virtual BackupEngineCollection GetBackupEngines(string vaultName) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -646,7 +646,7 @@ public virtual async Task> GetBackupEngineAsync(s /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -687,7 +687,7 @@ public virtual BackupProtectionContainerCollection GetBackupProtectionContainers /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -720,7 +720,7 @@ public virtual async Task> GetBackup /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -763,7 +763,7 @@ public virtual ResourceGuardProxyCollection GetResourceGuardProxies(string vault /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -795,7 +795,7 @@ public virtual async Task> GetResourceGuard /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -827,7 +827,7 @@ public virtual Response GetResourceGuardProxy(string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -860,7 +860,7 @@ public virtual AsyncPageable GetBackupProtection /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -893,7 +893,7 @@ public virtual Pageable GetBackupProtectionInten /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -925,7 +925,7 @@ public virtual AsyncPageable GetBackupUsageSummariesAsync /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -957,7 +957,7 @@ public virtual Pageable GetBackupUsageSummaries(string va /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -997,7 +997,7 @@ public virtual async Task ExportJobAsync(string vaultName, string filt /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1037,7 +1037,7 @@ public virtual Response ExportJob(string vaultName, string filter = null, Cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1070,7 +1070,7 @@ public virtual AsyncPageable GetBackupProtectedItem /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1103,7 +1103,7 @@ public virtual Pageable GetBackupProtectedItems(str /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1137,7 +1137,7 @@ public virtual AsyncPageable GetProtectableContain /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1172,7 +1172,7 @@ public virtual Pageable GetProtectableContainers(s /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1219,7 +1219,7 @@ public virtual async Task RefreshProtectionContainerAsync(string vault /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1266,7 +1266,7 @@ public virtual Response RefreshProtectionContainer(string vaultName, string fabr /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1300,7 +1300,7 @@ public virtual AsyncPageable GetBackupProtectab /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1333,7 +1333,7 @@ public virtual Pageable GetBackupProtectableIte /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1365,7 +1365,7 @@ public virtual AsyncPageable GetBackupProtect /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1397,7 +1397,7 @@ public virtual Pageable GetBackupProtectionCo /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1429,7 +1429,7 @@ public virtual AsyncPageable GetSoftDeletedPr /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1461,16 +1461,17 @@ public virtual Pageable GetSoftDeletedProtect /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// /// The name of the recovery services vault. /// security pin request. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetSecurityPinAsync(string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) + public virtual async Task> GetSecurityPinAsync(string vaultName, SecurityPinContent content = null, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); @@ -1478,7 +1479,7 @@ public virtual async Task> GetSecurityPinAsync(string scope.Start(); try { - var response = await SecurityPINsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken).ConfigureAwait(false); + var response = await SecurityPINsRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, xMsAuthorizationAuxiliary, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -1501,16 +1502,17 @@ public virtual async Task> GetSecurityPinAsync(string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// /// The name of the recovery services vault. /// security pin request. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetSecurityPin(string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) + public virtual Response GetSecurityPin(string vaultName, SecurityPinContent content = null, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); @@ -1518,7 +1520,7 @@ public virtual Response GetSecurityPin(string vaultName, Secur scope.Start(); try { - var response = SecurityPINsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, cancellationToken); + var response = SecurityPINsRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, vaultName, content, xMsAuthorizationAuxiliary, cancellationToken); return response; } catch (Exception e) @@ -1542,7 +1544,7 @@ public virtual Response GetSecurityPin(string vaultName, Secur /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1588,7 +1590,7 @@ public virtual async Task> PostFetchTieringCostAsy /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1633,7 +1635,7 @@ public virtual ArmOperation PostFetchTieringCost(WaitUntil wait /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1674,7 +1676,7 @@ public virtual async Task> GetGetTieringCostOperationR /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/MockableRecoveryServicesBackupSubscriptionResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/MockableRecoveryServicesBackupSubscriptionResource.cs index f48dbe4ad0f1..3aad7f156b07 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/MockableRecoveryServicesBackupSubscriptionResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/MockableRecoveryServicesBackupSubscriptionResource.cs @@ -65,7 +65,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> ValidateProte /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response ValidateProtectionIntent( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -193,7 +193,7 @@ public virtual async Task> GetBackupStatusAsync(Azu /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -232,7 +232,7 @@ public virtual Response GetBackupStatus(AzureLocation locati /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -271,7 +271,7 @@ public virtual async Task> ValidateFeat /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs index 00a1fc1e1dc1..2d2250816b41 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Extensions/RecoveryServicesBackupExtensions.cs @@ -291,7 +291,7 @@ public static BackupResourceConfigCollection GetBackupResourceConfigs(this Resou /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -329,7 +329,7 @@ public static async Task> GetBackupResour /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -385,7 +385,7 @@ public static BackupProtectionIntentCollection GetBackupProtectionIntents(this R /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -426,7 +426,7 @@ public static async Task> GetBackupProt /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -483,7 +483,7 @@ public static BackupResourceVaultConfigCollection GetBackupResourceVaultConfigs( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -521,7 +521,7 @@ public static async Task> GetBackupR /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -576,7 +576,7 @@ public static BackupResourceEncryptionConfigExtendedCollection GetBackupResource /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -614,7 +614,7 @@ public static async Task /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -669,7 +669,7 @@ public static BackupPrivateEndpointConnectionCollection GetBackupPrivateEndpoint /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -708,7 +708,7 @@ public static async Task> GetB /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -767,7 +767,7 @@ public static BackupProtectionPolicyCollection GetBackupProtectionPolicies(this /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -807,7 +807,7 @@ public static async Task> GetBackupProt /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -865,7 +865,7 @@ public static BackupJobCollection GetBackupJobs(this ResourceGroupResource resou /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -904,7 +904,7 @@ public static async Task> GetBackupJobAsync(this Res /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -962,7 +962,7 @@ public static BackupEngineCollection GetBackupEngines(this ResourceGroupResource /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1003,7 +1003,7 @@ public static async Task> GetBackupEngineAsync(th /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1061,7 +1061,7 @@ public static BackupProtectionContainerCollection GetBackupProtectionContainers( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1101,7 +1101,7 @@ public static async Task> GetBackupP /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1160,7 +1160,7 @@ public static ResourceGuardProxyCollection GetResourceGuardProxies(this Resource /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1199,7 +1199,7 @@ public static async Task> GetResourceGuardP /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1238,7 +1238,7 @@ public static Response GetResourceGuardProxy(this Re /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1274,7 +1274,7 @@ public static AsyncPageable GetBackupProtectionI /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1310,7 +1310,7 @@ public static Pageable GetBackupProtectionIntent /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1346,7 +1346,7 @@ public static AsyncPageable GetBackupUsageSummariesAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1382,7 +1382,7 @@ public static Pageable GetBackupUsageSummaries(this Resou /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1416,7 +1416,7 @@ public static async Task ExportJobAsync(this ResourceGroupResource res /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1450,7 +1450,7 @@ public static Response ExportJob(this ResourceGroupResource resourceGroupResourc /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1486,7 +1486,7 @@ public static AsyncPageable GetBackupProtectedItems /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1522,7 +1522,7 @@ public static Pageable GetBackupProtectedItems(this /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1558,7 +1558,7 @@ public static AsyncPageable GetProtectableContaine /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1595,7 +1595,7 @@ public static Pageable GetProtectableContainers(th /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1635,7 +1635,7 @@ public static async Task RefreshProtectionContainerAsync(this Resource /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -1675,7 +1675,7 @@ public static Response RefreshProtectionContainer(this ResourceGroupResource res /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1712,7 +1712,7 @@ public static AsyncPageable GetBackupProtectabl /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1748,7 +1748,7 @@ public static Pageable GetBackupProtectableItem /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1783,7 +1783,7 @@ public static AsyncPageable GetBackupProtecti /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1818,7 +1818,7 @@ public static Pageable GetBackupProtectionCon /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1853,7 +1853,7 @@ public static AsyncPageable GetSoftDeletedPro /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1888,25 +1888,26 @@ public static Pageable GetSoftDeletedProtecti /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the recovery services vault. /// security pin request. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public static async Task> GetSecurityPinAsync(this ResourceGroupResource resourceGroupResource, string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) + public static async Task> GetSecurityPinAsync(this ResourceGroupResource resourceGroupResource, string vaultName, SecurityPinContent content = null, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return await GetMockableRecoveryServicesBackupResourceGroupResource(resourceGroupResource).GetSecurityPinAsync(vaultName, content, cancellationToken).ConfigureAwait(false); + return await GetMockableRecoveryServicesBackupResourceGroupResource(resourceGroupResource).GetSecurityPinAsync(vaultName, content, xMsAuthorizationAuxiliary, cancellationToken).ConfigureAwait(false); } /// @@ -1922,25 +1923,26 @@ public static async Task> GetSecurityPinAsync(this Re /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The name of the recovery services vault. /// security pin request. + /// The to use. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public static Response GetSecurityPin(this ResourceGroupResource resourceGroupResource, string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) + public static Response GetSecurityPin(this ResourceGroupResource resourceGroupResource, string vaultName, SecurityPinContent content = null, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableRecoveryServicesBackupResourceGroupResource(resourceGroupResource).GetSecurityPin(vaultName, content, cancellationToken); + return GetMockableRecoveryServicesBackupResourceGroupResource(resourceGroupResource).GetSecurityPin(vaultName, content, xMsAuthorizationAuxiliary, cancellationToken); } /// @@ -1957,7 +1959,7 @@ public static Response GetSecurityPin(this ResourceGroupResour /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -1993,7 +1995,7 @@ public static async Task> PostFetchTieringCostAsyn /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -2028,7 +2030,7 @@ public static ArmOperation PostFetchTieringCost(this ResourceGr /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -2062,7 +2064,7 @@ public static async Task> GetGetTieringCostOperationRe /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -2099,7 +2101,7 @@ public static Response GetGetTieringCostOperationResult(this Re /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -2139,7 +2141,7 @@ public static async Task> ValidateProtec /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -2176,7 +2178,7 @@ public static Response ValidateProtectionIntent(t /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -2209,7 +2211,7 @@ public static async Task> GetBackupStatusAsync(this /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -2242,7 +2244,7 @@ public static Response GetBackupStatus(this SubscriptionReso /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// @@ -2275,7 +2277,7 @@ public static async Task> ValidateFeatu /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapAseDatabaseProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapAseDatabaseProtectableItem.Serialization.cs new file mode 100644 index 000000000000..9289986348a5 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapAseDatabaseProtectableItem.Serialization.cs @@ -0,0 +1,231 @@ +// 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; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class AzureVmWorkloadSapAseDatabaseProtectableItem : 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(AzureVmWorkloadSapAseDatabaseProtectableItem)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + AzureVmWorkloadSapAseDatabaseProtectableItem 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(AzureVmWorkloadSapAseDatabaseProtectableItem)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureVmWorkloadSapAseDatabaseProtectableItem(document.RootElement, options); + } + + internal static AzureVmWorkloadSapAseDatabaseProtectableItem DeserializeAzureVmWorkloadSapAseDatabaseProtectableItem(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string parentName = default; + string parentUniqueName = default; + string serverName = default; + bool? isAutoProtectable = default; + bool? isAutoProtected = default; + int? subinquireditemcount = default; + int? subprotectableitemcount = default; + PreBackupValidation prebackupvalidation = default; + bool? isProtectable = default; + string backupManagementType = default; + string workloadType = default; + string protectableItemType = default; + string friendlyName = default; + BackupProtectionStatus? protectionState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("parentName"u8)) + { + parentName = property.Value.GetString(); + continue; + } + if (property.NameEquals("parentUniqueName"u8)) + { + parentUniqueName = property.Value.GetString(); + continue; + } + if (property.NameEquals("serverName"u8)) + { + serverName = property.Value.GetString(); + continue; + } + if (property.NameEquals("isAutoProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isAutoProtectable = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isAutoProtected"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isAutoProtected = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("subinquireditemcount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + subinquireditemcount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("subprotectableitemcount"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + subprotectableitemcount = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("prebackupvalidation"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + prebackupvalidation = PreBackupValidation.DeserializePreBackupValidation(property.Value, options); + continue; + } + if (property.NameEquals("isProtectable"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isProtectable = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("backupManagementType"u8)) + { + backupManagementType = property.Value.GetString(); + continue; + } + if (property.NameEquals("workloadType"u8)) + { + workloadType = property.Value.GetString(); + continue; + } + if (property.NameEquals("protectableItemType"u8)) + { + protectableItemType = property.Value.GetString(); + continue; + } + if (property.NameEquals("friendlyName"u8)) + { + friendlyName = property.Value.GetString(); + continue; + } + if (property.NameEquals("protectionState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + protectionState = new BackupProtectionStatus(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureVmWorkloadSapAseDatabaseProtectableItem( + backupManagementType, + workloadType, + protectableItemType, + friendlyName, + protectionState, + serializedAdditionalRawData, + parentName, + parentUniqueName, + serverName, + isAutoProtectable, + isAutoProtected, + subinquireditemcount, + subprotectableitemcount, + prebackupvalidation, + isProtectable); + } + + 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(AzureVmWorkloadSapAseDatabaseProtectableItem)} does not support writing '{options.Format}' format."); + } + } + + AzureVmWorkloadSapAseDatabaseProtectableItem 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 DeserializeAzureVmWorkloadSapAseDatabaseProtectableItem(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureVmWorkloadSapAseDatabaseProtectableItem)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapAseDatabaseProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapAseDatabaseProtectableItem.cs new file mode 100644 index 000000000000..2953127450b6 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureVmWorkloadSapAseDatabaseProtectableItem.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Azure VM workload-specific protectable item representing SAP ASE Database. + public partial class AzureVmWorkloadSapAseDatabaseProtectableItem : VmWorkloadProtectableItem + { + /// Initializes a new instance of . + public AzureVmWorkloadSapAseDatabaseProtectableItem() + { + ProtectableItemType = "SAPAseDatabase"; + } + + /// Initializes a new instance of . + /// Type of backup management to backup an item. + /// Type of workload for the backup management. + /// Type of the backup item. + /// Friendly name of the backup item. + /// State of the back up item. + /// Keeps track of any properties unknown to the library. + /// Name for instance or AG. + /// + /// Parent Unique Name is added to provide the service formatted URI Name of the Parent + /// Only Applicable for data bases where the parent would be either Instance or a SQL AG. + /// + /// Host/Cluster Name for instance or AG. + /// Indicates if protectable item is auto-protectable. + /// Indicates if protectable item is auto-protected. + /// For instance or AG, indicates number of DB's present. + /// For instance or AG, indicates number of DB's to be protected. + /// Pre-backup validation for protectable objects. + /// Indicates if item is protectable. + internal AzureVmWorkloadSapAseDatabaseProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, IDictionary serializedAdditionalRawData, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, serializedAdditionalRawData, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable) + { + ProtectableItemType = protectableItemType ?? "SAPAseDatabase"; + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRecoveryPoint.Serialization.cs new file mode 100644 index 000000000000..48b6950e07bb --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRecoveryPoint.Serialization.cs @@ -0,0 +1,193 @@ +// 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; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class AzureWorkloadSapAsePointInTimeRecoveryPoint : 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(AzureWorkloadSapAsePointInTimeRecoveryPoint)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + AzureWorkloadSapAsePointInTimeRecoveryPoint 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(AzureWorkloadSapAsePointInTimeRecoveryPoint)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureWorkloadSapAsePointInTimeRecoveryPoint(document.RootElement, options); + } + + internal static AzureWorkloadSapAsePointInTimeRecoveryPoint DeserializeAzureWorkloadSapAsePointInTimeRecoveryPoint(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList timeRanges = default; + DateTimeOffset? recoveryPointTimeInUTC = default; + RestorePointType? type = default; + IList recoveryPointTierDetails = default; + IDictionary recoveryPointMoveReadinessInfo = default; + RecoveryPointProperties recoveryPointProperties = default; + string objectType = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("timeRanges"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PointInTimeRange.DeserializePointInTimeRange(item, options)); + } + timeRanges = array; + continue; + } + if (property.NameEquals("recoveryPointTimeInUTC"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + recoveryPointTimeInUTC = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new RestorePointType(property.Value.GetString()); + continue; + } + if (property.NameEquals("recoveryPointTierDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RecoveryPointTierInformationV2.DeserializeRecoveryPointTierInformationV2(item, options)); + } + recoveryPointTierDetails = array; + continue; + } + if (property.NameEquals("recoveryPointMoveReadinessInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, Models.RecoveryPointMoveReadinessInfo.DeserializeRecoveryPointMoveReadinessInfo(property0.Value, options)); + } + recoveryPointMoveReadinessInfo = dictionary; + continue; + } + if (property.NameEquals("recoveryPointProperties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value, options); + continue; + } + if (property.NameEquals("objectType"u8)) + { + objectType = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureWorkloadSapAsePointInTimeRecoveryPoint( + objectType, + serializedAdditionalRawData, + recoveryPointTimeInUTC, + type, + recoveryPointTierDetails ?? new ChangeTrackingList(), + recoveryPointMoveReadinessInfo ?? new ChangeTrackingDictionary(), + recoveryPointProperties, + timeRanges ?? new ChangeTrackingList()); + } + + 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(AzureWorkloadSapAsePointInTimeRecoveryPoint)} does not support writing '{options.Format}' format."); + } + } + + AzureWorkloadSapAsePointInTimeRecoveryPoint 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 DeserializeAzureWorkloadSapAsePointInTimeRecoveryPoint(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureWorkloadSapAsePointInTimeRecoveryPoint)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRecoveryPoint.cs new file mode 100644 index 000000000000..b71b6fe4ee03 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRecoveryPoint.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// Recovery point specific to PointInTime in SAPAse. + public partial class AzureWorkloadSapAsePointInTimeRecoveryPoint : WorkloadPointInTimeRecoveryPoint + { + /// Initializes a new instance of . + public AzureWorkloadSapAsePointInTimeRecoveryPoint() + { + ObjectType = "AzureWorkloadSAPAsePointInTimeRecoveryPoint"; + } + + /// Initializes a new instance of . + /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// Keeps track of any properties unknown to the library. + /// UTC time at which recovery point was created. + /// Type of restore point. + /// Recovery point tier information. + /// Eligibility of RP to be moved to another tier. + /// Properties of Recovery Point. + /// List of log ranges. + internal AzureWorkloadSapAsePointInTimeRecoveryPoint(string objectType, IDictionary serializedAdditionalRawData, DateTimeOffset? recoveryPointCreatedOn, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties, IList timeRanges) : base(objectType, serializedAdditionalRawData, recoveryPointCreatedOn, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties, timeRanges) + { + ObjectType = objectType ?? "AzureWorkloadSAPAsePointInTimeRecoveryPoint"; + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRestoreRequest.Serialization.cs new file mode 100644 index 000000000000..6217b6107588 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRestoreRequest.Serialization.cs @@ -0,0 +1,244 @@ +// 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; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class AzureWorkloadSapAsePointInTimeRestoreRequest : 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(AzureWorkloadSapAsePointInTimeRestoreRequest)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(PointInTime)) + { + writer.WritePropertyName("pointInTime"u8); + writer.WriteStringValue(PointInTime.Value, "O"); + } + } + + AzureWorkloadSapAsePointInTimeRestoreRequest 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(AzureWorkloadSapAsePointInTimeRestoreRequest)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureWorkloadSapAsePointInTimeRestoreRequest(document.RootElement, options); + } + + internal static AzureWorkloadSapAsePointInTimeRestoreRequest DeserializeAzureWorkloadSapAsePointInTimeRestoreRequest(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + DateTimeOffset? pointInTime = default; + FileShareRecoveryType? recoveryType = default; + ResourceIdentifier sourceResourceId = default; + IDictionary propertyBag = default; + TargetRestoreInfo targetInfo = default; + RecoveryMode? recoveryMode = default; + string targetResourceGroupName = default; + UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails = default; + SnapshotRestoreContent snapshotRestoreParameters = default; + ResourceIdentifier targetVirtualMachineId = default; + string objectType = default; + IList resourceGuardOperationRequests = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("pointInTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + pointInTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("recoveryType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + recoveryType = new FileShareRecoveryType(property.Value.GetString()); + continue; + } + if (property.NameEquals("sourceResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("propertyBag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + propertyBag = dictionary; + continue; + } + if (property.NameEquals("targetInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + targetInfo = TargetRestoreInfo.DeserializeTargetRestoreInfo(property.Value, options); + continue; + } + if (property.NameEquals("recoveryMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + recoveryMode = new RecoveryMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("targetResourceGroupName"u8)) + { + targetResourceGroupName = property.Value.GetString(); + continue; + } + if (property.NameEquals("userAssignedManagedIdentityDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + userAssignedManagedIdentityDetails = UserAssignedManagedIdentityDetails.DeserializeUserAssignedManagedIdentityDetails(property.Value, options); + continue; + } + if (property.NameEquals("snapshotRestoreParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + snapshotRestoreParameters = SnapshotRestoreContent.DeserializeSnapshotRestoreContent(property.Value, options); + continue; + } + if (property.NameEquals("targetVirtualMachineId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("objectType"u8)) + { + objectType = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureWorkloadSapAsePointInTimeRestoreRequest( + objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), + serializedAdditionalRawData, + recoveryType, + sourceResourceId, + propertyBag ?? new ChangeTrackingDictionary(), + targetInfo, + recoveryMode, + targetResourceGroupName, + userAssignedManagedIdentityDetails, + snapshotRestoreParameters, + targetVirtualMachineId, + pointInTime); + } + + 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(AzureWorkloadSapAsePointInTimeRestoreRequest)} does not support writing '{options.Format}' format."); + } + } + + AzureWorkloadSapAsePointInTimeRestoreRequest 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 DeserializeAzureWorkloadSapAsePointInTimeRestoreRequest(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureWorkloadSapAsePointInTimeRestoreRequest)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRestoreRequest.cs new file mode 100644 index 000000000000..7ddf7a993542 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAsePointInTimeRestoreRequest.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// AzureWorkload SAP Ase-specific restore. Specifically for PointInTime/Log restore. + public partial class AzureWorkloadSapAsePointInTimeRestoreRequest : AzureWorkloadSapAseRestoreRequest + { + /// Initializes a new instance of . + public AzureWorkloadSapAsePointInTimeRestoreRequest() + { + ObjectType = "AzureWorkloadSAPAsePointInTimeRestoreRequest"; + } + + /// Initializes a new instance of . + /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Keeps track of any properties unknown to the library. + /// Type of this recovery. + /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. + /// Workload specific property bag. + /// Details of target database. + /// Defines whether the current recovery mode is file restore or database restore. + /// Defines the Resource group of the Target VM. + /// + /// User Assigned managed identity details + /// Currently used for snapshot. + /// + /// + /// Additional details for snapshot recovery + /// Currently used for snapshot for SAP Hana. + /// + /// + /// This is the complete ARM Id of the target VM + /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + /// + /// PointInTime value. + internal AzureWorkloadSapAsePointInTimeRestoreRequest(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) + { + PointInTime = pointInTime; + ObjectType = objectType ?? "AzureWorkloadSAPAsePointInTimeRestoreRequest"; + } + + /// PointInTime value. + public DateTimeOffset? PointInTime { get; set; } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRecoveryPoint.Serialization.cs new file mode 100644 index 000000000000..b9e85d16b8c9 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRecoveryPoint.Serialization.cs @@ -0,0 +1,177 @@ +// 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; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class AzureWorkloadSapAseRecoveryPoint : 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(AzureWorkloadSapAseRecoveryPoint)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + AzureWorkloadSapAseRecoveryPoint 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(AzureWorkloadSapAseRecoveryPoint)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureWorkloadSapAseRecoveryPoint(document.RootElement, options); + } + + internal static AzureWorkloadSapAseRecoveryPoint DeserializeAzureWorkloadSapAseRecoveryPoint(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + DateTimeOffset? recoveryPointTimeInUTC = default; + RestorePointType? type = default; + IList recoveryPointTierDetails = default; + IDictionary recoveryPointMoveReadinessInfo = default; + RecoveryPointProperties recoveryPointProperties = default; + string objectType = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("recoveryPointTimeInUTC"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + recoveryPointTimeInUTC = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("type"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = new RestorePointType(property.Value.GetString()); + continue; + } + if (property.NameEquals("recoveryPointTierDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RecoveryPointTierInformationV2.DeserializeRecoveryPointTierInformationV2(item, options)); + } + recoveryPointTierDetails = array; + continue; + } + if (property.NameEquals("recoveryPointMoveReadinessInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, Models.RecoveryPointMoveReadinessInfo.DeserializeRecoveryPointMoveReadinessInfo(property0.Value, options)); + } + recoveryPointMoveReadinessInfo = dictionary; + continue; + } + if (property.NameEquals("recoveryPointProperties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value, options); + continue; + } + if (property.NameEquals("objectType"u8)) + { + objectType = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureWorkloadSapAseRecoveryPoint( + objectType, + serializedAdditionalRawData, + recoveryPointTimeInUTC, + type, + recoveryPointTierDetails ?? new ChangeTrackingList(), + recoveryPointMoveReadinessInfo ?? new ChangeTrackingDictionary(), + recoveryPointProperties); + } + + 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(AzureWorkloadSapAseRecoveryPoint)} does not support writing '{options.Format}' format."); + } + } + + AzureWorkloadSapAseRecoveryPoint 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 DeserializeAzureWorkloadSapAseRecoveryPoint(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureWorkloadSapAseRecoveryPoint)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRecoveryPoint.cs new file mode 100644 index 000000000000..0e13aa8017aa --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRecoveryPoint.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// SAPAse specific recoverypoint, specifically encapsulates full/diff recoverypoints. + public partial class AzureWorkloadSapAseRecoveryPoint : WorkloadRecoveryPoint + { + /// Initializes a new instance of . + public AzureWorkloadSapAseRecoveryPoint() + { + ObjectType = "AzureWorkloadSAPAseRecoveryPoint"; + } + + /// Initializes a new instance of . + /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// Keeps track of any properties unknown to the library. + /// UTC time at which recovery point was created. + /// Type of restore point. + /// Recovery point tier information. + /// Eligibility of RP to be moved to another tier. + /// Properties of Recovery Point. + internal AzureWorkloadSapAseRecoveryPoint(string objectType, IDictionary serializedAdditionalRawData, DateTimeOffset? recoveryPointCreatedOn, RestorePointType? restorePointType, IList recoveryPointTierDetails, IDictionary recoveryPointMoveReadinessInfo, RecoveryPointProperties recoveryPointProperties) : base(objectType, serializedAdditionalRawData, recoveryPointCreatedOn, restorePointType, recoveryPointTierDetails, recoveryPointMoveReadinessInfo, recoveryPointProperties) + { + ObjectType = objectType ?? "AzureWorkloadSAPAseRecoveryPoint"; + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRestoreRequest.Serialization.cs new file mode 100644 index 000000000000..ffd4c132722a --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRestoreRequest.Serialization.cs @@ -0,0 +1,235 @@ +// 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; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + public partial class AzureWorkloadSapAseRestoreRequest : 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(AzureWorkloadSapAseRestoreRequest)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + AzureWorkloadSapAseRestoreRequest 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(AzureWorkloadSapAseRestoreRequest)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureWorkloadSapAseRestoreRequest(document.RootElement, options); + } + + internal static AzureWorkloadSapAseRestoreRequest DeserializeAzureWorkloadSapAseRestoreRequest(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("objectType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "AzureWorkloadSAPAsePointInTimeRestoreRequest": return AzureWorkloadSapAsePointInTimeRestoreRequest.DeserializeAzureWorkloadSapAsePointInTimeRestoreRequest(element, options); + } + } + FileShareRecoveryType? recoveryType = default; + ResourceIdentifier sourceResourceId = default; + IDictionary propertyBag = default; + TargetRestoreInfo targetInfo = default; + RecoveryMode? recoveryMode = default; + string targetResourceGroupName = default; + UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails = default; + SnapshotRestoreContent snapshotRestoreParameters = default; + ResourceIdentifier targetVirtualMachineId = default; + string objectType = "AzureWorkloadSAPAseRestoreRequest"; + IList resourceGuardOperationRequests = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("recoveryType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + recoveryType = new FileShareRecoveryType(property.Value.GetString()); + continue; + } + if (property.NameEquals("sourceResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("propertyBag"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + propertyBag = dictionary; + continue; + } + if (property.NameEquals("targetInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + targetInfo = TargetRestoreInfo.DeserializeTargetRestoreInfo(property.Value, options); + continue; + } + if (property.NameEquals("recoveryMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + recoveryMode = new RecoveryMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("targetResourceGroupName"u8)) + { + targetResourceGroupName = property.Value.GetString(); + continue; + } + if (property.NameEquals("userAssignedManagedIdentityDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + userAssignedManagedIdentityDetails = UserAssignedManagedIdentityDetails.DeserializeUserAssignedManagedIdentityDetails(property.Value, options); + continue; + } + if (property.NameEquals("snapshotRestoreParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + snapshotRestoreParameters = SnapshotRestoreContent.DeserializeSnapshotRestoreContent(property.Value, options); + continue; + } + if (property.NameEquals("targetVirtualMachineId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + targetVirtualMachineId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("objectType"u8)) + { + objectType = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureWorkloadSapAseRestoreRequest( + objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), + serializedAdditionalRawData, + recoveryType, + sourceResourceId, + propertyBag ?? new ChangeTrackingDictionary(), + targetInfo, + recoveryMode, + targetResourceGroupName, + userAssignedManagedIdentityDetails, + snapshotRestoreParameters, + targetVirtualMachineId); + } + + 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(AzureWorkloadSapAseRestoreRequest)} does not support writing '{options.Format}' format."); + } + } + + AzureWorkloadSapAseRestoreRequest 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 DeserializeAzureWorkloadSapAseRestoreRequest(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureWorkloadSapAseRestoreRequest)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRestoreRequest.cs new file mode 100644 index 000000000000..61985314441a --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/AzureWorkloadSapAseRestoreRequest.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// + /// AzureWorkload SAP Ase-specific restore. + /// 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 . + /// + public partial class AzureWorkloadSapAseRestoreRequest : WorkloadRestoreContent + { + /// Initializes a new instance of . + public AzureWorkloadSapAseRestoreRequest() + { + ObjectType = "AzureWorkloadSAPAseRestoreRequest"; + } + + /// Initializes a new instance of . + /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. + /// Keeps track of any properties unknown to the library. + /// Type of this recovery. + /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. + /// Workload specific property bag. + /// Details of target database. + /// Defines whether the current recovery mode is file restore or database restore. + /// Defines the Resource group of the Target VM. + /// + /// User Assigned managed identity details + /// Currently used for snapshot. + /// + /// + /// Additional details for snapshot recovery + /// Currently used for snapshot for SAP Hana. + /// + /// + /// This is the complete ARM Id of the target VM + /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} + /// + internal AzureWorkloadSapAseRestoreRequest(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) + { + ObjectType = objectType ?? "AzureWorkloadSAPAseRestoreRequest"; + } + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.Serialization.cs index a114b5f658f6..1f3a3a177f1e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.Serialization.cs @@ -80,6 +80,8 @@ internal static BackupGenericRecoveryPoint DeserializeBackupGenericRecoveryPoint case "AzureFileShareRecoveryPoint": return FileShareRecoveryPoint.DeserializeFileShareRecoveryPoint(element, options); case "AzureWorkloadPointInTimeRecoveryPoint": return WorkloadPointInTimeRecoveryPoint.DeserializeWorkloadPointInTimeRecoveryPoint(element, options); case "AzureWorkloadRecoveryPoint": return WorkloadRecoveryPoint.DeserializeWorkloadRecoveryPoint(element, options); + case "AzureWorkloadSAPAsePointInTimeRecoveryPoint": return AzureWorkloadSapAsePointInTimeRecoveryPoint.DeserializeAzureWorkloadSapAsePointInTimeRecoveryPoint(element, options); + case "AzureWorkloadSAPAseRecoveryPoint": return AzureWorkloadSapAseRecoveryPoint.DeserializeAzureWorkloadSapAseRecoveryPoint(element, options); case "AzureWorkloadSAPHanaPointInTimeRecoveryPoint": return WorkloadSapHanaPointInTimeRecoveryPoint.DeserializeWorkloadSapHanaPointInTimeRecoveryPoint(element, options); case "AzureWorkloadSAPHanaRecoveryPoint": return WorkloadSapHanaRecoveryPoint.DeserializeWorkloadSapHanaRecoveryPoint(element, options); case "AzureWorkloadSQLPointInTimeRecoveryPoint": return WorkloadSqlPointInTimeRecoveryPoint.DeserializeWorkloadSqlPointInTimeRecoveryPoint(element, options); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.cs index 6c863371f893..c7359a7b49e0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/BackupGenericRecoveryPoint.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Base class for backup copies. Workload-specific backup copies are derived from this class. /// 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 . /// public abstract partial class BackupGenericRecoveryPoint { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.Serialization.cs index 1b94f3b789f9..7f143a932a12 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.Serialization.cs @@ -60,6 +60,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("recoveryPointProperties"u8); writer.WriteObjectValue(RecoveryPointProperties, options); } + if (Optional.IsCollectionDefined(RecoveryPointTierDetails)) + { + writer.WritePropertyName("recoveryPointTierDetails"u8); + writer.WriteStartArray(); + foreach (var item in RecoveryPointTierDetails) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } } FileShareRecoveryPoint IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -87,6 +97,7 @@ internal static FileShareRecoveryPoint DeserializeFileShareRecoveryPoint(JsonEle Uri fileShareSnapshotUri = default; int? recoveryPointSizeInGB = default; RecoveryPointProperties recoveryPointProperties = default; + IList recoveryPointTierDetails = default; string objectType = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -133,6 +144,20 @@ internal static FileShareRecoveryPoint DeserializeFileShareRecoveryPoint(JsonEle recoveryPointProperties = RecoveryPointProperties.DeserializeRecoveryPointProperties(property.Value, options); continue; } + if (property.NameEquals("recoveryPointTierDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RecoveryPointTierInformation.DeserializeRecoveryPointTierInformation(item, options)); + } + recoveryPointTierDetails = array; + continue; + } if (property.NameEquals("objectType"u8)) { objectType = property.Value.GetString(); @@ -151,7 +176,8 @@ internal static FileShareRecoveryPoint DeserializeFileShareRecoveryPoint(JsonEle recoveryPointTime, fileShareSnapshotUri, recoveryPointSizeInGB, - recoveryPointProperties); + recoveryPointProperties, + recoveryPointTierDetails ?? new ChangeTrackingList()); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.cs index 10eb9ef52ca6..36ecdc312069 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRecoveryPoint.cs @@ -16,6 +16,7 @@ public partial class FileShareRecoveryPoint : BackupGenericRecoveryPoint /// Initializes a new instance of . public FileShareRecoveryPoint() { + RecoveryPointTierDetails = new ChangeTrackingList(); ObjectType = "AzureFileShareRecoveryPoint"; } @@ -27,13 +28,15 @@ public FileShareRecoveryPoint() /// Contains Url to the snapshot of fileshare, if applicable. /// Contains recovery point size. /// Properties of Recovery Point. - internal FileShareRecoveryPoint(string objectType, IDictionary serializedAdditionalRawData, string recoveryPointType, DateTimeOffset? recoveryPointOn, Uri fileShareSnapshotUri, int? recoveryPointSizeInGB, RecoveryPointProperties recoveryPointProperties) : base(objectType, serializedAdditionalRawData) + /// Recovery point tier information. + internal FileShareRecoveryPoint(string objectType, IDictionary serializedAdditionalRawData, string recoveryPointType, DateTimeOffset? recoveryPointOn, Uri fileShareSnapshotUri, int? recoveryPointSizeInGB, RecoveryPointProperties recoveryPointProperties, IList recoveryPointTierDetails) : base(objectType, serializedAdditionalRawData) { RecoveryPointType = recoveryPointType; RecoveryPointOn = recoveryPointOn; FileShareSnapshotUri = fileShareSnapshotUri; RecoveryPointSizeInGB = recoveryPointSizeInGB; RecoveryPointProperties = recoveryPointProperties; + RecoveryPointTierDetails = recoveryPointTierDetails; ObjectType = objectType ?? "AzureFileShareRecoveryPoint"; } @@ -47,5 +50,7 @@ internal FileShareRecoveryPoint(string objectType, IDictionary Properties of Recovery Point. public RecoveryPointProperties RecoveryPointProperties { get; set; } + /// Recovery point tier information. + public IList RecoveryPointTierDetails { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.Serialization.cs index b748e7842c41..4db4fe50878c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.Serialization.cs @@ -99,6 +99,7 @@ internal static FileShareRestoreContent DeserializeFileShareRestoreContent(JsonE IList restoreFileSpecs = default; TargetAfsRestoreInfo targetDetails = default; string objectType = default; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -167,6 +168,20 @@ internal static FileShareRestoreContent DeserializeFileShareRestoreContent(JsonE objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -175,6 +190,7 @@ internal static FileShareRestoreContent DeserializeFileShareRestoreContent(JsonE serializedAdditionalRawData = rawDataDictionary; return new FileShareRestoreContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs index 2914e71ce68b..ea7ad25be56f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/FileShareRestoreContent.cs @@ -23,6 +23,7 @@ public FileShareRestoreContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Source storage account ARM Id. @@ -30,7 +31,7 @@ public FileShareRestoreContent() /// Restore Type (FullShareRestore or ItemLevelRestore). /// List of Source Files/Folders(which need to recover) and TargetFolderPath details. /// Target File Share Details. - internal FileShareRestoreContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, FileShareCopyOption? copyOptions, FileShareRestoreType? restoreRequestType, IList restoreFileSpecs, TargetAfsRestoreInfo targetDetails) : base(objectType, serializedAdditionalRawData) + internal FileShareRestoreContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, FileShareCopyOption? copyOptions, FileShareRestoreType? restoreRequestType, IList restoreFileSpecs, TargetAfsRestoreInfo targetDetails) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData) { RecoveryType = recoveryType; SourceResourceId = sourceResourceId; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs index 148ce3879383..0b1e5257f3ce 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.Serialization.cs @@ -69,6 +69,7 @@ internal static IaasClassicComputeVmProtectedItem DeserializeIaasClassicComputeV string protectedItemDataId = default; IaasVmProtectedItemExtendedInfo extendedInfo = default; IaasVmBackupExtendedProperties extendedProperties = default; + string policyType = default; string protectedItemType = default; BackupManagementType? backupManagementType = default; BackupDataSourceType? workloadType = default; @@ -194,6 +195,11 @@ internal static IaasClassicComputeVmProtectedItem DeserializeIaasClassicComputeV extendedProperties = IaasVmBackupExtendedProperties.DeserializeIaasVmBackupExtendedProperties(property.Value, options); continue; } + if (property.NameEquals("policyType"u8)) + { + policyType = property.Value.GetString(); + continue; + } if (property.NameEquals("protectedItemType"u8)) { protectedItemType = property.Value.GetString(); @@ -384,7 +390,8 @@ internal static IaasClassicComputeVmProtectedItem DeserializeIaasClassicComputeV lastBackupTime, protectedItemDataId, extendedInfo, - extendedProperties); + extendedProperties, + policyType); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs index e7be41085e3e..82f6aa314f15 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasClassicComputeVmProtectedItem.cs @@ -53,7 +53,8 @@ public IaasClassicComputeVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal IaasClassicComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + /// Type of the policy used for protection. + internal IaasClassicComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties, string policyType) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties, policyType) { ProtectedItemType = protectedItemType ?? "Microsoft.ClassicCompute/virtualMachines"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs index 8dadf33db927..78a8e7ebc846 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.Serialization.cs @@ -69,6 +69,7 @@ internal static IaasComputeVmProtectedItem DeserializeIaasComputeVmProtectedItem string protectedItemDataId = default; IaasVmProtectedItemExtendedInfo extendedInfo = default; IaasVmBackupExtendedProperties extendedProperties = default; + string policyType = default; string protectedItemType = default; BackupManagementType? backupManagementType = default; BackupDataSourceType? workloadType = default; @@ -194,6 +195,11 @@ internal static IaasComputeVmProtectedItem DeserializeIaasComputeVmProtectedItem extendedProperties = IaasVmBackupExtendedProperties.DeserializeIaasVmBackupExtendedProperties(property.Value, options); continue; } + if (property.NameEquals("policyType"u8)) + { + policyType = property.Value.GetString(); + continue; + } if (property.NameEquals("protectedItemType"u8)) { protectedItemType = property.Value.GetString(); @@ -384,7 +390,8 @@ internal static IaasComputeVmProtectedItem DeserializeIaasComputeVmProtectedItem lastBackupTime, protectedItemDataId, extendedInfo, - extendedProperties); + extendedProperties, + policyType); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs index b125a90d1f1e..499744ab73cf 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasComputeVmProtectedItem.cs @@ -53,7 +53,8 @@ public IaasComputeVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal IaasComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties) + /// Type of the policy used for protection. + internal IaasComputeVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties, string policyType) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData, friendlyName, virtualMachineId, protectionStatus, protectionState, healthStatus, healthDetails, kpisHealths, lastBackupStatus, lastBackupOn, protectedItemDataId, extendedInfo, extendedProperties, policyType) { ProtectedItemType = protectedItemType ?? "Microsoft.Compute/virtualMachines"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs index 3b3fe319666b..7657f678064f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.Serialization.cs @@ -106,6 +106,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("extendedProperties"u8); writer.WriteObjectValue(ExtendedProperties, options); } + if (options.Format != "W" && Optional.IsDefined(PolicyType)) + { + writer.WritePropertyName("policyType"u8); + writer.WriteStringValue(PolicyType); + } } IaasVmProtectedItem IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -148,6 +153,7 @@ internal static IaasVmProtectedItem DeserializeIaasVmProtectedItem(JsonElement e string protectedItemDataId = default; IaasVmProtectedItemExtendedInfo extendedInfo = default; IaasVmBackupExtendedProperties extendedProperties = default; + string policyType = default; string protectedItemType = "AzureIaaSVMProtectedItem"; BackupManagementType? backupManagementType = default; BackupDataSourceType? workloadType = default; @@ -273,6 +279,11 @@ internal static IaasVmProtectedItem DeserializeIaasVmProtectedItem(JsonElement e extendedProperties = IaasVmBackupExtendedProperties.DeserializeIaasVmBackupExtendedProperties(property.Value, options); continue; } + if (property.NameEquals("policyType"u8)) + { + policyType = property.Value.GetString(); + continue; + } if (property.NameEquals("protectedItemType"u8)) { protectedItemType = property.Value.GetString(); @@ -463,7 +474,8 @@ internal static IaasVmProtectedItem DeserializeIaasVmProtectedItem(JsonElement e lastBackupTime, protectedItemDataId, extendedInfo, - extendedProperties); + extendedProperties, + policyType); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs index 69f322da24ea..064bfb87e28b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectedItem.cs @@ -59,7 +59,8 @@ public IaasVmProtectedItem() /// Data ID of the protected item. /// Additional information for this backup item. /// Extended Properties for Azure IaasVM Backup. - internal IaasVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) + /// Type of the policy used for protection. + internal IaasVmProtectedItem(string protectedItemType, BackupManagementType? backupManagementType, BackupDataSourceType? workloadType, string containerName, ResourceIdentifier sourceResourceId, ResourceIdentifier policyId, DateTimeOffset? lastRecoverOn, string backupSetName, BackupCreateMode? createMode, DateTimeOffset? deferredDeletedOn, bool? isScheduledForDeferredDelete, string deferredDeleteTimeRemaining, bool? isDeferredDeleteScheduleUpcoming, bool? isRehydrate, IList resourceGuardOperationRequests, bool? isArchiveEnabled, string policyName, int? softDeleteRetentionPeriodInDays, string vaultId, IDictionary serializedAdditionalRawData, string friendlyName, ResourceIdentifier virtualMachineId, string protectionStatus, BackupProtectionState? protectionState, IaasVmProtectedItemHealthStatus? healthStatus, IList healthDetails, IDictionary kpisHealths, string lastBackupStatus, DateTimeOffset? lastBackupOn, string protectedItemDataId, IaasVmProtectedItemExtendedInfo extendedInfo, IaasVmBackupExtendedProperties extendedProperties, string policyType) : base(protectedItemType, backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoverOn, backupSetName, createMode, deferredDeletedOn, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests, isArchiveEnabled, policyName, softDeleteRetentionPeriodInDays, vaultId, serializedAdditionalRawData) { FriendlyName = friendlyName; VirtualMachineId = virtualMachineId; @@ -73,6 +74,7 @@ internal IaasVmProtectedItem(string protectedItemType, BackupManagementType? bac ProtectedItemDataId = protectedItemDataId; ExtendedInfo = extendedInfo; ExtendedProperties = extendedProperties; + PolicyType = policyType; ProtectedItemType = protectedItemType ?? "AzureIaaSVMProtectedItem"; } @@ -100,5 +102,7 @@ internal IaasVmProtectedItem(string protectedItemType, BackupManagementType? bac public IaasVmProtectedItemExtendedInfo ExtendedInfo { get; set; } /// Extended Properties for Azure IaasVM Backup. public IaasVmBackupExtendedProperties ExtendedProperties { get; set; } + /// Type of the policy used for protection. + public string PolicyType { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.Serialization.cs index 527b212dc21f..d8cc689a7c5b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.Serialization.cs @@ -76,6 +76,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("policyType"u8); writer.WriteStringValue(PolicyType.Value.ToString()); } + if (Optional.IsDefined(SnapshotConsistencyType)) + { + writer.WritePropertyName("snapshotConsistencyType"u8); + writer.WriteStringValue(SnapshotConsistencyType.Value.ToString()); + } } IaasVmProtectionPolicy IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -105,6 +110,7 @@ internal static IaasVmProtectionPolicy DeserializeIaasVmProtectionPolicy(JsonEle int? instantRpRetentionRangeInDays = default; string timeZone = default; IaasVmPolicyType? policyType = default; + IaasVmSnapshotConsistencyType? snapshotConsistencyType = default; int? protectedItemsCount = default; string backupManagementType = default; IList resourceGuardOperationRequests = default; @@ -176,6 +182,15 @@ internal static IaasVmProtectionPolicy DeserializeIaasVmProtectionPolicy(JsonEle policyType = new IaasVmPolicyType(property.Value.GetString()); continue; } + if (property.NameEquals("snapshotConsistencyType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + snapshotConsistencyType = new IaasVmSnapshotConsistencyType(property.Value.GetString()); + continue; + } if (property.NameEquals("protectedItemsCount"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -221,7 +236,8 @@ internal static IaasVmProtectionPolicy DeserializeIaasVmProtectionPolicy(JsonEle tieringPolicy ?? new ChangeTrackingDictionary(), instantRpRetentionRangeInDays, timeZone, - policyType); + policyType, + snapshotConsistencyType); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.cs index 34b09ad22f41..11c460bb5aea 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmProtectionPolicy.cs @@ -44,7 +44,8 @@ public IaasVmProtectionPolicy() /// Instant RP retention policy range in days. /// TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". /// - internal IaasVmProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, InstantRPAdditionalDetails instantRPDetails, BackupSchedulePolicy schedulePolicy, BackupRetentionPolicy retentionPolicy, IDictionary tieringPolicy, int? instantRPRetentionRangeInDays, string timeZone, IaasVmPolicyType? policyType) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests, serializedAdditionalRawData) + /// + internal IaasVmProtectionPolicy(int? protectedItemsCount, string backupManagementType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, InstantRPAdditionalDetails instantRPDetails, BackupSchedulePolicy schedulePolicy, BackupRetentionPolicy retentionPolicy, IDictionary tieringPolicy, int? instantRPRetentionRangeInDays, string timeZone, IaasVmPolicyType? policyType, IaasVmSnapshotConsistencyType? snapshotConsistencyType) : base(protectedItemsCount, backupManagementType, resourceGuardOperationRequests, serializedAdditionalRawData) { InstantRPDetails = instantRPDetails; SchedulePolicy = schedulePolicy; @@ -53,6 +54,7 @@ internal IaasVmProtectionPolicy(int? protectedItemsCount, string backupManagemen InstantRPRetentionRangeInDays = instantRPRetentionRangeInDays; TimeZone = timeZone; PolicyType = policyType; + SnapshotConsistencyType = snapshotConsistencyType; BackupManagementType = backupManagementType ?? "AzureIaasVM"; } @@ -82,5 +84,7 @@ internal IaasVmProtectionPolicy(int? protectedItemsCount, string backupManagemen public string TimeZone { get; set; } /// Gets or sets the policy type. public IaasVmPolicyType? PolicyType { get; set; } + /// Gets or sets the snapshot consistency type. + public IaasVmSnapshotConsistencyType? SnapshotConsistencyType { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.Serialization.cs index c03fcc93673a..3ac06116c70f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.Serialization.cs @@ -214,6 +214,7 @@ internal static IaasVmRestoreContent DeserializeIaasVmRestoreContent(JsonElement SecuredVmDetails securedVmDetails = default; BackupTargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings = default; string objectType = "IaasVMRestoreRequest"; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -428,6 +429,20 @@ internal static IaasVmRestoreContent DeserializeIaasVmRestoreContent(JsonElement objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -436,6 +451,7 @@ internal static IaasVmRestoreContent DeserializeIaasVmRestoreContent(JsonElement serializedAdditionalRawData = rawDataDictionary; return new IaasVmRestoreContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryPointId, recoveryType, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs index e1b01dcfc3a9..2bfc41fd95a1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreContent.cs @@ -29,6 +29,7 @@ public IaasVmRestoreContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// ID of the backup copy to be recovered. /// Type of this recovery. @@ -75,7 +76,7 @@ public IaasVmRestoreContent() /// /// Stores Secured VM Details. /// Specifies target network access settings for disks of VM to be restored,. - internal IaasVmRestoreContent(string objectType, IDictionary serializedAdditionalRawData, string recoveryPointId, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, ResourceIdentifier targetVirtualMachineId, ResourceIdentifier targetResourceGroupId, ResourceIdentifier storageAccountId, ResourceIdentifier virtualNetworkId, ResourceIdentifier subnetId, ResourceIdentifier targetDomainNameId, AzureLocation? region, string affinityGroup, bool? doesCreateNewCloudService, bool? originalStorageAccountOption, VmEncryptionDetails encryptionDetails, IList restoreDiskLunList, bool? doesRestoreWithManagedDisks, string diskEncryptionSetId, IList zones, BackupIdentityInfo identityInfo, IdentityBasedRestoreDetails identityBasedRestoreDetails, ExtendedLocation extendedLocation, SecuredVmDetails securedVmDetails, BackupTargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings) : base(objectType, serializedAdditionalRawData) + internal IaasVmRestoreContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, string recoveryPointId, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, ResourceIdentifier targetVirtualMachineId, ResourceIdentifier targetResourceGroupId, ResourceIdentifier storageAccountId, ResourceIdentifier virtualNetworkId, ResourceIdentifier subnetId, ResourceIdentifier targetDomainNameId, AzureLocation? region, string affinityGroup, bool? doesCreateNewCloudService, bool? originalStorageAccountOption, VmEncryptionDetails encryptionDetails, IList restoreDiskLunList, bool? doesRestoreWithManagedDisks, string diskEncryptionSetId, IList zones, BackupIdentityInfo identityInfo, IdentityBasedRestoreDetails identityBasedRestoreDetails, ExtendedLocation extendedLocation, SecuredVmDetails securedVmDetails, BackupTargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData) { RecoveryPointId = recoveryPointId; RecoveryType = recoveryType; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.Serialization.cs index f4edc6c6cf9d..61e7c51e2fe8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.Serialization.cs @@ -88,6 +88,7 @@ internal static IaasVmRestoreWithRehydrationContent DeserializeIaasVmRestoreWith SecuredVmDetails securedVmDetails = default; BackupTargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings = default; string objectType = default; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -311,6 +312,20 @@ internal static IaasVmRestoreWithRehydrationContent DeserializeIaasVmRestoreWith objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -319,6 +334,7 @@ internal static IaasVmRestoreWithRehydrationContent DeserializeIaasVmRestoreWith serializedAdditionalRawData = rawDataDictionary; return new IaasVmRestoreWithRehydrationContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryPointId, recoveryType, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.cs index 078ad7102b50..4712d961648c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmRestoreWithRehydrationContent.cs @@ -23,6 +23,7 @@ public IaasVmRestoreWithRehydrationContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// ID of the backup copy to be recovered. /// Type of this recovery. @@ -70,7 +71,7 @@ public IaasVmRestoreWithRehydrationContent() /// Stores Secured VM Details. /// Specifies target network access settings for disks of VM to be restored,. /// RP Rehydration Info. - internal IaasVmRestoreWithRehydrationContent(string objectType, IDictionary serializedAdditionalRawData, string recoveryPointId, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, ResourceIdentifier targetVirtualMachineId, ResourceIdentifier targetResourceGroupId, ResourceIdentifier storageAccountId, ResourceIdentifier virtualNetworkId, ResourceIdentifier subnetId, ResourceIdentifier targetDomainNameId, AzureLocation? region, string affinityGroup, bool? doesCreateNewCloudService, bool? originalStorageAccountOption, VmEncryptionDetails encryptionDetails, IList restoreDiskLunList, bool? doesRestoreWithManagedDisks, string diskEncryptionSetId, IList zones, BackupIdentityInfo identityInfo, IdentityBasedRestoreDetails identityBasedRestoreDetails, ExtendedLocation extendedLocation, SecuredVmDetails securedVmDetails, BackupTargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, serializedAdditionalRawData, recoveryPointId, recoveryType, sourceResourceId, targetVirtualMachineId, targetResourceGroupId, storageAccountId, virtualNetworkId, subnetId, targetDomainNameId, region, affinityGroup, doesCreateNewCloudService, originalStorageAccountOption, encryptionDetails, restoreDiskLunList, doesRestoreWithManagedDisks, diskEncryptionSetId, zones, identityInfo, identityBasedRestoreDetails, extendedLocation, securedVmDetails, targetDiskNetworkAccessSettings) + internal IaasVmRestoreWithRehydrationContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, string recoveryPointId, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, ResourceIdentifier targetVirtualMachineId, ResourceIdentifier targetResourceGroupId, ResourceIdentifier storageAccountId, ResourceIdentifier virtualNetworkId, ResourceIdentifier subnetId, ResourceIdentifier targetDomainNameId, AzureLocation? region, string affinityGroup, bool? doesCreateNewCloudService, bool? originalStorageAccountOption, VmEncryptionDetails encryptionDetails, IList restoreDiskLunList, bool? doesRestoreWithManagedDisks, string diskEncryptionSetId, IList zones, BackupIdentityInfo identityInfo, IdentityBasedRestoreDetails identityBasedRestoreDetails, ExtendedLocation extendedLocation, SecuredVmDetails securedVmDetails, BackupTargetDiskNetworkAccessSettings targetDiskNetworkAccessSettings, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryPointId, recoveryType, sourceResourceId, targetVirtualMachineId, targetResourceGroupId, storageAccountId, virtualNetworkId, subnetId, targetDomainNameId, region, affinityGroup, doesCreateNewCloudService, originalStorageAccountOption, encryptionDetails, restoreDiskLunList, doesRestoreWithManagedDisks, diskEncryptionSetId, zones, identityInfo, identityBasedRestoreDetails, extendedLocation, securedVmDetails, targetDiskNetworkAccessSettings) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "IaasVMRestoreWithRehydrationRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmSnapshotConsistencyType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmSnapshotConsistencyType.cs new file mode 100644 index 000000000000..850febbf8e25 --- /dev/null +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/IaasVmSnapshotConsistencyType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServicesBackup.Models +{ + /// The IaasVmSnapshotConsistencyType. + public readonly partial struct IaasVmSnapshotConsistencyType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IaasVmSnapshotConsistencyType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string OnlyCrashConsistentValue = "OnlyCrashConsistent"; + + /// OnlyCrashConsistent. + public static IaasVmSnapshotConsistencyType OnlyCrashConsistent { get; } = new IaasVmSnapshotConsistencyType(OnlyCrashConsistentValue); + /// Determines if two values are the same. + public static bool operator ==(IaasVmSnapshotConsistencyType left, IaasVmSnapshotConsistencyType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IaasVmSnapshotConsistencyType left, IaasVmSnapshotConsistencyType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator IaasVmSnapshotConsistencyType(string value) => new IaasVmSnapshotConsistencyType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IaasVmSnapshotConsistencyType other && Equals(other); + /// + public bool Equals(IaasVmSnapshotConsistencyType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.Serialization.cs index b8f40dac84a5..b55a4748a6a7 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.Serialization.cs @@ -36,6 +36,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("objectType"u8); writer.WriteStringValue(ObjectType); + if (Optional.IsCollectionDefined(ResourceGuardOperationRequests)) + { + writer.WritePropertyName("resourceGuardOperationRequests"u8); + writer.WriteStartArray(); + foreach (var item in ResourceGuardOperationRequests) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -80,6 +90,8 @@ internal static RestoreContent DeserializeRestoreContent(JsonElement element, Mo case "AzureFileShareRestoreRequest": return FileShareRestoreContent.DeserializeFileShareRestoreContent(element, options); case "AzureWorkloadPointInTimeRestoreRequest": return WorkloadPointInTimeRestoreContent.DeserializeWorkloadPointInTimeRestoreContent(element, options); case "AzureWorkloadRestoreRequest": return WorkloadRestoreContent.DeserializeWorkloadRestoreContent(element, options); + case "AzureWorkloadSAPAsePointInTimeRestoreRequest": return AzureWorkloadSapAsePointInTimeRestoreRequest.DeserializeAzureWorkloadSapAsePointInTimeRestoreRequest(element, options); + case "AzureWorkloadSAPAseRestoreRequest": return AzureWorkloadSapAseRestoreRequest.DeserializeAzureWorkloadSapAseRestoreRequest(element, options); case "AzureWorkloadSAPHanaPointInTimeRestoreRequest": return WorkloadSapHanaPointInTimeRestoreContent.DeserializeWorkloadSapHanaPointInTimeRestoreContent(element, options); case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSapHanaPointInTimeRestoreWithRehydrateContent(element, options); case "AzureWorkloadSAPHanaRestoreRequest": return WorkloadSapHanaRestoreContent.DeserializeWorkloadSapHanaRestoreContent(element, options); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.cs index 448f61a30895..07fe03d5e4ad 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/RestoreContent.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Base class for restore request. Workload-specific restore requests are derived from this class. /// 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 . /// public abstract partial class RestoreContent { @@ -52,18 +52,23 @@ public abstract partial class RestoreContent /// Initializes a new instance of . protected RestoreContent() { + ResourceGuardOperationRequests = new ChangeTrackingList(); } /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. - internal RestoreContent(string objectType, IDictionary serializedAdditionalRawData) + internal RestoreContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData) { ObjectType = objectType; + ResourceGuardOperationRequests = resourceGuardOperationRequests; _serializedAdditionalRawData = serializedAdditionalRawData; } /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. internal string ObjectType { get; set; } + /// ResourceGuardOperationRequests on which LAC check will be performed. + public IList ResourceGuardOperationRequests { get; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SnapshotBackupAdditionalDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SnapshotBackupAdditionalDetails.cs index fb375542fbb7..d39e842604b2 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SnapshotBackupAdditionalDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/SnapshotBackupAdditionalDetails.cs @@ -53,7 +53,7 @@ public SnapshotBackupAdditionalDetails() /// Initializes a new instance of . /// /// - /// + /// User assigned managed identity details. /// Keeps track of any properties unknown to the library. internal SnapshotBackupAdditionalDetails(int? instantRpRetentionRangeInDays, string instantRPDetails, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, IDictionary serializedAdditionalRawData) { @@ -67,7 +67,7 @@ internal SnapshotBackupAdditionalDetails(int? instantRpRetentionRangeInDays, str public int? InstantRpRetentionRangeInDays { get; set; } /// Gets or sets the instant rp details. public string InstantRPDetails { get; set; } - /// Gets or sets the user assigned managed identity details. + /// User assigned managed identity details. public UserAssignedManagedIdentityDetails UserAssignedManagedIdentityDetails { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.Serialization.cs index bd1b07ac9f57..e2d694b6683f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.Serialization.cs @@ -60,6 +60,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("acquireStorageAccountLock"u8); writer.WriteStringValue(AcquireStorageAccountLock.Value.ToString()); } + if (Optional.IsDefined(OperationType)) + { + writer.WritePropertyName("operationType"u8); + writer.WriteStringValue(OperationType.Value.ToString()); + } } StorageContainer IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -87,6 +92,7 @@ internal static StorageContainer DeserializeStorageContainer(JsonElement element string resourceGroup = default; long? protectedItemCount = default; AcquireStorageAccountLock? acquireStorageAccountLock = default; + WorkloadOperationType? operationType = default; string friendlyName = default; BackupManagementType? backupManagementType = default; string registrationStatus = default; @@ -134,6 +140,15 @@ internal static StorageContainer DeserializeStorageContainer(JsonElement element acquireStorageAccountLock = new AcquireStorageAccountLock(property.Value.GetString()); continue; } + if (property.NameEquals("operationType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + operationType = new WorkloadOperationType(property.Value.GetString()); + continue; + } if (property.NameEquals("friendlyName"u8)) { friendlyName = property.Value.GetString(); @@ -186,7 +201,8 @@ internal static StorageContainer DeserializeStorageContainer(JsonElement element storageAccountVersion, resourceGroup, protectedItemCount, - acquireStorageAccountLock); + acquireStorageAccountLock, + operationType); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.cs index 655bafe47a24..fd8e16d25a2e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/StorageContainer.cs @@ -38,13 +38,15 @@ public StorageContainer() /// Resource group name of Recovery Services Vault. /// Number of items backed up in this container. /// Whether storage account lock is to be acquired for this container or not. - internal StorageContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, IDictionary serializedAdditionalRawData, ResourceIdentifier sourceResourceId, string storageAccountVersion, string resourceGroup, long? protectedItemCount, AcquireStorageAccountLock? acquireStorageAccountLock) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, serializedAdditionalRawData) + /// Re-Do Operation. + internal StorageContainer(string friendlyName, BackupManagementType? backupManagementType, string registrationStatus, string healthStatus, ProtectableContainerType containerType, string protectableObjectType, IDictionary serializedAdditionalRawData, ResourceIdentifier sourceResourceId, string storageAccountVersion, string resourceGroup, long? protectedItemCount, AcquireStorageAccountLock? acquireStorageAccountLock, WorkloadOperationType? operationType) : base(friendlyName, backupManagementType, registrationStatus, healthStatus, containerType, protectableObjectType, serializedAdditionalRawData) { SourceResourceId = sourceResourceId; StorageAccountVersion = storageAccountVersion; ResourceGroup = resourceGroup; ProtectedItemCount = protectedItemCount; AcquireStorageAccountLock = acquireStorageAccountLock; + OperationType = operationType; ContainerType = containerType; } @@ -58,5 +60,7 @@ internal StorageContainer(string friendlyName, BackupManagementType? backupManag public long? ProtectedItemCount { get; set; } /// Whether storage account lock is to be acquired for this container or not. public AcquireStorageAccountLock? AcquireStorageAccountLock { get; set; } + /// Re-Do Operation. + public WorkloadOperationType? OperationType { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.cs index 7649dbc4165b..c680cce3436b 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/TriggerRestoreContent.cs @@ -63,7 +63,7 @@ public TriggerRestoreContent(AzureLocation location) : base(location) /// /// RestoreRequestResource properties /// 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 . /// /// Optional ETag. /// Keeps track of any properties unknown to the library. @@ -82,7 +82,7 @@ internal TriggerRestoreContent() /// /// RestoreRequestResource properties /// 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 . /// public RestoreContent Properties { get; set; } /// Optional ETag. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.Serialization.cs index 317589493791..a1e777249f48 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.Serialization.cs @@ -58,6 +58,7 @@ internal static UnknownRestoreRequest DeserializeUnknownRestoreRequest(JsonEleme return null; } string objectType = "Unknown"; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -67,13 +68,27 @@ internal static UnknownRestoreRequest DeserializeUnknownRestoreRequest(JsonEleme objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new UnknownRestoreRequest(objectType, serializedAdditionalRawData); + return new UnknownRestoreRequest(objectType, resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.cs index c1923acee555..32e1c3750126 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UnknownRestoreRequest.cs @@ -15,8 +15,9 @@ internal partial class UnknownRestoreRequest : RestoreContent { /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. - internal UnknownRestoreRequest(string objectType, IDictionary serializedAdditionalRawData) : base(objectType, serializedAdditionalRawData) + internal UnknownRestoreRequest(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData) { ObjectType = objectType ?? "Unknown"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UserAssignedManagedIdentityDetails.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UserAssignedManagedIdentityDetails.cs index f2cf562600f5..28c7d98aa1e4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UserAssignedManagedIdentityDetails.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/UserAssignedManagedIdentityDetails.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models { - /// The UserAssignedManagedIdentityDetails. + /// User assigned managed identity details. public partial class UserAssignedManagedIdentityDetails { /// @@ -52,9 +52,9 @@ public UserAssignedManagedIdentityDetails() } /// Initializes a new instance of . - /// - /// - /// User assigned identity properties. + /// The ARM id of the assigned identity. + /// The name of the assigned identity. + /// User assigned managed identity properties. /// Keeps track of any properties unknown to the library. internal UserAssignedManagedIdentityDetails(string identityArmId, string identityName, UserAssignedIdentity userAssignedIdentityProperties, IDictionary serializedAdditionalRawData) { @@ -64,11 +64,11 @@ internal UserAssignedManagedIdentityDetails(string identityArmId, string identit _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Gets or sets the identity arm id. + /// The ARM id of the assigned identity. public string IdentityArmId { get; set; } - /// Gets or sets the identity name. + /// The name of the assigned identity. public string IdentityName { get; set; } - /// User assigned identity properties. + /// User assigned managed identity properties. public UserAssignedIdentity UserAssignedIdentityProperties { get; set; } } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs index 0752c0a8cb44..39aa42bc0dda 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.Serialization.cs @@ -107,6 +107,7 @@ internal static VmWorkloadProtectableItem DeserializeVmWorkloadProtectableItem(J switch (discriminator.GetString()) { case "HanaHSRContainer": return VmWorkloadSapHanaHsrProtectableItem.DeserializeVmWorkloadSapHanaHsrProtectableItem(element, options); + case "SAPAseDatabase": return AzureVmWorkloadSapAseDatabaseProtectableItem.DeserializeAzureVmWorkloadSapAseDatabaseProtectableItem(element, options); case "SAPAseSystem": return VmWorkloadSapAseSystemProtectableItem.DeserializeVmWorkloadSapAseSystemProtectableItem(element, options); case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectableItem.DeserializeVmWorkloadSapHanaDatabaseProtectableItem(element, options); case "SAPHanaDBInstance": return VmWorkloadSapHanaDBInstance.DeserializeVmWorkloadSapHanaDBInstance(element, options); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs index 6241d5398f70..3be75b8ea3f9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/VmWorkloadProtectableItem.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Azure VM workload-specific protectable item. /// 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 . /// public partial class VmWorkloadProtectableItem : WorkloadProtectableItem { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadOperationType.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadOperationType.cs index 58a3ea03c954..2532ad507389 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadOperationType.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadOperationType.cs @@ -25,6 +25,7 @@ public WorkloadOperationType(string value) private const string InvalidValue = "Invalid"; private const string RegisterValue = "Register"; private const string ReregisterValue = "Reregister"; + private const string RehydrateValue = "Rehydrate"; /// Invalid. public static WorkloadOperationType Invalid { get; } = new WorkloadOperationType(InvalidValue); @@ -32,6 +33,8 @@ public WorkloadOperationType(string value) public static WorkloadOperationType Register { get; } = new WorkloadOperationType(RegisterValue); /// Reregister. public static WorkloadOperationType Reregister { get; } = new WorkloadOperationType(ReregisterValue); + /// Rehydrate. + public static WorkloadOperationType Rehydrate { get; } = new WorkloadOperationType(RehydrateValue); /// Determines if two values are the same. public static bool operator ==(WorkloadOperationType left, WorkloadOperationType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.Serialization.cs index 4e7c12200528..83468d836b73 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.Serialization.cs @@ -71,6 +71,7 @@ internal static WorkloadPointInTimeRecoveryPoint DeserializeWorkloadPointInTimeR { switch (discriminator.GetString()) { + case "AzureWorkloadSAPAsePointInTimeRecoveryPoint": return AzureWorkloadSapAsePointInTimeRecoveryPoint.DeserializeAzureWorkloadSapAsePointInTimeRecoveryPoint(element, options); case "AzureWorkloadSAPHanaPointInTimeRecoveryPoint": return WorkloadSapHanaPointInTimeRecoveryPoint.DeserializeWorkloadSapHanaPointInTimeRecoveryPoint(element, options); } } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs index 7c40a7e936cd..5ff64b17dfc3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRecoveryPoint.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Recovery point specific to PointInTime /// 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 available derived classes include and . /// public partial class WorkloadPointInTimeRecoveryPoint : WorkloadRecoveryPoint { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.Serialization.cs index 8fed864d5610..7775f557ad59 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.Serialization.cs @@ -73,6 +73,7 @@ internal static WorkloadPointInTimeRestoreContent DeserializeWorkloadPointInTime SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = default; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -173,6 +174,20 @@ internal static WorkloadPointInTimeRestoreContent DeserializeWorkloadPointInTime objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -181,6 +196,7 @@ internal static WorkloadPointInTimeRestoreContent DeserializeWorkloadPointInTime serializedAdditionalRawData = rawDataDictionary; return new WorkloadPointInTimeRestoreContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.cs index bb9a780679c5..a76f92865ec5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadPointInTimeRestoreContent.cs @@ -22,6 +22,7 @@ public WorkloadPointInTimeRestoreContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -42,7 +43,7 @@ public WorkloadPointInTimeRestoreContent() /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// /// PointInTime value. - internal WorkloadPointInTimeRestoreContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime) : base(objectType, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) + internal WorkloadPointInTimeRestoreContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) { PointInTime = pointInTime; ObjectType = objectType ?? "AzureWorkloadPointInTimeRestoreRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs index 4d65e4054dd8..7870f0b69b9d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.Serialization.cs @@ -103,6 +103,7 @@ internal static WorkloadProtectableItem DeserializeWorkloadProtectableItem(JsonE case "IaaSVMProtectableItem": return IaasVmProtectableItem.DeserializeIaasVmProtectableItem(element, options); case "Microsoft.ClassicCompute/virtualMachines": return IaasClassicComputeVmProtectableItem.DeserializeIaasClassicComputeVmProtectableItem(element, options); case "Microsoft.Compute/virtualMachines": return IaasComputeVmProtectableItem.DeserializeIaasComputeVmProtectableItem(element, options); + case "SAPAseDatabase": return AzureVmWorkloadSapAseDatabaseProtectableItem.DeserializeAzureVmWorkloadSapAseDatabaseProtectableItem(element, options); case "SAPAseSystem": return VmWorkloadSapAseSystemProtectableItem.DeserializeVmWorkloadSapAseSystemProtectableItem(element, options); case "SAPHanaDatabase": return VmWorkloadSapHanaDatabaseProtectableItem.DeserializeVmWorkloadSapHanaDatabaseProtectableItem(element, options); case "SAPHanaDBInstance": return VmWorkloadSapHanaDBInstance.DeserializeVmWorkloadSapHanaDBInstance(element, options); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs index 6cf0da2f4614..248dd5a17bc9 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItem.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Base class for backup item. Workload-specific backup items are derived from this class. /// 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 . /// public abstract partial class WorkloadProtectableItem { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs index 65ced314288a..154ad550b0b3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadProtectableItemResource.cs @@ -63,7 +63,7 @@ public WorkloadProtectableItemResource(AzureLocation location) : base(location) /// /// WorkloadProtectableItemResource properties /// 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 . /// /// Optional ETag. /// Keeps track of any properties unknown to the library. @@ -82,7 +82,7 @@ internal WorkloadProtectableItemResource() /// /// WorkloadProtectableItemResource properties /// 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 . /// public WorkloadProtectableItem Properties { get; set; } /// Optional ETag. diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.Serialization.cs index 9d71b72950af..6f860b25e222 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.Serialization.cs @@ -98,6 +98,8 @@ internal static WorkloadRecoveryPoint DeserializeWorkloadRecoveryPoint(JsonEleme switch (discriminator.GetString()) { case "AzureWorkloadPointInTimeRecoveryPoint": return WorkloadPointInTimeRecoveryPoint.DeserializeWorkloadPointInTimeRecoveryPoint(element, options); + case "AzureWorkloadSAPAsePointInTimeRecoveryPoint": return AzureWorkloadSapAsePointInTimeRecoveryPoint.DeserializeAzureWorkloadSapAsePointInTimeRecoveryPoint(element, options); + case "AzureWorkloadSAPAseRecoveryPoint": return AzureWorkloadSapAseRecoveryPoint.DeserializeAzureWorkloadSapAseRecoveryPoint(element, options); case "AzureWorkloadSAPHanaPointInTimeRecoveryPoint": return WorkloadSapHanaPointInTimeRecoveryPoint.DeserializeWorkloadSapHanaPointInTimeRecoveryPoint(element, options); case "AzureWorkloadSAPHanaRecoveryPoint": return WorkloadSapHanaRecoveryPoint.DeserializeWorkloadSapHanaRecoveryPoint(element, options); case "AzureWorkloadSQLPointInTimeRecoveryPoint": return WorkloadSqlPointInTimeRecoveryPoint.DeserializeWorkloadSqlPointInTimeRecoveryPoint(element, options); diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs index b895a2f4cbc1..21ac2a9e8f48 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRecoveryPoint.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// Workload specific recovery point, specifically encapsulates full/diff 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 , , , and . + /// The available derived classes include , , , , , and . /// public partial class WorkloadRecoveryPoint : BackupGenericRecoveryPoint { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.Serialization.cs index 2d6b953e98f8..f512d3ddc3f6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.Serialization.cs @@ -113,6 +113,8 @@ internal static WorkloadRestoreContent DeserializeWorkloadRestoreContent(JsonEle switch (discriminator.GetString()) { case "AzureWorkloadPointInTimeRestoreRequest": return WorkloadPointInTimeRestoreContent.DeserializeWorkloadPointInTimeRestoreContent(element, options); + case "AzureWorkloadSAPAsePointInTimeRestoreRequest": return AzureWorkloadSapAsePointInTimeRestoreRequest.DeserializeAzureWorkloadSapAsePointInTimeRestoreRequest(element, options); + case "AzureWorkloadSAPAseRestoreRequest": return AzureWorkloadSapAseRestoreRequest.DeserializeAzureWorkloadSapAseRestoreRequest(element, options); case "AzureWorkloadSAPHanaPointInTimeRestoreRequest": return WorkloadSapHanaPointInTimeRestoreContent.DeserializeWorkloadSapHanaPointInTimeRestoreContent(element, options); case "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest": return WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.DeserializeWorkloadSapHanaPointInTimeRestoreWithRehydrateContent(element, options); case "AzureWorkloadSAPHanaRestoreRequest": return WorkloadSapHanaRestoreContent.DeserializeWorkloadSapHanaRestoreContent(element, options); @@ -133,6 +135,7 @@ internal static WorkloadRestoreContent DeserializeWorkloadRestoreContent(JsonEle SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = "AzureWorkloadRestoreRequest"; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -224,6 +227,20 @@ internal static WorkloadRestoreContent DeserializeWorkloadRestoreContent(JsonEle objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -232,6 +249,7 @@ internal static WorkloadRestoreContent DeserializeWorkloadRestoreContent(JsonEle serializedAdditionalRawData = rawDataDictionary; return new WorkloadRestoreContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.cs index 428e74b272e0..5cc4f9b7e06c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadRestoreContent.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.RecoveryServicesBackup.Models /// /// AzureWorkload-specific restore. /// 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 . /// public partial class WorkloadRestoreContent : RestoreContent { @@ -27,6 +27,7 @@ public WorkloadRestoreContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -46,7 +47,7 @@ public WorkloadRestoreContent() /// This is the complete ARM Id of the target VM /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// - internal WorkloadRestoreContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId) : base(objectType, serializedAdditionalRawData) + internal WorkloadRestoreContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData) { RecoveryType = recoveryType; SourceResourceId = sourceResourceId; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.Serialization.cs index 5f2b373b0590..60da0745bbf3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.Serialization.cs @@ -80,6 +80,7 @@ internal static WorkloadSapHanaPointInTimeRestoreContent DeserializeWorkloadSapH SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = "AzureWorkloadSAPHanaPointInTimeRestoreRequest"; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -180,6 +181,20 @@ internal static WorkloadSapHanaPointInTimeRestoreContent DeserializeWorkloadSapH objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -188,6 +203,7 @@ internal static WorkloadSapHanaPointInTimeRestoreContent DeserializeWorkloadSapH serializedAdditionalRawData = rawDataDictionary; return new WorkloadSapHanaPointInTimeRestoreContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.cs index 7620a2ded80f..5a6272de170f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreContent.cs @@ -26,6 +26,7 @@ public WorkloadSapHanaPointInTimeRestoreContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -46,7 +47,7 @@ public WorkloadSapHanaPointInTimeRestoreContent() /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// /// PointInTime value. - internal WorkloadSapHanaPointInTimeRestoreContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime) : base(objectType, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) + internal WorkloadSapHanaPointInTimeRestoreContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) { PointInTime = pointInTime; ObjectType = objectType ?? "AzureWorkloadSAPHanaPointInTimeRestoreRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.Serialization.cs index f38c7ef17e39..f938c2c2d124 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.Serialization.cs @@ -74,6 +74,7 @@ internal static WorkloadSapHanaPointInTimeRestoreWithRehydrateContent Deserializ SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = default; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -183,6 +184,20 @@ internal static WorkloadSapHanaPointInTimeRestoreWithRehydrateContent Deserializ objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -191,6 +206,7 @@ internal static WorkloadSapHanaPointInTimeRestoreWithRehydrateContent Deserializ serializedAdditionalRawData = rawDataDictionary; return new WorkloadSapHanaPointInTimeRestoreWithRehydrateContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.cs index 435b4fe3537c..29adc3dc9e7e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaPointInTimeRestoreWithRehydrateContent.cs @@ -22,6 +22,7 @@ public WorkloadSapHanaPointInTimeRestoreWithRehydrateContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -43,7 +44,7 @@ public WorkloadSapHanaPointInTimeRestoreWithRehydrateContent() /// /// PointInTime value. /// RP Rehydration Info. - internal WorkloadSapHanaPointInTimeRestoreWithRehydrateContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId, pointInTime) + internal WorkloadSapHanaPointInTimeRestoreWithRehydrateContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, DateTimeOffset? pointInTime, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId, pointInTime) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.Serialization.cs index 01a20ff55db6..64f42f1ece59 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.Serialization.cs @@ -76,6 +76,7 @@ internal static WorkloadSapHanaRestoreContent DeserializeWorkloadSapHanaRestoreC SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = "AzureWorkloadSAPHanaRestoreRequest"; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -167,6 +168,20 @@ internal static WorkloadSapHanaRestoreContent DeserializeWorkloadSapHanaRestoreC objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -175,6 +190,7 @@ internal static WorkloadSapHanaRestoreContent DeserializeWorkloadSapHanaRestoreC serializedAdditionalRawData = rawDataDictionary; return new WorkloadSapHanaRestoreContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.cs index b199854a356c..fd18509e48e4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreContent.cs @@ -26,6 +26,7 @@ public WorkloadSapHanaRestoreContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -45,7 +46,7 @@ public WorkloadSapHanaRestoreContent() /// This is the complete ARM Id of the target VM /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// - internal WorkloadSapHanaRestoreContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId) : base(objectType, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) + internal WorkloadSapHanaRestoreContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) { ObjectType = objectType ?? "AzureWorkloadSAPHanaRestoreRequest"; } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.Serialization.cs index 8ef35e6d8831..48651ac19108 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.Serialization.cs @@ -73,6 +73,7 @@ internal static WorkloadSapHanaRestoreWithRehydrateContent DeserializeWorkloadSa SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = default; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -173,6 +174,20 @@ internal static WorkloadSapHanaRestoreWithRehydrateContent DeserializeWorkloadSa objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -181,6 +196,7 @@ internal static WorkloadSapHanaRestoreWithRehydrateContent DeserializeWorkloadSa serializedAdditionalRawData = rawDataDictionary; return new WorkloadSapHanaRestoreWithRehydrateContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.cs index 3a1432af249b..6891bfa22bb0 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSapHanaRestoreWithRehydrateContent.cs @@ -22,6 +22,7 @@ public WorkloadSapHanaRestoreWithRehydrateContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -42,7 +43,7 @@ public WorkloadSapHanaRestoreWithRehydrateContent() /// For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm} /// /// RP Rehydration Info. - internal WorkloadSapHanaRestoreWithRehydrateContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) + internal WorkloadSapHanaRestoreWithRehydrateContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "AzureWorkloadSAPHanaRestoreWithRehydrateRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.Serialization.cs index 949d28223ecf..0ceefdbcc3a5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.Serialization.cs @@ -83,6 +83,7 @@ internal static WorkloadSqlPointInTimeRestoreContent DeserializeWorkloadSqlPoint SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = "AzureWorkloadSQLPointInTimeRestoreRequest"; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -215,6 +216,20 @@ internal static WorkloadSqlPointInTimeRestoreContent DeserializeWorkloadSqlPoint objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -223,6 +238,7 @@ internal static WorkloadSqlPointInTimeRestoreContent DeserializeWorkloadSqlPoint serializedAdditionalRawData = rawDataDictionary; return new WorkloadSqlPointInTimeRestoreContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.cs index 78756b9cf9fd..2b19bbe5dfa4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreContent.cs @@ -26,6 +26,7 @@ public WorkloadSqlPointInTimeRestoreContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -49,7 +50,7 @@ public WorkloadSqlPointInTimeRestoreContent() /// SQL specific property where user can chose to set no-recovery when restore operation is tried. /// Data directory details. /// PointInTime value. - internal WorkloadSqlPointInTimeRestoreContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, DateTimeOffset? pointInTime) : base(objectType, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths) + internal WorkloadSqlPointInTimeRestoreContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, DateTimeOffset? pointInTime) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths) { PointInTime = pointInTime; ObjectType = objectType ?? "AzureWorkloadSQLPointInTimeRestoreRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.Serialization.cs index 6268b008b0d2..0992ef38d2e8 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.Serialization.cs @@ -77,6 +77,7 @@ internal static WorkloadSqlPointInTimeRestoreWithRehydrateContent DeserializeWor SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = default; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -218,6 +219,20 @@ internal static WorkloadSqlPointInTimeRestoreWithRehydrateContent DeserializeWor objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -226,6 +241,7 @@ internal static WorkloadSqlPointInTimeRestoreWithRehydrateContent DeserializeWor serializedAdditionalRawData = rawDataDictionary; return new WorkloadSqlPointInTimeRestoreWithRehydrateContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.cs index 4854442ea419..1523f37ad894 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlPointInTimeRestoreWithRehydrateContent.cs @@ -22,6 +22,7 @@ public WorkloadSqlPointInTimeRestoreWithRehydrateContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -46,7 +47,7 @@ public WorkloadSqlPointInTimeRestoreWithRehydrateContent() /// Data directory details. /// PointInTime value. /// RP Rehydration Info. - internal WorkloadSqlPointInTimeRestoreWithRehydrateContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, DateTimeOffset? pointInTime, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths, pointInTime) + internal WorkloadSqlPointInTimeRestoreWithRehydrateContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, DateTimeOffset? pointInTime, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths, pointInTime) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.Serialization.cs index d25092c5d87a..18c46a7f2f66 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.Serialization.cs @@ -99,6 +99,7 @@ internal static WorkloadSqlRestoreContent DeserializeWorkloadSqlRestoreContent(J SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = "AzureWorkloadSQLRestoreRequest"; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -222,6 +223,20 @@ internal static WorkloadSqlRestoreContent DeserializeWorkloadSqlRestoreContent(J objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -230,6 +245,7 @@ internal static WorkloadSqlRestoreContent DeserializeWorkloadSqlRestoreContent(J serializedAdditionalRawData = rawDataDictionary; return new WorkloadSqlRestoreContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs index 04a1870bcf00..bac448824b87 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreContent.cs @@ -27,6 +27,7 @@ public WorkloadSqlRestoreContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -49,7 +50,7 @@ public WorkloadSqlRestoreContent() /// Default option set to true. If this is set to false, alternate data directory must be provided. /// SQL specific property where user can chose to set no-recovery when restore operation is tried. /// Data directory details. - internal WorkloadSqlRestoreContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths) : base(objectType, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) + internal WorkloadSqlRestoreContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId) { ShouldUseAlternateTargetLocation = shouldUseAlternateTargetLocation; IsNonRecoverable = isNonRecoverable; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.Serialization.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.Serialization.cs index 736990ecfaa8..4d797fc6b499 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.Serialization.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.Serialization.cs @@ -76,6 +76,7 @@ internal static WorkloadSqlRestoreWithRehydrateContent DeserializeWorkloadSqlRes SnapshotRestoreContent snapshotRestoreParameters = default; ResourceIdentifier targetVirtualMachineId = default; string objectType = default; + IList resourceGuardOperationRequests = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -208,6 +209,20 @@ internal static WorkloadSqlRestoreWithRehydrateContent DeserializeWorkloadSqlRes objectType = property.Value.GetString(); continue; } + if (property.NameEquals("resourceGuardOperationRequests"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceGuardOperationRequests = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -216,6 +231,7 @@ internal static WorkloadSqlRestoreWithRehydrateContent DeserializeWorkloadSqlRes serializedAdditionalRawData = rawDataDictionary; return new WorkloadSqlRestoreWithRehydrateContent( objectType, + resourceGuardOperationRequests ?? new ChangeTrackingList(), serializedAdditionalRawData, recoveryType, sourceResourceId, diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.cs index dcbec82206d4..be3b2f7ec6ff 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/Models/WorkloadSqlRestoreWithRehydrateContent.cs @@ -22,6 +22,7 @@ public WorkloadSqlRestoreWithRehydrateContent() /// Initializes a new instance of . /// This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types. + /// ResourceGuardOperationRequests on which LAC check will be performed. /// Keeps track of any properties unknown to the library. /// Type of this recovery. /// Fully qualified ARM ID of the VM on which workload that was running is being recovered. @@ -45,7 +46,7 @@ public WorkloadSqlRestoreWithRehydrateContent() /// SQL specific property where user can chose to set no-recovery when restore operation is tried. /// Data directory details. /// RP Rehydration Info. - internal WorkloadSqlRestoreWithRehydrateContent(string objectType, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths) + internal WorkloadSqlRestoreWithRehydrateContent(string objectType, IList resourceGuardOperationRequests, IDictionary serializedAdditionalRawData, FileShareRecoveryType? recoveryType, ResourceIdentifier sourceResourceId, IDictionary propertyBag, TargetRestoreInfo targetInfo, RecoveryMode? recoveryMode, string targetResourceGroupName, UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails, SnapshotRestoreContent snapshotRestoreParameters, ResourceIdentifier targetVirtualMachineId, bool? shouldUseAlternateTargetLocation, bool? isNonRecoverable, IList alternateDirectoryPaths, RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) : base(objectType, resourceGuardOperationRequests, serializedAdditionalRawData, recoveryType, sourceResourceId, propertyBag, targetInfo, recoveryMode, targetResourceGroupName, userAssignedManagedIdentityDetails, snapshotRestoreParameters, targetVirtualMachineId, shouldUseAlternateTargetLocation, isNonRecoverable, alternateDirectoryPaths) { RecoveryPointRehydrationInfo = recoveryPointRehydrationInfo; ObjectType = objectType ?? "AzureWorkloadSQLRestoreWithRehydrateRequest"; diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs index 045a776b51dd..6ec877554d7f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyCollection.cs @@ -71,7 +71,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -123,7 +123,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -264,7 +264,7 @@ public virtual Response Get(string resourceGuardProx /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -324,7 +324,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -367,7 +367,7 @@ public virtual async Task> ExistsAsync(string resourceGuardProxyN /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual Response Exists(string resourceGuardProxyName, Cancellation /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs index 5bc6a4f940d9..b9a2690bcf84 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/ResourceGuardProxyResource.cs @@ -104,7 +104,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -273,7 +273,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -370,7 +370,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -412,7 +412,7 @@ public virtual async Task> UnlockDeleteAsync(Unlock /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual Response UnlockDelete(UnlockDeleteContent con /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -511,7 +511,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -568,7 +568,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -624,7 +624,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -680,7 +680,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource @@ -735,7 +735,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2023-06-01 + /// 2025-02-01 /// /// /// Resource diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs index 063b5b9f1a32..11077f6807df 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupEnginesRestOperations.cs @@ -32,7 +32,7 @@ public BackupEnginesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs index be32148d8f63..4a91c755913a 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupJobsRestOperations.cs @@ -32,7 +32,7 @@ public BackupJobsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs index 87cbdcdcd0f0..24aa8a0d1266 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public BackupPoliciesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs index a1398a2e27fe..80beb24356ba 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectableItemsRestOperations.cs @@ -32,7 +32,7 @@ public BackupProtectableItemsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs index e085497c9018..edf5c59d60f6 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectedItemsRestOperations.cs @@ -32,7 +32,7 @@ public BackupProtectedItemsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs index 5841c78e051f..90d3438a057c 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionContainersRestOperations.cs @@ -32,7 +32,7 @@ public BackupProtectionContainersRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs index 2a062db386b4..583895652eee 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupProtectionIntentRestOperations.cs @@ -32,7 +32,7 @@ public BackupProtectionIntentRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs index a18d64710b6e..a718667cc5cb 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceEncryptionConfigsRestOperations.cs @@ -32,7 +32,7 @@ public BackupResourceEncryptionConfigsRestOperations(HttpPipeline pipeline, stri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs index df35b09b585d..7274271c6242 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceStorageConfigsNonCRRRestOperations.cs @@ -31,7 +31,7 @@ public BackupResourceStorageConfigsNonCRRRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs index 6069f7aab16e..44a91f3ab494 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupResourceVaultConfigsRestOperations.cs @@ -31,7 +31,7 @@ public BackupResourceVaultConfigsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -133,7 +133,7 @@ public Response Get(string subscriptionId, string } } - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -148,7 +148,7 @@ internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -164,6 +164,10 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG uri.AppendPath("/backupconfig/vaultconfig", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; + if (xMsAuthorizationAuxiliary != null) + { + request.Headers.Add("x-ms-authorization-auxiliary", xMsAuthorizationAuxiliary); + } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); @@ -178,17 +182,18 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The name of the resource group where the recovery services vault is present. /// The name of the recovery services vault. /// resource config request. + /// The to use. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, vaultName, data); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, vaultName, data, xMsAuthorizationAuxiliary); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -209,17 +214,18 @@ public async Task> UpdateAsync(string su /// The name of the resource group where the recovery services vault is present. /// The name of the recovery services vault. /// resource config request. + /// The to use. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, vaultName, data); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, vaultName, data, xMsAuthorizationAuxiliary); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -235,7 +241,7 @@ public Response Update(string subscriptionId, str } } - internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) + internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -250,7 +256,7 @@ internal RequestUriBuilder CreatePutRequestUri(string subscriptionId, string res return uri; } - internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data) + internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -266,6 +272,10 @@ internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGrou uri.AppendPath("/backupconfig/vaultconfig", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; + if (xMsAuthorizationAuxiliary != null) + { + request.Headers.Add("x-ms-authorization-auxiliary", xMsAuthorizationAuxiliary); + } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); @@ -280,17 +290,18 @@ internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGrou /// The name of the resource group where the recovery services vault is present. /// The name of the recovery services vault. /// resource config request. + /// The to use. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> PutAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) + public async Task> PutAsync(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreatePutRequest(subscriptionId, resourceGroupName, vaultName, data); + using var message = CreatePutRequest(subscriptionId, resourceGroupName, vaultName, data, xMsAuthorizationAuxiliary); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -311,17 +322,18 @@ public async Task> PutAsync(string subsc /// The name of the resource group where the recovery services vault is present. /// The name of the recovery services vault. /// resource config request. + /// The to use. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Put(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, CancellationToken cancellationToken = default) + public Response Put(string subscriptionId, string resourceGroupName, string vaultName, BackupResourceVaultConfigData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreatePutRequest(subscriptionId, resourceGroupName, vaultName, data); + using var message = CreatePutRequest(subscriptionId, resourceGroupName, vaultName, data, xMsAuthorizationAuxiliary); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs index 9873e17d3099..e1df3f8fb824 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupStatusRestOperations.cs @@ -32,7 +32,7 @@ public BackupStatusRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs index 126e83411cb6..b3f937f6df39 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupUsageSummariesRestOperations.cs @@ -32,7 +32,7 @@ public BackupUsageSummariesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs index 2cd7be874a72..f5747f0847b3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupWorkloadItemsRestOperations.cs @@ -32,7 +32,7 @@ public BackupWorkloadItemsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs index 904c55a2d654..8a76713704f3 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/BackupsRestOperations.cs @@ -31,7 +31,7 @@ public BackupsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs index 02a5be11790e..2da8a1da0b71 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/DeletedProtectionContainersRestOperations.cs @@ -32,7 +32,7 @@ public DeletedProtectionContainersRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs index f7af279608fa..ee323115a2db 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FeatureSupportRestOperations.cs @@ -32,7 +32,7 @@ public FeatureSupportRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FetchTieringCostRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FetchTieringCostRestOperations.cs index cc02fdb9f62b..b47e6b9135a1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FetchTieringCostRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/FetchTieringCostRestOperations.cs @@ -31,7 +31,7 @@ public FetchTieringCostRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/GetTieringCostOperationResultRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/GetTieringCostOperationResultRestOperations.cs index f5b8121c54a0..807295a38c1e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/GetTieringCostOperationResultRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/GetTieringCostOperationResultRestOperations.cs @@ -32,7 +32,7 @@ public GetTieringCostOperationResultRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs index 79c403956db2..d935abb63594 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ItemLevelRecoveryConnectionsRestOperations.cs @@ -31,7 +31,7 @@ public ItemLevelRecoveryConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs index 08d89f259d7c..0063068909e1 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobCancellationsRestOperations.cs @@ -30,7 +30,7 @@ public JobCancellationsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs index 4139ca4351c1..f119ac78de9f 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobDetailsRestOperations.cs @@ -31,7 +31,7 @@ public JobDetailsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs index d76f600f8284..bfb76895fd30 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/JobsRestOperations.cs @@ -30,7 +30,7 @@ public JobsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs index 0c6d7dff81c5..dd050ce46064 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/PrivateEndpointConnectionRestOperations.cs @@ -31,7 +31,7 @@ public PrivateEndpointConnectionRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs index 44df383f2e4b..2beb6f79fd2d 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectableContainersRestOperations.cs @@ -32,7 +32,7 @@ public ProtectableContainersRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs index af393563704d..df8d221162b5 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectedItemsRestOperations.cs @@ -31,7 +31,7 @@ public ProtectedItemsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -171,7 +171,7 @@ public Response Get(string subscriptionId, string resou } } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data) + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data, string xMsAuthorizationAuxiliary) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -191,7 +191,7 @@ internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data, string xMsAuthorizationAuxiliary) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -212,6 +212,10 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r uri.AppendPath(protectedItemName, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; + if (xMsAuthorizationAuxiliary != null) + { + request.Headers.Add("x-ms-authorization-auxiliary", xMsAuthorizationAuxiliary); + } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); @@ -232,10 +236,11 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// Container name associated with the backup item. /// Item name to be backed up. /// resource backed up item. + /// The to use. /// The cancellation token to use. /// , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -245,7 +250,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, data); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, data, xMsAuthorizationAuxiliary); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -268,10 +273,11 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// Container name associated with the backup item. /// Item name to be backed up. /// resource backed up item. + /// The to use. /// The cancellation token to use. /// , , , , , or is null. /// , , , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, BackupProtectedItemData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -281,7 +287,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, Argument.AssertNotNullOrEmpty(protectedItemName, nameof(protectedItemName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, data); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, data, xMsAuthorizationAuxiliary); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs index f6ae130bdb69..6b2779a89764 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionContainersRestOperations.cs @@ -31,7 +31,7 @@ public ProtectionContainersRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs index 303ef7d762fa..0bd2805473e4 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionIntentRestOperations.cs @@ -32,7 +32,7 @@ public ProtectionIntentRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs index 57224ffc8f92..694b76ef7f0e 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ProtectionPoliciesRestOperations.cs @@ -31,7 +31,7 @@ public ProtectionPoliciesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -145,7 +145,7 @@ public Response Get(string subscriptionId, string re } } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data) + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data, string xMsAuthorizationAuxiliary) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -161,7 +161,7 @@ internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string subscriptionId, return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data, string xMsAuthorizationAuxiliary) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -178,6 +178,10 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r uri.AppendPath(policyName, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; + if (xMsAuthorizationAuxiliary != null) + { + request.Headers.Add("x-ms-authorization-auxiliary", xMsAuthorizationAuxiliary); + } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); @@ -196,10 +200,11 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The name of the recovery services vault. /// Backup policy to be created. /// resource backup policy. + /// The to use. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -207,7 +212,7 @@ public async Task> CreateOrUpdateAsync(stri Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, vaultName, policyName, data); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, vaultName, policyName, data, xMsAuthorizationAuxiliary); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -234,10 +239,11 @@ public async Task> CreateOrUpdateAsync(stri /// The name of the recovery services vault. /// Backup policy to be created. /// resource backup policy. + /// The to use. /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string policyName, BackupProtectionPolicyData data, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -245,7 +251,7 @@ public Response CreateOrUpdate(string subscriptionId Argument.AssertNotNullOrEmpty(policyName, nameof(policyName)); Argument.AssertNotNull(data, nameof(data)); - using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, vaultName, policyName, data); + using var message = CreateCreateOrUpdateRequest(subscriptionId, resourceGroupName, vaultName, policyName, data, xMsAuthorizationAuxiliary); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs index 3caa4d4f6a10..ffdd2ef8c813 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRecommendedForMoveRestOperations.cs @@ -32,7 +32,7 @@ public RecoveryPointsRecommendedForMoveRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs index 7cb524213ef6..a7160fdced11 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryPointsRestOperations.cs @@ -32,7 +32,7 @@ public RecoveryPointsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs index 7a63e60980ad..5da7bfd71999 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RecoveryServicesBackupRestOperations.cs @@ -31,7 +31,7 @@ public RecoveryServicesBackupRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs index 8ee7a5a442e6..c54a8e1abf93 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/ResourceGuardProxyRestOperations.cs @@ -32,7 +32,7 @@ public ResourceGuardProxyRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs index 8babebfb08fd..d9bb214f3926 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/RestoresRestOperations.cs @@ -31,11 +31,11 @@ public RestoresRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateTriggerRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content) + internal RequestUriBuilder CreateTriggerRequestUri(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content, string xMsAuthorizationAuxiliary) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -58,7 +58,7 @@ internal RequestUriBuilder CreateTriggerRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content) + internal HttpMessage CreateTriggerRequest(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content, string xMsAuthorizationAuxiliary) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -82,6 +82,10 @@ internal HttpMessage CreateTriggerRequest(string subscriptionId, string resource uri.AppendPath("/restore", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; + if (xMsAuthorizationAuxiliary != null) + { + request.Headers.Add("x-ms-authorization-auxiliary", xMsAuthorizationAuxiliary); + } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); var content0 = new Utf8JsonRequestContent(); @@ -103,10 +107,11 @@ internal HttpMessage CreateTriggerRequest(string subscriptionId, string resource /// Backed up item to be restored. /// Recovery point ID which represents the backed up data to be restored. /// resource restore request. + /// The to use. /// The cancellation token to use. /// , , , , , , or is null. /// , , , , , or is an empty string, and was expected to be non-empty. - public async Task TriggerAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content, CancellationToken cancellationToken = default) + public async Task TriggerAsync(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -117,7 +122,7 @@ public async Task TriggerAsync(string subscriptionId, string resourceG Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, content); + using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, content, xMsAuthorizationAuxiliary); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -140,10 +145,11 @@ public async Task TriggerAsync(string subscriptionId, string resourceG /// Backed up item to be restored. /// Recovery point ID which represents the backed up data to be restored. /// resource restore request. + /// The to use. /// The cancellation token to use. /// , , , , , , or is null. /// , , , , , or is an empty string, and was expected to be non-empty. - public Response Trigger(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content, CancellationToken cancellationToken = default) + public Response Trigger(string subscriptionId, string resourceGroupName, string vaultName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, TriggerRestoreContent content, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -154,7 +160,7 @@ public Response Trigger(string subscriptionId, string resourceGroupName, string Argument.AssertNotNullOrEmpty(recoveryPointId, nameof(recoveryPointId)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, content); + using var message = CreateTriggerRequest(subscriptionId, resourceGroupName, vaultName, fabricName, containerName, protectedItemName, recoveryPointId, content, xMsAuthorizationAuxiliary); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs index 9ee5cd44c549..85521041f949 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Generated/RestOperations/SecurityPINsRestOperations.cs @@ -32,11 +32,11 @@ public SecurityPINsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01"; + _apiVersion = apiVersion ?? "2025-02-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content) + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content, string xMsAuthorizationAuxiliary) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -51,7 +51,7 @@ internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string res return uri; } - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content) + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content, string xMsAuthorizationAuxiliary) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -67,6 +67,10 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou uri.AppendPath("/backupSecurityPIN", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; + if (xMsAuthorizationAuxiliary != null) + { + request.Headers.Add("x-ms-authorization-auxiliary", xMsAuthorizationAuxiliary); + } request.Headers.Add("Accept", "application/json"); if (content != null) { @@ -84,16 +88,17 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The name of the resource group where the recovery services vault is present. /// The name of the recovery services vault. /// security pin request. + /// The to use. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content = null, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, content); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, content, xMsAuthorizationAuxiliary); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -114,16 +119,17 @@ public async Task> GetAsync(string subscriptionId, st /// The name of the resource group where the recovery services vault is present. /// The name of the recovery services vault. /// security pin request. + /// The to use. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content = null, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string vaultName, SecurityPinContent content = null, string xMsAuthorizationAuxiliary = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(vaultName, nameof(vaultName)); - using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, content); + using var message = CreateGetRequest(subscriptionId, resourceGroupName, vaultName, content, xMsAuthorizationAuxiliary); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md index bf855ffd7656..890e76778a46 100644 --- a/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md +++ b/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/autorest.md @@ -9,7 +9,7 @@ csharp: true library-name: RecoveryServicesBackup namespace: Azure.ResourceManager.RecoveryServicesBackup # tag: package-2023-06 -require: https://github.com/Azure/azure-rest-api-specs/blob/ec238f30bd6d4a0681b691908fe00b54868467de/specification/recoveryservicesbackup/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 2ca0501b60bd..4e749e6b85b1 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -12,6 +12,8 @@ trigger: - sdk/storage/Azure.Storage.DataMovement/ - sdk/storage/Azure.Storage.DataMovement.Blobs/ - sdk/storage/Azure.Storage.DataMovement.Files/ + exclude: + - sdk/storage/Azure.ResourceManager.Storage/ - sdk/storage/Azure.Storage.DataMovement.Blobs.Files.Shares/ exclude: - sdk/storage/Azure.ResourceManager.Storage/