diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md index 7f054e29fb0d..b3bfaf47c5ff 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2023-01-24) + +- Azure Resource Manager DataProtection client library for Java. This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2023-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md index c460c45b5730..f1b326820986 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md @@ -2,7 +2,7 @@ Azure Resource Manager DataProtection client library for Java. -This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-preview-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2023-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-dataprotection - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md index 0404f6d73708..a63e83878af7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md @@ -19,10 +19,6 @@ - [ValidateForBackup](#backupinstances_validateforbackup) - [ValidateForRestore](#backupinstances_validateforrestore) -## BackupInstancesExtensionRouting - -- [List](#backupinstancesextensionrouting_list) - ## BackupPolicies - [CreateOrUpdate](#backuppolicies_createorupdate) @@ -58,14 +54,6 @@ - [List](#deletedbackupinstances_list) - [Undelete](#deletedbackupinstances_undelete) -## DppResourceGuardProxy - -- [Delete](#dppresourceguardproxy_delete) -- [Get](#dppresourceguardproxy_get) -- [List](#dppresourceguardproxy_list) -- [Put](#dppresourceguardproxy_put) -- [UnlockDelete](#dppresourceguardproxy_unlockdelete) - ## ExportJobs - [Trigger](#exportjobs_trigger) @@ -134,7 +122,7 @@ import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest; /** Samples for BackupInstances AdhocBackup. */ public final class BackupInstancesAdhocBackupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerBackup.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerBackup.json */ /** * Sample code: Trigger Adhoc Backup. @@ -179,7 +167,7 @@ import java.util.Map; /** Samples for BackupInstances CreateOrUpdate. */ public final class BackupInstancesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/PutBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/PutBackupInstance.json */ /** * Sample code: Create BackupInstance. @@ -258,7 +246,7 @@ public final class BackupInstancesCreateOrUpdateSamples { /** Samples for BackupInstances Delete. */ public final class BackupInstancesDeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/DeleteBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json */ /** * Sample code: Delete BackupInstance. @@ -279,7 +267,7 @@ public final class BackupInstancesDeleteSamples { /** Samples for BackupInstances Get. */ public final class BackupInstancesGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetBackupInstance.json */ /** * Sample code: Get BackupInstance. @@ -301,7 +289,7 @@ public final class BackupInstancesGetSamples { /** Samples for BackupInstances GetBackupInstanceOperationResult. */ public final class BackupInstancesGetBackupInstanceOperationResultSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json */ /** * Sample code: Get BackupInstanceOperationResult. @@ -328,7 +316,7 @@ public final class BackupInstancesGetBackupInstanceOperationResultSamples { /** Samples for BackupInstances List. */ public final class BackupInstancesListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListBackupInstances.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ListBackupInstances.json */ /** * Sample code: List BackupInstances in a Vault. @@ -348,7 +336,7 @@ public final class BackupInstancesListSamples { /** Samples for BackupInstances ResumeBackups. */ public final class BackupInstancesResumeBackupsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ResumeBackups.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ResumeBackups.json */ /** * Sample code: ResumeBackups. @@ -367,7 +355,7 @@ public final class BackupInstancesResumeBackupsSamples { /** Samples for BackupInstances ResumeProtection. */ public final class BackupInstancesResumeProtectionSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ResumeProtection.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ResumeProtection.json */ /** * Sample code: ResumeProtection. @@ -386,7 +374,7 @@ public final class BackupInstancesResumeProtectionSamples { /** Samples for BackupInstances StopProtection. */ public final class BackupInstancesStopProtectionSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/StopProtection.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/StopProtection.json */ /** * Sample code: StopProtection. @@ -405,7 +393,7 @@ public final class BackupInstancesStopProtectionSamples { /** Samples for BackupInstances SuspendBackups. */ public final class BackupInstancesSuspendBackupsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/SuspendBackups.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/SuspendBackups.json */ /** * Sample code: SuspendBackups. @@ -427,7 +415,7 @@ import com.azure.resourcemanager.dataprotection.models.SyncType; /** Samples for BackupInstances SyncBackupInstance. */ public final class BackupInstancesSyncBackupInstanceSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/SyncBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/SyncBackupInstance.json */ /** * Sample code: Sync BackupInstance. @@ -456,7 +444,7 @@ import com.azure.resourcemanager.dataprotection.models.RehydrationPriority; /** Samples for BackupInstances TriggerRehydrate. */ public final class BackupInstancesTriggerRehydrateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRehydrate.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json */ /** * Sample code: Trigger Rehydrate. @@ -500,7 +488,7 @@ import com.azure.resourcemanager.dataprotection.models.TargetDetails; /** Samples for BackupInstances TriggerRestore. */ public final class BackupInstancesTriggerRestoreSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json */ /** * Sample code: Trigger Restore As Files. @@ -532,7 +520,7 @@ public final class BackupInstancesTriggerRestoreSamples { } /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json */ /** * Sample code: Trigger Restore With Rehydration. @@ -582,7 +570,7 @@ public final class BackupInstancesTriggerRestoreSamples { } /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestore.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestore.json */ /** * Sample code: Trigger Restore. @@ -651,7 +639,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest; /** Samples for BackupInstances ValidateForBackup. */ public final class BackupInstancesValidateForBackupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ValidateForBackup.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ValidateForBackup.json */ /** * Sample code: Validate For Backup. @@ -721,7 +709,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObj /** Samples for BackupInstances ValidateForRestore. */ public final class BackupInstancesValidateForRestoreSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ValidateRestore.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ValidateRestore.json */ /** * Sample code: Validate Restore. @@ -777,30 +765,6 @@ public final class BackupInstancesValidateForRestoreSamples { } ``` -### BackupInstancesExtensionRouting_List - -```java -/** Samples for BackupInstancesExtensionRouting List. */ -public final class BackupInstancesExtensionRoutingListSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json - */ - /** - * Sample code: List BackupInstances associated with an azure resource. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void listBackupInstancesAssociatedWithAnAzureResource( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .backupInstancesExtensionRoutings() - .list( - "subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk", - com.azure.core.util.Context.NONE); - } -} -``` - ### BackupPolicies_CreateOrUpdate ```java @@ -824,7 +788,7 @@ import java.util.Arrays; /** Samples for BackupPolicies CreateOrUpdate. */ public final class BackupPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json */ /** * Sample code: CreateOrUpdate BackupPolicy. @@ -914,7 +878,7 @@ public final class BackupPoliciesCreateOrUpdateSamples { /** Samples for BackupPolicies Delete. */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/DeleteBackupPolicy.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json */ /** * Sample code: Delete BackupPolicy. @@ -935,7 +899,7 @@ public final class BackupPoliciesDeleteSamples { /** Samples for BackupPolicies Get. */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/GetBackupPolicy.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/GetBackupPolicy.json */ /** * Sample code: Get BackupPolicy. @@ -956,7 +920,7 @@ public final class BackupPoliciesGetSamples { /** Samples for BackupPolicies List. */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/ListBackupPolicy.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/ListBackupPolicy.json */ /** * Sample code: List BackupPolicy. @@ -975,7 +939,7 @@ public final class BackupPoliciesListSamples { /** Samples for BackupVaultOperationResults Get. */ public final class BackupVaultOperationResultsGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetOperationResultPatch.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetOperationResultPatch.json */ /** * Sample code: GetOperationResult Patch. @@ -1002,7 +966,7 @@ import com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequ /** Samples for BackupVaults CheckNameAvailability. */ public final class BackupVaultsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json */ /** * Sample code: Check BackupVaults name availability. @@ -1042,7 +1006,7 @@ import java.util.Map; /** Samples for BackupVaults CreateOrUpdate. */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PutBackupVault.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PutBackupVault.json */ /** * Sample code: Create BackupVault. @@ -1073,7 +1037,7 @@ public final class BackupVaultsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PutBackupVaultWithMSI.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json */ /** * Sample code: Create BackupVault With MSI. @@ -1123,7 +1087,7 @@ public final class BackupVaultsCreateOrUpdateSamples { /** Samples for BackupVaults Delete. */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/DeleteBackupVault.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/DeleteBackupVault.json */ /** * Sample code: Delete BackupVault. @@ -1131,10 +1095,7 @@ public final class BackupVaultsDeleteSamples { * @param manager Entry point to DataProtectionManager. */ public static void deleteBackupVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .backupVaults() - .deleteByResourceGroupWithResponse( - "SampleResourceGroup", "swaggerExample", com.azure.core.util.Context.NONE); + manager.backupVaults().delete("SampleResourceGroup", "swaggerExample", com.azure.core.util.Context.NONE); } } ``` @@ -1145,7 +1106,7 @@ public final class BackupVaultsDeleteSamples { /** Samples for BackupVaults GetByResourceGroup. */ public final class BackupVaultsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVault.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVault.json */ /** * Sample code: Get BackupVault. @@ -1159,7 +1120,7 @@ public final class BackupVaultsGetByResourceGroupSamples { } /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultWithMSI.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json */ /** * Sample code: Get BackupVault With MSI. @@ -1180,7 +1141,7 @@ public final class BackupVaultsGetByResourceGroupSamples { /** Samples for BackupVaults List. */ public final class BackupVaultsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultsInSubscription.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json */ /** * Sample code: Get BackupVaults in Subscription. @@ -1200,7 +1161,7 @@ public final class BackupVaultsListSamples { /** Samples for BackupVaults ListByResourceGroup. */ public final class BackupVaultsListByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json */ /** * Sample code: Get BackupVaults in ResourceGroup. @@ -1228,7 +1189,7 @@ import java.util.Map; /** Samples for BackupVaults Update. */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PatchBackupVault.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PatchBackupVault.json */ /** * Sample code: Patch BackupVault. @@ -1276,7 +1237,7 @@ import com.azure.resourcemanager.dataprotection.models.FeatureValidationRequest; /** Samples for DataProtection CheckFeatureSupport. */ public final class DataProtectionCheckFeatureSupportSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/CheckfeatureSupport.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/CheckfeatureSupport.json */ /** * Sample code: Check Azure Vm Backup Feature Support. @@ -1301,7 +1262,7 @@ public final class DataProtectionCheckFeatureSupportSamples { /** Samples for DataProtectionOperations List. */ public final class DataProtectionOperationsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/Operations/List.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/Operations/List.json */ /** * Sample code: Returns the list of supported REST operations. @@ -1321,7 +1282,7 @@ public final class DataProtectionOperationsListSamples { /** Samples for DeletedBackupInstances Get. */ public final class DeletedBackupInstancesGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json */ /** * Sample code: Get DeletedBackupInstance. @@ -1344,7 +1305,7 @@ public final class DeletedBackupInstancesGetSamples { /** Samples for DeletedBackupInstances List. */ public final class DeletedBackupInstancesListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json */ /** * Sample code: List DeletedBackupInstances in a Vault. @@ -1366,7 +1327,7 @@ public final class DeletedBackupInstancesListSamples { /** Samples for DeletedBackupInstances Undelete. */ public final class DeletedBackupInstancesUndeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json */ /** * Sample code: Undelete Deleted BackupInstance. @@ -1380,142 +1341,13 @@ public final class DeletedBackupInstancesUndeleteSamples { } ``` -### DppResourceGuardProxy_Delete - -```java -/** Samples for DppResourceGuardProxy Delete. */ -public final class DppResourceGuardProxyDeleteSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json - */ - /** - * Sample code: Delete ResourceGuardProxy. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void deleteResourceGuardProxy( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .dppResourceGuardProxies() - .deleteWithResponse( - "SampleResourceGroup", "sampleVault", "swaggerExample", com.azure.core.util.Context.NONE); - } -} -``` - -### DppResourceGuardProxy_Get - -```java -/** Samples for DppResourceGuardProxy Get. */ -public final class DppResourceGuardProxyGetSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json - */ - /** - * Sample code: Get ResourceGuardProxy. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void getResourceGuardProxy(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .dppResourceGuardProxies() - .getWithResponse("SampleResourceGroup", "sampleVault", "swaggerExample", com.azure.core.util.Context.NONE); - } -} -``` - -### DppResourceGuardProxy_List - -```java -/** Samples for DppResourceGuardProxy List. */ -public final class DppResourceGuardProxyListSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json - */ - /** - * Sample code: Get ResourceGuardProxies. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void getResourceGuardProxies(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager.dppResourceGuardProxies().list("SampleResourceGroup", "sampleVault", com.azure.core.util.Context.NONE); - } -} -``` - -### DppResourceGuardProxy_Put - -```java -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; - -/** Samples for DppResourceGuardProxy Put. */ -public final class DppResourceGuardProxyPutSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json - */ - /** - * Sample code: Create ResourceGuardProxy. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void createResourceGuardProxy( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .dppResourceGuardProxies() - .define("swaggerExample") - .withExistingBackupVault("SampleResourceGroup", "sampleVault") - .withProperties( - new ResourceGuardProxyBase() - .withResourceGuardResourceId( - "/subscriptions/f9e67185-f313-4e79-aa71-6458d429369d/resourceGroups/ResourceGuardSecurityAdminRG/providers/Microsoft.DataProtection/resourceGuards/ResourceGuardTestResource")) - .create(); - } -} -``` - -### DppResourceGuardProxy_UnlockDelete - -```java -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest; -import java.util.Arrays; - -/** Samples for DppResourceGuardProxy UnlockDelete. */ -public final class DppResourceGuardProxyUnlockDeleteSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json - */ - /** - * Sample code: UnlockDelete ResourceGuardProxy. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void unlockDeleteResourceGuardProxy( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .dppResourceGuardProxies() - .unlockDeleteWithResponse( - "SampleResourceGroup", - "sampleVault", - "swaggerExample", - new UnlockDeleteRequest() - .withResourceGuardOperationRequests( - Arrays - .asList( - "/subscriptions/f9e67185-f313-4e79-aa71-6458d429369d/resourceGroups/ResourceGuardSecurityAdminRG/providers/Microsoft.DataProtection/resourceGuards/ResourceGuardTestResource/deleteBackupInstanceRequests/default")) - .withResourceToBeDeleted( - "/subscriptions/5e13b949-1218-4d18-8b99-7e12155ec4f7/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/sampleVault/backupInstances/TestBI9779f4de"), - com.azure.core.util.Context.NONE); - } -} -``` - ### ExportJobs_Trigger ```java /** Samples for ExportJobs Trigger. */ public final class ExportJobsTriggerSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/TriggerExportJobs.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/TriggerExportJobs.json */ /** * Sample code: Trigger Export Jobs. @@ -1534,7 +1366,7 @@ public final class ExportJobsTriggerSamples { /** Samples for ExportJobsOperationResult Get. */ public final class ExportJobsOperationResultGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/GetExportJobsOperationResult.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/GetExportJobsOperationResult.json */ /** * Sample code: Get Export Jobs Operation Result. @@ -1560,7 +1392,7 @@ public final class ExportJobsOperationResultGetSamples { /** Samples for Jobs Get. */ public final class JobsGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/GetJob.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/GetJob.json */ /** * Sample code: Get Job. @@ -1585,7 +1417,7 @@ public final class JobsGetSamples { /** Samples for Jobs List. */ public final class JobsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/ListJobs.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/ListJobs.json */ /** * Sample code: Get Jobs. @@ -1604,7 +1436,7 @@ public final class JobsListSamples { /** Samples for OperationResult Get. */ public final class OperationResultGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationResult.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationResult.json */ /** * Sample code: Get OperationResult. @@ -1628,7 +1460,7 @@ public final class OperationResultGetSamples { /** Samples for OperationStatus Get. */ public final class OperationStatusGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatus.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatus.json */ /** * Sample code: Get OperationStatus. @@ -1652,7 +1484,7 @@ public final class OperationStatusGetSamples { /** Samples for OperationStatusBackupVaultContext Get. */ public final class OperationStatusBackupVaultContextGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatusVaultContext.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatusVaultContext.json */ /** * Sample code: Get OperationStatus. @@ -1677,7 +1509,7 @@ public final class OperationStatusBackupVaultContextGetSamples { /** Samples for OperationStatusResourceGroupContext GetByResourceGroup. */ public final class OperationStatusResourceGroupContextGetByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatusRGContext.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatusRGContext.json */ /** * Sample code: Get OperationStatus. @@ -1701,7 +1533,7 @@ public final class OperationStatusResourceGroupContextGetByResourceGroupSamples /** Samples for RecoveryPoints Get. */ public final class RecoveryPointsGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetRecoveryPoint.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json */ /** * Sample code: Get Recovery Point. @@ -1727,7 +1559,7 @@ public final class RecoveryPointsGetSamples { /** Samples for RecoveryPoints List. */ public final class RecoveryPointsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListRecoveryPoints.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json */ /** * Sample code: List Recovery Points in a Vault. @@ -1755,7 +1587,7 @@ public final class RecoveryPointsListSamples { /** Samples for ResourceGuards Delete. */ public final class ResourceGuardsDeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/DeleteResourceGuard.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/DeleteResourceGuard.json */ /** * Sample code: Delete ResourceGuard. @@ -1777,7 +1609,7 @@ public final class ResourceGuardsDeleteSamples { /** Samples for ResourceGuards GetBackupSecurityPinRequestsObjects. */ public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -1800,7 +1632,7 @@ public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples { /** Samples for ResourceGuards GetByResourceGroup. */ public final class ResourceGuardsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetResourceGuard.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetResourceGuard.json */ /** * Sample code: Get ResourceGuard. @@ -1821,7 +1653,7 @@ public final class ResourceGuardsGetByResourceGroupSamples { /** Samples for ResourceGuards GetDefaultBackupSecurityPinRequestsObject. */ public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -1844,7 +1676,7 @@ public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample /** Samples for ResourceGuards GetDefaultDeleteProtectedItemRequestsObject. */ public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -1867,7 +1699,7 @@ public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamp /** Samples for ResourceGuards GetDefaultDeleteResourceGuardProxyRequestsObject. */ public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -1890,7 +1722,7 @@ public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjec /** Samples for ResourceGuards GetDefaultDisableSoftDeleteRequestsObject. */ public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -1913,7 +1745,7 @@ public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample /** Samples for ResourceGuards GetDefaultUpdateProtectedItemRequestsObject. */ public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -1936,7 +1768,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamp /** Samples for ResourceGuards GetDefaultUpdateProtectionPolicyRequestsObject. */ public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -1959,7 +1791,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectS /** Samples for ResourceGuards GetDeleteProtectedItemRequestsObjects. */ public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -1982,7 +1814,7 @@ public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples { /** Samples for ResourceGuards GetDeleteResourceGuardProxyRequestsObjects. */ public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -2005,7 +1837,7 @@ public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSampl /** Samples for ResourceGuards GetDisableSoftDeleteRequestsObjects. */ public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -2028,7 +1860,7 @@ public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples { /** Samples for ResourceGuards GetUpdateProtectedItemRequestsObjects. */ public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -2051,7 +1883,7 @@ public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples { /** Samples for ResourceGuards GetUpdateProtectionPolicyRequestsObjects. */ public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -2074,7 +1906,7 @@ public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples /** Samples for ResourceGuards List. */ public final class ResourceGuardsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetResourceGuardsInSubscription.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetResourceGuardsInSubscription.json */ /** * Sample code: Get ResourceGuards in Subscription. @@ -2094,7 +1926,7 @@ public final class ResourceGuardsListSamples { /** Samples for ResourceGuards ListByResourceGroup. */ public final class ResourceGuardsListByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json */ /** * Sample code: Get ResourceGuards in ResourceGroup. @@ -2118,7 +1950,7 @@ import java.util.Map; /** Samples for ResourceGuards Patch. */ public final class ResourceGuardsPatchSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/PatchResourceGuard.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/PatchResourceGuard.json */ /** * Sample code: Patch ResourceGuard. @@ -2157,7 +1989,7 @@ import java.util.Map; /** Samples for ResourceGuards Put. */ public final class ResourceGuardsPutSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/PutResourceGuard.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/PutResourceGuard.json */ /** * Sample code: Create ResourceGuard. @@ -2196,7 +2028,7 @@ import com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreTyp /** Samples for RestorableTimeRanges Find. */ public final class RestorableTimeRangesFindSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/FindRestorableTimeRanges.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/FindRestorableTimeRanges.json */ /** * Sample code: Find Restorable Time Ranges. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml b/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml index 5655de5896f9..d8ba26beb359 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for DataProtection Management - This package contains Microsoft Azure SDK for DataProtection Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure Data Protection service. Package tag package-preview-2022-11. + This package contains Microsoft Azure SDK for DataProtection Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2023-01. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java index 19b69866bd4b..18b5ca0b5ca9 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java @@ -24,7 +24,6 @@ import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.dataprotection.fluent.DataProtectionClient; -import com.azure.resourcemanager.dataprotection.implementation.BackupInstancesExtensionRoutingsImpl; import com.azure.resourcemanager.dataprotection.implementation.BackupInstancesImpl; import com.azure.resourcemanager.dataprotection.implementation.BackupPoliciesImpl; import com.azure.resourcemanager.dataprotection.implementation.BackupVaultOperationResultsImpl; @@ -33,7 +32,6 @@ import com.azure.resourcemanager.dataprotection.implementation.DataProtectionOperationsImpl; import com.azure.resourcemanager.dataprotection.implementation.DataProtectionsImpl; import com.azure.resourcemanager.dataprotection.implementation.DeletedBackupInstancesImpl; -import com.azure.resourcemanager.dataprotection.implementation.DppResourceGuardProxiesImpl; import com.azure.resourcemanager.dataprotection.implementation.ExportJobsImpl; import com.azure.resourcemanager.dataprotection.implementation.ExportJobsOperationResultsImpl; import com.azure.resourcemanager.dataprotection.implementation.JobsImpl; @@ -45,14 +43,12 @@ import com.azure.resourcemanager.dataprotection.implementation.ResourceGuardsImpl; import com.azure.resourcemanager.dataprotection.implementation.RestorableTimeRangesImpl; import com.azure.resourcemanager.dataprotection.models.BackupInstances; -import com.azure.resourcemanager.dataprotection.models.BackupInstancesExtensionRoutings; import com.azure.resourcemanager.dataprotection.models.BackupPolicies; import com.azure.resourcemanager.dataprotection.models.BackupVaultOperationResults; import com.azure.resourcemanager.dataprotection.models.BackupVaults; import com.azure.resourcemanager.dataprotection.models.DataProtectionOperations; import com.azure.resourcemanager.dataprotection.models.DataProtections; import com.azure.resourcemanager.dataprotection.models.DeletedBackupInstances; -import com.azure.resourcemanager.dataprotection.models.DppResourceGuardProxies; import com.azure.resourcemanager.dataprotection.models.ExportJobs; import com.azure.resourcemanager.dataprotection.models.ExportJobsOperationResults; import com.azure.resourcemanager.dataprotection.models.Jobs; @@ -68,6 +64,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; +import java.util.UUID; import java.util.stream.Collectors; /** Entry point to DataProtectionManager. Open API 2.0 Specs for Azure Data Protection service. */ @@ -92,8 +89,6 @@ public final class DataProtectionManager { private BackupInstances backupInstances; - private BackupInstancesExtensionRoutings backupInstancesExtensionRoutings; - private RecoveryPoints recoveryPoints; private Jobs jobs; @@ -108,8 +103,6 @@ public final class DataProtectionManager { private ResourceGuards resourceGuards; - private DppResourceGuardProxies dppResourceGuardProxies; - private final DataProtectionClient clientObject; private DataProtectionManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -119,7 +112,7 @@ private DataProtectionManager(HttpPipeline httpPipeline, AzureProfile profile, D new DataProtectionClientBuilder() .pipeline(httpPipeline) .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) - .subscriptionId(profile.getSubscriptionId()) + .subscriptionId(UUID.fromString(profile.getSubscriptionId())) .defaultPollInterval(defaultPollInterval) .buildClient(); } @@ -275,7 +268,7 @@ public DataProtectionManager authenticate(TokenCredential credential, AzureProfi .append("-") .append("com.azure.resourcemanager.dataprotection") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -457,19 +450,6 @@ public BackupInstances backupInstances() { return backupInstances; } - /** - * Gets the resource collection API of BackupInstancesExtensionRoutings. - * - * @return Resource collection API of BackupInstancesExtensionRoutings. - */ - public BackupInstancesExtensionRoutings backupInstancesExtensionRoutings() { - if (this.backupInstancesExtensionRoutings == null) { - this.backupInstancesExtensionRoutings = - new BackupInstancesExtensionRoutingsImpl(clientObject.getBackupInstancesExtensionRoutings(), this); - } - return backupInstancesExtensionRoutings; - } - /** * Gets the resource collection API of RecoveryPoints. * @@ -556,19 +536,6 @@ public ResourceGuards resourceGuards() { return resourceGuards; } - /** - * Gets the resource collection API of DppResourceGuardProxies. It manages ResourceGuardProxyBaseResource. - * - * @return Resource collection API of DppResourceGuardProxies. - */ - public DppResourceGuardProxies dppResourceGuardProxies() { - if (this.dppResourceGuardProxies == null) { - this.dppResourceGuardProxies = - new DppResourceGuardProxiesImpl(clientObject.getDppResourceGuardProxies(), this); - } - return dppResourceGuardProxies; - } - /** * @return Wrapped service client DataProtectionClient providing direct access to the underlying auto-generated API * implementation, based on Azure REST API. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java index 4321f88365c5..b2b97c863eb4 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java @@ -25,7 +25,7 @@ public interface BackupInstancesClient { /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -38,7 +38,7 @@ public interface BackupInstancesClient { /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -52,7 +52,7 @@ public interface BackupInstancesClient { /** * Gets a backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -68,7 +68,7 @@ Response getWithResponse( /** * Gets a backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -82,7 +82,7 @@ Response getWithResponse( /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -98,7 +98,7 @@ SyncPoller, BackupInstanceResourceInner> /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -119,7 +119,7 @@ SyncPoller, BackupInstanceResourceInner> /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -135,7 +135,7 @@ BackupInstanceResourceInner createOrUpdate( /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -156,7 +156,7 @@ BackupInstanceResourceInner createOrUpdate( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -171,7 +171,7 @@ SyncPoller, Void> beginDelete( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -187,7 +187,7 @@ SyncPoller, Void> beginDelete( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -200,7 +200,7 @@ SyncPoller, Void> beginDelete( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -214,7 +214,7 @@ SyncPoller, Void> beginDelete( /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -230,7 +230,7 @@ SyncPoller, OperationJobExtendedInfoIn /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -251,7 +251,7 @@ SyncPoller, OperationJobExtendedInfoIn /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -267,7 +267,7 @@ OperationJobExtendedInfoInner adhocBackup( /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -288,7 +288,7 @@ OperationJobExtendedInfoInner adhocBackup( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -303,7 +303,7 @@ SyncPoller, OperationJobExtendedInfoIn /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -319,7 +319,7 @@ SyncPoller, OperationJobExtendedInfoIn /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -334,7 +334,7 @@ OperationJobExtendedInfoInner validateForBackup( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -350,9 +350,9 @@ OperationJobExtendedInfoInner validateForBackup( /** * Get result of backup instance creation operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param operationId The operationId parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -367,9 +367,9 @@ Response getBackupInstanceOperationResultWithRespon /** * Get result of backup instance creation operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -383,9 +383,9 @@ BackupInstanceResourceInner getBackupInstanceOperationResult( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -402,9 +402,9 @@ SyncPoller, Void> beginTriggerRehydrate( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -423,9 +423,9 @@ SyncPoller, Void> beginTriggerRehydrate( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -441,9 +441,9 @@ void triggerRehydrate( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -461,7 +461,7 @@ void triggerRehydrate( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -477,7 +477,7 @@ SyncPoller, OperationJobExtendedInfoIn /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -498,7 +498,7 @@ SyncPoller, OperationJobExtendedInfoIn /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -514,7 +514,7 @@ OperationJobExtendedInfoInner triggerRestore( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -535,9 +535,9 @@ OperationJobExtendedInfoInner triggerRestore( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -550,9 +550,9 @@ SyncPoller, Void> beginResumeBackups( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -566,9 +566,9 @@ SyncPoller, Void> beginResumeBackups( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -579,9 +579,9 @@ SyncPoller, Void> beginResumeBackups( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -593,9 +593,9 @@ SyncPoller, Void> beginResumeBackups( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -608,9 +608,9 @@ SyncPoller, Void> beginResumeProtection( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -624,9 +624,9 @@ SyncPoller, Void> beginResumeProtection( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -637,9 +637,9 @@ SyncPoller, Void> beginResumeProtection( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -651,9 +651,9 @@ SyncPoller, Void> beginResumeProtection( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -666,9 +666,9 @@ SyncPoller, Void> beginStopProtection( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -682,9 +682,9 @@ SyncPoller, Void> beginStopProtection( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -695,9 +695,9 @@ SyncPoller, Void> beginStopProtection( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -710,9 +710,9 @@ SyncPoller, Void> beginStopProtection( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -726,9 +726,9 @@ SyncPoller, Void> beginSuspendBackups( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -743,9 +743,9 @@ SyncPoller, Void> beginSuspendBackups( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -757,9 +757,9 @@ SyncPoller, Void> beginSuspendBackups( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -772,9 +772,9 @@ SyncPoller, Void> beginSuspendBackups( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -789,9 +789,9 @@ SyncPoller, Void> beginSyncBackupInstance( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -811,9 +811,9 @@ SyncPoller, Void> beginSyncBackupInstance( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -827,9 +827,9 @@ void syncBackupInstance( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -847,7 +847,7 @@ void syncBackupInstance( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -863,7 +863,7 @@ SyncPoller, OperationJobExtendedInfoIn /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -884,7 +884,7 @@ SyncPoller, OperationJobExtendedInfoIn /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -900,7 +900,7 @@ OperationJobExtendedInfoInner validateForRestore( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesExtensionRoutingsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesExtensionRoutingsClient.java deleted file mode 100644 index af8701a3964a..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesExtensionRoutingsClient.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.resourcemanager.dataprotection.fluent.models.BackupInstanceResourceInner; - -/** - * An instance of this class provides access to all the operations defined in BackupInstancesExtensionRoutingsClient. - */ -public interface BackupInstancesExtensionRoutingsClient { - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource as paginated response with {@link - * PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceId); - - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource as paginated response with {@link - * PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceId, Context context); -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java index b9da62a3fd43..0a7dbeaa89cf 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java @@ -16,7 +16,7 @@ public interface BackupPoliciesClient { /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -29,7 +29,7 @@ public interface BackupPoliciesClient { /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -43,7 +43,7 @@ public interface BackupPoliciesClient { /** * Gets a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @param context The context to associate with this operation. @@ -59,7 +59,7 @@ Response getWithResponse( /** * Gets a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -73,7 +73,7 @@ Response getWithResponse( /** * Creates or Updates a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName Name of the policy. * @param parameters Request body for operation. @@ -94,7 +94,7 @@ Response createOrUpdateWithResponse( /** * Creates or Updates a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName Name of the policy. * @param parameters Request body for operation. @@ -110,7 +110,7 @@ BaseBackupPolicyResourceInner createOrUpdate( /** * Deletes a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @param context The context to associate with this operation. @@ -126,7 +126,7 @@ Response deleteWithResponse( /** * Deletes a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java index 5cfb7bead114..7d574911deb4 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java @@ -15,7 +15,7 @@ public interface BackupVaultOperationResultsClient { /** * The get operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @param context The context to associate with this operation. @@ -31,7 +31,7 @@ BackupVaultOperationResultsGetResponse getWithResponse( /** * The get operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java index 114a44b6de8b..fbaf0ba77f40 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java @@ -43,7 +43,7 @@ public interface BackupVaultsClient { /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -55,7 +55,7 @@ public interface BackupVaultsClient { /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -68,7 +68,7 @@ public interface BackupVaultsClient { /** * Returns a resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -83,7 +83,7 @@ Response getByResourceGroupWithResponse( /** * Returns a resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -96,7 +96,7 @@ Response getByResourceGroupWithResponse( /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -111,7 +111,7 @@ SyncPoller, BackupVaultResourceInner> begin /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -127,7 +127,7 @@ SyncPoller, BackupVaultResourceInner> begin /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -142,7 +142,7 @@ BackupVaultResourceInner createOrUpdate( /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -158,21 +158,34 @@ BackupVaultResourceInner createOrUpdate( /** * Deletes a BackupVault resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String vaultName); + + /** + * Deletes a BackupVault resource from the resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return the {@link SyncPoller} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String vaultName, Context context); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String vaultName, Context context); /** * Deletes a BackupVault resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -181,10 +194,23 @@ BackupVaultResourceInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String vaultName); + /** + * Deletes a BackupVault resource from the resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String vaultName, Context context); + /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -199,7 +225,7 @@ SyncPoller, BackupVaultResourceInner> begin /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -215,7 +241,7 @@ SyncPoller, BackupVaultResourceInner> begin /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -229,7 +255,7 @@ SyncPoller, BackupVaultResourceInner> begin /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -245,7 +271,7 @@ BackupVaultResourceInner update( /** * API to check for resource name availability. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param location The location in which uniqueness will be verified. * @param parameters Check name availability request. * @param context The context to associate with this operation. @@ -261,7 +287,7 @@ Response checkNameAvailabilityWithResponse( /** * API to check for resource name availability. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param location The location in which uniqueness will be verified. * @param parameters Check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java index 5b76dacfed81..a0783217ebd5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionClient.java @@ -6,15 +6,16 @@ import com.azure.core.http.HttpPipeline; import java.time.Duration; +import java.util.UUID; /** The interface for DataProtectionClient class. */ public interface DataProtectionClient { /** - * Gets The subscription Id. + * Gets The ID of the target subscription. The value must be an UUID. * * @return the subscriptionId value. */ - String getSubscriptionId(); + UUID getSubscriptionId(); /** * Gets server parameter. @@ -114,13 +115,6 @@ public interface DataProtectionClient { */ BackupInstancesClient getBackupInstances(); - /** - * Gets the BackupInstancesExtensionRoutingsClient object to access its operations. - * - * @return the BackupInstancesExtensionRoutingsClient object. - */ - BackupInstancesExtensionRoutingsClient getBackupInstancesExtensionRoutings(); - /** * Gets the RecoveryPointsClient object to access its operations. * @@ -169,11 +163,4 @@ public interface DataProtectionClient { * @return the ResourceGuardsClient object. */ ResourceGuardsClient getResourceGuards(); - - /** - * Gets the DppResourceGuardProxiesClient object to access its operations. - * - * @return the DppResourceGuardProxiesClient object. - */ - DppResourceGuardProxiesClient getDppResourceGuardProxies(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupInstancesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupInstancesClient.java index bc0509285672..3dc27dcf029d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupInstancesClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupInstancesClient.java @@ -18,7 +18,7 @@ public interface DeletedBackupInstancesClient { /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -31,7 +31,7 @@ public interface DeletedBackupInstancesClient { /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -45,7 +45,7 @@ public interface DeletedBackupInstancesClient { /** * Gets a deleted backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. @@ -61,7 +61,7 @@ Response getWithResponse( /** * Gets a deleted backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -75,7 +75,7 @@ Response getWithResponse( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -90,7 +90,7 @@ SyncPoller, Void> beginUndelete( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. @@ -106,7 +106,7 @@ SyncPoller, Void> beginUndelete( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -119,7 +119,7 @@ SyncPoller, Void> beginUndelete( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppResourceGuardProxiesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppResourceGuardProxiesClient.java deleted file mode 100644 index 93e3fd0a63df..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppResourceGuardProxiesClient.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner; -import com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest; - -/** An instance of this class provides access to all the operations defined in DppResourceGuardProxiesClient. */ -public interface DppResourceGuardProxiesClient { - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String vaultName); - - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String vaultName, Context context); - - /** - * The get operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context); - - /** - * The get operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ResourceGuardProxyBaseResourceInner get(String resourceGroupName, String vaultName, String resourceGuardProxyName); - - /** - * The put operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response putWithResponse( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - ResourceGuardProxyBaseResourceInner parameters, - Context context); - - /** - * The put operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ResourceGuardProxyBaseResourceInner put( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - ResourceGuardProxyBaseResourceInner parameters); - - /** - * The delete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context); - - /** - * The delete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String vaultName, String resourceGuardProxyName); - - /** - * The unlockDelete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response unlockDeleteWithResponse( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - UnlockDeleteRequest parameters, - Context context); - - /** - * The unlockDelete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - UnlockDeleteResponseInner unlockDelete( - String resourceGroupName, String vaultName, String resourceGuardProxyName, UnlockDeleteRequest parameters); -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java index 18bb1be7a102..6ae9fd11a96c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java @@ -15,7 +15,7 @@ public interface ExportJobsClient { /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -28,7 +28,7 @@ public interface ExportJobsClient { /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -42,7 +42,7 @@ public interface ExportJobsClient { /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -54,7 +54,7 @@ public interface ExportJobsClient { /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java index fc3c165c2cca..3fe6e43504ed 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java @@ -17,7 +17,7 @@ public interface ExportJobsOperationResultsClient { * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized * format. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId OperationID which represents the export job. * @param context The context to associate with this operation. @@ -35,7 +35,7 @@ Response getWithResponse( * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized * format. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId OperationID which represents the export job. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java index 463fb218b2ba..bcac471a3150 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java @@ -16,7 +16,7 @@ public interface JobsClient { /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -29,7 +29,7 @@ public interface JobsClient { /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -43,7 +43,7 @@ public interface JobsClient { /** * Gets a job with id in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). * @param context The context to associate with this operation. @@ -59,7 +59,7 @@ Response getWithResponse( /** * Gets a job with id in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java index 4c04f6d9dce8..2436b1a3b6e1 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java @@ -17,7 +17,7 @@ public interface OperationStatusBackupVaultContextsClient { /** * Gets the operation status for an operation over a BackupVault's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @param context The context to associate with this operation. @@ -33,7 +33,7 @@ Response getWithResponse( /** * Gets the operation status for an operation over a BackupVault's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java index 472d40349e45..fd2ad538c69d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java @@ -18,7 +18,7 @@ public interface OperationStatusResourceGroupContextsClient { /** * Gets the operation status for an operation over a ResourceGroup's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param operationId The operationId parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -33,7 +33,7 @@ Response getByResourceGroupWithResponse( /** * Gets the operation status for an operation over a ResourceGroup's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java index ccc9f82d795b..e64aa095ffe8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java @@ -16,7 +16,7 @@ public interface RecoveryPointsClient { /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -31,7 +31,7 @@ PagedIterable list( /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param filter OData filter options. @@ -54,7 +54,7 @@ PagedIterable list( /** * Gets a Recovery Point using recoveryPointId for a Datasource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param recoveryPointId The recoveryPointId parameter. @@ -71,7 +71,7 @@ Response getWithResponse( /** * Gets a Recovery Point using recoveryPointId for a Datasource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param recoveryPointId The recoveryPointId parameter. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java index f61273aef70d..acd6878d9e87 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java @@ -11,7 +11,7 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.dataprotection.fluent.models.DppBaseResourceInner; import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardResourceInner; -import com.azure.resourcemanager.dataprotection.models.PatchResourceRequestInput; +import com.azure.resourcemanager.dataprotection.models.PatchResourceGuardInput; /** An instance of this class provides access to all the operations defined in ResourceGuardsClient. */ public interface ResourceGuardsClient { @@ -40,7 +40,7 @@ public interface ResourceGuardsClient { /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -52,7 +52,7 @@ public interface ResourceGuardsClient { /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -65,7 +65,7 @@ public interface ResourceGuardsClient { /** * Creates or updates a ResourceGuard resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -81,7 +81,7 @@ Response putWithResponse( /** * Creates or updates a ResourceGuard resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -96,7 +96,7 @@ ResourceGuardResourceInner put( /** * Returns a ResourceGuard belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -111,7 +111,7 @@ Response getByResourceGroupWithResponse( /** * Returns a ResourceGuard belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -124,7 +124,7 @@ Response getByResourceGroupWithResponse( /** * Deletes a ResourceGuard resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -138,7 +138,7 @@ Response getByResourceGroupWithResponse( /** * Deletes a ResourceGuard resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -150,7 +150,7 @@ Response getByResourceGroupWithResponse( /** * Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -161,12 +161,12 @@ Response getByResourceGroupWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) Response patchWithResponse( - String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters, Context context); + String resourceGroupName, String resourceGuardsName, PatchResourceGuardInput parameters, Context context); /** * Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -176,13 +176,13 @@ Response patchWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) ResourceGuardResourceInner patch( - String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters); + String resourceGroupName, String resourceGuardsName, PatchResourceGuardInput parameters); /** * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -197,7 +197,7 @@ PagedIterable getDisableSoftDeleteRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -213,7 +213,7 @@ PagedIterable getDisableSoftDeleteRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -228,7 +228,7 @@ PagedIterable getDeleteResourceGuardProxyRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -244,7 +244,7 @@ PagedIterable getDeleteResourceGuardProxyRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -259,7 +259,7 @@ PagedIterable getBackupSecurityPinRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -275,7 +275,7 @@ PagedIterable getBackupSecurityPinRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -290,7 +290,7 @@ PagedIterable getDeleteProtectedItemRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -306,7 +306,7 @@ PagedIterable getDeleteProtectedItemRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -321,7 +321,7 @@ PagedIterable getUpdateProtectionPolicyRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -337,7 +337,7 @@ PagedIterable getUpdateProtectionPolicyRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -352,7 +352,7 @@ PagedIterable getUpdateProtectedItemRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -368,7 +368,7 @@ PagedIterable getUpdateProtectedItemRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -385,7 +385,7 @@ Response getDefaultDisableSoftDeleteRequestsObjectWithResp * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -401,7 +401,7 @@ DppBaseResourceInner getDefaultDisableSoftDeleteRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -418,7 +418,7 @@ Response getDefaultDeleteResourceGuardProxyRequestsObjectW * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -434,7 +434,7 @@ DppBaseResourceInner getDefaultDeleteResourceGuardProxyRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -451,7 +451,7 @@ Response getDefaultBackupSecurityPinRequestsObjectWithResp * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -467,7 +467,7 @@ DppBaseResourceInner getDefaultBackupSecurityPinRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -484,7 +484,7 @@ Response getDefaultDeleteProtectedItemRequestsObjectWithRe * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -500,7 +500,7 @@ DppBaseResourceInner getDefaultDeleteProtectedItemRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -517,7 +517,7 @@ Response getDefaultUpdateProtectionPolicyRequestsObjectWit * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -533,7 +533,7 @@ DppBaseResourceInner getDefaultUpdateProtectionPolicyRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -550,7 +550,7 @@ Response getDefaultUpdateProtectedItemRequestsObjectWithRe * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java index 435034a8dec5..f23fcf6392b9 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java @@ -16,7 +16,7 @@ public interface RestorableTimeRangesClient { /** * The find operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -37,7 +37,7 @@ Response findWithRespo /** * The find operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java index 5dd507b2ed23..4107c3fd2912 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java @@ -57,15 +57,15 @@ public BackupVaultResourceInner withProperties(BackupVault properties) { /** {@inheritDoc} */ @Override - public BackupVaultResourceInner withEtag(String etag) { - super.withEtag(etag); + public BackupVaultResourceInner withIdentity(DppIdentityDetails identity) { + super.withIdentity(identity); return this; } /** {@inheritDoc} */ @Override - public BackupVaultResourceInner withIdentity(DppIdentityDetails identity) { - super.withIdentity(identity); + public BackupVaultResourceInner withEtag(String etag) { + super.withEtag(etag); return this; } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java deleted file mode 100644 index 23d0e34c42ef..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.dataprotection.models.DppResource; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The ResourceGuardProxyBaseResource model. */ -@Fluent -public final class ResourceGuardProxyBaseResourceInner extends DppResource { - /* - * ResourceGuardProxyBaseResource properties - */ - @JsonProperty(value = "properties") - private ResourceGuardProxyBase properties; - - /** Creates an instance of ResourceGuardProxyBaseResourceInner class. */ - public ResourceGuardProxyBaseResourceInner() { - } - - /** - * Get the properties property: ResourceGuardProxyBaseResource properties. - * - * @return the properties value. - */ - public ResourceGuardProxyBase properties() { - return this.properties; - } - - /** - * Set the properties property: ResourceGuardProxyBaseResource properties. - * - * @param properties the properties value to set. - * @return the ResourceGuardProxyBaseResourceInner object itself. - */ - public ResourceGuardProxyBaseResourceInner withProperties(ResourceGuardProxyBase properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (properties() != null) { - properties().validate(); - } - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java index 3c4c354bd647..fbacaff915a0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java @@ -5,15 +5,14 @@ package com.azure.resourcemanager.dataprotection.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.dataprotection.models.DppIdentityDetails; -import com.azure.resourcemanager.dataprotection.models.DppTrackedResource; +import com.azure.resourcemanager.dataprotection.models.DppBaseTrackedResource; import com.azure.resourcemanager.dataprotection.models.ResourceGuard; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The ResourceGuardResource model. */ @Fluent -public final class ResourceGuardResourceInner extends DppTrackedResource { +public final class ResourceGuardResourceInner extends DppBaseTrackedResource { /* * ResourceGuardResource properties */ @@ -51,13 +50,6 @@ public ResourceGuardResourceInner withEtag(String etag) { return this; } - /** {@inheritDoc} */ - @Override - public ResourceGuardResourceInner withIdentity(DppIdentityDetails identity) { - super.withIdentity(identity); - return this; - } - /** {@inheritDoc} */ @Override public ResourceGuardResourceInner withLocation(String location) { diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/UnlockDeleteResponseInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/UnlockDeleteResponseInner.java deleted file mode 100644 index 3a18c252bb9a..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/UnlockDeleteResponseInner.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Response of Unlock Delete API. */ -@Fluent -public final class UnlockDeleteResponseInner { - /* - * This is the time when unlock delete privileges will get expired. - */ - @JsonProperty(value = "unlockDeleteExpiryTime") - private String unlockDeleteExpiryTime; - - /** Creates an instance of UnlockDeleteResponseInner class. */ - public UnlockDeleteResponseInner() { - } - - /** - * Get the unlockDeleteExpiryTime property: This is the time when unlock delete privileges will get expired. - * - * @return the unlockDeleteExpiryTime value. - */ - public String unlockDeleteExpiryTime() { - return this.unlockDeleteExpiryTime; - } - - /** - * Set the unlockDeleteExpiryTime property: This is the time when unlock delete privileges will get expired. - * - * @param unlockDeleteExpiryTime the unlockDeleteExpiryTime value to set. - * @return the UnlockDeleteResponseInner object itself. - */ - public UnlockDeleteResponseInner withUnlockDeleteExpiryTime(String unlockDeleteExpiryTime) { - this.unlockDeleteExpiryTime = unlockDeleteExpiryTime; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java index c97ad45dc4e5..292ae0e63669 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java @@ -43,6 +43,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest; import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject; import java.nio.ByteBuffer; +import java.util.UUID; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -81,7 +82,7 @@ public interface BackupInstancesService { Mono> list( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @HeaderParam("Accept") String accept, @@ -96,7 +97,7 @@ Mono> list( Mono> get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -112,7 +113,7 @@ Mono> get( Mono>> createOrUpdate( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -129,7 +130,7 @@ Mono>> createOrUpdate( Mono>> delete( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -145,7 +146,7 @@ Mono>> delete( Mono>> adhocBackup( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -162,7 +163,7 @@ Mono>> adhocBackup( Mono>> validateForBackup( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @BodyParam("application/json") ValidateForBackupRequest parameters, @@ -177,7 +178,7 @@ Mono>> validateForBackup( @UnexpectedResponseExceptionType(ManagementException.class) Mono> getBackupInstanceOperationResult( @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -196,7 +197,7 @@ Mono>> triggerRehydrate( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @BodyParam("application/json") AzureBackupRehydrationRequest parameters, @@ -212,7 +213,7 @@ Mono>> triggerRehydrate( Mono>> triggerRestore( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -228,7 +229,7 @@ Mono>> triggerRestore( @UnexpectedResponseExceptionType(ManagementException.class) Mono>> resumeBackups( @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -244,7 +245,7 @@ Mono>> resumeBackups( @UnexpectedResponseExceptionType(ManagementException.class) Mono>> resumeProtection( @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -260,7 +261,7 @@ Mono>> resumeProtection( @UnexpectedResponseExceptionType(ManagementException.class) Mono>> stopProtection( @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -276,7 +277,7 @@ Mono>> stopProtection( @UnexpectedResponseExceptionType(ManagementException.class) Mono>> suspendBackups( @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -292,7 +293,7 @@ Mono>> suspendBackups( @UnexpectedResponseExceptionType(ManagementException.class) Mono>> syncBackupInstance( @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -310,7 +311,7 @@ Mono>> syncBackupInstance( Mono>> validateForRestore( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -332,7 +333,7 @@ Mono> listNext( /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -390,7 +391,7 @@ private Mono> listSinglePageAsync( /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -446,7 +447,7 @@ private Mono> listSinglePageAsync( /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -462,7 +463,7 @@ private PagedFlux listAsync(String resourceGroupNam /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -481,7 +482,7 @@ private PagedFlux listAsync( /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -496,7 +497,7 @@ public PagedIterable list(String resourceGroupName, /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -513,7 +514,7 @@ public PagedIterable list( /** * Gets a backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -568,7 +569,7 @@ private Mono> getWithResponseAsync( /** * Gets a backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -621,7 +622,7 @@ private Mono> getWithResponseAsync( /** * Gets a backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -639,7 +640,7 @@ private Mono getAsync( /** * Gets a backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -657,7 +658,7 @@ public Response getWithResponse( /** * Gets a backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -673,7 +674,7 @@ public BackupInstanceResourceInner get(String resourceGroupName, String vaultNam /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -734,7 +735,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -797,7 +798,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -824,7 +825,7 @@ private PollerFlux, BackupInstanceResour /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -857,7 +858,7 @@ private PollerFlux, BackupInstanceResour /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -877,7 +878,7 @@ public SyncPoller, BackupInstanceResourc /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -902,7 +903,7 @@ public SyncPoller, BackupInstanceResourc /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -922,7 +923,7 @@ private Mono createOrUpdateAsync( /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -947,7 +948,7 @@ private Mono createOrUpdateAsync( /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -965,7 +966,7 @@ public BackupInstanceResourceInner createOrUpdate( /** * Create or update a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -988,7 +989,7 @@ public BackupInstanceResourceInner createOrUpdate( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1042,7 +1043,7 @@ private Mono>> deleteWithResponseAsync( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -1094,7 +1095,7 @@ private Mono>> deleteWithResponseAsync( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1116,7 +1117,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -1139,7 +1140,7 @@ private PollerFlux, Void> beginDeleteAsync( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1156,7 +1157,7 @@ public SyncPoller, Void> beginDelete( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -1174,7 +1175,7 @@ public SyncPoller, Void> beginDelete( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1192,7 +1193,7 @@ private Mono deleteAsync(String resourceGroupName, String vaultName, Strin /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -1212,7 +1213,7 @@ private Mono deleteAsync( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1227,7 +1228,7 @@ public void delete(String resourceGroupName, String vaultName, String backupInst /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -1243,7 +1244,7 @@ public void delete(String resourceGroupName, String vaultName, String backupInst /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1304,7 +1305,7 @@ private Mono>> adhocBackupWithResponseAsync( /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1367,7 +1368,7 @@ private Mono>> adhocBackupWithResponseAsync( /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1394,7 +1395,7 @@ private PollerFlux, OperationJobExtend /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1427,7 +1428,7 @@ private PollerFlux, OperationJobExtend /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1445,7 +1446,7 @@ public SyncPoller, OperationJobExtende /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1470,7 +1471,7 @@ public SyncPoller, OperationJobExtende /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1490,7 +1491,7 @@ private Mono adhocBackupAsync( /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1515,7 +1516,7 @@ private Mono adhocBackupAsync( /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1533,7 +1534,7 @@ public OperationJobExtendedInfoInner adhocBackup( /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -1556,7 +1557,7 @@ public OperationJobExtendedInfoInner adhocBackup( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1611,7 +1612,7 @@ private Mono>> validateForBackupWithResponseAsync( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1664,7 +1665,7 @@ private Mono>> validateForBackupWithResponseAsync( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1690,7 +1691,7 @@ private Mono>> validateForBackupWithResponseAsync( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1719,7 +1720,7 @@ private Mono>> validateForBackupWithResponseAsync( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1736,7 +1737,7 @@ public SyncPoller, OperationJobExtende /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1754,7 +1755,7 @@ public SyncPoller, OperationJobExtende /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1773,7 +1774,7 @@ private Mono validateForBackupAsync( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1793,7 +1794,7 @@ private Mono validateForBackupAsync( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1810,7 +1811,7 @@ public OperationJobExtendedInfoInner validateForBackup( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1828,9 +1829,9 @@ public OperationJobExtendedInfoInner validateForBackup( /** * Get result of backup instance creation operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1888,9 +1889,9 @@ private Mono> getBackupInstanceOperationRe /** * Get result of backup instance creation operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param operationId The operationId parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1946,9 +1947,9 @@ private Mono> getBackupInstanceOperationRe /** * Get result of backup instance creation operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1966,9 +1967,9 @@ private Mono getBackupInstanceOperationResultAsync( /** * Get result of backup instance creation operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param operationId The operationId parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1987,9 +1988,9 @@ public Response getBackupInstanceOperationResultWit /** * Get result of backup instance creation operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2007,9 +2008,9 @@ public BackupInstanceResourceInner getBackupInstanceOperationResult( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2071,9 +2072,9 @@ private Mono>> triggerRehydrateWithResponseAsync( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2134,9 +2135,9 @@ private Mono>> triggerRehydrateWithResponseAsync( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2160,9 +2161,9 @@ private PollerFlux, Void> beginTriggerRehydrateAsync( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2188,9 +2189,9 @@ private PollerFlux, Void> beginTriggerRehydrateAsync( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2211,9 +2212,9 @@ public SyncPoller, Void> beginTriggerRehydrate( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2236,9 +2237,9 @@ public SyncPoller, Void> beginTriggerRehydrate( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2259,9 +2260,9 @@ private Mono triggerRehydrateAsync( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2284,9 +2285,9 @@ private Mono triggerRehydrateAsync( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2304,9 +2305,9 @@ public void triggerRehydrate( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2326,7 +2327,7 @@ public void triggerRehydrate( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2387,7 +2388,7 @@ private Mono>> triggerRestoreWithResponseAsync( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2450,7 +2451,7 @@ private Mono>> triggerRestoreWithResponseAsync( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2481,7 +2482,7 @@ private Mono>> triggerRestoreWithResponseAsync( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2515,7 +2516,7 @@ private Mono>> triggerRestoreWithResponseAsync( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2535,7 +2536,7 @@ public SyncPoller, OperationJobExtende /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2560,7 +2561,7 @@ public SyncPoller, OperationJobExtende /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2580,7 +2581,7 @@ private Mono triggerRestoreAsync( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2605,7 +2606,7 @@ private Mono triggerRestoreAsync( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2623,7 +2624,7 @@ public OperationJobExtendedInfoInner triggerRestore( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -2646,9 +2647,9 @@ public OperationJobExtendedInfoInner triggerRestore( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2700,9 +2701,9 @@ private Mono>> resumeBackupsWithResponseAsync( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2752,9 +2753,9 @@ private Mono>> resumeBackupsWithResponseAsync( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2774,9 +2775,9 @@ private PollerFlux, Void> beginResumeBackupsAsync( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2797,9 +2798,9 @@ private PollerFlux, Void> beginResumeBackupsAsync( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2814,9 +2815,9 @@ public SyncPoller, Void> beginResumeBackups( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2832,9 +2833,9 @@ public SyncPoller, Void> beginResumeBackups( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2850,9 +2851,9 @@ private Mono resumeBackupsAsync(String resourceGroupName, String vaultName /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2870,9 +2871,9 @@ private Mono resumeBackupsAsync( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2885,9 +2886,9 @@ public void resumeBackups(String resourceGroupName, String vaultName, String bac /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2901,9 +2902,9 @@ public void resumeBackups(String resourceGroupName, String vaultName, String bac /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2955,9 +2956,9 @@ private Mono>> resumeProtectionWithResponseAsync( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3007,9 +3008,9 @@ private Mono>> resumeProtectionWithResponseAsync( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3029,9 +3030,9 @@ private PollerFlux, Void> beginResumeProtectionAsync( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3052,9 +3053,9 @@ private PollerFlux, Void> beginResumeProtectionAsync( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3069,9 +3070,9 @@ public SyncPoller, Void> beginResumeProtection( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3089,9 +3090,9 @@ public SyncPoller, Void> beginResumeProtection( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3107,9 +3108,9 @@ private Mono resumeProtectionAsync(String resourceGroupName, String vaultN /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3127,9 +3128,9 @@ private Mono resumeProtectionAsync( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3142,9 +3143,9 @@ public void resumeProtection(String resourceGroupName, String vaultName, String /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3159,9 +3160,9 @@ public void resumeProtection( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3213,9 +3214,9 @@ private Mono>> stopProtectionWithResponseAsync( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3265,9 +3266,9 @@ private Mono>> stopProtectionWithResponseAsync( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3287,9 +3288,9 @@ private PollerFlux, Void> beginStopProtectionAsync( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3310,9 +3311,9 @@ private PollerFlux, Void> beginStopProtectionAsync( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3327,9 +3328,9 @@ public SyncPoller, Void> beginStopProtection( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3345,9 +3346,9 @@ public SyncPoller, Void> beginStopProtection( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3363,9 +3364,9 @@ private Mono stopProtectionAsync(String resourceGroupName, String vaultNam /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3383,9 +3384,9 @@ private Mono stopProtectionAsync( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3398,9 +3399,9 @@ public void stopProtection(String resourceGroupName, String vaultName, String ba /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3415,9 +3416,9 @@ public void stopProtection(String resourceGroupName, String vaultName, String ba * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3470,9 +3471,9 @@ private Mono>> suspendBackupsWithResponseAsync( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3523,9 +3524,9 @@ private Mono>> suspendBackupsWithResponseAsync( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3546,9 +3547,9 @@ private PollerFlux, Void> beginSuspendBackupsAsync( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3570,9 +3571,9 @@ private PollerFlux, Void> beginSuspendBackupsAsync( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3588,9 +3589,9 @@ public SyncPoller, Void> beginSuspendBackups( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3607,9 +3608,9 @@ public SyncPoller, Void> beginSuspendBackups( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3626,9 +3627,9 @@ private Mono suspendBackupsAsync(String resourceGroupName, String vaultNam * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3647,9 +3648,9 @@ private Mono suspendBackupsAsync( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3663,9 +3664,9 @@ public void suspendBackups(String resourceGroupName, String vaultName, String ba * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3680,9 +3681,9 @@ public void suspendBackups(String resourceGroupName, String vaultName, String ba * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3742,9 +3743,9 @@ private Mono>> syncBackupInstanceWithResponseAsync( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3806,9 +3807,9 @@ private Mono>> syncBackupInstanceWithResponseAsync( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3830,9 +3831,9 @@ private PollerFlux, Void> beginSyncBackupInstanceAsync( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3859,9 +3860,9 @@ private PollerFlux, Void> beginSyncBackupInstanceAsync( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3880,9 +3881,9 @@ public SyncPoller, Void> beginSyncBackupInstance( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3906,9 +3907,9 @@ public SyncPoller, Void> beginSyncBackupInstance( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3927,9 +3928,9 @@ private Mono syncBackupInstanceAsync( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3953,9 +3954,9 @@ private Mono syncBackupInstanceAsync( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3971,9 +3972,9 @@ public void syncBackupInstance( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3993,7 +3994,7 @@ public void syncBackupInstance( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -4057,7 +4058,7 @@ private Mono>> validateForRestoreWithResponseAsync( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -4120,7 +4121,7 @@ private Mono>> validateForRestoreWithResponseAsync( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -4151,7 +4152,7 @@ private Mono>> validateForRestoreWithResponseAsync( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -4185,7 +4186,7 @@ private Mono>> validateForRestoreWithResponseAsync( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -4208,7 +4209,7 @@ public SyncPoller, OperationJobExtende /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -4233,7 +4234,7 @@ public SyncPoller, OperationJobExtende /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -4256,7 +4257,7 @@ private Mono validateForRestoreAsync( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -4281,7 +4282,7 @@ private Mono validateForRestoreAsync( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -4302,7 +4303,7 @@ public OperationJobExtendedInfoInner validateForRestore( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsClientImpl.java deleted file mode 100644 index 81a086655ce6..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsClientImpl.java +++ /dev/null @@ -1,295 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.implementation; - -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.dataprotection.fluent.BackupInstancesExtensionRoutingsClient; -import com.azure.resourcemanager.dataprotection.fluent.models.BackupInstanceResourceInner; -import com.azure.resourcemanager.dataprotection.models.BackupInstanceResourceList; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in BackupInstancesExtensionRoutingsClient. - */ -public final class BackupInstancesExtensionRoutingsClientImpl implements BackupInstancesExtensionRoutingsClient { - /** The proxy service used to perform REST calls. */ - private final BackupInstancesExtensionRoutingsService service; - - /** The service client containing this operation class. */ - private final DataProtectionClientImpl client; - - /** - * Initializes an instance of BackupInstancesExtensionRoutingsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - BackupInstancesExtensionRoutingsClientImpl(DataProtectionClientImpl client) { - this.service = - RestProxy - .create( - BackupInstancesExtensionRoutingsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataProtectionClientBackupInstancesExtensionRoutings to be used by - * the proxy service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataProtectionClient") - public interface BackupInstancesExtensionRoutingsService { - @Headers({"Content-Type: application/json"}) - @Get("/{resourceId}/providers/Microsoft.DataProtection/backupInstances") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("resourceId") String resourceId, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceId) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceId == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceId is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service.list(this.client.getEndpoint(), this.client.getApiVersion(), resourceId, accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceId, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (resourceId == null) { - return Mono.error(new IllegalArgumentException("Parameter resourceId is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), resourceId, accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceId) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceId), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceId, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceId, context), nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource as paginated response with {@link - * PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceId) { - return new PagedIterable<>(listAsync(resourceId)); - } - - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource as paginated response with {@link - * PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceId, Context context) { - return new PagedIterable<>(listAsync(resourceId, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return backupInstanceResourceList along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return backupInstanceResourceList along with {@link PagedResponse} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsImpl.java deleted file mode 100644 index cafd38d8058a..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.dataprotection.fluent.BackupInstancesExtensionRoutingsClient; -import com.azure.resourcemanager.dataprotection.fluent.models.BackupInstanceResourceInner; -import com.azure.resourcemanager.dataprotection.models.BackupInstanceResource; -import com.azure.resourcemanager.dataprotection.models.BackupInstancesExtensionRoutings; - -public final class BackupInstancesExtensionRoutingsImpl implements BackupInstancesExtensionRoutings { - private static final ClientLogger LOGGER = new ClientLogger(BackupInstancesExtensionRoutingsImpl.class); - - private final BackupInstancesExtensionRoutingsClient innerClient; - - private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; - - public BackupInstancesExtensionRoutingsImpl( - BackupInstancesExtensionRoutingsClient innerClient, - com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list(String resourceId) { - PagedIterable inner = this.serviceClient().list(resourceId); - return Utils.mapPage(inner, inner1 -> new BackupInstanceResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceId, Context context) { - PagedIterable inner = this.serviceClient().list(resourceId, context); - return Utils.mapPage(inner, inner1 -> new BackupInstanceResourceImpl(inner1, this.manager())); - } - - private BackupInstancesExtensionRoutingsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.dataprotection.DataProtectionManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupPoliciesClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupPoliciesClientImpl.java index c2c8e8314d23..d0b4aa92f306 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupPoliciesClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupPoliciesClientImpl.java @@ -31,6 +31,7 @@ import com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient; import com.azure.resourcemanager.dataprotection.fluent.models.BaseBackupPolicyResourceInner; import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicyResourceList; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in BackupPoliciesClient. */ @@ -68,7 +69,7 @@ public interface BackupPoliciesService { Mono> list( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @HeaderParam("Accept") String accept, @@ -83,7 +84,7 @@ Mono> list( Mono> get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupPolicyName") String backupPolicyName, @@ -99,7 +100,7 @@ Mono> get( Mono> createOrUpdate( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupPolicyName") String backupPolicyName, @@ -116,7 +117,7 @@ Mono> createOrUpdate( Mono> delete( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupPolicyName") String backupPolicyName, @@ -137,7 +138,7 @@ Mono> listNext( /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -194,7 +195,7 @@ private Mono> listSinglePageAsync( /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -249,7 +250,7 @@ private Mono> listSinglePageAsync( /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -265,7 +266,7 @@ private PagedFlux listAsync(String resourceGroupN /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -284,7 +285,7 @@ private PagedFlux listAsync( /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -299,7 +300,7 @@ public PagedIterable list(String resourceGroupNam /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -316,7 +317,7 @@ public PagedIterable list( /** * Gets a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -371,7 +372,7 @@ private Mono> getWithResponseAsync( /** * Gets a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @param context The context to associate with this operation. @@ -424,7 +425,7 @@ private Mono> getWithResponseAsync( /** * Gets a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -442,7 +443,7 @@ private Mono getAsync( /** * Gets a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @param context The context to associate with this operation. @@ -460,7 +461,7 @@ public Response getWithResponse( /** * Gets a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -476,7 +477,7 @@ public BaseBackupPolicyResourceInner get(String resourceGroupName, String vaultN /** * Creates or Updates a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName Name of the policy. * @param parameters Request body for operation. @@ -537,7 +538,7 @@ private Mono> createOrUpdateWithResponse /** * Creates or Updates a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName Name of the policy. * @param parameters Request body for operation. @@ -600,7 +601,7 @@ private Mono> createOrUpdateWithResponse /** * Creates or Updates a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName Name of the policy. * @param parameters Request body for operation. @@ -619,7 +620,7 @@ private Mono createOrUpdateAsync( /** * Creates or Updates a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName Name of the policy. * @param parameters Request body for operation. @@ -643,7 +644,7 @@ public Response createOrUpdateWithResponse( /** * Creates or Updates a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName Name of the policy. * @param parameters Request body for operation. @@ -662,7 +663,7 @@ public BaseBackupPolicyResourceInner createOrUpdate( /** * Deletes a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -716,7 +717,7 @@ private Mono> deleteWithResponseAsync( /** * Deletes a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @param context The context to associate with this operation. @@ -768,7 +769,7 @@ private Mono> deleteWithResponseAsync( /** * Deletes a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -784,7 +785,7 @@ private Mono deleteAsync(String resourceGroupName, String vaultName, Strin /** * Deletes a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @param context The context to associate with this operation. @@ -802,7 +803,7 @@ public Response deleteWithResponse( /** * Deletes a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultOperationResultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultOperationResultsClientImpl.java index 167ca15471af..a73cf0048cb0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultOperationResultsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultOperationResultsClientImpl.java @@ -23,6 +23,7 @@ import com.azure.resourcemanager.dataprotection.fluent.BackupVaultOperationResultsClient; import com.azure.resourcemanager.dataprotection.fluent.models.BackupVaultResourceInner; import com.azure.resourcemanager.dataprotection.models.BackupVaultOperationResultsGetResponse; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in BackupVaultOperationResultsClient. */ @@ -62,7 +63,7 @@ public interface BackupVaultOperationResultsService { Mono get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("operationId") String operationId, @@ -73,7 +74,7 @@ Mono get( /** * The get operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -126,7 +127,7 @@ private Mono getWithResponseAsync( /** * The get operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @param context The context to associate with this operation. @@ -177,7 +178,7 @@ private Mono getWithResponseAsync( /** * The get operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -194,7 +195,7 @@ private Mono getAsync(String resourceGroupName, String /** * The get operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @param context The context to associate with this operation. @@ -212,7 +213,7 @@ public BackupVaultOperationResultsGetResponse getWithResponse( /** * The get operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultResourceImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultResourceImpl.java index 96c95c48b316..30fcbc1aac1e 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultResourceImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultResourceImpl.java @@ -51,14 +51,14 @@ public String etag() { return this.innerModel().etag(); } - public DppIdentityDetails identity() { - return this.innerModel().identity(); - } - public SystemData systemData() { return this.innerModel().systemData(); } + public DppIdentityDetails identity() { + return this.innerModel().identity(); + } + public BackupVault properties() { return this.innerModel().properties(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsClientImpl.java index 7ed38c93d6a1..ae93db038830 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsClientImpl.java @@ -40,6 +40,7 @@ import com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequest; import com.azure.resourcemanager.dataprotection.models.PatchResourceRequestInput; import java.nio.ByteBuffer; +import java.util.UUID; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -76,7 +77,7 @@ public interface BackupVaultsService { Mono> list( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -90,7 +91,7 @@ Mono> listByResourceGroup( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -103,7 +104,7 @@ Mono> listByResourceGroup( Mono> getByResourceGroup( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @HeaderParam("Accept") String accept, @@ -118,7 +119,7 @@ Mono> getByResourceGroup( Mono>> createOrUpdate( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @BodyParam("application/json") BackupVaultResourceInner parameters, @@ -131,10 +132,10 @@ Mono>> createOrUpdate( + "/backupVaults/{vaultName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( + Mono>> delete( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @HeaderParam("Accept") String accept, @@ -149,7 +150,7 @@ Mono> delete( Mono>> update( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @BodyParam("application/json") PatchResourceRequestInput parameters, @@ -166,7 +167,7 @@ Mono> checkNameAvailability( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("location") String location, @BodyParam("application/json") CheckNameAvailabilityRequest parameters, @HeaderParam("Accept") String accept, @@ -336,7 +337,7 @@ public PagedIterable list(Context context) { /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -387,7 +388,7 @@ private Mono> listByResourceGroupSingleP /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -437,7 +438,7 @@ private Mono> listByResourceGroupSingleP /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -453,7 +454,7 @@ private PagedFlux listByResourceGroupAsync(String reso /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -470,7 +471,7 @@ private PagedFlux listByResourceGroupAsync(String reso /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -484,7 +485,7 @@ public PagedIterable listByResourceGroup(String resour /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -499,7 +500,7 @@ public PagedIterable listByResourceGroup(String resour /** * Returns a resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -547,7 +548,7 @@ private Mono> getByResourceGroupWithResponseA /** * Returns a resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -593,7 +594,7 @@ private Mono> getByResourceGroupWithResponseA /** * Returns a resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -609,7 +610,7 @@ private Mono getByResourceGroupAsync(String resourceGr /** * Returns a resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -626,7 +627,7 @@ public Response getByResourceGroupWithResponse( /** * Returns a resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -641,7 +642,7 @@ public BackupVaultResourceInner getByResourceGroup(String resourceGroupName, Str /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -696,7 +697,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -749,7 +750,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -775,7 +776,7 @@ private PollerFlux, BackupVaultResourceInne /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -803,7 +804,7 @@ private PollerFlux, BackupVaultResourceInne /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -820,7 +821,7 @@ public SyncPoller, BackupVaultResourceInner /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -838,7 +839,7 @@ public SyncPoller, BackupVaultResourceInner /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -857,7 +858,7 @@ private Mono createOrUpdateAsync( /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -877,7 +878,7 @@ private Mono createOrUpdateAsync( /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -894,7 +895,7 @@ public BackupVaultResourceInner createOrUpdate( /** * Creates or updates a BackupVault resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -912,7 +913,7 @@ public BackupVaultResourceInner createOrUpdate( /** * Deletes a BackupVault resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -920,7 +921,7 @@ public BackupVaultResourceInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String vaultName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String vaultName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -959,7 +960,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S /** * Deletes a BackupVault resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -968,7 +969,8 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String vaultName, Context context) { + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String vaultName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1004,7 +1006,78 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S /** * Deletes a BackupVault resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String vaultName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, vaultName); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + + /** + * Deletes a BackupVault resource from the resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String vaultName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, vaultName, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Deletes a BackupVault resource from the resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String vaultName) { + return this.beginDeleteAsync(resourceGroupName, vaultName).getSyncPoller(); + } + + /** + * Deletes a BackupVault resource from the resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String vaultName, Context context) { + return this.beginDeleteAsync(resourceGroupName, vaultName, context).getSyncPoller(); + } + + /** + * Deletes a BackupVault resource from the resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1013,29 +1086,31 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String vaultName) { - return deleteWithResponseAsync(resourceGroupName, vaultName).flatMap(ignored -> Mono.empty()); + return beginDeleteAsync(resourceGroupName, vaultName).last().flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a BackupVault resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String vaultName, Context context) { - return deleteWithResponseAsync(resourceGroupName, vaultName, context).block(); + private Mono deleteAsync(String resourceGroupName, String vaultName, Context context) { + return beginDeleteAsync(resourceGroupName, vaultName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a BackupVault resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1043,13 +1118,28 @@ public Response deleteWithResponse(String resourceGroupName, String vaultN */ @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String vaultName) { - deleteWithResponse(resourceGroupName, vaultName, Context.NONE); + deleteAsync(resourceGroupName, vaultName).block(); + } + + /** + * Deletes a BackupVault resource from the resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String vaultName, Context context) { + deleteAsync(resourceGroupName, vaultName, context).block(); } /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1104,7 +1194,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1157,7 +1247,7 @@ private Mono>> updateWithResponseAsync( /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1182,7 +1272,7 @@ private PollerFlux, BackupVaultResourceInne /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1210,7 +1300,7 @@ private PollerFlux, BackupVaultResourceInne /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1227,7 +1317,7 @@ public SyncPoller, BackupVaultResourceInner /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1245,7 +1335,7 @@ public SyncPoller, BackupVaultResourceInner /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1264,7 +1354,7 @@ private Mono updateAsync( /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1284,7 +1374,7 @@ private Mono updateAsync( /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1301,7 +1391,7 @@ public BackupVaultResourceInner update( /** * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1319,7 +1409,7 @@ public BackupVaultResourceInner update( /** * API to check for resource name availability. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param location The location in which uniqueness will be verified. * @param parameters Check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1374,7 +1464,7 @@ private Mono> checkNameAvailabilityWi /** * API to check for resource name availability. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param location The location in which uniqueness will be verified. * @param parameters Check name availability request. * @param context The context to associate with this operation. @@ -1427,7 +1517,7 @@ private Mono> checkNameAvailabilityWi /** * API to check for resource name availability. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param location The location in which uniqueness will be verified. * @param parameters Check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1445,7 +1535,7 @@ private Mono checkNameAvailabilityAsync( /** * API to check for resource name availability. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param location The location in which uniqueness will be verified. * @param parameters Check name availability request. * @param context The context to associate with this operation. @@ -1463,7 +1553,7 @@ public Response checkNameAvailabilityWithRespo /** * API to check for resource name availability. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param location The location in which uniqueness will be verified. * @param parameters Check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsImpl.java index fe29d7ccb30b..ccd0bab66135 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsImpl.java @@ -75,15 +75,14 @@ public BackupVaultResource getByResourceGroup(String resourceGroupName, String v } } - public Response deleteByResourceGroupWithResponse( - String resourceGroupName, String vaultName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, vaultName, context); - } - public void deleteByResourceGroup(String resourceGroupName, String vaultName) { this.serviceClient().delete(resourceGroupName, vaultName); } + public void delete(String resourceGroupName, String vaultName, Context context) { + this.serviceClient().delete(resourceGroupName, vaultName, context); + } + public Response checkNameAvailabilityWithResponse( String resourceGroupName, String location, CheckNameAvailabilityRequest parameters, Context context) { Response inner = @@ -164,10 +163,10 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id))); } - this.deleteByResourceGroupWithResponse(resourceGroupName, vaultName, Context.NONE); + this.delete(resourceGroupName, vaultName, Context.NONE); } - public Response deleteByIdWithResponse(String id, Context context) { + public void deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER @@ -183,7 +182,7 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id))); } - return this.deleteByResourceGroupWithResponse(resourceGroupName, vaultName, context); + this.delete(resourceGroupName, vaultName, context); } private BackupVaultsClient serviceClient() { diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientBuilder.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientBuilder.java index ab6f501afa6d..c07fefc083b1 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientBuilder.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientBuilder.java @@ -13,22 +13,23 @@ import com.azure.core.management.serializer.SerializerFactory; import com.azure.core.util.serializer.SerializerAdapter; import java.time.Duration; +import java.util.UUID; /** A builder for creating a new instance of the DataProtectionClientImpl type. */ @ServiceClientBuilder(serviceClients = {DataProtectionClientImpl.class}) public final class DataProtectionClientBuilder { /* - * The subscription Id. + * The ID of the target subscription. The value must be an UUID. */ - private String subscriptionId; + private UUID subscriptionId; /** - * Sets The subscription Id. + * Sets The ID of the target subscription. The value must be an UUID. * * @param subscriptionId the subscriptionId value. * @return the DataProtectionClientBuilder. */ - public DataProtectionClientBuilder subscriptionId(String subscriptionId) { + public DataProtectionClientBuilder subscriptionId(UUID subscriptionId) { this.subscriptionId = subscriptionId; return this; } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientImpl.java index b85b8f1d9843..ac108ea17571 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientImpl.java @@ -23,7 +23,6 @@ import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; import com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient; -import com.azure.resourcemanager.dataprotection.fluent.BackupInstancesExtensionRoutingsClient; import com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient; import com.azure.resourcemanager.dataprotection.fluent.BackupVaultOperationResultsClient; import com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient; @@ -31,7 +30,6 @@ import com.azure.resourcemanager.dataprotection.fluent.DataProtectionOperationsClient; import com.azure.resourcemanager.dataprotection.fluent.DataProtectionsClient; import com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient; -import com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient; import com.azure.resourcemanager.dataprotection.fluent.ExportJobsClient; import com.azure.resourcemanager.dataprotection.fluent.ExportJobsOperationResultsClient; import com.azure.resourcemanager.dataprotection.fluent.JobsClient; @@ -48,21 +46,22 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; +import java.util.UUID; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** Initializes a new instance of the DataProtectionClientImpl type. */ @ServiceClient(builder = DataProtectionClientBuilder.class) public final class DataProtectionClientImpl implements DataProtectionClient { - /** The subscription Id. */ - private final String subscriptionId; + /** The ID of the target subscription. The value must be an UUID. */ + private final UUID subscriptionId; /** - * Gets The subscription Id. + * Gets The ID of the target subscription. The value must be an UUID. * * @return the subscriptionId value. */ - public String getSubscriptionId() { + public UUID getSubscriptionId() { return this.subscriptionId; } @@ -246,18 +245,6 @@ public BackupInstancesClient getBackupInstances() { return this.backupInstances; } - /** The BackupInstancesExtensionRoutingsClient object to access its operations. */ - private final BackupInstancesExtensionRoutingsClient backupInstancesExtensionRoutings; - - /** - * Gets the BackupInstancesExtensionRoutingsClient object to access its operations. - * - * @return the BackupInstancesExtensionRoutingsClient object. - */ - public BackupInstancesExtensionRoutingsClient getBackupInstancesExtensionRoutings() { - return this.backupInstancesExtensionRoutings; - } - /** The RecoveryPointsClient object to access its operations. */ private final RecoveryPointsClient recoveryPoints; @@ -342,18 +329,6 @@ public ResourceGuardsClient getResourceGuards() { return this.resourceGuards; } - /** The DppResourceGuardProxiesClient object to access its operations. */ - private final DppResourceGuardProxiesClient dppResourceGuardProxies; - - /** - * Gets the DppResourceGuardProxiesClient object to access its operations. - * - * @return the DppResourceGuardProxiesClient object. - */ - public DppResourceGuardProxiesClient getDppResourceGuardProxies() { - return this.dppResourceGuardProxies; - } - /** * Initializes an instance of DataProtectionClient client. * @@ -361,7 +336,7 @@ public DppResourceGuardProxiesClient getDppResourceGuardProxies() { * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. * @param environment The Azure environment. - * @param subscriptionId The subscription Id. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param endpoint server parameter. */ DataProtectionClientImpl( @@ -369,14 +344,14 @@ public DppResourceGuardProxiesClient getDppResourceGuardProxies() { SerializerAdapter serializerAdapter, Duration defaultPollInterval, AzureEnvironment environment, - String subscriptionId, + UUID subscriptionId, String endpoint) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-11-01-preview"; + this.apiVersion = "2023-01-01"; this.backupVaults = new BackupVaultsClientImpl(this); this.operationResults = new OperationResultsClientImpl(this); this.operationStatus = new OperationStatusClientImpl(this); @@ -387,7 +362,6 @@ public DppResourceGuardProxiesClient getDppResourceGuardProxies() { this.dataProtectionOperations = new DataProtectionOperationsClientImpl(this); this.backupPolicies = new BackupPoliciesClientImpl(this); this.backupInstances = new BackupInstancesClientImpl(this); - this.backupInstancesExtensionRoutings = new BackupInstancesExtensionRoutingsClientImpl(this); this.recoveryPoints = new RecoveryPointsClientImpl(this); this.jobs = new JobsClientImpl(this); this.restorableTimeRanges = new RestorableTimeRangesClientImpl(this); @@ -395,7 +369,6 @@ public DppResourceGuardProxiesClient getDppResourceGuardProxies() { this.exportJobsOperationResults = new ExportJobsOperationResultsClientImpl(this); this.deletedBackupInstances = new DeletedBackupInstancesClientImpl(this); this.resourceGuards = new ResourceGuardsClientImpl(this); - this.dppResourceGuardProxies = new DppResourceGuardProxiesClientImpl(this); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionsClientImpl.java index bb1cf152b72a..c3b8b1c93516 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionsClientImpl.java @@ -25,6 +25,7 @@ import com.azure.resourcemanager.dataprotection.fluent.DataProtectionsClient; import com.azure.resourcemanager.dataprotection.fluent.models.FeatureValidationResponseBaseInner; import com.azure.resourcemanager.dataprotection.models.FeatureValidationRequestBase; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in DataProtectionsClient. */ @@ -62,7 +63,7 @@ public interface DataProtectionsService { Mono> checkFeatureSupport( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("location") String location, @BodyParam("application/json") FeatureValidationRequestBase parameters, @HeaderParam("Accept") String accept, diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstancesClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstancesClientImpl.java index 9d79e313cfaf..3f4520e65d1d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstancesClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstancesClientImpl.java @@ -33,6 +33,7 @@ import com.azure.resourcemanager.dataprotection.fluent.models.DeletedBackupInstanceResourceInner; import com.azure.resourcemanager.dataprotection.models.DeletedBackupInstanceResourceList; import java.nio.ByteBuffer; +import java.util.UUID; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -72,7 +73,7 @@ public interface DeletedBackupInstancesService { Mono> list( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @HeaderParam("Accept") String accept, @@ -87,7 +88,7 @@ Mono> list( Mono> get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -103,7 +104,7 @@ Mono> get( Mono>> undelete( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -124,7 +125,7 @@ Mono> listNext( /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -182,7 +183,7 @@ private Mono> listSinglePageAs /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -238,7 +239,7 @@ private Mono> listSinglePageAs /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -254,7 +255,7 @@ private PagedFlux listAsync(String resourceG /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -273,7 +274,7 @@ private PagedFlux listAsync( /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -288,7 +289,7 @@ public PagedIterable list(String resourceGro /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -305,7 +306,7 @@ public PagedIterable list( /** * Gets a deleted backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -360,7 +361,7 @@ private Mono> getWithResponseAsync( /** * Gets a deleted backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. @@ -413,7 +414,7 @@ private Mono> getWithResponseAsync( /** * Gets a deleted backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -431,7 +432,7 @@ private Mono getAsync( /** * Gets a deleted backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. @@ -449,7 +450,7 @@ public Response getWithResponse( /** * Gets a deleted backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -466,7 +467,7 @@ public DeletedBackupInstanceResourceInner get( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -520,7 +521,7 @@ private Mono>> undeleteWithResponseAsync( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. @@ -572,7 +573,7 @@ private Mono>> undeleteWithResponseAsync( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -594,7 +595,7 @@ private PollerFlux, Void> beginUndeleteAsync( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. @@ -617,7 +618,7 @@ private PollerFlux, Void> beginUndeleteAsync( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -634,7 +635,7 @@ public SyncPoller, Void> beginUndelete( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. @@ -652,7 +653,7 @@ public SyncPoller, Void> beginUndelete( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -670,7 +671,7 @@ private Mono undeleteAsync(String resourceGroupName, String vaultName, Str /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. @@ -690,7 +691,7 @@ private Mono undeleteAsync( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -705,7 +706,7 @@ public void undelete(String resourceGroupName, String vaultName, String backupIn /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesClientImpl.java deleted file mode 100644 index 63cccc96d7b8..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesClientImpl.java +++ /dev/null @@ -1,1117 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner; -import com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBaseResourceList; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest; -import reactor.core.publisher.Mono; - -/** An instance of this class provides access to all the operations defined in DppResourceGuardProxiesClient. */ -public final class DppResourceGuardProxiesClientImpl implements DppResourceGuardProxiesClient { - /** The proxy service used to perform REST calls. */ - private final DppResourceGuardProxiesService service; - - /** The service client containing this operation class. */ - private final DataProtectionClientImpl client; - - /** - * Initializes an instance of DppResourceGuardProxiesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - DppResourceGuardProxiesClientImpl(DataProtectionClientImpl client) { - this.service = - RestProxy - .create(DppResourceGuardProxiesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for DataProtectionClientDppResourceGuardProxies to be used by the proxy - * service to perform REST calls. - */ - @Host("{$host}") - @ServiceInterface(name = "DataProtectionClient") - public interface DppResourceGuardProxiesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection" - + "/backupVaults/{vaultName}/backupResourceGuardProxies") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("vaultName") String vaultName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection" - + "/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("vaultName") String vaultName, - @PathParam("resourceGuardProxyName") String resourceGuardProxyName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection" - + "/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> put( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("vaultName") String vaultName, - @PathParam("resourceGuardProxyName") String resourceGuardProxyName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") ResourceGuardProxyBaseResourceInner parameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection" - + "/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}") - @ExpectedResponses({200, 204}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("vaultName") String vaultName, - @PathParam("resourceGuardProxyName") String resourceGuardProxyName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection" - + "/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> unlockDelete( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("vaultName") String vaultName, - @PathParam("resourceGuardProxyName") String resourceGuardProxyName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") UnlockDeleteRequest parameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String vaultName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - this.client.getApiVersion(), - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String vaultName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - this.client.getApiVersion(), - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(String resourceGroupName, String vaultName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, vaultName), nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String vaultName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, vaultName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); - } - - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String vaultName) { - return new PagedIterable<>(listAsync(resourceGroupName, vaultName)); - } - - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String vaultName, Context context) { - return new PagedIterable<>(listAsync(resourceGroupName, vaultName, context)); - } - - /** - * The get operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String vaultName, String resourceGuardProxyName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - if (resourceGuardProxyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter resourceGuardProxyName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - resourceGuardProxyName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * The get operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - if (resourceGuardProxyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter resourceGuardProxyName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - resourceGuardProxyName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * The get operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String vaultName, String resourceGuardProxyName) { - return getWithResponseAsync(resourceGroupName, vaultName, resourceGuardProxyName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * The get operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context) { - return getWithResponseAsync(resourceGroupName, vaultName, resourceGuardProxyName, context).block(); - } - - /** - * The get operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ResourceGuardProxyBaseResourceInner get( - String resourceGroupName, String vaultName, String resourceGuardProxyName) { - return getWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, Context.NONE).getValue(); - } - - /** - * The put operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> putWithResponseAsync( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - ResourceGuardProxyBaseResourceInner parameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - if (resourceGuardProxyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter resourceGuardProxyName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .put( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - resourceGuardProxyName, - this.client.getApiVersion(), - parameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * The put operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> putWithResponseAsync( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - ResourceGuardProxyBaseResourceInner parameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - if (resourceGuardProxyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter resourceGuardProxyName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .put( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - resourceGuardProxyName, - this.client.getApiVersion(), - parameters, - accept, - context); - } - - /** - * The put operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono putAsync( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - ResourceGuardProxyBaseResourceInner parameters) { - return putWithResponseAsync(resourceGroupName, vaultName, resourceGuardProxyName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * The put operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response putWithResponse( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - ResourceGuardProxyBaseResourceInner parameters, - Context context) { - return putWithResponseAsync(resourceGroupName, vaultName, resourceGuardProxyName, parameters, context).block(); - } - - /** - * The put operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ResourceGuardProxyBaseResourceInner put( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - ResourceGuardProxyBaseResourceInner parameters) { - return putWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, parameters, Context.NONE) - .getValue(); - } - - /** - * The delete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String vaultName, String resourceGuardProxyName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - if (resourceGuardProxyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter resourceGuardProxyName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - resourceGuardProxyName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * The delete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - if (resourceGuardProxyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter resourceGuardProxyName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - resourceGuardProxyName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * The delete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String vaultName, String resourceGuardProxyName) { - return deleteWithResponseAsync(resourceGroupName, vaultName, resourceGuardProxyName) - .flatMap(ignored -> Mono.empty()); - } - - /** - * The delete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context) { - return deleteWithResponseAsync(resourceGroupName, vaultName, resourceGuardProxyName, context).block(); - } - - /** - * The delete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String vaultName, String resourceGuardProxyName) { - deleteWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, Context.NONE); - } - - /** - * The unlockDelete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> unlockDeleteWithResponseAsync( - String resourceGroupName, String vaultName, String resourceGuardProxyName, UnlockDeleteRequest parameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - if (resourceGuardProxyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter resourceGuardProxyName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .unlockDelete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - resourceGuardProxyName, - this.client.getApiVersion(), - parameters, - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * The unlockDelete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> unlockDeleteWithResponseAsync( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - UnlockDeleteRequest parameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (vaultName == null) { - return Mono.error(new IllegalArgumentException("Parameter vaultName is required and cannot be null.")); - } - if (resourceGuardProxyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter resourceGuardProxyName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .unlockDelete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - vaultName, - resourceGuardProxyName, - this.client.getApiVersion(), - parameters, - accept, - context); - } - - /** - * The unlockDelete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono unlockDeleteAsync( - String resourceGroupName, String vaultName, String resourceGuardProxyName, UnlockDeleteRequest parameters) { - return unlockDeleteWithResponseAsync(resourceGroupName, vaultName, resourceGuardProxyName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * The unlockDelete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response unlockDeleteWithResponse( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - UnlockDeleteRequest parameters, - Context context) { - return unlockDeleteWithResponseAsync(resourceGroupName, vaultName, resourceGuardProxyName, parameters, context) - .block(); - } - - /** - * The unlockDelete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public UnlockDeleteResponseInner unlockDelete( - String resourceGroupName, String vaultName, String resourceGuardProxyName, UnlockDeleteRequest parameters) { - return unlockDeleteWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, parameters, Context.NONE) - .getValue(); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items - *

The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesImpl.java deleted file mode 100644 index 44d58ddb918b..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesImpl.java +++ /dev/null @@ -1,241 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner; -import com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner; -import com.azure.resourcemanager.dataprotection.models.DppResourceGuardProxies; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBaseResource; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteResponse; - -public final class DppResourceGuardProxiesImpl implements DppResourceGuardProxies { - private static final ClientLogger LOGGER = new ClientLogger(DppResourceGuardProxiesImpl.class); - - private final DppResourceGuardProxiesClient innerClient; - - private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; - - public DppResourceGuardProxiesImpl( - DppResourceGuardProxiesClient innerClient, - com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public PagedIterable list(String resourceGroupName, String vaultName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, vaultName); - return Utils.mapPage(inner, inner1 -> new ResourceGuardProxyBaseResourceImpl(inner1, this.manager())); - } - - public PagedIterable list( - String resourceGroupName, String vaultName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, vaultName, context); - return Utils.mapPage(inner, inner1 -> new ResourceGuardProxyBaseResourceImpl(inner1, this.manager())); - } - - public Response getWithResponse( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new ResourceGuardProxyBaseResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public ResourceGuardProxyBaseResource get( - String resourceGroupName, String vaultName, String resourceGuardProxyName) { - ResourceGuardProxyBaseResourceInner inner = - this.serviceClient().get(resourceGroupName, vaultName, resourceGuardProxyName); - if (inner != null) { - return new ResourceGuardProxyBaseResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response deleteWithResponse( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, context); - } - - public void delete(String resourceGroupName, String vaultName, String resourceGuardProxyName) { - this.serviceClient().delete(resourceGroupName, vaultName, resourceGuardProxyName); - } - - public Response unlockDeleteWithResponse( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - UnlockDeleteRequest parameters, - Context context) { - Response inner = - this - .serviceClient() - .unlockDeleteWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, parameters, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new UnlockDeleteResponseImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public UnlockDeleteResponse unlockDelete( - String resourceGroupName, String vaultName, String resourceGuardProxyName, UnlockDeleteRequest parameters) { - UnlockDeleteResponseInner inner = - this.serviceClient().unlockDelete(resourceGroupName, vaultName, resourceGuardProxyName, parameters); - if (inner != null) { - return new UnlockDeleteResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public ResourceGuardProxyBaseResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String vaultName = Utils.getValueFromIdByName(id, "backupVaults"); - if (vaultName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id))); - } - String resourceGuardProxyName = Utils.getValueFromIdByName(id, "backupResourceGuardProxies"); - if (resourceGuardProxyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'backupResourceGuardProxies'.", - id))); - } - return this.getWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String vaultName = Utils.getValueFromIdByName(id, "backupVaults"); - if (vaultName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id))); - } - String resourceGuardProxyName = Utils.getValueFromIdByName(id, "backupResourceGuardProxies"); - if (resourceGuardProxyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'backupResourceGuardProxies'.", - id))); - } - return this.getWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, context); - } - - public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String vaultName = Utils.getValueFromIdByName(id, "backupVaults"); - if (vaultName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id))); - } - String resourceGuardProxyName = Utils.getValueFromIdByName(id, "backupResourceGuardProxies"); - if (resourceGuardProxyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'backupResourceGuardProxies'.", - id))); - } - this.deleteWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String vaultName = Utils.getValueFromIdByName(id, "backupVaults"); - if (vaultName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id))); - } - String resourceGuardProxyName = Utils.getValueFromIdByName(id, "backupResourceGuardProxies"); - if (resourceGuardProxyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'backupResourceGuardProxies'.", - id))); - } - return this.deleteWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, context); - } - - private DppResourceGuardProxiesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.dataprotection.DataProtectionManager manager() { - return this.serviceManager; - } - - public ResourceGuardProxyBaseResourceImpl define(String name) { - return new ResourceGuardProxyBaseResourceImpl(name, this.manager()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsClientImpl.java index 02be3f1cd5cf..8720157e96ee 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsClientImpl.java @@ -26,6 +26,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.dataprotection.fluent.ExportJobsClient; import java.nio.ByteBuffer; +import java.util.UUID; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -64,7 +65,7 @@ public interface ExportJobsService { Mono>> trigger( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @HeaderParam("Accept") String accept, @@ -74,7 +75,7 @@ Mono>> trigger( /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -121,7 +122,7 @@ private Mono>> triggerWithResponseAsync(String resourc /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,7 +168,7 @@ private Mono>> triggerWithResponseAsync( /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -186,7 +187,7 @@ private PollerFlux, Void> beginTriggerAsync(String resourceGrou /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -207,7 +208,7 @@ private PollerFlux, Void> beginTriggerAsync( /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -222,7 +223,7 @@ public SyncPoller, Void> beginTrigger(String resourceGroupName, /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -239,7 +240,7 @@ public SyncPoller, Void> beginTrigger( /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -254,7 +255,7 @@ private Mono triggerAsync(String resourceGroupName, String vaultName) { /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,7 +273,7 @@ private Mono triggerAsync(String resourceGroupName, String vaultName, Cont /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -286,7 +287,7 @@ public void trigger(String resourceGroupName, String vaultName) { /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsOperationResultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsOperationResultsClientImpl.java index bd7b4c7aa28c..de3525676c63 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsOperationResultsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsOperationResultsClientImpl.java @@ -23,6 +23,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.dataprotection.fluent.ExportJobsOperationResultsClient; import com.azure.resourcemanager.dataprotection.fluent.models.ExportJobsResultInner; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in ExportJobsOperationResultsClient. */ @@ -62,7 +63,7 @@ public interface ExportJobsOperationResultsService { Mono> get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("operationId") String operationId, @@ -75,7 +76,7 @@ Mono> get( * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized * format. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId OperationID which represents the export job. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -131,7 +132,7 @@ private Mono> getWithResponseAsync( * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized * format. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId OperationID which represents the export job. * @param context The context to associate with this operation. @@ -185,7 +186,7 @@ private Mono> getWithResponseAsync( * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized * format. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId OperationID which represents the export job. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -204,7 +205,7 @@ private Mono getAsync(String resourceGroupName, String va * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized * format. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId OperationID which represents the export job. * @param context The context to associate with this operation. @@ -224,7 +225,7 @@ public Response getWithResponse( * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized * format. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId OperationID which represents the export job. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobsClientImpl.java index 5d2de45459d0..9b65cc879517 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobsClientImpl.java @@ -28,6 +28,7 @@ import com.azure.resourcemanager.dataprotection.fluent.JobsClient; import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupJobResourceInner; import com.azure.resourcemanager.dataprotection.models.AzureBackupJobResourceList; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in JobsClient. */ @@ -64,7 +65,7 @@ public interface JobsService { Mono> list( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @HeaderParam("Accept") String accept, @@ -79,7 +80,7 @@ Mono> list( Mono> get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("jobId") String jobId, @@ -100,7 +101,7 @@ Mono> listNext( /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -158,7 +159,7 @@ private Mono> listSinglePageAsync( /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -214,7 +215,7 @@ private Mono> listSinglePageAsync( /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -230,7 +231,7 @@ private PagedFlux listAsync(String resourceGroupNam /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -249,7 +250,7 @@ private PagedFlux listAsync( /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -264,7 +265,7 @@ public PagedIterable list(String resourceGroupName, /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -281,7 +282,7 @@ public PagedIterable list( /** * Gets a job with id in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -334,7 +335,7 @@ private Mono> getWithResponseAsync( /** * Gets a job with id in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). * @param context The context to associate with this operation. @@ -385,7 +386,7 @@ private Mono> getWithResponseAsync( /** * Gets a job with id in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -402,7 +403,7 @@ private Mono getAsync(String resourceGroupName, Str /** * Gets a job with id in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). * @param context The context to associate with this operation. @@ -420,7 +421,7 @@ public Response getWithResponse( /** * Gets a job with id in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResultsClientImpl.java index b00a3bf03deb..78c4d9ae3b81 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResultsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResultsClientImpl.java @@ -23,6 +23,7 @@ import com.azure.resourcemanager.dataprotection.fluent.OperationResultsClient; import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; import com.azure.resourcemanager.dataprotection.models.OperationResultsGetResponse; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in OperationResultsClient. */ @@ -60,7 +61,7 @@ public interface OperationResultsService { Mono get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("operationId") String operationId, @PathParam("location") String location, @HeaderParam("Accept") String accept, diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusBackupVaultContextsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusBackupVaultContextsClientImpl.java index c892d0fd0d4a..c0dd5e121dda 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusBackupVaultContextsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusBackupVaultContextsClientImpl.java @@ -23,6 +23,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.dataprotection.fluent.OperationStatusBackupVaultContextsClient; import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner; +import java.util.UUID; import reactor.core.publisher.Mono; /** @@ -65,7 +66,7 @@ public interface OperationStatusBackupVaultContextsService { @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("operationId") String operationId, @@ -77,7 +78,7 @@ Mono> get( /** * Gets the operation status for an operation over a BackupVault's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -131,7 +132,7 @@ private Mono> getWithResponseAsync( /** * Gets the operation status for an operation over a BackupVault's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @param context The context to associate with this operation. @@ -183,7 +184,7 @@ private Mono> getWithResponseAsync( /** * Gets the operation status for an operation over a BackupVault's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -201,7 +202,7 @@ private Mono getAsync(String resourceGroupName, String v /** * Gets the operation status for an operation over a BackupVault's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @param context The context to associate with this operation. @@ -219,7 +220,7 @@ public Response getWithResponse( /** * Gets the operation status for an operation over a BackupVault's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusClientImpl.java index 17d731770f18..1579ee18cc7b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusClientImpl.java @@ -23,6 +23,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.dataprotection.fluent.OperationStatusClient; import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in OperationStatusClient. */ @@ -60,7 +61,7 @@ public interface OperationStatusService { Mono> get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("location") String location, @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusResourceGroupContextsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusResourceGroupContextsClientImpl.java index ae22676484a0..41084e46d827 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusResourceGroupContextsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusResourceGroupContextsClientImpl.java @@ -23,6 +23,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.dataprotection.fluent.OperationStatusResourceGroupContextsClient; import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner; +import java.util.UUID; import reactor.core.publisher.Mono; /** @@ -69,7 +70,7 @@ Mono> getByResourceGroup( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); @@ -78,7 +79,7 @@ Mono> getByResourceGroup( /** * Gets the operation status for an operation over a ResourceGroup's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -127,7 +128,7 @@ private Mono> getByResourceGroupWithResponseAsy /** * Gets the operation status for an operation over a ResourceGroup's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param operationId The operationId parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -174,7 +175,7 @@ private Mono> getByResourceGroupWithResponseAsy /** * Gets the operation status for an operation over a ResourceGroup's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -191,7 +192,7 @@ private Mono getByResourceGroupAsync(String resourceGrou /** * Gets the operation status for an operation over a ResourceGroup's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param operationId The operationId parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -208,7 +209,7 @@ public Response getByResourceGroupWithResponse( /** * Gets the operation status for an operation over a ResourceGroup's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsClientImpl.java index b8f6005b7e72..be66ce1d085e 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsClientImpl.java @@ -28,6 +28,7 @@ import com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient; import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner; import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointResourceList; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in RecoveryPointsClient. */ @@ -65,7 +66,7 @@ public interface RecoveryPointsService { Mono> list( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -83,7 +84,7 @@ Mono> list( Mono> get( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -105,7 +106,7 @@ Mono> listNext( /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param filter OData filter options. @@ -173,7 +174,7 @@ private Mono> listSinglePag /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param filter OData filter options. @@ -244,7 +245,7 @@ private Mono> listSinglePag /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param filter OData filter options. @@ -265,7 +266,7 @@ private PagedFlux listAsync( /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -286,7 +287,7 @@ private PagedFlux listAsync( /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param filter OData filter options. @@ -313,7 +314,7 @@ private PagedFlux listAsync( /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -332,7 +333,7 @@ public PagedIterable list( /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param filter OData filter options. @@ -358,7 +359,7 @@ public PagedIterable list( /** * Gets a Recovery Point using recoveryPointId for a Datasource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param recoveryPointId The recoveryPointId parameter. @@ -419,7 +420,7 @@ private Mono> getWithResponseAsy /** * Gets a Recovery Point using recoveryPointId for a Datasource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param recoveryPointId The recoveryPointId parameter. @@ -482,7 +483,7 @@ private Mono> getWithResponseAsy /** * Gets a Recovery Point using recoveryPointId for a Datasource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param recoveryPointId The recoveryPointId parameter. @@ -501,7 +502,7 @@ private Mono getAsync( /** * Gets a Recovery Point using recoveryPointId for a Datasource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param recoveryPointId The recoveryPointId parameter. @@ -524,7 +525,7 @@ public Response getWithResponse( /** * Gets a Recovery Point using recoveryPointId for a Datasource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param recoveryPointId The recoveryPointId parameter. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardProxyBaseResourceImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardProxyBaseResourceImpl.java deleted file mode 100644 index 9135abfcc9b6..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardProxyBaseResourceImpl.java +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBaseResource; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteResponse; - -public final class ResourceGuardProxyBaseResourceImpl - implements ResourceGuardProxyBaseResource, - ResourceGuardProxyBaseResource.Definition, - ResourceGuardProxyBaseResource.Update { - private ResourceGuardProxyBaseResourceInner innerObject; - - private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public ResourceGuardProxyBase properties() { - return this.innerModel().properties(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ResourceGuardProxyBaseResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.dataprotection.DataProtectionManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String vaultName; - - private String resourceGuardProxyName; - - public ResourceGuardProxyBaseResourceImpl withExistingBackupVault(String resourceGroupName, String vaultName) { - this.resourceGroupName = resourceGroupName; - this.vaultName = vaultName; - return this; - } - - public ResourceGuardProxyBaseResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getDppResourceGuardProxies() - .putWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, this.innerModel(), Context.NONE) - .getValue(); - return this; - } - - public ResourceGuardProxyBaseResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDppResourceGuardProxies() - .putWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, this.innerModel(), context) - .getValue(); - return this; - } - - ResourceGuardProxyBaseResourceImpl( - String name, com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { - this.innerObject = new ResourceGuardProxyBaseResourceInner(); - this.serviceManager = serviceManager; - this.resourceGuardProxyName = name; - } - - public ResourceGuardProxyBaseResourceImpl update() { - return this; - } - - public ResourceGuardProxyBaseResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getDppResourceGuardProxies() - .putWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, this.innerModel(), Context.NONE) - .getValue(); - return this; - } - - public ResourceGuardProxyBaseResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDppResourceGuardProxies() - .putWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, this.innerModel(), context) - .getValue(); - return this; - } - - ResourceGuardProxyBaseResourceImpl( - ResourceGuardProxyBaseResourceInner innerObject, - com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.vaultName = Utils.getValueFromIdByName(innerObject.id(), "backupVaults"); - this.resourceGuardProxyName = Utils.getValueFromIdByName(innerObject.id(), "backupResourceGuardProxies"); - } - - public ResourceGuardProxyBaseResource refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getDppResourceGuardProxies() - .getWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, Context.NONE) - .getValue(); - return this; - } - - public ResourceGuardProxyBaseResource refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDppResourceGuardProxies() - .getWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, context) - .getValue(); - return this; - } - - public Response unlockDeleteWithResponse(UnlockDeleteRequest parameters, Context context) { - return serviceManager - .dppResourceGuardProxies() - .unlockDeleteWithResponse(resourceGroupName, vaultName, resourceGuardProxyName, parameters, context); - } - - public UnlockDeleteResponse unlockDelete(UnlockDeleteRequest parameters) { - return serviceManager - .dppResourceGuardProxies() - .unlockDelete(resourceGroupName, vaultName, resourceGuardProxyName, parameters); - } - - public ResourceGuardProxyBaseResourceImpl withProperties(ResourceGuardProxyBase properties) { - this.innerModel().withProperties(properties); - return this; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardResourceImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardResourceImpl.java index c009d16b5309..7d07d5835e0c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardResourceImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardResourceImpl.java @@ -8,9 +8,7 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardResourceInner; -import com.azure.resourcemanager.dataprotection.models.DppIdentityDetails; -import com.azure.resourcemanager.dataprotection.models.PatchBackupVaultInput; -import com.azure.resourcemanager.dataprotection.models.PatchResourceRequestInput; +import com.azure.resourcemanager.dataprotection.models.PatchResourceGuardInput; import com.azure.resourcemanager.dataprotection.models.ResourceGuard; import com.azure.resourcemanager.dataprotection.models.ResourceGuardResource; import java.util.Collections; @@ -51,10 +49,6 @@ public String etag() { return this.innerModel().etag(); } - public DppIdentityDetails identity() { - return this.innerModel().identity(); - } - public SystemData systemData() { return this.innerModel().systemData(); } @@ -87,7 +81,7 @@ private com.azure.resourcemanager.dataprotection.DataProtectionManager manager() private String resourceGuardsName; - private PatchResourceRequestInput updateParameters; + private PatchResourceGuardInput updateParameters; public ResourceGuardResourceImpl withExistingResourceGroup(String resourceGroupName) { this.resourceGroupName = resourceGroupName; @@ -122,7 +116,7 @@ public ResourceGuardResource create(Context context) { } public ResourceGuardResourceImpl update() { - this.updateParameters = new PatchResourceRequestInput(); + this.updateParameters = new PatchResourceGuardInput(); return this; } @@ -200,26 +194,11 @@ public ResourceGuardResourceImpl withEtag(String etag) { return this; } - public ResourceGuardResourceImpl withIdentity(DppIdentityDetails identity) { - if (isInCreateMode()) { - this.innerModel().withIdentity(identity); - return this; - } else { - this.updateParameters.withIdentity(identity); - return this; - } - } - public ResourceGuardResourceImpl withProperties(ResourceGuard properties) { this.innerModel().withProperties(properties); return this; } - public ResourceGuardResourceImpl withProperties(PatchBackupVaultInput properties) { - this.updateParameters.withProperties(properties); - return this; - } - private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardsClientImpl.java index 6312132f3a75..d6dee868b073 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardsClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardsClientImpl.java @@ -33,8 +33,9 @@ import com.azure.resourcemanager.dataprotection.fluent.models.DppBaseResourceInner; import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardResourceInner; import com.azure.resourcemanager.dataprotection.models.DppBaseResourceList; -import com.azure.resourcemanager.dataprotection.models.PatchResourceRequestInput; +import com.azure.resourcemanager.dataprotection.models.PatchResourceGuardInput; import com.azure.resourcemanager.dataprotection.models.ResourceGuardResourceList; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in ResourceGuardsClient. */ @@ -70,7 +71,7 @@ public interface ResourceGuardsService { Mono> list( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -83,7 +84,7 @@ Mono> list( Mono> listByResourceGroup( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @@ -92,13 +93,13 @@ Mono> listByResourceGroup( @Put( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection" + "/resourceGuards/{resourceGuardsName}") - @ExpectedResponses({200}) + @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> put( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @BodyParam("application/json") ResourceGuardResourceInner parameters, @HeaderParam("Accept") String accept, @@ -114,7 +115,7 @@ Mono> getByResourceGroup( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @HeaderParam("Accept") String accept, Context context); @@ -129,7 +130,7 @@ Mono> delete( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @HeaderParam("Accept") String accept, Context context); @@ -144,9 +145,9 @@ Mono> patch( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, - @BodyParam("application/json") PatchResourceRequestInput parameters, + @BodyParam("application/json") PatchResourceGuardInput parameters, @HeaderParam("Accept") String accept, Context context); @@ -160,7 +161,7 @@ Mono> getDisableSoftDeleteRequestsObjects( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @HeaderParam("Accept") String accept, Context context); @@ -175,7 +176,7 @@ Mono> getDeleteResourceGuardProxyRequestsObjects( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @HeaderParam("Accept") String accept, Context context); @@ -190,7 +191,7 @@ Mono> getBackupSecurityPinRequestsObjects( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @HeaderParam("Accept") String accept, Context context); @@ -205,7 +206,7 @@ Mono> getDeleteProtectedItemRequestsObjects( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @HeaderParam("Accept") String accept, Context context); @@ -220,7 +221,7 @@ Mono> getUpdateProtectionPolicyRequestsObjects( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @HeaderParam("Accept") String accept, Context context); @@ -235,7 +236,7 @@ Mono> getUpdateProtectedItemRequestsObjects( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @HeaderParam("Accept") String accept, Context context); @@ -250,7 +251,7 @@ Mono> getDefaultDisableSoftDeleteRequestsObject( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @PathParam("requestName") String requestName, @HeaderParam("Accept") String accept, @@ -266,7 +267,7 @@ Mono> getDefaultDeleteResourceGuardProxyRequestsO @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @PathParam("requestName") String requestName, @HeaderParam("Accept") String accept, @@ -282,7 +283,7 @@ Mono> getDefaultBackupSecurityPinRequestsObject( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @PathParam("requestName") String requestName, @HeaderParam("Accept") String accept, @@ -298,7 +299,7 @@ Mono> getDefaultDeleteProtectedItemRequestsObject @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @PathParam("requestName") String requestName, @HeaderParam("Accept") String accept, @@ -314,7 +315,7 @@ Mono> getDefaultUpdateProtectionPolicyRequestsObj @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @PathParam("requestName") String requestName, @HeaderParam("Accept") String accept, @@ -330,7 +331,7 @@ Mono> getDefaultUpdateProtectedItemRequestsObject @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGuardsName") String resourceGuardsName, @PathParam("requestName") String requestName, @HeaderParam("Accept") String accept, @@ -564,7 +565,7 @@ public PagedIterable list(Context context) { /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -617,7 +618,7 @@ private Mono> listByResourceGroupSingl /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -668,7 +669,7 @@ private Mono> listByResourceGroupSingl /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -684,7 +685,7 @@ private PagedFlux listByResourceGroupAsync(String re /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -701,7 +702,7 @@ private PagedFlux listByResourceGroupAsync(String re /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -715,7 +716,7 @@ public PagedIterable listByResourceGroup(String reso /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -730,7 +731,7 @@ public PagedIterable listByResourceGroup(String reso /** * Creates or updates a ResourceGuard resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -786,7 +787,7 @@ private Mono> putWithResponseAsync( /** * Creates or updates a ResourceGuard resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -840,7 +841,7 @@ private Mono> putWithResponseAsync( /** * Creates or updates a ResourceGuard resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -858,7 +859,7 @@ private Mono putAsync( /** * Creates or updates a ResourceGuard resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -876,7 +877,7 @@ public Response putWithResponse( /** * Creates or updates a ResourceGuard resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -893,7 +894,7 @@ public ResourceGuardResourceInner put( /** * Returns a ResourceGuard belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -942,7 +943,7 @@ private Mono> getByResourceGroupWithRespons /** * Returns a ResourceGuard belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -989,7 +990,7 @@ private Mono> getByResourceGroupWithRespons /** * Returns a ResourceGuard belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1006,7 +1007,7 @@ private Mono getByResourceGroupAsync( /** * Returns a ResourceGuard belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1023,7 +1024,7 @@ public Response getByResourceGroupWithResponse( /** * Returns a ResourceGuard belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1038,7 +1039,7 @@ public ResourceGuardResourceInner getByResourceGroup(String resourceGroupName, S /** * Deletes a ResourceGuard resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1086,7 +1087,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S /** * Deletes a ResourceGuard resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1133,7 +1134,7 @@ private Mono> deleteWithResponseAsync( /** * Deletes a ResourceGuard resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1148,7 +1149,7 @@ private Mono deleteAsync(String resourceGroupName, String resourceGuardsNa /** * Deletes a ResourceGuard resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1164,7 +1165,7 @@ public Response deleteWithResponse(String resourceGroupName, String resour /** * Deletes a ResourceGuard resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1178,7 +1179,7 @@ public void delete(String resourceGroupName, String resourceGuardsName) { /** * Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1188,7 +1189,7 @@ public void delete(String resourceGroupName, String resourceGuardsName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> patchWithResponseAsync( - String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters) { + String resourceGroupName, String resourceGuardsName, PatchResourceGuardInput parameters) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1234,7 +1235,7 @@ private Mono> patchWithResponseAsync( /** * Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1245,7 +1246,7 @@ private Mono> patchWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> patchWithResponseAsync( - String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters, Context context) { + String resourceGroupName, String resourceGuardsName, PatchResourceGuardInput parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -1288,7 +1289,7 @@ private Mono> patchWithResponseAsync( /** * Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1298,7 +1299,7 @@ private Mono> patchWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono patchAsync( - String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters) { + String resourceGroupName, String resourceGuardsName, PatchResourceGuardInput parameters) { return patchWithResponseAsync(resourceGroupName, resourceGuardsName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -1306,7 +1307,7 @@ private Mono patchAsync( /** * Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -1317,14 +1318,14 @@ private Mono patchAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) public Response patchWithResponse( - String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters, Context context) { + String resourceGroupName, String resourceGuardsName, PatchResourceGuardInput parameters, Context context) { return patchWithResponseAsync(resourceGroupName, resourceGuardsName, parameters, context).block(); } /** * Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1334,7 +1335,7 @@ public Response patchWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) public ResourceGuardResourceInner patch( - String resourceGroupName, String resourceGuardsName, PatchResourceRequestInput parameters) { + String resourceGroupName, String resourceGuardsName, PatchResourceGuardInput parameters) { return patchWithResponse(resourceGroupName, resourceGuardsName, parameters, Context.NONE).getValue(); } @@ -1342,7 +1343,7 @@ public ResourceGuardResourceInner patch( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1402,7 +1403,7 @@ private Mono> getDisableSoftDeleteRequestsOb * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1460,7 +1461,7 @@ private Mono> getDisableSoftDeleteRequestsOb * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1479,7 +1480,7 @@ private PagedFlux getDisableSoftDeleteRequestsObjectsAsync * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1499,7 +1500,7 @@ private PagedFlux getDisableSoftDeleteRequestsObjectsAsync * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1516,7 +1517,7 @@ public PagedIterable getDisableSoftDeleteRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1535,7 +1536,7 @@ public PagedIterable getDisableSoftDeleteRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1595,7 +1596,7 @@ private Mono> getDeleteResourceGuardProxyReq * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1653,7 +1654,7 @@ private Mono> getDeleteResourceGuardProxyReq * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1672,7 +1673,7 @@ private PagedFlux getDeleteResourceGuardProxyRequestsObjec * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1694,7 +1695,7 @@ private PagedFlux getDeleteResourceGuardProxyRequestsObjec * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1712,7 +1713,7 @@ public PagedIterable getDeleteResourceGuardProxyRequestsOb * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1731,7 +1732,7 @@ public PagedIterable getDeleteResourceGuardProxyRequestsOb * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1791,7 +1792,7 @@ private Mono> getBackupSecurityPinRequestsOb * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1849,7 +1850,7 @@ private Mono> getBackupSecurityPinRequestsOb * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1868,7 +1869,7 @@ private PagedFlux getBackupSecurityPinRequestsObjectsAsync * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1888,7 +1889,7 @@ private PagedFlux getBackupSecurityPinRequestsObjectsAsync * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1905,7 +1906,7 @@ public PagedIterable getBackupSecurityPinRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1924,7 +1925,7 @@ public PagedIterable getBackupSecurityPinRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1984,7 +1985,7 @@ private Mono> getDeleteProtectedItemRequests * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2042,7 +2043,7 @@ private Mono> getDeleteProtectedItemRequests * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2061,7 +2062,7 @@ private PagedFlux getDeleteProtectedItemRequestsObjectsAsy * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2081,7 +2082,7 @@ private PagedFlux getDeleteProtectedItemRequestsObjectsAsy * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2098,7 +2099,7 @@ public PagedIterable getDeleteProtectedItemRequestsObjects * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2117,7 +2118,7 @@ public PagedIterable getDeleteProtectedItemRequestsObjects * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2177,7 +2178,7 @@ private Mono> getUpdateProtectionPolicyReque * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2235,7 +2236,7 @@ private Mono> getUpdateProtectionPolicyReque * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2254,7 +2255,7 @@ private PagedFlux getUpdateProtectionPolicyRequestsObjects * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2275,7 +2276,7 @@ private PagedFlux getUpdateProtectionPolicyRequestsObjects * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2293,7 +2294,7 @@ public PagedIterable getUpdateProtectionPolicyRequestsObje * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2312,7 +2313,7 @@ public PagedIterable getUpdateProtectionPolicyRequestsObje * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2372,7 +2373,7 @@ private Mono> getUpdateProtectedItemRequests * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2430,7 +2431,7 @@ private Mono> getUpdateProtectedItemRequests * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2449,7 +2450,7 @@ private PagedFlux getUpdateProtectedItemRequestsObjectsAsy * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2469,7 +2470,7 @@ private PagedFlux getUpdateProtectedItemRequestsObjectsAsy * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2486,7 +2487,7 @@ public PagedIterable getUpdateProtectedItemRequestsObjects * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2505,7 +2506,7 @@ public PagedIterable getUpdateProtectedItemRequestsObjects * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2561,7 +2562,7 @@ private Mono> getDefaultDisableSoftDeleteRequests * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -2615,7 +2616,7 @@ private Mono> getDefaultDisableSoftDeleteRequests * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2635,7 +2636,7 @@ private Mono getDefaultDisableSoftDeleteRequestsObjectAsyn * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -2656,7 +2657,7 @@ public Response getDefaultDisableSoftDeleteRequestsObjectW * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2676,7 +2677,7 @@ public DppBaseResourceInner getDefaultDisableSoftDeleteRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2732,7 +2733,7 @@ private Mono> getDefaultDeleteResourceGuardProxyR * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -2786,7 +2787,7 @@ private Mono> getDefaultDeleteResourceGuardProxyR * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2806,7 +2807,7 @@ private Mono getDefaultDeleteResourceGuardProxyRequestsObj * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -2827,7 +2828,7 @@ public Response getDefaultDeleteResourceGuardProxyRequests * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2847,7 +2848,7 @@ public DppBaseResourceInner getDefaultDeleteResourceGuardProxyRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2903,7 +2904,7 @@ private Mono> getDefaultBackupSecurityPinRequests * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -2957,7 +2958,7 @@ private Mono> getDefaultBackupSecurityPinRequests * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2977,7 +2978,7 @@ private Mono getDefaultBackupSecurityPinRequestsObjectAsyn * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -2998,7 +2999,7 @@ public Response getDefaultBackupSecurityPinRequestsObjectW * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3018,7 +3019,7 @@ public DppBaseResourceInner getDefaultBackupSecurityPinRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3074,7 +3075,7 @@ private Mono> getDefaultDeleteProtectedItemReques * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -3128,7 +3129,7 @@ private Mono> getDefaultDeleteProtectedItemReques * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3148,7 +3149,7 @@ private Mono getDefaultDeleteProtectedItemRequestsObjectAs * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -3169,7 +3170,7 @@ public Response getDefaultDeleteProtectedItemRequestsObjec * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3189,7 +3190,7 @@ public DppBaseResourceInner getDefaultDeleteProtectedItemRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3245,7 +3246,7 @@ private Mono> getDefaultUpdateProtectionPolicyReq * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -3299,7 +3300,7 @@ private Mono> getDefaultUpdateProtectionPolicyReq * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3319,7 +3320,7 @@ private Mono getDefaultUpdateProtectionPolicyRequestsObjec * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -3340,7 +3341,7 @@ public Response getDefaultUpdateProtectionPolicyRequestsOb * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3360,7 +3361,7 @@ public DppBaseResourceInner getDefaultUpdateProtectionPolicyRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3416,7 +3417,7 @@ private Mono> getDefaultUpdateProtectedItemReques * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -3470,7 +3471,7 @@ private Mono> getDefaultUpdateProtectedItemReques * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3490,7 +3491,7 @@ private Mono getDefaultUpdateProtectedItemRequestsObjectAs * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -3511,7 +3512,7 @@ public Response getDefaultUpdateProtectedItemRequestsObjec * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesClientImpl.java index 7a93cdb30ab2..eb66fb2c4b48 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesClientImpl.java @@ -25,6 +25,7 @@ import com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesClient; import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupFindRestorableTimeRangesResponseResourceInner; import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest; +import java.util.UUID; import reactor.core.publisher.Mono; /** An instance of this class provides access to all the operations defined in RestorableTimeRangesClient. */ @@ -63,7 +64,7 @@ public interface RestorableTimeRangesService { Mono> find( @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + @PathParam("subscriptionId") UUID subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, @PathParam("backupInstanceName") String backupInstanceName, @@ -75,7 +76,7 @@ Mono> find( /** * The find operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -139,7 +140,7 @@ private Mono> /** * The find operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -202,7 +203,7 @@ private Mono> /** * The find operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -224,7 +225,7 @@ private Mono findAsync /** * The find operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -247,7 +248,7 @@ public Response findWi /** * The find operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/UnlockDeleteResponseImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/UnlockDeleteResponseImpl.java deleted file mode 100644 index d7e88380d248..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/UnlockDeleteResponseImpl.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.implementation; - -import com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteResponse; - -public final class UnlockDeleteResponseImpl implements UnlockDeleteResponse { - private UnlockDeleteResponseInner innerObject; - - private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; - - UnlockDeleteResponseImpl( - UnlockDeleteResponseInner innerObject, - com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public String unlockDeleteExpiryTime() { - return this.innerModel().unlockDeleteExpiryTime(); - } - - public UnlockDeleteResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.dataprotection.DataProtectionManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java index 578bad4fb851..9008d9074767 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java @@ -75,6 +75,12 @@ public final class AzureBackupDiscreteRecoveryPoint extends AzureBackupRecoveryP @JsonProperty(value = "retentionTagVersion") private String retentionTagVersion; + /* + * The expiryTime property. + */ + @JsonProperty(value = "expiryTime", access = JsonProperty.Access.WRITE_ONLY) + private OffsetDateTime expiryTime; + /** Creates an instance of AzureBackupDiscreteRecoveryPoint class. */ public AzureBackupDiscreteRecoveryPoint() { } @@ -260,6 +266,15 @@ public AzureBackupDiscreteRecoveryPoint withRetentionTagVersion(String retention return this; } + /** + * Get the expiryTime property: The expiryTime property. + * + * @return the expiryTime value. + */ + public OffsetDateTime expiryTime() { + return this.expiryTime; + } + /** * Validates the instance. * diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResource.java index f035f52f72aa..a7c7a996a0cd 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResource.java @@ -81,7 +81,7 @@ interface WithParentResource { /** * Specifies resourceGroupName, vaultName. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @return the next definition stage. */ diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstances.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstances.java index 3b3c6843fe54..c9b1634d541f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstances.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstances.java @@ -13,7 +13,7 @@ public interface BackupInstances { /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -25,7 +25,7 @@ public interface BackupInstances { /** * Gets a backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,7 +38,7 @@ public interface BackupInstances { /** * Gets a backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -53,7 +53,7 @@ Response getWithResponse( /** * Gets a backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -66,7 +66,7 @@ Response getWithResponse( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -78,7 +78,7 @@ Response getWithResponse( /** * Delete a backup instance in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. @@ -91,7 +91,7 @@ Response getWithResponse( /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -106,7 +106,7 @@ OperationJobExtendedInfo adhocBackup( /** * Trigger adhoc backup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -126,7 +126,7 @@ OperationJobExtendedInfo adhocBackup( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,7 +140,7 @@ OperationJobExtendedInfo validateForBackup( /** * Validate whether adhoc backup will be successful or not. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param parameters Request body for operation. * @param context The context to associate with this operation. @@ -155,9 +155,9 @@ OperationJobExtendedInfo validateForBackup( /** * Get result of backup instance creation operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param operationId The operationId parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -171,9 +171,9 @@ Response getBackupInstanceOperationResultWithResponse( /** * Get result of backup instance creation operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -186,9 +186,9 @@ BackupInstanceResource getBackupInstanceOperationResult( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -203,9 +203,9 @@ void triggerRehydrate( /** * rehydrate recovery point for restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,7 +222,7 @@ void triggerRehydrate( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -237,7 +237,7 @@ OperationJobExtendedInfo triggerRestore( /** * Triggers restore for a BackupInstance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -257,9 +257,9 @@ OperationJobExtendedInfo triggerRestore( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -269,9 +269,9 @@ OperationJobExtendedInfo triggerRestore( /** * This operation will resume backups for backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -282,9 +282,9 @@ OperationJobExtendedInfo triggerRestore( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -294,9 +294,9 @@ OperationJobExtendedInfo triggerRestore( /** * This operation will resume protection for a stopped backup instance. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -307,9 +307,9 @@ OperationJobExtendedInfo triggerRestore( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -319,9 +319,9 @@ OperationJobExtendedInfo triggerRestore( /** * This operation will stop protection of a backup instance and data will be held forever. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -333,9 +333,9 @@ OperationJobExtendedInfo triggerRestore( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -346,9 +346,9 @@ OperationJobExtendedInfo triggerRestore( * This operation will stop backup for a backup instance and retains the backup data as per the policy (except * latest Recovery point, which will be retained forever). * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -360,9 +360,9 @@ OperationJobExtendedInfo triggerRestore( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -375,9 +375,9 @@ void syncBackupInstance( * Sync backup instance again in case of failure This action will retry last failed operation and will bring backup * instance to valid state. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param backupInstanceName The backupInstanceName parameter. + * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -394,7 +394,7 @@ void syncBackupInstance( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -409,7 +409,7 @@ OperationJobExtendedInfo validateForRestore( /** * Validates if Restore can be triggered for a DataSource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesExtensionRoutings.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesExtensionRoutings.java deleted file mode 100644 index 289b5e5b8f8e..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesExtensionRoutings.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.util.Context; - -/** Resource collection API of BackupInstancesExtensionRoutings. */ -public interface BackupInstancesExtensionRoutings { - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource as paginated response with {@link - * PagedIterable}. - */ - PagedIterable list(String resourceId); - - /** - * Gets a list backup instances associated with a tracked resource. - * - * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list backup instances associated with a tracked resource as paginated response with {@link - * PagedIterable}. - */ - PagedIterable list(String resourceId, Context context); -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicies.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicies.java index f65937453060..3b72e16fce2a 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicies.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicies.java @@ -13,7 +13,7 @@ public interface BackupPolicies { /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -25,7 +25,7 @@ public interface BackupPolicies { /** * Returns list of backup policies belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,7 +38,7 @@ public interface BackupPolicies { /** * Gets a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @param context The context to associate with this operation. @@ -53,7 +53,7 @@ Response getWithResponse( /** * Gets a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -66,7 +66,7 @@ Response getWithResponse( /** * Deletes a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @param context The context to associate with this operation. @@ -81,7 +81,7 @@ Response deleteWithResponse( /** * Deletes a backup policy belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupPolicyName The backupPolicyName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVault.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVault.java index ddbdd251008d..f5fd32374ae4 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVault.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVault.java @@ -58,6 +58,12 @@ public final class BackupVault { @JsonProperty(value = "isVaultProtectedByResourceGuard", access = JsonProperty.Access.WRITE_ONLY) private Boolean isVaultProtectedByResourceGuard; + /* + * Feature Settings + */ + @JsonProperty(value = "featureSettings") + private FeatureSettings featureSettings; + /** Creates an instance of BackupVault class. */ public BackupVault() { } @@ -158,6 +164,26 @@ public Boolean isVaultProtectedByResourceGuard() { return this.isVaultProtectedByResourceGuard; } + /** + * Get the featureSettings property: Feature Settings. + * + * @return the featureSettings value. + */ + public FeatureSettings featureSettings() { + return this.featureSettings; + } + + /** + * Set the featureSettings property: Feature Settings. + * + * @param featureSettings the featureSettings value to set. + * @return the BackupVault object itself. + */ + public BackupVault withFeatureSettings(FeatureSettings featureSettings) { + this.featureSettings = featureSettings; + return this; + } + /** * Validates the instance. * @@ -180,6 +206,9 @@ public void validate() { } else { storageSettings().forEach(e -> e.validate()); } + if (featureSettings() != null) { + featureSettings().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(BackupVault.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResults.java index 5189d3aa0a8f..6a474d31a4f7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResults.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResults.java @@ -12,7 +12,7 @@ public interface BackupVaultOperationResults { /** * The get operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @param context The context to associate with this operation. @@ -27,7 +27,7 @@ Response getWithResponse( /** * The get operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResource.java index 4137c1d587df..82e8d191038a 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResource.java @@ -54,6 +54,13 @@ public interface BackupVaultResource { */ String etag(); + /** + * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + SystemData systemData(); + /** * Gets the identity property: DppIdentityDetails * @@ -63,13 +70,6 @@ public interface BackupVaultResource { */ DppIdentityDetails identity(); - /** - * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. - * - * @return the systemData value. - */ - SystemData systemData(); - /** * Gets the properties property: BackupVault * @@ -143,7 +143,7 @@ interface WithResourceGroup { /** * Specifies resourceGroupName. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithProperties withExistingResourceGroup(String resourceGroupName); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaults.java index 5f723e15bf43..399e2b1aa539 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaults.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaults.java @@ -33,7 +33,7 @@ public interface BackupVaults { /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -44,7 +44,7 @@ public interface BackupVaults { /** * Returns resource collection belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -56,7 +56,7 @@ public interface BackupVaults { /** * Returns a resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -70,7 +70,7 @@ Response getByResourceGroupWithResponse( /** * Returns a resource belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -82,31 +82,30 @@ Response getByResourceGroupWithResponse( /** * Deletes a BackupVault resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteByResourceGroupWithResponse(String resourceGroupName, String vaultName, Context context); + void deleteByResourceGroup(String resourceGroupName, String vaultName); /** * Deletes a BackupVault resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void deleteByResourceGroup(String resourceGroupName, String vaultName); + void delete(String resourceGroupName, String vaultName, Context context); /** * API to check for resource name availability. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param location The location in which uniqueness will be verified. * @param parameters Check name availability request. * @param context The context to associate with this operation. @@ -121,7 +120,7 @@ Response checkNameAvailabilityWithResponse( /** * API to check for resource name availability. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param location The location in which uniqueness will be verified. * @param parameters Check name availability request. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -173,9 +172,8 @@ CheckNameAvailabilityResult checkNameAvailability( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response deleteByIdWithResponse(String id, Context context); + void deleteByIdWithResponse(String id, Context context); /** * Begins definition for a new BackupVaultResource resource. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResource.java index 94042201b50b..72d16de2ecb6 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResource.java @@ -75,7 +75,7 @@ interface WithParentResource { /** * Specifies resourceGroupName, vaultName. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @return the next definition stage. */ diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreSettings.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreSettings.java new file mode 100644 index 000000000000..3bdaebbc3987 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreSettings.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** CrossSubscriptionRestore Settings. */ +@Fluent +public final class CrossSubscriptionRestoreSettings { + /* + * CrossSubscriptionRestore state + */ + @JsonProperty(value = "state") + private CrossSubscriptionRestoreState state; + + /** Creates an instance of CrossSubscriptionRestoreSettings class. */ + public CrossSubscriptionRestoreSettings() { + } + + /** + * Get the state property: CrossSubscriptionRestore state. + * + * @return the state value. + */ + public CrossSubscriptionRestoreState state() { + return this.state; + } + + /** + * Set the state property: CrossSubscriptionRestore state. + * + * @param state the state value to set. + * @return the CrossSubscriptionRestoreSettings object itself. + */ + public CrossSubscriptionRestoreSettings withState(CrossSubscriptionRestoreState state) { + this.state = state; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreState.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreState.java new file mode 100644 index 000000000000..e9e13f3f6977 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreState.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** CrossSubscriptionRestore state. */ +public final class CrossSubscriptionRestoreState extends ExpandableStringEnum { + /** Static value Disabled for CrossSubscriptionRestoreState. */ + public static final CrossSubscriptionRestoreState DISABLED = fromString("Disabled"); + + /** Static value PermanentlyDisabled for CrossSubscriptionRestoreState. */ + public static final CrossSubscriptionRestoreState PERMANENTLY_DISABLED = fromString("PermanentlyDisabled"); + + /** Static value Enabled for CrossSubscriptionRestoreState. */ + public static final CrossSubscriptionRestoreState ENABLED = fromString("Enabled"); + + /** + * Creates a new instance of CrossSubscriptionRestoreState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CrossSubscriptionRestoreState() { + } + + /** + * Creates or finds a CrossSubscriptionRestoreState from its string representation. + * + * @param name a name to look for. + * @return the corresponding CrossSubscriptionRestoreState. + */ + @JsonCreator + public static CrossSubscriptionRestoreState fromString(String name) { + return fromString(name, CrossSubscriptionRestoreState.class); + } + + /** + * Gets known CrossSubscriptionRestoreState values. + * + * @return known CrossSubscriptionRestoreState values. + */ + public static Collection values() { + return values(CrossSubscriptionRestoreState.class); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstances.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstances.java index dd1c5ea6c7ce..e5a49af62667 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstances.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstances.java @@ -13,7 +13,7 @@ public interface DeletedBackupInstances { /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -25,7 +25,7 @@ public interface DeletedBackupInstances { /** * Gets deleted backup instances belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,7 +38,7 @@ public interface DeletedBackupInstances { /** * Gets a deleted backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. @@ -53,7 +53,7 @@ Response getWithResponse( /** * Gets a deleted backup instance with name in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -66,7 +66,7 @@ Response getWithResponse( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -78,7 +78,7 @@ Response getWithResponse( /** * The undelete operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the deleted backup instance. * @param context The context to associate with this operation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppBaseTrackedResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppBaseTrackedResource.java new file mode 100644 index 000000000000..1e05d38e3dfb --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppBaseTrackedResource.java @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; + +/** The DppBaseTrackedResource model. */ +@Fluent +public class DppBaseTrackedResource extends Resource { + /* + * Optional ETag. + */ + @JsonProperty(value = "eTag") + private String etag; + + /* + * Metadata pertaining to creation and last modification of the resource. + */ + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** Creates an instance of DppBaseTrackedResource class. */ + public DppBaseTrackedResource() { + } + + /** + * Get the etag property: Optional ETag. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Set the etag property: Optional ETag. + * + * @param etag the etag value to set. + * @return the DppBaseTrackedResource object itself. + */ + public DppBaseTrackedResource withEtag(String etag) { + this.etag = etag; + return this; + } + + /** + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** {@inheritDoc} */ + @Override + public DppBaseTrackedResource withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public DppBaseTrackedResource withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppResourceGuardProxies.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppResourceGuardProxies.java deleted file mode 100644 index f6788809eb09..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppResourceGuardProxies.java +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** Resource collection API of DppResourceGuardProxies. */ -public interface DppResourceGuardProxies { - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String vaultName); - - /** - * The list operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}. - */ - PagedIterable list(String resourceGroupName, String vaultName, Context context); - - /** - * The get operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - Response getWithResponse( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context); - - /** - * The get operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. - */ - ResourceGuardProxyBaseResource get(String resourceGroupName, String vaultName, String resourceGuardProxyName); - - /** - * The delete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteWithResponse( - String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context); - - /** - * The delete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void delete(String resourceGroupName, String vaultName, String resourceGuardProxyName); - - /** - * The unlockDelete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API along with {@link Response}. - */ - Response unlockDeleteWithResponse( - String resourceGroupName, - String vaultName, - String resourceGuardProxyName, - UnlockDeleteRequest parameters, - Context context); - - /** - * The unlockDelete operation. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @param resourceGuardProxyName The resourceGuardProxyName parameter. - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API. - */ - UnlockDeleteResponse unlockDelete( - String resourceGroupName, String vaultName, String resourceGuardProxyName, UnlockDeleteRequest parameters); - - /** - * The get operation. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - ResourceGuardProxyBaseResource getById(String id); - - /** - * The get operation. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * The delete operation. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteById(String id); - - /** - * The delete operation. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ResourceGuardProxyBaseResource resource. - * - * @param name resource name. - * @return the first stage of the new ResourceGuardProxyBaseResource definition. - */ - ResourceGuardProxyBaseResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResource.java index bfe7a84acab4..a4598531e26f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResource.java @@ -5,20 +5,12 @@ package com.azure.resourcemanager.dataprotection.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; /** The DppTrackedResource model. */ @Fluent -public class DppTrackedResource extends Resource { - /* - * Optional ETag. - */ - @JsonProperty(value = "eTag") - private String etag; - +public class DppTrackedResource extends DppBaseTrackedResource { /* * DppIdentityDetails * @@ -27,36 +19,10 @@ public class DppTrackedResource extends Resource { @JsonProperty(value = "identity") private DppIdentityDetails identity; - /* - * Metadata pertaining to creation and last modification of the resource. - */ - @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) - private SystemData systemData; - /** Creates an instance of DppTrackedResource class. */ public DppTrackedResource() { } - /** - * Get the etag property: Optional ETag. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** - * Set the etag property: Optional ETag. - * - * @param etag the etag value to set. - * @return the DppTrackedResource object itself. - */ - public DppTrackedResource withEtag(String etag) { - this.etag = etag; - return this; - } - /** * Get the identity property: DppIdentityDetails * @@ -81,13 +47,11 @@ public DppTrackedResource withIdentity(DppIdentityDetails identity) { return this; } - /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; + /** {@inheritDoc} */ + @Override + public DppTrackedResource withEtag(String etag) { + super.withEtag(etag); + return this; } /** {@inheritDoc} */ @@ -109,7 +73,9 @@ public DppTrackedResource withTags(Map tags) { * * @throws IllegalArgumentException thrown if the instance is not valid. */ + @Override public void validate() { + super.validate(); if (identity() != null) { identity().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobs.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobs.java index e57a9732a743..af1f23053d47 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobs.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobs.java @@ -11,7 +11,7 @@ public interface ExportJobs { /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -22,7 +22,7 @@ public interface ExportJobs { /** * Triggers export of jobs and returns an OperationID to track. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobsOperationResults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobsOperationResults.java index a6bc7c2b542a..db3ec8726ea2 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobsOperationResults.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobsOperationResults.java @@ -14,7 +14,7 @@ public interface ExportJobsOperationResults { * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized * format. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId OperationID which represents the export job. * @param context The context to associate with this operation. @@ -31,7 +31,7 @@ Response getWithResponse( * contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized * format. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId OperationID which represents the export job. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureSettings.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureSettings.java new file mode 100644 index 000000000000..c85a2ab7d80d --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureSettings.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Class containing feature settings of vault. */ +@Fluent +public final class FeatureSettings { + /* + * CrossSubscriptionRestore Settings + */ + @JsonProperty(value = "crossSubscriptionRestoreSettings") + private CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings; + + /** Creates an instance of FeatureSettings class. */ + public FeatureSettings() { + } + + /** + * Get the crossSubscriptionRestoreSettings property: CrossSubscriptionRestore Settings. + * + * @return the crossSubscriptionRestoreSettings value. + */ + public CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings() { + return this.crossSubscriptionRestoreSettings; + } + + /** + * Set the crossSubscriptionRestoreSettings property: CrossSubscriptionRestore Settings. + * + * @param crossSubscriptionRestoreSettings the crossSubscriptionRestoreSettings value to set. + * @return the FeatureSettings object itself. + */ + public FeatureSettings withCrossSubscriptionRestoreSettings( + CrossSubscriptionRestoreSettings crossSubscriptionRestoreSettings) { + this.crossSubscriptionRestoreSettings = crossSubscriptionRestoreSettings; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (crossSubscriptionRestoreSettings() != null) { + crossSubscriptionRestoreSettings().validate(); + } + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/Jobs.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/Jobs.java index 1aac8b23c906..0e5de723efe8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/Jobs.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/Jobs.java @@ -13,7 +13,7 @@ public interface Jobs { /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -25,7 +25,7 @@ public interface Jobs { /** * Returns list of jobs belonging to a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,7 +38,7 @@ public interface Jobs { /** * Gets a job with id in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). * @param context The context to associate with this operation. @@ -53,7 +53,7 @@ Response getWithResponse( /** * Gets a job with id in a backup vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param jobId The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java index 040964b262c9..307fae223956 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java @@ -58,7 +58,8 @@ public final class KubernetesClusterRestoreCriteria extends ItemLevelRestoreCrit private List labelSelectors; /* - * Gets or sets the PV Restore Mode property. This property sets whether volumes needs to be restored. + * Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be + * restored. */ @JsonProperty(value = "persistentVolumeRestoreMode") private PersistentVolumeRestoreMode persistentVolumeRestoreMode; @@ -214,8 +215,8 @@ public KubernetesClusterRestoreCriteria withLabelSelectors(List labelSel } /** - * Get the persistentVolumeRestoreMode property: Gets or sets the PV Restore Mode property. This property sets - * whether volumes needs to be restored. + * Get the persistentVolumeRestoreMode property: Gets or sets the PV (Persistent Volume) Restore Mode property. This + * property sets whether volumes needs to be restored. * * @return the persistentVolumeRestoreMode value. */ @@ -224,8 +225,8 @@ public PersistentVolumeRestoreMode persistentVolumeRestoreMode() { } /** - * Set the persistentVolumeRestoreMode property: Gets or sets the PV Restore Mode property. This property sets - * whether volumes needs to be restored. + * Set the persistentVolumeRestoreMode property: Gets or sets the PV (Persistent Volume) Restore Mode property. This + * property sets whether volumes needs to be restored. * * @param persistentVolumeRestoreMode the persistentVolumeRestoreMode value to set. * @return the KubernetesClusterRestoreCriteria object itself. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusBackupVaultContexts.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusBackupVaultContexts.java index 183946a66627..901107f3708c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusBackupVaultContexts.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusBackupVaultContexts.java @@ -12,7 +12,7 @@ public interface OperationStatusBackupVaultContexts { /** * Gets the operation status for an operation over a BackupVault's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @param context The context to associate with this operation. @@ -27,7 +27,7 @@ Response getWithResponse( /** * Gets the operation status for an operation over a BackupVault's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusResourceGroupContexts.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusResourceGroupContexts.java index d5007c83b626..a371a5c44faf 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusResourceGroupContexts.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusResourceGroupContexts.java @@ -12,7 +12,7 @@ public interface OperationStatusResourceGroupContexts { /** * Gets the operation status for an operation over a ResourceGroup's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param operationId The operationId parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,7 +26,7 @@ Response getByResourceGroupWithResponse( /** * Gets the operation status for an operation over a ResourceGroup's context. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param operationId The operationId parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PatchBackupVaultInput.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PatchBackupVaultInput.java index 49637952b6c7..fda5d105a278 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PatchBackupVaultInput.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PatchBackupVaultInput.java @@ -22,6 +22,12 @@ public final class PatchBackupVaultInput { @JsonProperty(value = "securitySettings") private SecuritySettings securitySettings; + /* + * Feature Settings + */ + @JsonProperty(value = "featureSettings") + private FeatureSettings featureSettings; + /** Creates an instance of PatchBackupVaultInput class. */ public PatchBackupVaultInput() { } @@ -66,6 +72,26 @@ public PatchBackupVaultInput withSecuritySettings(SecuritySettings securitySetti return this; } + /** + * Get the featureSettings property: Feature Settings. + * + * @return the featureSettings value. + */ + public FeatureSettings featureSettings() { + return this.featureSettings; + } + + /** + * Set the featureSettings property: Feature Settings. + * + * @param featureSettings the featureSettings value to set. + * @return the PatchBackupVaultInput object itself. + */ + public PatchBackupVaultInput withFeatureSettings(FeatureSettings featureSettings) { + this.featureSettings = featureSettings; + return this; + } + /** * Validates the instance. * @@ -78,5 +104,8 @@ public void validate() { if (securitySettings() != null) { securitySettings().validate(); } + if (featureSettings() != null) { + featureSettings().validate(); + } } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PatchResourceGuardInput.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PatchResourceGuardInput.java new file mode 100644 index 000000000000..0e27810196c7 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PatchResourceGuardInput.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; + +/** + * PatchResourceGuardInput + * + *

Patch Request content for Microsoft.DataProtection Resource Guard resources. + */ +@Fluent +public final class PatchResourceGuardInput { + /* + * Resource Guard tags. + */ + @JsonProperty(value = "tags") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map tags; + + /** Creates an instance of PatchResourceGuardInput class. */ + public PatchResourceGuardInput() { + } + + /** + * Get the tags property: Resource Guard tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource Guard tags. + * + * @param tags the tags value to set. + * @return the PatchResourceGuardInput object itself. + */ + public PatchResourceGuardInput withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PersistentVolumeRestoreMode.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PersistentVolumeRestoreMode.java index 8636a186ade2..7694a30a5ef9 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PersistentVolumeRestoreMode.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/PersistentVolumeRestoreMode.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Gets or sets the PV Restore Mode property. This property sets whether volumes needs to be restored. */ +/** + * Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be + * restored. + */ public final class PersistentVolumeRestoreMode extends ExpandableStringEnum { /** Static value RestoreWithVolumeData for PersistentVolumeRestoreMode. */ public static final PersistentVolumeRestoreMode RESTORE_WITH_VOLUME_DATA = fromString("RestoreWithVolumeData"); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPoints.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPoints.java index d15a04d7be05..08fe4b44975b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPoints.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPoints.java @@ -13,7 +13,7 @@ public interface RecoveryPoints { /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27,7 +27,7 @@ PagedIterable list( /** * Returns a list of Recovery Points for a DataSource in a vault. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param filter OData filter options. @@ -49,7 +49,7 @@ PagedIterable list( /** * Gets a Recovery Point using recoveryPointId for a Datasource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param recoveryPointId The recoveryPointId parameter. @@ -65,7 +65,7 @@ Response getWithResponse( /** * Gets a Recovery Point using recoveryPointId for a Datasource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param recoveryPointId The recoveryPointId parameter. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuard.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuard.java index 78f605068d36..cbc030faf4c6 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuard.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuard.java @@ -15,7 +15,7 @@ public final class ResourceGuard { * Provisioning state of the BackupVault resource */ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) - private ResourceGuardProvisioningState provisioningState; + private ProvisioningState provisioningState; /* * This flag indicates whether auto approval is allowed or not. @@ -50,7 +50,7 @@ public ResourceGuard() { * * @return the provisioningState value. */ - public ResourceGuardProvisioningState provisioningState() { + public ProvisioningState provisioningState() { return this.provisioningState; } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardOperationDetail.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardOperationDetail.java deleted file mode 100644 index 5f35ddf708d3..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardOperationDetail.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The ResourceGuardOperationDetail model. */ -@Fluent -public final class ResourceGuardOperationDetail { - /* - * The vaultCriticalOperation property. - */ - @JsonProperty(value = "vaultCriticalOperation") - private String vaultCriticalOperation; - - /* - * The defaultResourceRequest property. - */ - @JsonProperty(value = "defaultResourceRequest") - private String defaultResourceRequest; - - /** Creates an instance of ResourceGuardOperationDetail class. */ - public ResourceGuardOperationDetail() { - } - - /** - * Get the vaultCriticalOperation property: The vaultCriticalOperation property. - * - * @return the vaultCriticalOperation value. - */ - public String vaultCriticalOperation() { - return this.vaultCriticalOperation; - } - - /** - * Set the vaultCriticalOperation property: The vaultCriticalOperation property. - * - * @param vaultCriticalOperation the vaultCriticalOperation value to set. - * @return the ResourceGuardOperationDetail object itself. - */ - public ResourceGuardOperationDetail withVaultCriticalOperation(String vaultCriticalOperation) { - this.vaultCriticalOperation = vaultCriticalOperation; - return this; - } - - /** - * Get the defaultResourceRequest property: The defaultResourceRequest property. - * - * @return the defaultResourceRequest value. - */ - public String defaultResourceRequest() { - return this.defaultResourceRequest; - } - - /** - * Set the defaultResourceRequest property: The defaultResourceRequest property. - * - * @param defaultResourceRequest the defaultResourceRequest value to set. - * @return the ResourceGuardOperationDetail object itself. - */ - public ResourceGuardOperationDetail withDefaultResourceRequest(String defaultResourceRequest) { - this.defaultResourceRequest = defaultResourceRequest; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProvisioningState.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProvisioningState.java deleted file mode 100644 index 243db691b6e8..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProvisioningState.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.models; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Provisioning state of the BackupVault resource. */ -public final class ResourceGuardProvisioningState extends ExpandableStringEnum { - /** Static value Failed for ResourceGuardProvisioningState. */ - public static final ResourceGuardProvisioningState FAILED = fromString("Failed"); - - /** Static value Provisioning for ResourceGuardProvisioningState. */ - public static final ResourceGuardProvisioningState PROVISIONING = fromString("Provisioning"); - - /** Static value Succeeded for ResourceGuardProvisioningState. */ - public static final ResourceGuardProvisioningState SUCCEEDED = fromString("Succeeded"); - - /** Static value Unknown for ResourceGuardProvisioningState. */ - public static final ResourceGuardProvisioningState UNKNOWN = fromString("Unknown"); - - /** Static value Updating for ResourceGuardProvisioningState. */ - public static final ResourceGuardProvisioningState UPDATING = fromString("Updating"); - - /** - * Creates a new instance of ResourceGuardProvisioningState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ResourceGuardProvisioningState() { - } - - /** - * Creates or finds a ResourceGuardProvisioningState from its string representation. - * - * @param name a name to look for. - * @return the corresponding ResourceGuardProvisioningState. - */ - @JsonCreator - public static ResourceGuardProvisioningState fromString(String name) { - return fromString(name, ResourceGuardProvisioningState.class); - } - - /** - * Gets known ResourceGuardProvisioningState values. - * - * @return known ResourceGuardProvisioningState values. - */ - public static Collection values() { - return values(ResourceGuardProvisioningState.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBase.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBase.java deleted file mode 100644 index 5364b92540f8..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBase.java +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** The ResourceGuardProxyBase model. */ -@Fluent -public final class ResourceGuardProxyBase { - /* - * The resourceGuardResourceId property. - */ - @JsonProperty(value = "resourceGuardResourceId") - private String resourceGuardResourceId; - - /* - * The resourceGuardOperationDetails property. - */ - @JsonProperty(value = "resourceGuardOperationDetails") - private List resourceGuardOperationDetails; - - /* - * The lastUpdatedTime property. - */ - @JsonProperty(value = "lastUpdatedTime") - private String lastUpdatedTime; - - /* - * The description property. - */ - @JsonProperty(value = "description") - private String description; - - /** Creates an instance of ResourceGuardProxyBase class. */ - public ResourceGuardProxyBase() { - } - - /** - * Get the resourceGuardResourceId property: The resourceGuardResourceId property. - * - * @return the resourceGuardResourceId value. - */ - public String resourceGuardResourceId() { - return this.resourceGuardResourceId; - } - - /** - * Set the resourceGuardResourceId property: The resourceGuardResourceId property. - * - * @param resourceGuardResourceId the resourceGuardResourceId value to set. - * @return the ResourceGuardProxyBase object itself. - */ - public ResourceGuardProxyBase withResourceGuardResourceId(String resourceGuardResourceId) { - this.resourceGuardResourceId = resourceGuardResourceId; - return this; - } - - /** - * Get the resourceGuardOperationDetails property: The resourceGuardOperationDetails property. - * - * @return the resourceGuardOperationDetails value. - */ - public List resourceGuardOperationDetails() { - return this.resourceGuardOperationDetails; - } - - /** - * Set the resourceGuardOperationDetails property: The resourceGuardOperationDetails property. - * - * @param resourceGuardOperationDetails the resourceGuardOperationDetails value to set. - * @return the ResourceGuardProxyBase object itself. - */ - public ResourceGuardProxyBase withResourceGuardOperationDetails( - List resourceGuardOperationDetails) { - this.resourceGuardOperationDetails = resourceGuardOperationDetails; - return this; - } - - /** - * Get the lastUpdatedTime property: The lastUpdatedTime property. - * - * @return the lastUpdatedTime value. - */ - public String lastUpdatedTime() { - return this.lastUpdatedTime; - } - - /** - * Set the lastUpdatedTime property: The lastUpdatedTime property. - * - * @param lastUpdatedTime the lastUpdatedTime value to set. - * @return the ResourceGuardProxyBase object itself. - */ - public ResourceGuardProxyBase withLastUpdatedTime(String lastUpdatedTime) { - this.lastUpdatedTime = lastUpdatedTime; - return this; - } - - /** - * Get the description property: The description property. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: The description property. - * - * @param description the description value to set. - * @return the ResourceGuardProxyBase object itself. - */ - public ResourceGuardProxyBase withDescription(String description) { - this.description = description; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (resourceGuardOperationDetails() != null) { - resourceGuardOperationDetails().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResource.java deleted file mode 100644 index ecb2aaec296c..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResource.java +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner; - -/** An immutable client-side representation of ResourceGuardProxyBaseResource. */ -public interface ResourceGuardProxyBaseResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the properties property: ResourceGuardProxyBaseResource properties. - * - * @return the properties value. - */ - ResourceGuardProxyBase properties(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner object. - * - * @return the inner object. - */ - ResourceGuardProxyBaseResourceInner innerModel(); - - /** The entirety of the ResourceGuardProxyBaseResource definition. */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - /** The ResourceGuardProxyBaseResource definition stages. */ - interface DefinitionStages { - /** The first stage of the ResourceGuardProxyBaseResource definition. */ - interface Blank extends WithParentResource { - } - /** The stage of the ResourceGuardProxyBaseResource definition allowing to specify parent resource. */ - interface WithParentResource { - /** - * Specifies resourceGroupName, vaultName. - * - * @param resourceGroupName The name of the resource group where the backup vault is present. - * @param vaultName The name of the backup vault. - * @return the next definition stage. - */ - WithCreate withExistingBackupVault(String resourceGroupName, String vaultName); - } - /** - * The stage of the ResourceGuardProxyBaseResource definition which contains all the minimum required properties - * for the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ResourceGuardProxyBaseResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ResourceGuardProxyBaseResource create(Context context); - } - /** The stage of the ResourceGuardProxyBaseResource definition allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: ResourceGuardProxyBaseResource properties. - * - * @param properties ResourceGuardProxyBaseResource properties. - * @return the next definition stage. - */ - WithCreate withProperties(ResourceGuardProxyBase properties); - } - } - /** - * Begins update for the ResourceGuardProxyBaseResource resource. - * - * @return the stage of resource update. - */ - ResourceGuardProxyBaseResource.Update update(); - - /** The template for ResourceGuardProxyBaseResource update. */ - interface Update extends UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ResourceGuardProxyBaseResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ResourceGuardProxyBaseResource apply(Context context); - } - /** The ResourceGuardProxyBaseResource update stages. */ - interface UpdateStages { - /** The stage of the ResourceGuardProxyBaseResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: ResourceGuardProxyBaseResource properties. - * - * @param properties ResourceGuardProxyBaseResource properties. - * @return the next definition stage. - */ - Update withProperties(ResourceGuardProxyBase properties); - } - } - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ResourceGuardProxyBaseResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ResourceGuardProxyBaseResource refresh(Context context); - - /** - * The unlockDelete operation. - * - * @param parameters Request body for operation. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API along with {@link Response}. - */ - Response unlockDeleteWithResponse(UnlockDeleteRequest parameters, Context context); - - /** - * The unlockDelete operation. - * - * @param parameters Request body for operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return response of Unlock Delete API. - */ - UnlockDeleteResponse unlockDelete(UnlockDeleteRequest parameters); -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResourceList.java deleted file mode 100644 index 650c360c2488..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResourceList.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** List of ResourceGuardProxyBase resources. */ -@Fluent -public final class ResourceGuardProxyBaseResourceList extends DppResourceList { - /* - * List of resources. - */ - @JsonProperty(value = "value") - private List value; - - /** Creates an instance of ResourceGuardProxyBaseResourceList class. */ - public ResourceGuardProxyBaseResourceList() { - } - - /** - * Get the value property: List of resources. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: List of resources. - * - * @param value the value value to set. - * @return the ResourceGuardProxyBaseResourceList object itself. - */ - public ResourceGuardProxyBaseResourceList withValue(List value) { - this.value = value; - return this; - } - - /** {@inheritDoc} */ - @Override - public ResourceGuardProxyBaseResourceList withNextLink(String nextLink) { - super.withNextLink(nextLink); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - @Override - public void validate() { - super.validate(); - if (value() != null) { - value().forEach(e -> e.validate()); - } - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResource.java index 2192cbdfb382..0983a1661b9f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResource.java @@ -54,15 +54,6 @@ public interface ResourceGuardResource { */ String etag(); - /** - * Gets the identity property: DppIdentityDetails - * - *

Input Managed Identity Details. - * - * @return the identity value. - */ - DppIdentityDetails identity(); - /** * Gets the systemData property: Metadata pertaining to creation and last modification of the resource. * @@ -140,7 +131,7 @@ interface WithResourceGroup { /** * Specifies resourceGroupName. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithCreate withExistingResourceGroup(String resourceGroupName); @@ -150,10 +141,7 @@ interface WithResourceGroup { * resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithTags, - DefinitionStages.WithEtag, - DefinitionStages.WithIdentity, - DefinitionStages.WithProperties { + extends DefinitionStages.WithTags, DefinitionStages.WithEtag, DefinitionStages.WithProperties { /** * Executes the create request. * @@ -189,19 +177,6 @@ interface WithEtag { */ WithCreate withEtag(String etag); } - /** The stage of the ResourceGuardResource definition allowing to specify identity. */ - interface WithIdentity { - /** - * Specifies the identity property: DppIdentityDetails - * - *

Input Managed Identity Details. - * - * @param identity DppIdentityDetails - *

Input Managed Identity Details. - * @return the next definition stage. - */ - WithCreate withIdentity(DppIdentityDetails identity); - } /** The stage of the ResourceGuardResource definition allowing to specify properties. */ interface WithProperties { /** @@ -221,7 +196,7 @@ interface WithProperties { ResourceGuardResource.Update update(); /** The template for ResourceGuardResource update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithProperties { + interface Update extends UpdateStages.WithTags { /** * Executes the update request. * @@ -242,36 +217,13 @@ interface UpdateStages { /** The stage of the ResourceGuardResource update allowing to specify tags. */ interface WithTags { /** - * Specifies the tags property: Resource tags.. + * Specifies the tags property: Resource Guard tags.. * - * @param tags Resource tags. + * @param tags Resource Guard tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the ResourceGuardResource update allowing to specify identity. */ - interface WithIdentity { - /** - * Specifies the identity property: DppIdentityDetails - * - *

Input Managed Identity Details. - * - * @param identity DppIdentityDetails - *

Input Managed Identity Details. - * @return the next definition stage. - */ - Update withIdentity(DppIdentityDetails identity); - } - /** The stage of the ResourceGuardResource update allowing to specify properties. */ - interface WithProperties { - /** - * Specifies the properties property: Resource properties.. - * - * @param properties Resource properties. - * @return the next definition stage. - */ - Update withProperties(PatchBackupVaultInput properties); - } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuards.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuards.java index 590035d78782..f0a979951eff 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuards.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuards.java @@ -33,7 +33,7 @@ public interface ResourceGuards { /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -44,7 +44,7 @@ public interface ResourceGuards { /** * Returns ResourceGuards collection belonging to a ResourceGroup. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -56,7 +56,7 @@ public interface ResourceGuards { /** * Returns a ResourceGuard belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -70,7 +70,7 @@ Response getByResourceGroupWithResponse( /** * Returns a ResourceGuard belonging to a resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -82,7 +82,7 @@ Response getByResourceGroupWithResponse( /** * Deletes a ResourceGuard resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -96,7 +96,7 @@ Response deleteByResourceGroupWithResponse( /** * Deletes a ResourceGuard resource from the resource group. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The name of ResourceGuard. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -108,7 +108,7 @@ Response deleteByResourceGroupWithResponse( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -122,7 +122,7 @@ PagedIterable getDisableSoftDeleteRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +137,7 @@ PagedIterable getDisableSoftDeleteRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -151,7 +151,7 @@ PagedIterable getDeleteResourceGuardProxyRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -166,7 +166,7 @@ PagedIterable getDeleteResourceGuardProxyRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,7 +180,7 @@ PagedIterable getBackupSecurityPinRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -195,7 +195,7 @@ PagedIterable getBackupSecurityPinRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -209,7 +209,7 @@ PagedIterable getDeleteProtectedItemRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -224,7 +224,7 @@ PagedIterable getDeleteProtectedItemRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -238,7 +238,7 @@ PagedIterable getUpdateProtectionPolicyRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -253,7 +253,7 @@ PagedIterable getUpdateProtectionPolicyRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -267,7 +267,7 @@ PagedIterable getUpdateProtectedItemRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -282,7 +282,7 @@ PagedIterable getUpdateProtectedItemRequestsObjects( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -298,7 +298,7 @@ Response getDefaultDisableSoftDeleteRequestsObjectWithResponse( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -313,7 +313,7 @@ DppBaseResource getDefaultDisableSoftDeleteRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -329,7 +329,7 @@ Response getDefaultDeleteResourceGuardProxyRequestsObjectWithRe * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -344,7 +344,7 @@ DppBaseResource getDefaultDeleteResourceGuardProxyRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -360,7 +360,7 @@ Response getDefaultBackupSecurityPinRequestsObjectWithResponse( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -375,7 +375,7 @@ DppBaseResource getDefaultBackupSecurityPinRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -391,7 +391,7 @@ Response getDefaultDeleteProtectedItemRequestsObjectWithRespons * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -406,7 +406,7 @@ DppBaseResource getDefaultDeleteProtectedItemRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -422,7 +422,7 @@ Response getDefaultUpdateProtectionPolicyRequestsObjectWithResp * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -437,7 +437,7 @@ DppBaseResource getDefaultUpdateProtectionPolicyRequestsObject( * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @param context The context to associate with this operation. @@ -453,7 +453,7 @@ Response getDefaultUpdateProtectedItemRequestsObjectWithRespons * Returns collection of operation request objects for a critical operation protected by the given ResourceGuard * resource. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceGuardsName The resourceGuardsName parameter. * @param requestName The requestName parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRanges.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRanges.java index a969f4b0888a..5772f5aade00 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRanges.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRanges.java @@ -12,7 +12,7 @@ public interface RestorableTimeRanges { /** * The find operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. @@ -32,7 +32,7 @@ Response findWithResponse( /** * The find operation. * - * @param resourceGroupName The name of the resource group where the backup vault is present. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param vaultName The name of the backup vault. * @param backupInstanceName The name of the backup instance. * @param parameters Request body for operation. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java index 5d2e41413026..4aed0a36fff6 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java @@ -21,7 +21,7 @@ @Fluent public final class ScheduleBasedBackupCriteria extends BackupCriteria { /* - * it contains absolute values like "AllBackup"\ / "FirstOfDay"\ / "FirstOfWeek"\ / "FirstOfMonth" + * it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" * and should be part of AbsoluteMarker enum */ @JsonProperty(value = "absoluteCriteria") @@ -62,8 +62,8 @@ public ScheduleBasedBackupCriteria() { } /** - * Get the absoluteCriteria property: it contains absolute values like "AllBackup"\ / "FirstOfDay"\ / "FirstOfWeek"\ - * / "FirstOfMonth" and should be part of AbsoluteMarker enum. + * Get the absoluteCriteria property: it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / + * "FirstOfMonth" and should be part of AbsoluteMarker enum. * * @return the absoluteCriteria value. */ @@ -72,8 +72,8 @@ public List absoluteCriteria() { } /** - * Set the absoluteCriteria property: it contains absolute values like "AllBackup"\ / "FirstOfDay"\ / "FirstOfWeek"\ - * / "FirstOfMonth" and should be part of AbsoluteMarker enum. + * Set the absoluteCriteria property: it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / + * "FirstOfMonth" and should be part of AbsoluteMarker enum. * * @param absoluteCriteria the absoluteCriteria value to set. * @return the ScheduleBasedBackupCriteria object itself. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/SourceDataStoreType.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/SourceDataStoreType.java index 08a6f60bd717..d48f9988db6b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/SourceDataStoreType.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/SourceDataStoreType.java @@ -16,6 +16,9 @@ public final class SourceDataStoreType extends ExpandableStringEnum resourceGuardOperationRequests; - - /* - * The resourceToBeDeleted property. - */ - @JsonProperty(value = "resourceToBeDeleted") - private String resourceToBeDeleted; - - /** Creates an instance of UnlockDeleteRequest class. */ - public UnlockDeleteRequest() { - } - - /** - * Get the resourceGuardOperationRequests property: The resourceGuardOperationRequests property. - * - * @return the resourceGuardOperationRequests value. - */ - public List resourceGuardOperationRequests() { - return this.resourceGuardOperationRequests; - } - - /** - * Set the resourceGuardOperationRequests property: The resourceGuardOperationRequests property. - * - * @param resourceGuardOperationRequests the resourceGuardOperationRequests value to set. - * @return the UnlockDeleteRequest object itself. - */ - public UnlockDeleteRequest withResourceGuardOperationRequests(List resourceGuardOperationRequests) { - this.resourceGuardOperationRequests = resourceGuardOperationRequests; - return this; - } - - /** - * Get the resourceToBeDeleted property: The resourceToBeDeleted property. - * - * @return the resourceToBeDeleted value. - */ - public String resourceToBeDeleted() { - return this.resourceToBeDeleted; - } - - /** - * Set the resourceToBeDeleted property: The resourceToBeDeleted property. - * - * @param resourceToBeDeleted the resourceToBeDeleted value to set. - * @return the UnlockDeleteRequest object itself. - */ - public UnlockDeleteRequest withResourceToBeDeleted(String resourceToBeDeleted) { - this.resourceToBeDeleted = resourceToBeDeleted; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/UnlockDeleteResponse.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/UnlockDeleteResponse.java deleted file mode 100644 index 70ba49be1512..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/UnlockDeleteResponse.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.models; - -import com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner; - -/** An immutable client-side representation of UnlockDeleteResponse. */ -public interface UnlockDeleteResponse { - /** - * Gets the unlockDeleteExpiryTime property: This is the time when unlock delete privileges will get expired. - * - * @return the unlockDeleteExpiryTime value. - */ - String unlockDeleteExpiryTime(); - - /** - * Gets the inner com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner object. - * - * @return the inner object. - */ - UnlockDeleteResponseInner innerModel(); -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupSamples.java index 284321bc33bb..e1f7f92751a7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupSamples.java @@ -11,7 +11,7 @@ /** Samples for BackupInstances AdhocBackup. */ public final class BackupInstancesAdhocBackupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerBackup.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerBackup.json */ /** * Sample code: Trigger Adhoc Backup. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesCreateOrUpdateSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesCreateOrUpdateSamples.java index 5e21d0576cb2..d47bc4c09505 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesCreateOrUpdateSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesCreateOrUpdateSamples.java @@ -22,7 +22,7 @@ /** Samples for BackupInstances CreateOrUpdate. */ public final class BackupInstancesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/PutBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/PutBackupInstance.json */ /** * Sample code: Create BackupInstance. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteSamples.java index 02d2402d18f3..a5ecf39862d7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupInstances Delete. */ public final class BackupInstancesDeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/DeleteBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json */ /** * Sample code: Delete BackupInstance. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesExtensionRoutingListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesExtensionRoutingListSamples.java deleted file mode 100644 index 2c997b2f735c..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesExtensionRoutingListSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -/** Samples for BackupInstancesExtensionRouting List. */ -public final class BackupInstancesExtensionRoutingListSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json - */ - /** - * Sample code: List BackupInstances associated with an azure resource. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void listBackupInstancesAssociatedWithAnAzureResource( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .backupInstancesExtensionRoutings() - .list( - "subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesGetBackupInstanceOperationResultSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesGetBackupInstanceOperationResultSamples.java index baa93fd07aba..ed9a665f2390 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesGetBackupInstanceOperationResultSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesGetBackupInstanceOperationResultSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupInstances GetBackupInstanceOperationResult. */ public final class BackupInstancesGetBackupInstanceOperationResultSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json */ /** * Sample code: Get BackupInstanceOperationResult. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesGetSamples.java index 44b30820aeb0..7e1748b397ed 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesGetSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupInstances Get. */ public final class BackupInstancesGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetBackupInstance.json */ /** * Sample code: Get BackupInstance. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesListSamples.java index 4de83eb358bd..5ba92edc6cd1 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesListSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupInstances List. */ public final class BackupInstancesListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListBackupInstances.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ListBackupInstances.json */ /** * Sample code: List BackupInstances in a Vault. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsSamples.java index 05a310683acf..bf27ffa9c0b0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupInstances ResumeBackups. */ public final class BackupInstancesResumeBackupsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ResumeBackups.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ResumeBackups.json */ /** * Sample code: ResumeBackups. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionSamples.java index 9f22d6264fdf..e106ee120baf 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupInstances ResumeProtection. */ public final class BackupInstancesResumeProtectionSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ResumeProtection.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ResumeProtection.json */ /** * Sample code: ResumeProtection. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionSamples.java index c244a4b6d576..87b9dc181b8b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupInstances StopProtection. */ public final class BackupInstancesStopProtectionSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/StopProtection.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/StopProtection.json */ /** * Sample code: StopProtection. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsSamples.java index fe27a816f991..190a9d029b14 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupInstances SuspendBackups. */ public final class BackupInstancesSuspendBackupsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/SuspendBackups.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/SuspendBackups.json */ /** * Sample code: SuspendBackups. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceSamples.java index 5e86e6a728f3..f6afbbe55657 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceSamples.java @@ -10,7 +10,7 @@ /** Samples for BackupInstances SyncBackupInstance. */ public final class BackupInstancesSyncBackupInstanceSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/SyncBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/SyncBackupInstance.json */ /** * Sample code: Sync BackupInstance. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRehydrateSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRehydrateSamples.java index 7e897ba57107..d3f86ffedbf8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRehydrateSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRehydrateSamples.java @@ -10,7 +10,7 @@ /** Samples for BackupInstances TriggerRehydrate. */ public final class BackupInstancesTriggerRehydrateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRehydrate.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json */ /** * Sample code: Trigger Rehydrate. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreSamples.java index b7581955cb9a..23882f544b33 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreSamples.java @@ -22,7 +22,7 @@ /** Samples for BackupInstances TriggerRestore. */ public final class BackupInstancesTriggerRestoreSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json */ /** * Sample code: Trigger Restore As Files. @@ -54,7 +54,7 @@ public static void triggerRestoreAsFiles(com.azure.resourcemanager.dataprotectio } /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json */ /** * Sample code: Trigger Restore With Rehydration. @@ -104,7 +104,7 @@ public static void triggerRestoreWithRehydration( } /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestore.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestore.json */ /** * Sample code: Trigger Restore. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForBackupSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForBackupSamples.java index f005a57522e6..710fc813657f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForBackupSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForBackupSamples.java @@ -16,7 +16,7 @@ /** Samples for BackupInstances ValidateForBackup. */ public final class BackupInstancesValidateForBackupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ValidateForBackup.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ValidateForBackup.json */ /** * Sample code: Validate For Backup. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreSamples.java index f545d0c14856..eedc78502099 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreSamples.java @@ -18,7 +18,7 @@ /** Samples for BackupInstances ValidateForRestore. */ public final class BackupInstancesValidateForRestoreSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ValidateRestore.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ValidateRestore.json */ /** * Sample code: Validate Restore. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateSamples.java index 3fb1b7983d12..04a4a94c6f19 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateSamples.java @@ -24,7 +24,7 @@ /** Samples for BackupPolicies CreateOrUpdate. */ public final class BackupPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json */ /** * Sample code: CreateOrUpdate BackupPolicy. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteSamples.java index e826f9c3c811..f1de428037c8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupPolicies Delete. */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/DeleteBackupPolicy.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json */ /** * Sample code: Delete BackupPolicy. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetSamples.java index c3df818fbb7f..d156004eb3b6 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupPolicies Get. */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/GetBackupPolicy.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/GetBackupPolicy.json */ /** * Sample code: Get BackupPolicy. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListSamples.java index fd69657ca870..da187067f517 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupPolicies List. */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/ListBackupPolicy.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/ListBackupPolicy.json */ /** * Sample code: List BackupPolicy. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultOperationResultsGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultOperationResultsGetSamples.java index e467e53ea6c9..4394bacbdc65 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultOperationResultsGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultOperationResultsGetSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupVaultOperationResults Get. */ public final class BackupVaultOperationResultsGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetOperationResultPatch.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetOperationResultPatch.json */ /** * Sample code: GetOperationResult Patch. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilitySamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilitySamples.java index 9ee450def1c9..c3890a967acc 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilitySamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilitySamples.java @@ -9,7 +9,7 @@ /** Samples for BackupVaults CheckNameAvailability. */ public final class BackupVaultsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json */ /** * Sample code: Check BackupVaults name availability. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCreateOrUpdateSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCreateOrUpdateSamples.java index d2d93e691600..e606871d204c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCreateOrUpdateSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ /** Samples for BackupVaults CreateOrUpdate. */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PutBackupVault.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PutBackupVault.json */ /** * Sample code: Create BackupVault. @@ -50,7 +50,7 @@ public static void createBackupVault(com.azure.resourcemanager.dataprotection.Da } /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PutBackupVaultWithMSI.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json */ /** * Sample code: Create BackupVault With MSI. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteSamples.java index f2a4c259d13c..95e82ea6e695 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupVaults Delete. */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/DeleteBackupVault.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/DeleteBackupVault.json */ /** * Sample code: Delete BackupVault. @@ -15,9 +15,6 @@ public final class BackupVaultsDeleteSamples { * @param manager Entry point to DataProtectionManager. */ public static void deleteBackupVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .backupVaults() - .deleteByResourceGroupWithResponse( - "SampleResourceGroup", "swaggerExample", com.azure.core.util.Context.NONE); + manager.backupVaults().delete("SampleResourceGroup", "swaggerExample", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsGetByResourceGroupSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsGetByResourceGroupSamples.java index 9851bd6d2110..f516de8c1b39 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsGetByResourceGroupSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsGetByResourceGroupSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupVaults GetByResourceGroup. */ public final class BackupVaultsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVault.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVault.json */ /** * Sample code: Get BackupVault. @@ -21,7 +21,7 @@ public static void getBackupVault(com.azure.resourcemanager.dataprotection.DataP } /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultWithMSI.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json */ /** * Sample code: Get BackupVault With MSI. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsListByResourceGroupSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsListByResourceGroupSamples.java index 8e49ae2bb42c..a0371db1247d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsListByResourceGroupSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsListByResourceGroupSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupVaults ListByResourceGroup. */ public final class BackupVaultsListByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json */ /** * Sample code: Get BackupVaults in ResourceGroup. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsListSamples.java index ad4a23a6b624..7b871d5b8f61 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsListSamples.java @@ -7,7 +7,7 @@ /** Samples for BackupVaults List. */ public final class BackupVaultsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultsInSubscription.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json */ /** * Sample code: Get BackupVaults in Subscription. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsUpdateSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsUpdateSamples.java index fe15f31c1e86..1a528300410d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsUpdateSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsUpdateSamples.java @@ -15,7 +15,7 @@ /** Samples for BackupVaults Update. */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PatchBackupVault.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PatchBackupVault.json */ /** * Sample code: Patch BackupVault. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionCheckFeatureSupportSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionCheckFeatureSupportSamples.java index 4cea5f865256..10f34629a0cb 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionCheckFeatureSupportSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionCheckFeatureSupportSamples.java @@ -10,7 +10,7 @@ /** Samples for DataProtection CheckFeatureSupport. */ public final class DataProtectionCheckFeatureSupportSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/CheckfeatureSupport.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/CheckfeatureSupport.json */ /** * Sample code: Check Azure Vm Backup Feature Support. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListSamples.java index 07b0ead135c3..faca35484bb7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListSamples.java @@ -7,7 +7,7 @@ /** Samples for DataProtectionOperations List. */ public final class DataProtectionOperationsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/Operations/List.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/Operations/List.json */ /** * Sample code: Returns the list of supported REST operations. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesGetSamples.java index 3725eb23c2d4..a93dbdd9daef 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesGetSamples.java @@ -7,7 +7,7 @@ /** Samples for DeletedBackupInstances Get. */ public final class DeletedBackupInstancesGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json */ /** * Sample code: Get DeletedBackupInstance. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesListSamples.java index b442338bf849..ec1fb1030192 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesListSamples.java @@ -7,7 +7,7 @@ /** Samples for DeletedBackupInstances List. */ public final class DeletedBackupInstancesListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json */ /** * Sample code: List DeletedBackupInstances in a Vault. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteSamples.java index 4987aa873b02..491ac8399f56 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteSamples.java @@ -7,7 +7,7 @@ /** Samples for DeletedBackupInstances Undelete. */ public final class DeletedBackupInstancesUndeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json */ /** * Sample code: Undelete Deleted BackupInstance. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyDeleteSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyDeleteSamples.java deleted file mode 100644 index eca5db80347a..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -/** Samples for DppResourceGuardProxy Delete. */ -public final class DppResourceGuardProxyDeleteSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json - */ - /** - * Sample code: Delete ResourceGuardProxy. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void deleteResourceGuardProxy( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .dppResourceGuardProxies() - .deleteWithResponse( - "SampleResourceGroup", "sampleVault", "swaggerExample", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyGetSamples.java deleted file mode 100644 index 3261e7ee87e1..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyGetSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -/** Samples for DppResourceGuardProxy Get. */ -public final class DppResourceGuardProxyGetSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json - */ - /** - * Sample code: Get ResourceGuardProxy. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void getResourceGuardProxy(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .dppResourceGuardProxies() - .getWithResponse("SampleResourceGroup", "sampleVault", "swaggerExample", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyListSamples.java deleted file mode 100644 index 308024ae7db2..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyListSamples.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -/** Samples for DppResourceGuardProxy List. */ -public final class DppResourceGuardProxyListSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json - */ - /** - * Sample code: Get ResourceGuardProxies. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void getResourceGuardProxies(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager.dppResourceGuardProxies().list("SampleResourceGroup", "sampleVault", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyPutSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyPutSamples.java deleted file mode 100644 index f7c28400a66b..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyPutSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; - -/** Samples for DppResourceGuardProxy Put. */ -public final class DppResourceGuardProxyPutSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json - */ - /** - * Sample code: Create ResourceGuardProxy. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void createResourceGuardProxy( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .dppResourceGuardProxies() - .define("swaggerExample") - .withExistingBackupVault("SampleResourceGroup", "sampleVault") - .withProperties( - new ResourceGuardProxyBase() - .withResourceGuardResourceId( - "/subscriptions/f9e67185-f313-4e79-aa71-6458d429369d/resourceGroups/ResourceGuardSecurityAdminRG/providers/Microsoft.DataProtection/resourceGuards/ResourceGuardTestResource")) - .create(); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyUnlockDeleteSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyUnlockDeleteSamples.java deleted file mode 100644 index 0dcb5ee0888b..000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyUnlockDeleteSamples.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest; -import java.util.Arrays; - -/** Samples for DppResourceGuardProxy UnlockDelete. */ -public final class DppResourceGuardProxyUnlockDeleteSamples { - /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json - */ - /** - * Sample code: UnlockDelete ResourceGuardProxy. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void unlockDeleteResourceGuardProxy( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager - .dppResourceGuardProxies() - .unlockDeleteWithResponse( - "SampleResourceGroup", - "sampleVault", - "swaggerExample", - new UnlockDeleteRequest() - .withResourceGuardOperationRequests( - Arrays - .asList( - "/subscriptions/f9e67185-f313-4e79-aa71-6458d429369d/resourceGroups/ResourceGuardSecurityAdminRG/providers/Microsoft.DataProtection/resourceGuards/ResourceGuardTestResource/deleteBackupInstanceRequests/default")) - .withResourceToBeDeleted( - "/subscriptions/5e13b949-1218-4d18-8b99-7e12155ec4f7/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/sampleVault/backupInstances/TestBI9779f4de"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ExportJobsOperationResultGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ExportJobsOperationResultGetSamples.java index be50807fc57d..ef547827169d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ExportJobsOperationResultGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ExportJobsOperationResultGetSamples.java @@ -7,7 +7,7 @@ /** Samples for ExportJobsOperationResult Get. */ public final class ExportJobsOperationResultGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/GetExportJobsOperationResult.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/GetExportJobsOperationResult.json */ /** * Sample code: Get Export Jobs Operation Result. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ExportJobsTriggerSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ExportJobsTriggerSamples.java index 4f554055a81a..825f228e5655 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ExportJobsTriggerSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ExportJobsTriggerSamples.java @@ -7,7 +7,7 @@ /** Samples for ExportJobs Trigger. */ public final class ExportJobsTriggerSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/TriggerExportJobs.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/TriggerExportJobs.json */ /** * Sample code: Trigger Export Jobs. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobsGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobsGetSamples.java index 575984e5e3d2..a81af15a80db 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobsGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobsGetSamples.java @@ -7,7 +7,7 @@ /** Samples for Jobs Get. */ public final class JobsGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/GetJob.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/GetJob.json */ /** * Sample code: Get Job. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobsListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobsListSamples.java index ebcbf46eb361..9c6ead6aa081 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobsListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobsListSamples.java @@ -7,7 +7,7 @@ /** Samples for Jobs List. */ public final class JobsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/ListJobs.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/ListJobs.json */ /** * Sample code: Get Jobs. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationResultGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationResultGetSamples.java index b1e0dcc6900c..be78fc8f2523 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationResultGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationResultGetSamples.java @@ -7,7 +7,7 @@ /** Samples for OperationResult Get. */ public final class OperationResultGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationResult.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationResult.json */ /** * Sample code: Get OperationResult. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusBackupVaultContextGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusBackupVaultContextGetSamples.java index 31988f88e7b9..7342b86b913f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusBackupVaultContextGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusBackupVaultContextGetSamples.java @@ -7,7 +7,7 @@ /** Samples for OperationStatusBackupVaultContext Get. */ public final class OperationStatusBackupVaultContextGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatusVaultContext.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatusVaultContext.json */ /** * Sample code: Get OperationStatus. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusGetSamples.java index 404bb0bc6c12..096333fd704f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusGetSamples.java @@ -7,7 +7,7 @@ /** Samples for OperationStatus Get. */ public final class OperationStatusGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatus.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatus.json */ /** * Sample code: Get OperationStatus. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusResourceGroupContextGetByResourceGroupSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusResourceGroupContextGetByResourceGroupSamples.java index 1e90d5b8e730..0c004679aae6 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusResourceGroupContextGetByResourceGroupSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusResourceGroupContextGetByResourceGroupSamples.java @@ -7,7 +7,7 @@ /** Samples for OperationStatusResourceGroupContext GetByResourceGroup. */ public final class OperationStatusResourceGroupContextGetByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatusRGContext.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatusRGContext.json */ /** * Sample code: Get OperationStatus. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetSamples.java index 29b2fd56d7ca..a1821f2bdc38 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetSamples.java @@ -7,7 +7,7 @@ /** Samples for RecoveryPoints Get. */ public final class RecoveryPointsGetSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetRecoveryPoint.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json */ /** * Sample code: Get Recovery Point. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListSamples.java index a1c6e5d1c667..529f9e77de1e 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListSamples.java @@ -7,7 +7,7 @@ /** Samples for RecoveryPoints List. */ public final class RecoveryPointsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListRecoveryPoints.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json */ /** * Sample code: List Recovery Points in a Vault. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteSamples.java index 95210cb0854c..c144cd46dfd9 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards Delete. */ public final class ResourceGuardsDeleteSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/DeleteResourceGuard.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/DeleteResourceGuard.json */ /** * Sample code: Delete ResourceGuard. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples.java index bf05b7c329c4..f6eb10769ae7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetBackupSecurityPinRequestsObjects. */ public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json */ /** * Sample code: List OperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupSamples.java index 7c5682361446..e6b590bf50c9 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetByResourceGroup. */ public final class ResourceGuardsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetResourceGuard.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetResourceGuard.json */ /** * Sample code: Get ResourceGuard. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples.java index 89d4aa543ce3..14cec9279215 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetDefaultBackupSecurityPinRequestsObject. */ public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples.java index 1463659df22c..79b976f8db32 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetDefaultDeleteProtectedItemRequestsObject. */ public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples.java index 53c5926482eb..f276a98bb765 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetDefaultDeleteResourceGuardProxyRequestsObject. */ public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples.java index 767edda61daf..b3597582716d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetDefaultDisableSoftDeleteRequestsObject. */ public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples.java index 120b89e50f20..a8c5f7c6448b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetDefaultUpdateProtectedItemRequestsObject. */ public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples.java index 8d36db82f026..dad91f4f75ef 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetDefaultUpdateProtectionPolicyRequestsObject. */ public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples.java index c909d4aacfc5..ebc32c13aee0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetDeleteProtectedItemRequestsObjects. */ public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json */ /** * Sample code: List OperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples.java index 697005407f1a..388dd19e7b8f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetDeleteResourceGuardProxyRequestsObjects. */ public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json */ /** * Sample code: List OperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples.java index 23c27eff5e70..43f669f51d0e 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetDisableSoftDeleteRequestsObjects. */ public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json */ /** * Sample code: List OperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples.java index 1e03676531c5..1de219460306 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetUpdateProtectedItemRequestsObjects. */ public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json */ /** * Sample code: List OperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples.java index 64cc45274dad..e8cd2642990a 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards GetUpdateProtectionPolicyRequestsObjects. */ public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json */ /** * Sample code: List OperationsRequestObject. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupSamples.java index 027b30640767..dad9e15d5cd2 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards ListByResourceGroup. */ public final class ResourceGuardsListByResourceGroupSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json */ /** * Sample code: Get ResourceGuards in ResourceGroup. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListSamples.java index d947ecac0784..37b8174816ac 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListSamples.java @@ -7,7 +7,7 @@ /** Samples for ResourceGuards List. */ public final class ResourceGuardsListSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetResourceGuardsInSubscription.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetResourceGuardsInSubscription.json */ /** * Sample code: Get ResourceGuards in Subscription. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPatchSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPatchSamples.java index f915e16afbf4..8b70436cb0de 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPatchSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPatchSamples.java @@ -11,7 +11,7 @@ /** Samples for ResourceGuards Patch. */ public final class ResourceGuardsPatchSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/PatchResourceGuard.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/PatchResourceGuard.json */ /** * Sample code: Patch ResourceGuard. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutSamples.java index d645ece3bbf2..e0540f71ee1e 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutSamples.java @@ -10,7 +10,7 @@ /** Samples for ResourceGuards Put. */ public final class ResourceGuardsPutSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/PutResourceGuard.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/PutResourceGuard.json */ /** * Sample code: Create ResourceGuard. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindSamples.java index 1589a3fc6232..6a68c0686165 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindSamples.java @@ -10,7 +10,7 @@ /** Samples for RestorableTimeRanges Find. */ public final class RestorableTimeRangesFindSamples { /* - * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/FindRestorableTimeRanges.json + * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/FindRestorableTimeRanges.json */ /** * Sample code: Find Restorable Time Ranges.