From d8cd1e3105912f4978810f4740fb6c9d37d4137d Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 15 Oct 2026 17:33:33 +0000 Subject: [PATCH] Configurations: 'specification/dataprotection/resource-manager/Microsoft.DataProtection/DataProtection/tspconfig.yaml', and CommitSHA: 'caec1e2883d6f1487920816785df442bea525326' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6962770 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 80 +- .../README.md | 4 +- .../SAMPLE.md | 831 ++++++++++++++---- .../pom.xml | 2 +- .../dataprotection/DataProtectionManager.java | 225 +++++ ...nstanceFromDppCrossTenantVaultsClient.java | 50 ++ ...nResultFromDppCrossTenantVaultsClient.java | 56 ++ ...nStatusFromDppCrossTenantVaultsClient.java | 54 ++ ...stancesFromDppCrossTenantVaultsClient.java | 48 + ...kupJobsFromDppCrossTenantVaultsClient.java | 46 + .../DataProtectionManagementClient.java | 93 ++ ...ppCrossTenantVaultMappingStatusClient.java | 45 + .../DppCrossTenantVaultMappingsClient.java | 138 +++ .../JobFromDppCrossTenantVaultsClient.java | 48 + ...ryPointFromDppCrossTenantVaultsClient.java | 53 ++ ...yPointsFromDppCrossTenantVaultsClient.java | 51 ++ ...eRangesFromDppCrossTenantVaultsClient.java | 54 ++ ...estoresFromDppCrossTenantVaultsClient.java | 90 ++ ...RestoreFromDppCrossTenantVaultsClient.java | 95 ++ ...rossTenantBackupInstanceResourceInner.java | 166 ++++ .../models/CrossTenantVaultMappingInner.java | 156 ++++ ...TenantVaultMappingStatusResponseInner.java | 95 ++ ...nceFromDppCrossTenantVaultsClientImpl.java | 165 ++++ ...pInstanceFromDppCrossTenantVaultsImpl.java | 55 ++ ...ultFromDppCrossTenantVaultsClientImpl.java | 178 ++++ ...ionResultFromDppCrossTenantVaultsImpl.java | 63 ++ ...tusFromDppCrossTenantVaultsClientImpl.java | 174 ++++ ...ionStatusFromDppCrossTenantVaultsImpl.java | 58 ++ ...cesFromDppCrossTenantVaultsClientImpl.java | 281 ++++++ ...InstancesFromDppCrossTenantVaultsImpl.java | 51 ++ ...obsFromDppCrossTenantVaultsClientImpl.java | 279 ++++++ ...ackupJobsFromDppCrossTenantVaultsImpl.java | 48 + ...CrossTenantBackupInstanceResourceImpl.java | 61 ++ .../CrossTenantVaultMappingImpl.java | 146 +++ ...sTenantVaultMappingStatusResponseImpl.java | 37 + .../DataProtectionManagementClientImpl.java | 215 ++++- ...ossTenantVaultMappingStatusClientImpl.java | 150 ++++ .../DppCrossTenantVaultMappingStatusImpl.java | 53 ++ ...DppCrossTenantVaultMappingsClientImpl.java | 568 ++++++++++++ .../DppCrossTenantVaultMappingsImpl.java | 117 +++ ...JobFromDppCrossTenantVaultsClientImpl.java | 161 ++++ .../JobFromDppCrossTenantVaultsImpl.java | 53 ++ ...intFromDppCrossTenantVaultsClientImpl.java | 173 ++++ ...veryPointFromDppCrossTenantVaultsImpl.java | 55 ++ ...ntsFromDppCrossTenantVaultsClientImpl.java | 320 +++++++ ...eryPointsFromDppCrossTenantVaultsImpl.java | 51 ++ ...gesFromDppCrossTenantVaultsClientImpl.java | 177 ++++ ...imeRangesFromDppCrossTenantVaultsImpl.java | 59 ++ ...resFromDppCrossTenantVaultsClientImpl.java | 290 ++++++ .../RestoresFromDppCrossTenantVaultsImpl.java | 57 ++ ...oreFromDppCrossTenantVaultsClientImpl.java | 301 +++++++ ...teRestoreFromDppCrossTenantVaultsImpl.java | 57 ++ ...CrossTenantBackupInstanceResourceList.java | 98 +++ .../models/CrossTenantVaultMappingList.java | 97 ++ ...ackupInstanceFromDppCrossTenantVaults.java | 44 + ...erationResultFromDppCrossTenantVaults.java | 50 ++ ...ultFromDppCrossTenantVaultsGetHeaders.java | 59 ++ ...ltFromDppCrossTenantVaultsGetResponse.java | 42 + ...erationStatusFromDppCrossTenantVaults.java | 48 + ...ckupInstancesFromDppCrossTenantVaults.java | 42 + .../BackupJobsFromDppCrossTenantVaults.java | 41 + ...BackupRuleBasedAutoProtectionSettings.java | 9 +- .../models/CrossTenantAuthCredentials.java | 101 +++ .../models/CrossTenantBackupInstance.java | 291 ++++++ .../CrossTenantBackupInstanceResource.java | 64 ++ ...TenantSecretStoreBasedAuthCredentials.java | 94 ++ .../CrossTenantSecretStoreResource.java | 97 ++ .../models/CrossTenantVaultMapping.java | 210 +++++ .../CrossTenantVaultMappingProperties.java | 157 ++++ .../CrossTenantVaultMappingRemoveRequest.java | 90 ++ ...ntVaultMappingRemoveRequestProperties.java | 94 ++ ...CrossTenantVaultMappingStatusResponse.java | 34 + .../DppCrossTenantVaultMappingStatus.java | 40 + .../models/DppCrossTenantVaultMappings.java | 126 +++ .../models/JobFromDppCrossTenantVaults.java | 43 + ...RecoveryPointFromDppCrossTenantVaults.java | 47 + ...ecoveryPointsFromDppCrossTenantVaults.java | 45 + ...bleTimeRangesFromDppCrossTenantVaults.java | 47 + .../RestoresFromDppCrossTenantVaults.java | 45 + ...lidateRestoreFromDppCrossTenantVaults.java | 47 + .../models/VaultMappingState.java | 51 ++ ...sourcemanager-dataprotection_metadata.json | 2 +- .../proxy-config.json | 2 +- ...anceFromDppCrossTenantVaultGetSamples.java | 26 + ...sultFromDppCrossTenantVaultGetSamples.java | 27 + ...atusFromDppCrossTenantVaultGetSamples.java | 27 + .../BackupInstancesAdhocBackupSamples.java | 2 +- .../BackupInstancesCreateOrUpdateSamples.java | 61 +- .../BackupInstancesDeleteSamples.java | 2 +- ...pInstancesExtensionRoutingListSamples.java | 2 +- ...cesFromDppCrossTenantVaultListSamples.java | 26 + ...tBackupInstanceOperationResultSamples.java | 2 +- .../generated/BackupInstancesGetSamples.java | 10 +- .../generated/BackupInstancesListSamples.java | 2 +- .../BackupInstancesResumeBackupsSamples.java | 2 +- ...ackupInstancesResumeProtectionSamples.java | 2 +- .../BackupInstancesStopProtectionSamples.java | 4 +- .../BackupInstancesSuspendBackupsSamples.java | 4 +- ...kupInstancesSyncBackupInstanceSamples.java | 2 +- ...ancesTriggerCrossRegionRestoreSamples.java | 2 +- ...ackupInstancesTriggerRehydrateSamples.java | 2 +- .../BackupInstancesTriggerRestoreSamples.java | 8 +- ...ncesValidateCrossRegionRestoreSamples.java | 2 +- ...ckupInstancesValidateForBackupSamples.java | 2 +- ...stancesValidateForModifyBackupSamples.java | 2 +- ...kupInstancesValidateForRestoreSamples.java | 2 +- ...obsFromDppCrossTenantVaultListSamples.java | 26 + .../BackupPoliciesCreateOrUpdateSamples.java | 2 +- .../BackupPoliciesDeleteSamples.java | 2 +- .../generated/BackupPoliciesGetSamples.java | 2 +- .../generated/BackupPoliciesListSamples.java | 2 +- ...BackupVaultOperationResultsGetSamples.java | 2 +- ...kupVaultsCheckNameAvailabilitySamples.java | 2 +- .../BackupVaultsCreateOrUpdateSamples.java | 43 +- .../generated/BackupVaultsDeleteSamples.java | 2 +- ...BackupVaultsGetByResourceGroupSamples.java | 8 +- ...ackupVaultsListByResourceGroupSamples.java | 2 +- .../generated/BackupVaultsListSamples.java | 2 +- .../generated/BackupVaultsUpdateSamples.java | 6 +- ...aProtectionCheckFeatureSupportSamples.java | 2 +- .../DataProtectionOperationsListSamples.java | 2 +- .../DeletedBackupInstancesGetSamples.java | 2 +- .../DeletedBackupInstancesListSamples.java | 2 +- ...DeletedBackupInstancesUndeleteSamples.java | 2 +- .../DeletedBackupVaultsGetSamples.java | 2 +- ...etedBackupVaultsListByLocationSamples.java | 2 +- ...sTenantVaultMappingStatusCheckSamples.java | 25 + ...antVaultMappingsCreateOrUpdateSamples.java | 34 + ...DppCrossTenantVaultMappingsGetSamples.java | 25 + ...ppCrossTenantVaultMappingsListSamples.java | 24 + ...CrossTenantVaultMappingsRemoveSamples.java | 25 + ...sourceGuardProxyCreateOrUpdateSamples.java | 2 +- .../DppResourceGuardProxyDeleteSamples.java | 2 +- .../DppResourceGuardProxyGetSamples.java | 2 +- .../DppResourceGuardProxyListSamples.java | 2 +- ...ResourceGuardProxyUnlockDeleteSamples.java | 2 +- .../ExportJobsOperationResultGetSamples.java | 2 +- .../generated/ExportJobsTriggerSamples.java | 2 +- .../FetchCrossRegionRestoreJobGetSamples.java | 2 +- ...RegionRestoreJobsOperationListSamples.java | 2 +- ...tchSecondaryRecoveryPointsListSamples.java | 2 +- .../JobFromDppCrossTenantVaultGetSamples.java | 25 + .../generated/JobsGetSamples.java | 2 +- .../generated/JobsListSamples.java | 2 +- .../generated/OperationResultGetSamples.java | 2 +- ...ionStatusBackupVaultContextGetSamples.java | 2 +- .../generated/OperationStatusGetSamples.java | 2 +- ...GroupContextGetByResourceGroupSamples.java | 2 +- ...ointFromDppCrossTenantVaultGetSamples.java | 26 + ...ntsFromDppCrossTenantVaultListSamples.java | 26 + .../generated/RecoveryPointsGetSamples.java | 2 +- .../generated/RecoveryPointsListSamples.java | 2 +- .../ResourceGuardsDeleteSamples.java | 2 +- ...ckupSecurityPinRequestsObjectsSamples.java | 2 +- ...sourceGuardsGetByResourceGroupSamples.java | 2 +- ...ackupSecurityPinRequestsObjectSamples.java | 2 +- ...eteProtectedItemRequestsObjectSamples.java | 2 +- ...sourceGuardProxyRequestsObjectSamples.java | 2 +- ...isableSoftDeleteRequestsObjectSamples.java | 2 +- ...ateProtectedItemRequestsObjectSamples.java | 2 +- ...ProtectionPolicyRequestsObjectSamples.java | 2 +- ...teProtectedItemRequestsObjectsSamples.java | 2 +- ...ourceGuardProxyRequestsObjectsSamples.java | 2 +- ...sableSoftDeleteRequestsObjectsSamples.java | 2 +- ...teProtectedItemRequestsObjectsSamples.java | 2 +- ...rotectionPolicyRequestsObjectsSamples.java | 2 +- ...ourceGuardsListByResourceGroupSamples.java | 2 +- .../generated/ResourceGuardsListSamples.java | 2 +- .../generated/ResourceGuardsPatchSamples.java | 2 +- .../generated/ResourceGuardsPutSamples.java | 2 +- .../RestorableTimeRangesFindSamples.java | 2 +- ...gesFromDppCrossTenantVaultFindSamples.java | 33 + ...FromDppCrossTenantVaultTriggerSamples.java | 68 ++ ...FromDppCrossTenantVaultTriggerSamples.java | 70 ++ .../generated/AbsoluteDeleteOptionTests.java | 8 +- .../AdhocBasedTaggingCriteriaTests.java | 8 +- .../AdhocBasedTriggerContextTests.java | 8 +- ...AzureBackupDiscreteRecoveryPointTests.java | 32 +- ...pFindRestorableTimeRangesRequestTests.java | 21 +- ...eTimeRangesResponseResourceInnerTests.java | 10 +- ...FindRestorableTimeRangesResponseTests.java | 10 +- .../generated/AzureBackupParamsTests.java | 8 +- ...BackupRecoveryPointResourceInnerTests.java | 2 +- ...eBackupRecoveryPointResourceListTests.java | 4 +- .../generated/AzureBackupRuleTests.java | 20 +- .../generated/AzureRetentionRuleTests.java | 95 +- ...sTenantVaultsGetWithResponseMockTests.java | 39 + .../BackupInstancesAdhocBackupMockTests.java | 10 +- .../BackupInstancesDeleteMockTests.java | 3 +- ...BackupInstancesResumeBackupsMockTests.java | 2 +- ...kupInstancesResumeProtectionMockTests.java | 3 +- ...ackupInstancesStopProtectionMockTests.java | 6 +- ...ackupInstancesSuspendBackupsMockTests.java | 6 +- ...pInstancesSyncBackupInstanceMockTests.java | 2 +- ...cesTriggerCrossRegionRestoreMockTests.java | 20 +- ...ackupInstancesTriggerRestoreMockTests.java | 17 +- ...esValidateCrossRegionRestoreMockTests.java | 22 +- ...pInstancesValidateForRestoreMockTests.java | 16 +- ...esCreateOrUpdateWithResponseMockTests.java | 10 +- ...upPoliciesDeleteWithResponseMockTests.java | 2 +- ...ackupPoliciesGetWithResponseMockTests.java | 6 +- .../BackupPoliciesListMockTests.java | 6 +- .../generated/BackupPolicyTests.java | 18 +- .../generated/BackupScheduleTests.java | 19 +- ...NameAvailabilityWithResponseMockTests.java | 12 +- .../BackupVaultsDeleteMockTests.java | 2 +- .../BaseBackupPolicyResourceInnerTests.java | 8 +- .../BaseBackupPolicyResourceListTests.java | 6 +- .../generated/BaseBackupPolicyTests.java | 8 +- .../generated/BasePolicyRuleTests.java | 8 +- .../CheckNameAvailabilityRequestTests.java | 13 +- ...CheckNameAvailabilityResultInnerTests.java | 8 +- .../CrossRegionRestoreJobRequestTests.java | 20 +- .../CrossRegionRestoreJobsRequestTests.java | 14 +- .../CrossTenantAuthCredentialsTests.java | 16 + .../CrossTenantVaultMappingInnerTests.java | 32 + .../CrossTenantVaultMappingListTests.java | 21 + ...rossTenantVaultMappingPropertiesTests.java | 31 + ...ltMappingRemoveRequestPropertiesTests.java | 28 + ...sTenantVaultMappingRemoveRequestTests.java | 30 + ...tVaultMappingStatusResponseInnerTests.java | 21 + .../generated/CustomCopyOptionTests.java | 11 +- ...DataProtectionOperationsListMockTests.java | 2 +- ...ckFeatureSupportWithResponseMockTests.java | 2 +- .../generated/DataStoreInfoBaseTests.java | 10 +- .../dataprotection/generated/DayTests.java | 8 +- .../generated/DeleteOptionTests.java | 8 +- ...letedBackupInstancesUndeleteMockTests.java | 2 +- .../generated/DeletionInfoTests.java | 2 +- ...ppingStatusCheckWithResponseMockTests.java | 40 + ...gsCreateOrUpdateWithResponseMockTests.java | 45 + ...VaultMappingsGetWithResponseMockTests.java | 40 + ...CrossTenantVaultMappingsListMockTests.java | 41 + ...ltMappingsRemoveWithResponseMockTests.java | 41 + ...esCreateOrUpdateWithResponseMockTests.java | 32 +- ...ardProxiesDeleteWithResponseMockTests.java | 3 +- ...eGuardProxiesGetWithResponseMockTests.java | 14 +- .../DppResourceGuardProxiesListMockTests.java | 14 +- ...xiesUnlockDeleteWithResponseMockTests.java | 10 +- .../generated/DppResourceTests.java | 2 +- .../FeatureValidationRequestTests.java | 8 +- .../FeatureValidationResponseTests.java | 10 +- ...tchSecondaryRPsRequestParametersTests.java | 12 +- ...hSecondaryRecoveryPointsListMockTests.java | 11 +- .../generated/JobSubTaskTests.java | 10 +- ...rationResultsGetWithResponseMockTests.java | 6 +- .../RecoveryPointDataStoreDetailsTests.java | 16 +- ...sTenantVaultsGetWithResponseMockTests.java | 38 + ...overyPointImmutabilityPropertiesTests.java | 4 +- ...FromDppCrossTenantVaultsListMockTests.java | 37 + ...ecoveryPointsGetWithResponseMockTests.java | 4 +- .../RecoveryPointsListMockTests.java | 4 +- .../ResourceGuardOperationDetailTests.java | 18 +- ...ourceGuardProxyBaseResourceInnerTests.java | 42 +- ...sourceGuardProxyBaseResourceListTests.java | 14 +- .../ResourceGuardProxyBaseTests.java | 42 +- ...eByResourceGroupWithResponseMockTests.java | 2 +- ...upSecurityPinRequestsObjectsMockTests.java | 4 +- ...tByResourceGroupWithResponseMockTests.java | 12 +- ...inRequestsObjectWithResponseMockTests.java | 4 +- ...emRequestsObjectWithResponseMockTests.java | 4 +- ...xyRequestsObjectWithResponseMockTests.java | 6 +- ...teRequestsObjectWithResponseMockTests.java | 4 +- ...emRequestsObjectWithResponseMockTests.java | 6 +- ...cyRequestsObjectWithResponseMockTests.java | 4 +- ...ProtectedItemRequestsObjectsMockTests.java | 4 +- ...rceGuardProxyRequestsObjectsMockTests.java | 5 +- ...bleSoftDeleteRequestsObjectsMockTests.java | 4 +- ...ProtectedItemRequestsObjectsMockTests.java | 4 +- ...tectionPolicyRequestsObjectsMockTests.java | 4 +- ...rceGuardsListByResourceGroupMockTests.java | 12 +- .../ResourceGuardsListMockTests.java | 10 +- ...esourceGuardsPutWithResponseMockTests.java | 23 +- .../generated/RestorableTimeRangeTests.java | 12 +- ...leTimeRangesFindWithResponseMockTests.java | 18 +- ...TenantVaultsFindWithResponseMockTests.java | 50 ++ .../RestoreJobRecoveryPointDetailsTests.java | 10 +- ...mDppCrossTenantVaultsTriggerMockTests.java | 52 ++ .../generated/RetentionTagTests.java | 8 +- .../ScheduleBasedBackupCriteriaTests.java | 52 +- .../ScheduleBasedTriggerContextTests.java | 68 +- .../generated/SourceLifeCycleTests.java | 38 +- .../generated/SupportedFeatureTests.java | 8 +- .../generated/TaggingCriteriaTests.java | 24 +- .../generated/TargetCopySettingTests.java | 12 +- .../generated/UnlockDeleteRequestTests.java | 14 +- .../UnlockDeleteResponseInnerTests.java | 4 +- ...mDppCrossTenantVaultsTriggerMockTests.java | 53 ++ .../tsp-location.yaml | 2 +- .../pom.xml | 2 +- 290 files changed, 10874 insertions(+), 960 deletions(-) create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationResultFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationStatusFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupJobsFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingStatusClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestoresFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ValidateRestoreFromDppCrossTenantVaultsClient.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantBackupInstanceResourceInner.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingInner.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingStatusResponseInner.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationResultFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupJobsFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupJobsFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantBackupInstanceResourceImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantVaultMappingImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantVaultMappingStatusResponseImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestoresFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestoresFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ValidateRestoreFromDppCrossTenantVaultsClientImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ValidateRestoreFromDppCrossTenantVaultsImpl.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/CrossTenantBackupInstanceResourceList.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/CrossTenantVaultMappingList.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationStatusFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupJobsFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantAuthCredentials.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstance.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstanceResource.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreBasedAuthCredentials.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreResource.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMapping.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingProperties.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequest.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequestProperties.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingStatusResponse.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappingStatus.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappings.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/JobFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointsFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRangesFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoresFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateRestoreFromDppCrossTenantVaults.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/VaultMappingState.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceFromDppCrossTenantVaultGetSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationResultFromDppCrossTenantVaultGetSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationStatusFromDppCrossTenantVaultGetSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesFromDppCrossTenantVaultListSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupJobsFromDppCrossTenantVaultListSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingStatusCheckSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsCreateOrUpdateSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsGetSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsListSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsRemoveSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobFromDppCrossTenantVaultGetSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointFromDppCrossTenantVaultGetSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsFromDppCrossTenantVaultListSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFromDppCrossTenantVaultFindSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestoresFromDppCrossTenantVaultTriggerSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreFromDppCrossTenantVaultTriggerSamples.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationResultFromDppCrossTenantVaultsGetWithResponseMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantAuthCredentialsTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingInnerTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingListTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingPropertiesTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingRemoveRequestPropertiesTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingRemoveRequestTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingStatusResponseInnerTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingStatusCheckWithResponseMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsCreateOrUpdateWithResponseMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsGetWithResponseMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsListMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsRemoveWithResponseMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointFromDppCrossTenantVaultsGetWithResponseMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsFromDppCrossTenantVaultsListMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFromDppCrossTenantVaultsFindWithResponseMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoresFromDppCrossTenantVaultsTriggerMockTests.java create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreFromDppCrossTenantVaultsTriggerMockTests.java diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md index b38ab60e54421..0ebe18cb0fa3a 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md @@ -1,14 +1,86 @@ # Release History -## 1.7.0-beta.2 (Unreleased) +## 1.7.0-beta.2 (2026-10-15) + +- Azure Resource Manager Data Protection client library for Java. This package contains Microsoft Azure SDK for Data Protection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package api-version 2026-08-31-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.RecoveryPointFromDppCrossTenantVaults` was added + +* `models.CrossTenantVaultMappingStatusResponse` was added + +* `models.CrossTenantBackupInstance` was added + +* `models.CrossTenantVaultMapping$Definition` was added + +* `models.DppCrossTenantVaultMappingStatus` was added + +* `models.CrossTenantBackupInstanceResource` was added + +* `models.CrossTenantVaultMappingRemoveRequest` was added + +* `models.CrossTenantSecretStoreBasedAuthCredentials` was added + +* `models.BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders` was added + +* `models.CrossTenantVaultMapping` was added + +* `models.BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse` was added + +* `models.RestoresFromDppCrossTenantVaults` was added + +* `models.CrossTenantAuthCredentials` was added + +* `models.CrossTenantVaultMappingRemoveRequestProperties` was added + +* `models.DppCrossTenantVaultMappings` was added -### Bugs Fixed +* `models.BackupInstanceOperationStatusFromDppCrossTenantVaults` was added + +* `models.BackupInstancesFromDppCrossTenantVaults` was added + +* `models.VaultMappingState` was added + +* `models.CrossTenantVaultMapping$UpdateStages` was added + +* `models.BackupInstanceOperationResultFromDppCrossTenantVaults` was added + +* `models.ValidateRestoreFromDppCrossTenantVaults` was added + +* `models.RecoveryPointsFromDppCrossTenantVaults` was added + +* `models.CrossTenantVaultMappingProperties` was added + +* `models.CrossTenantSecretStoreResource` was added + +* `models.JobFromDppCrossTenantVaults` was added + +* `models.RestorableTimeRangesFromDppCrossTenantVaults` was added + +* `models.CrossTenantVaultMapping$DefinitionStages` was added + +* `models.BackupInstanceFromDppCrossTenantVaults` was added + +* `models.CrossTenantVaultMapping$Update` was added + +* `models.BackupJobsFromDppCrossTenantVaults` was added + +#### `DataProtectionManager` was modified -### Other Changes +* `restoresFromDppCrossTenantVaults()` was added +* `backupInstanceOperationResultFromDppCrossTenantVaults()` was added +* `recoveryPointsFromDppCrossTenantVaults()` was added +* `dppCrossTenantVaultMappings()` was added +* `recoveryPointFromDppCrossTenantVaults()` was added +* `backupInstanceOperationStatusFromDppCrossTenantVaults()` was added +* `backupInstanceFromDppCrossTenantVaults()` was added +* `backupInstancesFromDppCrossTenantVaults()` was added +* `validateRestoreFromDppCrossTenantVaults()` was added +* `dppCrossTenantVaultMappingStatus()` was added +* `backupJobsFromDppCrossTenantVaults()` was added +* `jobFromDppCrossTenantVaults()` was added +* `restorableTimeRangesFromDppCrossTenantVaults()` was added ## 1.7.0-beta.1 (2026-09-28) diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md index 6fb39e4a92db9..2d2c093d2d8a1 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Data Protection client library for Java. -This package contains Microsoft Azure SDK for Data Protection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package api-version 2026-07-01. 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 Data Protection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package api-version 2026-08-31-preview. 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.7.0-beta.1 + 1.7.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md index 91d83f17fe89a..828b13e79fa46 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md @@ -1,6 +1,18 @@ # Code snippets and samples +## BackupInstanceFromDppCrossTenantVault + +- [Get](#backupinstancefromdppcrosstenantvault_get) + +## BackupInstanceOperationResultFromDppCrossTenantVault + +- [Get](#backupinstanceoperationresultfromdppcrosstenantvault_get) + +## BackupInstanceOperationStatusFromDppCrossTenantVault + +- [Get](#backupinstanceoperationstatusfromdppcrosstenantvault_get) + ## BackupInstances - [AdhocBackup](#backupinstances_adhocbackup) @@ -26,6 +38,14 @@ - [List](#backupinstancesextensionrouting_list) +## BackupInstancesFromDppCrossTenantVault + +- [List](#backupinstancesfromdppcrosstenantvault_list) + +## BackupJobsFromDppCrossTenantVault + +- [List](#backupjobsfromdppcrosstenantvault_list) + ## BackupPolicies - [CreateOrUpdate](#backuppolicies_createorupdate) @@ -66,6 +86,17 @@ - [Get](#deletedbackupvaults_get) - [ListByLocation](#deletedbackupvaults_listbylocation) +## DppCrossTenantVaultMappingStatus + +- [Check](#dppcrosstenantvaultmappingstatus_check) + +## DppCrossTenantVaultMappings + +- [CreateOrUpdate](#dppcrosstenantvaultmappings_createorupdate) +- [Get](#dppcrosstenantvaultmappings_get) +- [List](#dppcrosstenantvaultmappings_list) +- [Remove](#dppcrosstenantvaultmappings_remove) + ## DppResourceGuardProxy - [CreateOrUpdate](#dppresourceguardproxy_createorupdate) @@ -94,6 +125,10 @@ - [List](#fetchsecondaryrecoverypoints_list) +## JobFromDppCrossTenantVault + +- [Get](#jobfromdppcrosstenantvault_get) + ## Jobs - [Get](#jobs_get) @@ -115,11 +150,19 @@ - [GetByResourceGroup](#operationstatusresourcegroupcontext_getbyresourcegroup) +## RecoveryPointFromDppCrossTenantVault + +- [Get](#recoverypointfromdppcrosstenantvault_get) + ## RecoveryPoints - [Get](#recoverypoints_get) - [List](#recoverypoints_list) +## RecoveryPointsFromDppCrossTenantVault + +- [List](#recoverypointsfromdppcrosstenantvault_list) + ## ResourceGuards - [Delete](#resourceguards_delete) @@ -144,6 +187,95 @@ ## RestorableTimeRanges - [Find](#restorabletimeranges_find) + +## RestorableTimeRangesFromDppCrossTenantVault + +- [Find](#restorabletimerangesfromdppcrosstenantvault_find) + +## RestoresFromDppCrossTenantVault + +- [Trigger](#restoresfromdppcrosstenantvault_trigger) + +## ValidateRestoreFromDppCrossTenantVault + +- [Trigger](#validaterestorefromdppcrosstenantvault_trigger) +### BackupInstanceFromDppCrossTenantVault_Get + +```java +/** + * Samples for BackupInstanceFromDppCrossTenantVault Get. + */ +public final class BackupInstanceFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupInstanceFromDppCrossTenantVault_Get.json + */ + /** + * Sample code: Get a backup instance from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void getABackupInstanceFromACrossTenantVault( + com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupInstanceFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + com.azure.core.util.Context.NONE); + } +} +``` + +### BackupInstanceOperationResultFromDppCrossTenantVault_Get + +```java +/** + * Samples for BackupInstanceOperationResultFromDppCrossTenantVault Get. + */ +public final class BackupInstanceOperationResultFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupInstanceOperationResultFromDppCrossTenantVault_Get. + * json + */ + /** + * Sample code: Get cross-tenant operation result. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getCrossTenantOperationResult(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupInstanceOperationResultFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + "YWUzNDFkMzQtZmM5Yy00OGE4LWE5ZDgtY2VhMDAwMDAwMDAw", com.azure.core.util.Context.NONE); + } +} +``` + +### BackupInstanceOperationStatusFromDppCrossTenantVault_Get + +```java +/** + * Samples for BackupInstanceOperationStatusFromDppCrossTenantVault Get. + */ +public final class BackupInstanceOperationStatusFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupInstanceOperationStatusFromDppCrossTenantVault_Get. + * json + */ + /** + * Sample code: Get cross-tenant operation status. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getCrossTenantOperationStatus(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupInstanceOperationStatusFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + "YWUzNDFkMzQtZmM5Yy00OGE4LWE5ZDgtY2VhMDAwMDAwMDAw", com.azure.core.util.Context.NONE); + } +} +``` + ### BackupInstances_AdhocBackup ```java @@ -156,7 +288,7 @@ import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest; */ public final class BackupInstancesAdhocBackupSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerBackup.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerBackup.json */ /** * Sample code: Trigger Adhoc Backup. @@ -182,7 +314,6 @@ import com.azure.resourcemanager.dataprotection.models.AdlsBlobBackupDatasourceP import com.azure.resourcemanager.dataprotection.models.AdlsBlobBackupDatasourceParametersForAutoProtection; import com.azure.resourcemanager.dataprotection.models.AzureOperationalStoreParameters; import com.azure.resourcemanager.dataprotection.models.BackupInstance; -import com.azure.resourcemanager.dataprotection.models.BackupSolutionType; import com.azure.resourcemanager.dataprotection.models.BlobBackupAutoProtectionRule; import com.azure.resourcemanager.dataprotection.models.BlobBackupDatasourceParametersForAutoProtection; import com.azure.resourcemanager.dataprotection.models.BlobBackupPatternType; @@ -196,7 +327,6 @@ import com.azure.resourcemanager.dataprotection.models.IdentityDetails; import com.azure.resourcemanager.dataprotection.models.KubernetesClusterBackupDatasourceParameters; import com.azure.resourcemanager.dataprotection.models.PolicyInfo; import com.azure.resourcemanager.dataprotection.models.PolicyParameters; -import com.azure.resourcemanager.dataprotection.models.PostgreSqlFlexibleServerBackupDatasourceParameters; import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials; import com.azure.resourcemanager.dataprotection.models.SecretStoreResource; import com.azure.resourcemanager.dataprotection.models.SecretStoreType; @@ -210,7 +340,7 @@ import java.util.Map; */ public final class BackupInstancesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance.json */ /** * Sample code: Create BackupInstance. @@ -257,7 +387,7 @@ public final class BackupInstancesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstanceWithGenericParameters.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/PutBackupInstanceWithGenericParameters.json */ /** * Sample code: Create BackupInstance with GenericBackupDatasourceParameters. @@ -300,7 +430,8 @@ public final class BackupInstancesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupDatasourceParameters.json + * x-ms-original-file: + * 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupDatasourceParameters.json */ /** * Sample code: Create BackupInstance With ADLSBlobBackupDatasourceParameters. @@ -342,7 +473,7 @@ public final class BackupInstancesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance_ResourceGuardEnabled.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_ResourceGuardEnabled.json */ /** * Sample code: Create BackupInstance to perform critical operation With MUA. @@ -389,7 +520,7 @@ public final class BackupInstancesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance_BlobBackupAutoProtection.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_BlobBackupAutoProtection.json */ /** * Sample code: Create BackupInstance With BlobBackupAutoProtection. @@ -442,7 +573,7 @@ public final class BackupInstancesCreateOrUpdateSamples { /* * x-ms-original-file: - * 2026-07-01/BackupInstanceOperations/PutBackupInstance_KubernetesClusterBackupDatasourceParameters.json + * 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_KubernetesClusterBackupDatasourceParameters.json */ /** * Sample code: Create BackupInstance With KubernetesClusterBackupDatasourceParameters. @@ -496,7 +627,8 @@ public final class BackupInstancesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupAutoProtection.json + * x-ms-original-file: + * 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupAutoProtection.json */ /** * Sample code: Create BackupInstance With ADLSBlobBackupAutoProtection. @@ -547,49 +679,6 @@ public final class BackupInstancesCreateOrUpdateSamples { .create(); } - /* - * x-ms-original-file: - * 2026-07-01/BackupInstanceOperations/PutBackupInstance_PostgreSqlFlexibleServerBackupDatasourceParameters.json - */ - /** - * Sample code: Create BackupInstance With PostgreSqlFlexibleServerBackupDatasourceParameters. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void createBackupInstanceWithPostgreSqlFlexibleServerBackupDatasourceParameters( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager.backupInstances() - .define("pgflexbi") - .withExistingBackupVault("pgflexrg", "pgflexvault") - .withProperties(new BackupInstance().withFriendlyName("pgflexbi") - .withDataSourceInfo(new Datasource().withDatasourceType("Microsoft.DBforPostgreSQL/flexibleServers") - .withObjectType("Datasource") - .withResourceId( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflexserver") - .withResourceLocation("eastus2euap") - .withResourceName("pgflexserver") - .withResourceType("Microsoft.DBforPostgreSQL/flexibleServers") - .withResourceUri( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflexserver")) - .withDataSourceSetInfo(new DatasourceSet() - .withDatasourceType("Microsoft.DBforPostgreSQL/flexibleServers") - .withObjectType("DatasourceSet") - .withResourceId( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflexserver") - .withResourceLocation("eastus2euap") - .withResourceName("pgflexserver") - .withResourceType("Microsoft.DBforPostgreSQL/flexibleServers") - .withResourceUri( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflexserver")) - .withPolicyInfo(new PolicyInfo().withPolicyId( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DataProtection/BackupVaults/pgflexvault/backupPolicies/pgflexpolicy") - .withPolicyParameters(new PolicyParameters().withBackupDatasourceParametersList( - Arrays.asList(new PostgreSqlFlexibleServerBackupDatasourceParameters() - .withBackupSolutionType(BackupSolutionType.PHYSICAL_BACKUP))))) - .withObjectType("BackupInstance")) - .create(); - } - // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { @@ -612,7 +701,7 @@ public final class BackupInstancesCreateOrUpdateSamples { */ public final class BackupInstancesDeleteSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/DeleteBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/DeleteBackupInstance.json */ /** * Sample code: Delete BackupInstance. @@ -634,7 +723,8 @@ public final class BackupInstancesDeleteSamples { */ public final class BackupInstancesGetSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupDatasourceParameters.json + * x-ms-original-file: + * 2026-08-31-preview/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupDatasourceParameters.json */ /** * Sample code: Get BackupInstance for ADLS Blob. @@ -648,7 +738,8 @@ public final class BackupInstancesGetSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupAutoProtection.json + * x-ms-original-file: + * 2026-08-31-preview/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupAutoProtection.json */ /** * Sample code: Get BackupInstance with ADLSBlobBackupAutoProtection. @@ -662,7 +753,7 @@ public final class BackupInstancesGetSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstance_BlobBackupAutoProtection.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/GetBackupInstance_BlobBackupAutoProtection.json */ /** * Sample code: Get BackupInstance with BlobBackupAutoProtection. @@ -676,7 +767,7 @@ public final class BackupInstancesGetSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/GetBackupInstance.json */ /** * Sample code: Get BackupInstance. @@ -699,7 +790,7 @@ public final class BackupInstancesGetSamples { */ public final class BackupInstancesGetBackupInstanceOperationResultSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstanceOperationResult.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/GetBackupInstanceOperationResult.json */ /** * Sample code: Get BackupInstanceOperationResult. @@ -724,7 +815,7 @@ public final class BackupInstancesGetBackupInstanceOperationResultSamples { */ public final class BackupInstancesListSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ListBackupInstances.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ListBackupInstances.json */ /** * Sample code: List BackupInstances in a Vault. @@ -746,7 +837,7 @@ public final class BackupInstancesListSamples { */ public final class BackupInstancesResumeBackupsSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ResumeBackups.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ResumeBackups.json */ /** * Sample code: ResumeBackups. @@ -767,7 +858,7 @@ public final class BackupInstancesResumeBackupsSamples { */ public final class BackupInstancesResumeProtectionSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ResumeProtection.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ResumeProtection.json */ /** * Sample code: ResumeProtection. @@ -791,7 +882,7 @@ import java.util.Arrays; */ public final class BackupInstancesStopProtectionSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/StopProtection.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/StopProtection.json */ /** * Sample code: StopProtection. @@ -804,7 +895,7 @@ public final class BackupInstancesStopProtectionSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/StopProtection_ResourceGuardEnabled.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/StopProtection_ResourceGuardEnabled.json */ /** * Sample code: StopProtection with MUA. @@ -832,7 +923,7 @@ import java.util.Arrays; */ public final class BackupInstancesSuspendBackupsSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/SuspendBackups.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/SuspendBackups.json */ /** * Sample code: SuspendBackups. @@ -845,7 +936,7 @@ public final class BackupInstancesSuspendBackupsSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/SuspendBackup_ResourceGuardEnabled.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/SuspendBackup_ResourceGuardEnabled.json */ /** * Sample code: SuspendBackups with MUA. @@ -873,7 +964,7 @@ import com.azure.resourcemanager.dataprotection.models.SyncType; */ public final class BackupInstancesSyncBackupInstanceSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/SyncBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/SyncBackupInstance.json */ /** * Sample code: Sync BackupInstance. @@ -908,7 +999,7 @@ import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; */ public final class BackupInstancesTriggerCrossRegionRestoreSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/TriggerCrossRegionRestore.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/TriggerCrossRegionRestore.json */ /** * Sample code: Trigger Cross Region Restore. @@ -966,7 +1057,7 @@ import com.azure.resourcemanager.dataprotection.models.RehydrationPriority; */ public final class BackupInstancesTriggerRehydrateSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRehydrate.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerRehydrate.json */ /** * Sample code: Trigger Rehydrate. @@ -1014,7 +1105,7 @@ import java.util.Map; */ public final class BackupInstancesTriggerRestoreSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreAsFiles.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerRestoreAsFiles.json */ /** * Sample code: Trigger Restore As Files. @@ -1039,7 +1130,7 @@ public final class BackupInstancesTriggerRestoreSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithGenericParameters.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerRestoreWithGenericParameters.json */ /** * Sample code: Trigger Restore with GenericRestoreDatasourceCriteria. @@ -1083,7 +1174,7 @@ public final class BackupInstancesTriggerRestoreSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithRehydration.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerRestoreWithRehydration.json */ /** * Sample code: Trigger Restore With Rehydration. @@ -1123,7 +1214,7 @@ public final class BackupInstancesTriggerRestoreSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestore.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerRestore.json */ /** * Sample code: Trigger Restore. @@ -1201,7 +1292,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateCrossRegionRestor */ public final class BackupInstancesValidateCrossRegionRestoreSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/ValidateCrossRegionRestore.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/ValidateCrossRegionRestore.json */ /** * Sample code: Validate Cross Region Restore. @@ -1266,7 +1357,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest; */ public final class BackupInstancesValidateForBackupSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ValidateForBackup.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ValidateForBackup.json */ /** * Sample code: Validate For Backup. @@ -1325,7 +1416,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateForModifyBackupRe */ public final class BackupInstancesValidateForModifyBackupSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ValidateForModifyBackup.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ValidateForModifyBackup.json */ /** * Sample code: Validate For Modify Backup. @@ -1387,7 +1478,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObj */ public final class BackupInstancesValidateForRestoreSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ValidateRestore.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ValidateRestore.json */ /** * Sample code: Validate Restore. @@ -1442,7 +1533,7 @@ public final class BackupInstancesValidateForRestoreSamples { */ public final class BackupInstancesExtensionRoutingListSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json */ /** * Sample code: List BackupInstances associated with an azure resource. @@ -1459,6 +1550,56 @@ public final class BackupInstancesExtensionRoutingListSamples { } ``` +### BackupInstancesFromDppCrossTenantVault_List + +```java +/** + * Samples for BackupInstancesFromDppCrossTenantVault List. + */ +public final class BackupInstancesFromDppCrossTenantVaultListSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupInstancesFromDppCrossTenantVault_List.json + */ + /** + * Sample code: List backup instances from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void listBackupInstancesFromACrossTenantVault( + com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupInstancesFromDppCrossTenantVaults() + .list("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", + com.azure.core.util.Context.NONE); + } +} +``` + +### BackupJobsFromDppCrossTenantVault_List + +```java +/** + * Samples for BackupJobsFromDppCrossTenantVault List. + */ +public final class BackupJobsFromDppCrossTenantVaultListSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupJobsFromDppCrossTenantVault_List.json + */ + /** + * Sample code: List jobs from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + listJobsFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupJobsFromDppCrossTenantVaults() + .list("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", + com.azure.core.util.Context.NONE); + } +} +``` + ### BackupPolicies_CreateOrUpdate ```java @@ -1484,7 +1625,7 @@ import java.util.Arrays; */ public final class BackupPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-07-01/PolicyCRUD/CreateOrUpdateBackupPolicy.json + * x-ms-original-file: 2026-08-31-preview/PolicyCRUD/CreateOrUpdateBackupPolicy.json */ /** * Sample code: CreateOrUpdate BackupPolicy. @@ -1555,7 +1696,7 @@ public final class BackupPoliciesCreateOrUpdateSamples { */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-07-01/PolicyCRUD/DeleteBackupPolicy.json + * x-ms-original-file: 2026-08-31-preview/PolicyCRUD/DeleteBackupPolicy.json */ /** * Sample code: Delete BackupPolicy. @@ -1577,7 +1718,7 @@ public final class BackupPoliciesDeleteSamples { */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: 2026-07-01/PolicyCRUD/GetBackupPolicy.json + * x-ms-original-file: 2026-08-31-preview/PolicyCRUD/GetBackupPolicy.json */ /** * Sample code: Get BackupPolicy. @@ -1599,7 +1740,7 @@ public final class BackupPoliciesGetSamples { */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: 2026-07-01/PolicyCRUD/ListBackupPolicy.json + * x-ms-original-file: 2026-08-31-preview/PolicyCRUD/ListBackupPolicy.json */ /** * Sample code: List BackupPolicy. @@ -1620,7 +1761,7 @@ public final class BackupPoliciesListSamples { */ public final class BackupVaultOperationResultsGetSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetOperationResultPatch.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetOperationResultPatch.json */ /** * Sample code: GetOperationResult Patch. @@ -1646,7 +1787,7 @@ import com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequ */ public final class BackupVaultsCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/CheckBackupVaultsNameAvailability.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/CheckBackupVaultsNameAvailability.json */ /** * Sample code: Check BackupVaults name availability. @@ -1683,10 +1824,8 @@ import com.azure.resourcemanager.dataprotection.models.EncryptionState; import com.azure.resourcemanager.dataprotection.models.FeatureSettings; import com.azure.resourcemanager.dataprotection.models.GranularityLevel; import com.azure.resourcemanager.dataprotection.models.IdentityType; -import com.azure.resourcemanager.dataprotection.models.ImmutabilityConfiguration; import com.azure.resourcemanager.dataprotection.models.ImmutabilitySettings; import com.azure.resourcemanager.dataprotection.models.ImmutabilityState; -import com.azure.resourcemanager.dataprotection.models.ImmutabilityType; import com.azure.resourcemanager.dataprotection.models.InfrastructureEncryptionState; import com.azure.resourcemanager.dataprotection.models.MonitoringSettings; import com.azure.resourcemanager.dataprotection.models.SecuritySettings; @@ -1704,7 +1843,7 @@ import java.util.Map; */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVault.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVault.json */ /** * Sample code: Create BackupVault. @@ -1732,7 +1871,7 @@ public final class BackupVaultsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/PutBackupVaultWithUndelete.json + * x-ms-original-file: 2026-08-31-preview/PutBackupVaultWithUndelete.json */ /** * Sample code: Restore a soft-deleted backup vault. @@ -1767,7 +1906,7 @@ public final class BackupVaultsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultWithCMK.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVaultWithCMK.json */ /** * Sample code: Create BackupVault With CMK. @@ -1801,7 +1940,7 @@ public final class BackupVaultsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultCMKSettings_ResourceGuardEnabled.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVaultCMKSettings_ResourceGuardEnabled.json */ /** * Sample code: Create or Update Backup Vault With CMK and Resource Guard Enabled. @@ -1836,7 +1975,7 @@ public final class BackupVaultsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultWithCostManagementSettings.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVaultWithCostManagementSettings.json */ /** * Sample code: Create BackupVault With Cost Management Settings. @@ -1867,7 +2006,7 @@ public final class BackupVaultsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultWithMSI.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVaultWithMSI.json */ /** * Sample code: Create BackupVault With MSI. @@ -1895,35 +2034,6 @@ public final class BackupVaultsCreateOrUpdateSamples { .create(); } - /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultWithTimedImmutability.json - */ - /** - * Sample code: Create BackupVault With Timed Immutability. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void - createBackupVaultWithTimedImmutability(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager.backupVaults() - .define("swaggerExample") - .withRegion("WestUS") - .withExistingResourceGroup("SampleResourceGroup") - .withProperties(new BackupVault() - .withSecuritySettings(new SecuritySettings() - .withSoftDeleteSettings( - new SoftDeleteSettings().withState(SoftDeleteState.ON).withRetentionDurationInDays(14.0D)) - .withImmutabilitySettings(new ImmutabilitySettings().withState(ImmutabilityState.UNLOCKED) - .withConfiguration(new ImmutabilityConfiguration().withType(ImmutabilityType.TIME_BASED) - .withDurationInDays(30)))) - .withStorageSettings( - Arrays.asList(new StorageSetting().withDatastoreType(StorageSettingStoreTypes.VAULT_STORE) - .withType(StorageSettingTypes.LOCALLY_REDUNDANT)))) - .withTags(mapOf("key1", "fakeTokenPlaceholder")) - .withIdentity(new DppIdentityDetails().withType("None")) - .create(); - } - // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { @@ -1946,7 +2056,7 @@ public final class BackupVaultsCreateOrUpdateSamples { */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/DeleteBackupVault.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/DeleteBackupVault.json */ /** * Sample code: Delete BackupVault. @@ -1967,7 +2077,7 @@ public final class BackupVaultsDeleteSamples { */ public final class BackupVaultsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultWithCostManagementSettings.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVaultWithCostManagementSettings.json */ /** * Sample code: Get BackupVault with Cost Management Settings. @@ -1981,7 +2091,7 @@ public final class BackupVaultsGetByResourceGroupSamples { } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVault.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVault.json */ /** * Sample code: Get BackupVault. @@ -1994,7 +2104,7 @@ public final class BackupVaultsGetByResourceGroupSamples { } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultWithMSI.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVaultWithMSI.json */ /** * Sample code: Get BackupVault With MSI. @@ -2007,7 +2117,7 @@ public final class BackupVaultsGetByResourceGroupSamples { } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultWithCMK.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVaultWithCMK.json */ /** * Sample code: Get BackupVault With CMK. @@ -2029,7 +2139,7 @@ public final class BackupVaultsGetByResourceGroupSamples { */ public final class BackupVaultsListSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultsInSubscription.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVaultsInSubscription.json */ /** * Sample code: Get BackupVaults in Subscription. @@ -2051,7 +2161,7 @@ public final class BackupVaultsListSamples { */ public final class BackupVaultsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultsInResourceGroup.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVaultsInResourceGroup.json */ /** * Sample code: Get BackupVaults in ResourceGroup. @@ -2094,7 +2204,7 @@ import java.util.Map; */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PatchBackupVault.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PatchBackupVault.json */ /** * Sample code: Patch BackupVault. @@ -2114,7 +2224,7 @@ public final class BackupVaultsUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PatchBackupVaultWithCostManagementSettings.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PatchBackupVaultWithCostManagementSettings.json */ /** * Sample code: Patch BackupVault with Cost Management Settings. @@ -2134,7 +2244,7 @@ public final class BackupVaultsUpdateSamples { } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PatchBackupVaultWithCMK.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PatchBackupVaultWithCMK.json */ /** * Sample code: Patch BackupVault with CMK. @@ -2186,7 +2296,7 @@ import com.azure.resourcemanager.dataprotection.models.FeatureValidationRequest; */ public final class DataProtectionCheckFeatureSupportSamples { /* - * x-ms-original-file: 2026-07-01/CheckfeatureSupport.json + * x-ms-original-file: 2026-08-31-preview/CheckfeatureSupport.json */ /** * Sample code: Check Azure Vm Backup Feature Support. @@ -2211,7 +2321,7 @@ public final class DataProtectionCheckFeatureSupportSamples { */ public final class DataProtectionOperationsListSamples { /* - * x-ms-original-file: 2026-07-01/Operations/List.json + * x-ms-original-file: 2026-08-31-preview/Operations/List.json */ /** * Sample code: Returns the list of supported REST operations. @@ -2233,7 +2343,7 @@ public final class DataProtectionOperationsListSamples { */ public final class DeletedBackupInstancesGetSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json */ /** * Sample code: Get DeletedBackupInstance. @@ -2257,7 +2367,7 @@ public final class DeletedBackupInstancesGetSamples { */ public final class DeletedBackupInstancesListSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json + * x-ms-original-file: 2026-08-31-preview/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json */ /** * Sample code: List DeletedBackupInstances in a Vault. @@ -2280,7 +2390,7 @@ public final class DeletedBackupInstancesListSamples { */ public final class DeletedBackupInstancesUndeleteSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json */ /** * Sample code: Undelete Deleted BackupInstance. @@ -2302,7 +2412,7 @@ public final class DeletedBackupInstancesUndeleteSamples { */ public final class DeletedBackupVaultsGetSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupVaults_Get.json + * x-ms-original-file: 2026-08-31-preview/DeletedBackupVaults_Get.json */ /** * Sample code: Get a deleted backup vault. @@ -2323,7 +2433,7 @@ public final class DeletedBackupVaultsGetSamples { */ public final class DeletedBackupVaultsListByLocationSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupVaults_ListByLocation.json + * x-ms-original-file: 2026-08-31-preview/DeletedBackupVaults_ListByLocation.json */ /** * Sample code: List deleted backup vaults by location. @@ -2337,6 +2447,135 @@ public final class DeletedBackupVaultsListByLocationSamples { } ``` +### DppCrossTenantVaultMappingStatus_Check + +```java +/** + * Samples for DppCrossTenantVaultMappingStatus Check. + */ +public final class DppCrossTenantVaultMappingStatusCheckSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappingStatus_Check.json + */ + /** + * Sample code: Get cross-tenant vault mapping status. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getCrossTenantVaultMappingStatus(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappingStatus() + .checkWithResponse("000pikumar", "PratikPrivatePreviewVault1", com.azure.core.util.Context.NONE); + } +} +``` + +### DppCrossTenantVaultMappings_CreateOrUpdate + +```java +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingProperties; +import java.util.Arrays; + +/** + * Samples for DppCrossTenantVaultMappings CreateOrUpdate. + */ +public final class DppCrossTenantVaultMappingsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappings_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a cross-tenant vault mapping. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + createOrUpdateACrossTenantVaultMapping(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappings() + .define("sampleCrossTenantMapping") + .withExistingBackupVault("000pikumar", "PratikPrivatePreviewVault1") + .withProperties(new CrossTenantVaultMappingProperties().withSourceVaultId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/sourceRG/providers/Microsoft.DataProtection/backupVaults/sourceVault") + .withResourceGuardOperationRequests(Arrays.asList( + "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupResourceGuardProxies/swaggerExample"))) + .create(); + } +} +``` + +### DppCrossTenantVaultMappings_Get + +```java +/** + * Samples for DppCrossTenantVaultMappings Get. + */ +public final class DppCrossTenantVaultMappingsGetSamples { + /* + * x-ms-original-file: 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappings_Get.json + */ + /** + * Sample code: Get a cross-tenant vault mapping. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getACrossTenantVaultMapping(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappings() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", + com.azure.core.util.Context.NONE); + } +} +``` + +### DppCrossTenantVaultMappings_List + +```java +/** + * Samples for DppCrossTenantVaultMappings List. + */ +public final class DppCrossTenantVaultMappingsListSamples { + /* + * x-ms-original-file: 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappings_List.json + */ + /** + * Sample code: List cross-tenant vault mappings in a vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + listCrossTenantVaultMappingsInAVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappings() + .list("000pikumar", "PratikPrivatePreviewVault1", com.azure.core.util.Context.NONE); + } +} +``` + +### DppCrossTenantVaultMappings_Remove + +```java + +/** + * Samples for DppCrossTenantVaultMappings Remove. + */ +public final class DppCrossTenantVaultMappingsRemoveSamples { + /* + * x-ms-original-file: 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappings_Remove.json + */ + /** + * Sample code: Remove a cross-tenant vault mapping. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + removeACrossTenantVaultMapping(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappings() + .removeWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", null, + com.azure.core.util.Context.NONE); + } +} +``` + ### DppResourceGuardProxy_CreateOrUpdate ```java @@ -2347,7 +2586,7 @@ import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; */ public final class DppResourceGuardProxyCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/PutResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/PutResourceGuardProxy.json */ /** * Sample code: Create ResourceGuardProxy. @@ -2374,7 +2613,7 @@ public final class DppResourceGuardProxyCreateOrUpdateSamples { */ public final class DppResourceGuardProxyDeleteSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json */ /** * Sample code: Delete ResourceGuardProxy. @@ -2398,7 +2637,7 @@ public final class DppResourceGuardProxyDeleteSamples { */ public final class DppResourceGuardProxyGetSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/GetResourceGuardProxy.json */ /** * Sample code: Get ResourceGuardProxy. @@ -2420,7 +2659,7 @@ public final class DppResourceGuardProxyGetSamples { */ public final class DppResourceGuardProxyListSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/ListResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/ListResourceGuardProxy.json */ /** * Sample code: Get ResourceGuardProxies. @@ -2444,7 +2683,7 @@ import java.util.Arrays; */ public final class DppResourceGuardProxyUnlockDeleteSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json */ /** * Sample code: UnlockDelete ResourceGuardProxy. @@ -2472,7 +2711,7 @@ public final class DppResourceGuardProxyUnlockDeleteSamples { */ public final class ExportJobsTriggerSamples { /* - * x-ms-original-file: 2026-07-01/JobCRUD/TriggerExportJobs.json + * x-ms-original-file: 2026-08-31-preview/JobCRUD/TriggerExportJobs.json */ /** * Sample code: Trigger Export Jobs. @@ -2493,7 +2732,7 @@ public final class ExportJobsTriggerSamples { */ public final class ExportJobsOperationResultGetSamples { /* - * x-ms-original-file: 2026-07-01/JobCRUD/GetExportJobsOperationResult.json + * x-ms-original-file: 2026-08-31-preview/JobCRUD/GetExportJobsOperationResult.json */ /** * Sample code: Get Export Jobs Operation Result. @@ -2519,7 +2758,7 @@ import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobRequ */ public final class FetchCrossRegionRestoreJobGetSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/FetchCrossRegionRestoreJob.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/FetchCrossRegionRestoreJob.json */ /** * Sample code: Get Cross Region Restore Job. @@ -2547,7 +2786,7 @@ import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobsReq */ public final class FetchCrossRegionRestoreJobsOperationListSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/FetchCrossRegionRestoreJobs.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/FetchCrossRegionRestoreJobs.json */ /** * Sample code: List Cross Region Restore Jobs. @@ -2575,7 +2814,7 @@ import com.azure.resourcemanager.dataprotection.models.FetchSecondaryRPsRequestP */ public final class FetchSecondaryRecoveryPointsListSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/FetchSecondaryRPs.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/FetchSecondaryRPs.json */ /** * Sample code: Fetch SecondaryRPs. @@ -2592,6 +2831,30 @@ public final class FetchSecondaryRecoveryPointsListSamples { } ``` +### JobFromDppCrossTenantVault_Get + +```java +/** + * Samples for JobFromDppCrossTenantVault Get. + */ +public final class JobFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: 2026-08-31-preview/CrossTenantVaultMappingOperations/JobFromDppCrossTenantVault_Get.json + */ + /** + * Sample code: Get a job from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getAJobFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.jobFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", + "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE); + } +} +``` + ### Jobs_Get ```java @@ -2600,7 +2863,7 @@ public final class FetchSecondaryRecoveryPointsListSamples { */ public final class JobsGetSamples { /* - * x-ms-original-file: 2026-07-01/JobCRUD/GetJob.json + * x-ms-original-file: 2026-08-31-preview/JobCRUD/GetJob.json */ /** * Sample code: Get Job. @@ -2623,7 +2886,7 @@ public final class JobsGetSamples { */ public final class JobsListSamples { /* - * x-ms-original-file: 2026-07-01/JobCRUD/ListJobs.json + * x-ms-original-file: 2026-08-31-preview/JobCRUD/ListJobs.json */ /** * Sample code: Get Jobs. @@ -2644,7 +2907,7 @@ public final class JobsListSamples { */ public final class OperationResultGetSamples { /* - * x-ms-original-file: 2026-07-01/GetOperationResult.json + * x-ms-original-file: 2026-08-31-preview/GetOperationResult.json */ /** * Sample code: Get OperationResult. @@ -2668,7 +2931,7 @@ public final class OperationResultGetSamples { */ public final class OperationStatusGetSamples { /* - * x-ms-original-file: 2026-07-01/GetOperationStatus.json + * x-ms-original-file: 2026-08-31-preview/GetOperationStatus.json */ /** * Sample code: Get OperationStatus. @@ -2692,7 +2955,7 @@ public final class OperationStatusGetSamples { */ public final class OperationStatusBackupVaultContextGetSamples { /* - * x-ms-original-file: 2026-07-01/GetOperationStatusVaultContext.json + * x-ms-original-file: 2026-08-31-preview/GetOperationStatusVaultContext.json */ /** * Sample code: Get OperationStatus. @@ -2716,7 +2979,7 @@ public final class OperationStatusBackupVaultContextGetSamples { */ public final class OperationStatusResourceGroupContextGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/GetOperationStatusRGContext.json + * x-ms-original-file: 2026-08-31-preview/GetOperationStatusRGContext.json */ /** * Sample code: Get OperationStatus. @@ -2732,6 +2995,31 @@ public final class OperationStatusResourceGroupContextGetByResourceGroupSamples } ``` +### RecoveryPointFromDppCrossTenantVault_Get + +```java +/** + * Samples for RecoveryPointFromDppCrossTenantVault Get. + */ +public final class RecoveryPointFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/RecoveryPointFromDppCrossTenantVault_Get.json + */ + /** + * Sample code: Get a recovery point from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getARecoveryPointFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.recoveryPointFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + "hardcodedRP", com.azure.core.util.Context.NONE); + } +} +``` + ### RecoveryPoints_Get ```java @@ -2740,7 +3028,7 @@ public final class OperationStatusResourceGroupContextGetByResourceGroupSamples */ public final class RecoveryPointsGetSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetRecoveryPoint.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/GetRecoveryPoint.json */ /** * Sample code: Get Recovery Point. @@ -2763,7 +3051,7 @@ public final class RecoveryPointsGetSamples { */ public final class RecoveryPointsListSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ListRecoveryPoints.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ListRecoveryPoints.json */ /** * Sample code: List Recovery Points in a Vault. @@ -2779,6 +3067,31 @@ public final class RecoveryPointsListSamples { } ``` +### RecoveryPointsFromDppCrossTenantVault_List + +```java +/** + * Samples for RecoveryPointsFromDppCrossTenantVault List. + */ +public final class RecoveryPointsFromDppCrossTenantVaultListSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/RecoveryPointsFromDppCrossTenantVault_List.json + */ + /** + * Sample code: List recovery points from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void listRecoveryPointsFromACrossTenantVault( + com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.recoveryPointsFromDppCrossTenantVaults() + .list("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", null, + com.azure.core.util.Context.NONE); + } +} +``` + ### ResourceGuards_Delete ```java @@ -2787,7 +3100,7 @@ public final class RecoveryPointsListSamples { */ public final class ResourceGuardsDeleteSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/DeleteResourceGuard.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/DeleteResourceGuard.json */ /** * Sample code: Delete ResourceGuard. @@ -2810,7 +3123,7 @@ public final class ResourceGuardsDeleteSamples { */ public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListBackupSecurityPINRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/ListBackupSecurityPINRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -2834,7 +3147,7 @@ public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples { */ public final class ResourceGuardsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetResourceGuard.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/GetResourceGuard.json */ /** * Sample code: Get ResourceGuard. @@ -2856,7 +3169,7 @@ public final class ResourceGuardsGetByResourceGroupSamples { */ public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -2880,7 +3193,7 @@ public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample */ public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -2904,7 +3217,7 @@ public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamp */ public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -2928,7 +3241,7 @@ public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjec */ public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -2952,7 +3265,7 @@ public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample */ public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -2976,7 +3289,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamp */ public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json */ /** * Sample code: Get DefaultOperationsRequestObject. @@ -3000,7 +3313,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectS */ public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -3024,7 +3337,7 @@ public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples { */ public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -3048,7 +3361,7 @@ public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSampl */ public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -3072,7 +3385,7 @@ public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples { */ public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -3096,7 +3409,7 @@ public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples { */ public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json */ /** * Sample code: List OperationsRequestObject. @@ -3120,7 +3433,7 @@ public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples */ public final class ResourceGuardsListSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetResourceGuardsInSubscription.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/GetResourceGuardsInSubscription.json */ /** * Sample code: Get ResourceGuards in Subscription. @@ -3142,7 +3455,7 @@ public final class ResourceGuardsListSamples { */ public final class ResourceGuardsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json */ /** * Sample code: Get ResourceGuards in ResourceGroup. @@ -3168,7 +3481,7 @@ import java.util.Map; */ public final class ResourceGuardsPatchSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/PatchResourceGuard.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/PatchResourceGuard.json */ /** * Sample code: Patch ResourceGuard. @@ -3207,7 +3520,7 @@ import java.util.Map; */ public final class ResourceGuardsPutSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/PutResourceGuard.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardCRUD/PutResourceGuard.json */ /** * Sample code: Create ResourceGuard. @@ -3248,7 +3561,7 @@ import com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreTyp */ public final class RestorableTimeRangesFindSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/FindRestorableTimeRanges.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/FindRestorableTimeRanges.json */ /** * Sample code: Find Restorable Time Ranges. @@ -3268,3 +3581,171 @@ public final class RestorableTimeRangesFindSamples { } ``` +### RestorableTimeRangesFromDppCrossTenantVault_Find + +```java +import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest; +import com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreType; + +/** + * Samples for RestorableTimeRangesFromDppCrossTenantVault Find. + */ +public final class RestorableTimeRangesFromDppCrossTenantVaultFindSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/RestorableTimeRangesFromDppCrossTenantVault_Find.json + */ + /** + * Sample code: Find restorable time ranges from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void findRestorableTimeRangesFromACrossTenantVault( + com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.restorableTimeRangesFromDppCrossTenantVaults() + .findWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + new AzureBackupFindRestorableTimeRangesRequest() + .withSourceDataStoreType(RestoreSourceDataStoreType.OPERATIONAL_STORE) + .withStartTime("2020-10-17T23:28:17.6829685Z") + .withEndTime("2021-02-24T00:35:17.6829685Z"), + com.azure.core.util.Context.NONE); + } +} +``` + +### RestoresFromDppCrossTenantVault_Trigger + +```java +import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest; +import com.azure.resourcemanager.dataprotection.models.Datasource; +import com.azure.resourcemanager.dataprotection.models.DatasourceSet; +import com.azure.resourcemanager.dataprotection.models.IdentityDetails; +import com.azure.resourcemanager.dataprotection.models.RecoveryOption; +import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo; +import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials; +import com.azure.resourcemanager.dataprotection.models.SecretStoreResource; +import com.azure.resourcemanager.dataprotection.models.SecretStoreType; +import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; + +/** + * Samples for RestoresFromDppCrossTenantVault Trigger. + */ +public final class RestoresFromDppCrossTenantVaultTriggerSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/RestoresFromDppCrossTenantVault_Trigger.json + */ + /** + * Sample code: Trigger restore from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + triggerRestoreFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.restoresFromDppCrossTenantVaults() + .trigger("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + new AzureBackupRecoveryPointBasedRestoreRequest().withRestoreTargetInfo(new RestoreTargetInfo() + .withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) + .withRestoreLocation("southeastasia") + .withDatasourceInfo(new Datasource() + .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withObjectType("Datasource") + .withResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb") + .withResourceLocation("") + .withResourceName("targetdb") + .withResourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withResourceUri("")) + .withDatasourceSetInfo(new DatasourceSet() + .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withObjectType("DatasourceSet") + .withResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest") + .withResourceLocation("") + .withResourceName("viveksipgtest") + .withResourceType("Microsoft.DBforPostgreSQL/servers") + .withResourceUri("")) + .withDatasourceAuthCredentials(new SecretStoreBasedAuthCredentials().withSecretStoreResource( + new SecretStoreResource().withUri("https://samplevault.vault.azure.net/secrets/credentials") + .withSecretStoreType(SecretStoreType.AZURE_KEY_VAULT)))) + .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE) + .withSourceResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb") + .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) + .withUserAssignedIdentityArmUrl( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami")) + .withRecoveryPointId("hardcodedRP"), + com.azure.core.util.Context.NONE); + } +} +``` + +### ValidateRestoreFromDppCrossTenantVault_Trigger + +```java +import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest; +import com.azure.resourcemanager.dataprotection.models.Datasource; +import com.azure.resourcemanager.dataprotection.models.DatasourceSet; +import com.azure.resourcemanager.dataprotection.models.IdentityDetails; +import com.azure.resourcemanager.dataprotection.models.RecoveryOption; +import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo; +import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials; +import com.azure.resourcemanager.dataprotection.models.SecretStoreResource; +import com.azure.resourcemanager.dataprotection.models.SecretStoreType; +import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; +import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject; + +/** + * Samples for ValidateRestoreFromDppCrossTenantVault Trigger. + */ +public final class ValidateRestoreFromDppCrossTenantVaultTriggerSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/ValidateRestoreFromDppCrossTenantVault_Trigger.json + */ + /** + * Sample code: Validate restore from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + validateRestoreFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.validateRestoreFromDppCrossTenantVaults() + .trigger("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + new ValidateRestoreRequestObject().withRestoreRequestObject( + new AzureBackupRecoveryPointBasedRestoreRequest().withRestoreTargetInfo(new RestoreTargetInfo() + .withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) + .withRestoreLocation("southeastasia") + .withDatasourceInfo(new Datasource() + .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withObjectType("Datasource") + .withResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb") + .withResourceLocation("") + .withResourceName("targetdb") + .withResourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withResourceUri("")) + .withDatasourceSetInfo(new DatasourceSet() + .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withObjectType("DatasourceSet") + .withResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest") + .withResourceLocation("") + .withResourceName("viveksipgtest") + .withResourceType("Microsoft.DBforPostgreSQL/servers") + .withResourceUri("")) + .withDatasourceAuthCredentials(new SecretStoreBasedAuthCredentials().withSecretStoreResource( + new SecretStoreResource().withUri("https://samplevault.vault.azure.net/secrets/credentials") + .withSecretStoreType(SecretStoreType.AZURE_KEY_VAULT)))) + .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE) + .withSourceResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb") + .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) + .withUserAssignedIdentityArmUrl( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami")) + .withRecoveryPointId("hardcodedRP")), + com.azure.core.util.Context.NONE); + } +} +``` + diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml b/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml index d287a5c52a2d5..7ba0fb05d9d49 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for Data Protection Management - This package contains Microsoft Azure SDK for Data Protection 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 api-version 2026-07-01. + This package contains Microsoft Azure SDK for Data Protection 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 api-version 2026-08-31-preview. 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 941d2e6a40e59..7d76a7a3d59f0 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 @@ -25,8 +25,13 @@ import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.dataprotection.fluent.DataProtectionManagementClient; +import com.azure.resourcemanager.dataprotection.implementation.BackupInstanceFromDppCrossTenantVaultsImpl; +import com.azure.resourcemanager.dataprotection.implementation.BackupInstanceOperationResultFromDppCrossTenantVaultsImpl; +import com.azure.resourcemanager.dataprotection.implementation.BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl; import com.azure.resourcemanager.dataprotection.implementation.BackupInstancesExtensionRoutingsImpl; +import com.azure.resourcemanager.dataprotection.implementation.BackupInstancesFromDppCrossTenantVaultsImpl; import com.azure.resourcemanager.dataprotection.implementation.BackupInstancesImpl; +import com.azure.resourcemanager.dataprotection.implementation.BackupJobsFromDppCrossTenantVaultsImpl; import com.azure.resourcemanager.dataprotection.implementation.BackupPoliciesImpl; import com.azure.resourcemanager.dataprotection.implementation.BackupVaultOperationResultsImpl; import com.azure.resourcemanager.dataprotection.implementation.BackupVaultsImpl; @@ -35,22 +40,35 @@ import com.azure.resourcemanager.dataprotection.implementation.DataProtectionsImpl; import com.azure.resourcemanager.dataprotection.implementation.DeletedBackupInstancesImpl; import com.azure.resourcemanager.dataprotection.implementation.DeletedBackupVaultsImpl; +import com.azure.resourcemanager.dataprotection.implementation.DppCrossTenantVaultMappingStatusImpl; +import com.azure.resourcemanager.dataprotection.implementation.DppCrossTenantVaultMappingsImpl; 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.FetchCrossRegionRestoreJobsImpl; import com.azure.resourcemanager.dataprotection.implementation.FetchCrossRegionRestoreJobsOperationsImpl; import com.azure.resourcemanager.dataprotection.implementation.FetchSecondaryRecoveryPointsImpl; +import com.azure.resourcemanager.dataprotection.implementation.JobFromDppCrossTenantVaultsImpl; import com.azure.resourcemanager.dataprotection.implementation.JobsImpl; import com.azure.resourcemanager.dataprotection.implementation.OperationResultsImpl; import com.azure.resourcemanager.dataprotection.implementation.OperationStatusBackupVaultContextsImpl; import com.azure.resourcemanager.dataprotection.implementation.OperationStatusImpl; import com.azure.resourcemanager.dataprotection.implementation.OperationStatusResourceGroupContextsImpl; +import com.azure.resourcemanager.dataprotection.implementation.RecoveryPointFromDppCrossTenantVaultsImpl; +import com.azure.resourcemanager.dataprotection.implementation.RecoveryPointsFromDppCrossTenantVaultsImpl; import com.azure.resourcemanager.dataprotection.implementation.RecoveryPointsImpl; import com.azure.resourcemanager.dataprotection.implementation.ResourceGuardsImpl; +import com.azure.resourcemanager.dataprotection.implementation.RestorableTimeRangesFromDppCrossTenantVaultsImpl; import com.azure.resourcemanager.dataprotection.implementation.RestorableTimeRangesImpl; +import com.azure.resourcemanager.dataprotection.implementation.RestoresFromDppCrossTenantVaultsImpl; +import com.azure.resourcemanager.dataprotection.implementation.ValidateRestoreFromDppCrossTenantVaultsImpl; +import com.azure.resourcemanager.dataprotection.models.BackupInstanceFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.BackupInstanceOperationResultFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.BackupInstanceOperationStatusFromDppCrossTenantVaults; import com.azure.resourcemanager.dataprotection.models.BackupInstances; import com.azure.resourcemanager.dataprotection.models.BackupInstancesExtensionRoutings; +import com.azure.resourcemanager.dataprotection.models.BackupInstancesFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.BackupJobsFromDppCrossTenantVaults; import com.azure.resourcemanager.dataprotection.models.BackupPolicies; import com.azure.resourcemanager.dataprotection.models.BackupVaultOperationResults; import com.azure.resourcemanager.dataprotection.models.BackupVaults; @@ -58,20 +76,28 @@ import com.azure.resourcemanager.dataprotection.models.DataProtections; import com.azure.resourcemanager.dataprotection.models.DeletedBackupInstances; import com.azure.resourcemanager.dataprotection.models.DeletedBackupVaults; +import com.azure.resourcemanager.dataprotection.models.DppCrossTenantVaultMappingStatus; +import com.azure.resourcemanager.dataprotection.models.DppCrossTenantVaultMappings; 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.FetchCrossRegionRestoreJobs; import com.azure.resourcemanager.dataprotection.models.FetchCrossRegionRestoreJobsOperations; import com.azure.resourcemanager.dataprotection.models.FetchSecondaryRecoveryPoints; +import com.azure.resourcemanager.dataprotection.models.JobFromDppCrossTenantVaults; import com.azure.resourcemanager.dataprotection.models.Jobs; import com.azure.resourcemanager.dataprotection.models.OperationResults; import com.azure.resourcemanager.dataprotection.models.OperationStatus; import com.azure.resourcemanager.dataprotection.models.OperationStatusBackupVaultContexts; import com.azure.resourcemanager.dataprotection.models.OperationStatusResourceGroupContexts; +import com.azure.resourcemanager.dataprotection.models.RecoveryPointFromDppCrossTenantVaults; import com.azure.resourcemanager.dataprotection.models.RecoveryPoints; +import com.azure.resourcemanager.dataprotection.models.RecoveryPointsFromDppCrossTenantVaults; import com.azure.resourcemanager.dataprotection.models.ResourceGuards; import com.azure.resourcemanager.dataprotection.models.RestorableTimeRanges; +import com.azure.resourcemanager.dataprotection.models.RestorableTimeRangesFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.RestoresFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.ValidateRestoreFromDppCrossTenantVaults; import java.time.Duration; import java.time.temporal.ChronoUnit; import java.util.ArrayList; @@ -95,6 +121,32 @@ public final class DataProtectionManager { private ResourceGuards resourceGuards; + private DppCrossTenantVaultMappings dppCrossTenantVaultMappings; + + private DppCrossTenantVaultMappingStatus dppCrossTenantVaultMappingStatus; + + private BackupInstancesFromDppCrossTenantVaults backupInstancesFromDppCrossTenantVaults; + + private BackupInstanceFromDppCrossTenantVaults backupInstanceFromDppCrossTenantVaults; + + private RestoresFromDppCrossTenantVaults restoresFromDppCrossTenantVaults; + + private ValidateRestoreFromDppCrossTenantVaults validateRestoreFromDppCrossTenantVaults; + + private RestorableTimeRangesFromDppCrossTenantVaults restorableTimeRangesFromDppCrossTenantVaults; + + private RecoveryPointsFromDppCrossTenantVaults recoveryPointsFromDppCrossTenantVaults; + + private RecoveryPointFromDppCrossTenantVaults recoveryPointFromDppCrossTenantVaults; + + private BackupJobsFromDppCrossTenantVaults backupJobsFromDppCrossTenantVaults; + + private JobFromDppCrossTenantVaults jobFromDppCrossTenantVaults; + + private BackupInstanceOperationStatusFromDppCrossTenantVaults backupInstanceOperationStatusFromDppCrossTenantVaults; + + private BackupInstanceOperationResultFromDppCrossTenantVaults backupInstanceOperationResultFromDppCrossTenantVaults; + private BackupVaults backupVaults; private OperationStatusBackupVaultContexts operationStatusBackupVaultContexts; @@ -408,6 +460,179 @@ public ResourceGuards resourceGuards() { return resourceGuards; } + /** + * Gets the resource collection API of DppCrossTenantVaultMappings. It manages CrossTenantVaultMapping. + * + * @return Resource collection API of DppCrossTenantVaultMappings. + */ + public DppCrossTenantVaultMappings dppCrossTenantVaultMappings() { + if (this.dppCrossTenantVaultMappings == null) { + this.dppCrossTenantVaultMappings + = new DppCrossTenantVaultMappingsImpl(clientObject.getDppCrossTenantVaultMappings(), this); + } + return dppCrossTenantVaultMappings; + } + + /** + * Gets the resource collection API of DppCrossTenantVaultMappingStatus. + * + * @return Resource collection API of DppCrossTenantVaultMappingStatus. + */ + public DppCrossTenantVaultMappingStatus dppCrossTenantVaultMappingStatus() { + if (this.dppCrossTenantVaultMappingStatus == null) { + this.dppCrossTenantVaultMappingStatus + = new DppCrossTenantVaultMappingStatusImpl(clientObject.getDppCrossTenantVaultMappingStatus(), this); + } + return dppCrossTenantVaultMappingStatus; + } + + /** + * Gets the resource collection API of BackupInstancesFromDppCrossTenantVaults. + * + * @return Resource collection API of BackupInstancesFromDppCrossTenantVaults. + */ + public BackupInstancesFromDppCrossTenantVaults backupInstancesFromDppCrossTenantVaults() { + if (this.backupInstancesFromDppCrossTenantVaults == null) { + this.backupInstancesFromDppCrossTenantVaults = new BackupInstancesFromDppCrossTenantVaultsImpl( + clientObject.getBackupInstancesFromDppCrossTenantVaults(), this); + } + return backupInstancesFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of BackupInstanceFromDppCrossTenantVaults. + * + * @return Resource collection API of BackupInstanceFromDppCrossTenantVaults. + */ + public BackupInstanceFromDppCrossTenantVaults backupInstanceFromDppCrossTenantVaults() { + if (this.backupInstanceFromDppCrossTenantVaults == null) { + this.backupInstanceFromDppCrossTenantVaults = new BackupInstanceFromDppCrossTenantVaultsImpl( + clientObject.getBackupInstanceFromDppCrossTenantVaults(), this); + } + return backupInstanceFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of RestoresFromDppCrossTenantVaults. + * + * @return Resource collection API of RestoresFromDppCrossTenantVaults. + */ + public RestoresFromDppCrossTenantVaults restoresFromDppCrossTenantVaults() { + if (this.restoresFromDppCrossTenantVaults == null) { + this.restoresFromDppCrossTenantVaults + = new RestoresFromDppCrossTenantVaultsImpl(clientObject.getRestoresFromDppCrossTenantVaults(), this); + } + return restoresFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of ValidateRestoreFromDppCrossTenantVaults. + * + * @return Resource collection API of ValidateRestoreFromDppCrossTenantVaults. + */ + public ValidateRestoreFromDppCrossTenantVaults validateRestoreFromDppCrossTenantVaults() { + if (this.validateRestoreFromDppCrossTenantVaults == null) { + this.validateRestoreFromDppCrossTenantVaults = new ValidateRestoreFromDppCrossTenantVaultsImpl( + clientObject.getValidateRestoreFromDppCrossTenantVaults(), this); + } + return validateRestoreFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of RestorableTimeRangesFromDppCrossTenantVaults. + * + * @return Resource collection API of RestorableTimeRangesFromDppCrossTenantVaults. + */ + public RestorableTimeRangesFromDppCrossTenantVaults restorableTimeRangesFromDppCrossTenantVaults() { + if (this.restorableTimeRangesFromDppCrossTenantVaults == null) { + this.restorableTimeRangesFromDppCrossTenantVaults = new RestorableTimeRangesFromDppCrossTenantVaultsImpl( + clientObject.getRestorableTimeRangesFromDppCrossTenantVaults(), this); + } + return restorableTimeRangesFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of RecoveryPointsFromDppCrossTenantVaults. + * + * @return Resource collection API of RecoveryPointsFromDppCrossTenantVaults. + */ + public RecoveryPointsFromDppCrossTenantVaults recoveryPointsFromDppCrossTenantVaults() { + if (this.recoveryPointsFromDppCrossTenantVaults == null) { + this.recoveryPointsFromDppCrossTenantVaults = new RecoveryPointsFromDppCrossTenantVaultsImpl( + clientObject.getRecoveryPointsFromDppCrossTenantVaults(), this); + } + return recoveryPointsFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of RecoveryPointFromDppCrossTenantVaults. + * + * @return Resource collection API of RecoveryPointFromDppCrossTenantVaults. + */ + public RecoveryPointFromDppCrossTenantVaults recoveryPointFromDppCrossTenantVaults() { + if (this.recoveryPointFromDppCrossTenantVaults == null) { + this.recoveryPointFromDppCrossTenantVaults = new RecoveryPointFromDppCrossTenantVaultsImpl( + clientObject.getRecoveryPointFromDppCrossTenantVaults(), this); + } + return recoveryPointFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of BackupJobsFromDppCrossTenantVaults. + * + * @return Resource collection API of BackupJobsFromDppCrossTenantVaults. + */ + public BackupJobsFromDppCrossTenantVaults backupJobsFromDppCrossTenantVaults() { + if (this.backupJobsFromDppCrossTenantVaults == null) { + this.backupJobsFromDppCrossTenantVaults = new BackupJobsFromDppCrossTenantVaultsImpl( + clientObject.getBackupJobsFromDppCrossTenantVaults(), this); + } + return backupJobsFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of JobFromDppCrossTenantVaults. + * + * @return Resource collection API of JobFromDppCrossTenantVaults. + */ + public JobFromDppCrossTenantVaults jobFromDppCrossTenantVaults() { + if (this.jobFromDppCrossTenantVaults == null) { + this.jobFromDppCrossTenantVaults + = new JobFromDppCrossTenantVaultsImpl(clientObject.getJobFromDppCrossTenantVaults(), this); + } + return jobFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of BackupInstanceOperationStatusFromDppCrossTenantVaults. + * + * @return Resource collection API of BackupInstanceOperationStatusFromDppCrossTenantVaults. + */ + public BackupInstanceOperationStatusFromDppCrossTenantVaults + backupInstanceOperationStatusFromDppCrossTenantVaults() { + if (this.backupInstanceOperationStatusFromDppCrossTenantVaults == null) { + this.backupInstanceOperationStatusFromDppCrossTenantVaults + = new BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl( + clientObject.getBackupInstanceOperationStatusFromDppCrossTenantVaults(), this); + } + return backupInstanceOperationStatusFromDppCrossTenantVaults; + } + + /** + * Gets the resource collection API of BackupInstanceOperationResultFromDppCrossTenantVaults. + * + * @return Resource collection API of BackupInstanceOperationResultFromDppCrossTenantVaults. + */ + public BackupInstanceOperationResultFromDppCrossTenantVaults + backupInstanceOperationResultFromDppCrossTenantVaults() { + if (this.backupInstanceOperationResultFromDppCrossTenantVaults == null) { + this.backupInstanceOperationResultFromDppCrossTenantVaults + = new BackupInstanceOperationResultFromDppCrossTenantVaultsImpl( + clientObject.getBackupInstanceOperationResultFromDppCrossTenantVaults(), this); + } + return backupInstanceOperationResultFromDppCrossTenantVaults; + } + /** * Gets the resource collection API of BackupVaults. It manages BackupVaultResource. * diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..79ee519d363d5 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceFromDppCrossTenantVaultsClient.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner; + +/** + * An instance of this class provides access to all the operations defined in + * BackupInstanceFromDppCrossTenantVaultsClient. + */ +public interface BackupInstanceFromDppCrossTenantVaultsClient { + /** + * Gets a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @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 backup instance of the mapped source vault in a different tenant along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, Context context); + + /** + * Gets a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @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 backup instance of the mapped source vault in a different tenant. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CrossTenantBackupInstanceResourceInner get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationResultFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationResultFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..465bb241e45b4 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationResultFromDppCrossTenantVaultsClient.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.util.Context; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; +import com.azure.resourcemanager.dataprotection.models.BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse; + +/** + * An instance of this class provides access to all the operations defined in + * BackupInstanceOperationResultFromDppCrossTenantVaultsClient. + */ +public interface BackupInstanceOperationResultFromDppCrossTenantVaultsClient { + /** + * Fetches the result of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the + * mapped source vault - the leg the restore's Location header points at. Returns 202 with Location/Retry-After + * while pending, and 200 with the operation result body when complete. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse getWithResponse(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, String operationId, Context context); + + /** + * Fetches the result of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the + * mapped source vault - the leg the restore's Location header points at. Returns 202 with Location/Retry-After + * while pending, and 200 with the operation result body when complete. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationJobExtendedInfoInner get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationStatusFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationStatusFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..4566608113625 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationStatusFromDppCrossTenantVaultsClient.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner; + +/** + * An instance of this class provides access to all the operations defined in + * BackupInstanceOperationStatusFromDppCrossTenantVaultsClient. + */ +public interface BackupInstanceOperationStatusFromDppCrossTenantVaultsClient { + /** + * Gets the status of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the mapped + * source vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 status of a cross-tenant operation (e.g along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId, Context context); + + /** + * Gets the status of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the mapped + * source vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 status of a cross-tenant operation (e.g. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationResourceInner get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..df9c1ca0d7f3c --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesFromDppCrossTenantVaultsClient.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.CrossTenantBackupInstanceResourceInner; + +/** + * An instance of this class provides access to all the operations defined in + * BackupInstancesFromDppCrossTenantVaultsClient. + */ +public interface BackupInstancesFromDppCrossTenantVaultsClient { + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 cross-tenant BackupInstance resource list response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String vaultName, + String mappingName); + + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 cross-tenant BackupInstance resource list response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupJobsFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupJobsFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..3bb237d6df95e --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupJobsFromDppCrossTenantVaultsClient.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.AzureBackupJobResourceInner; + +/** + * An instance of this class provides access to all the operations defined in BackupJobsFromDppCrossTenantVaultsClient. + */ +public interface BackupJobsFromDppCrossTenantVaultsClient { + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 AzureBackup Job resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String vaultName, String mappingName); + + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 AzureBackup Job resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String vaultName, String mappingName, + Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionManagementClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionManagementClient.java index b3746ad1cd5f9..5566cc0d5e66d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionManagementClient.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionManagementClient.java @@ -81,6 +81,99 @@ public interface DataProtectionManagementClient { */ ResourceGuardsClient getResourceGuards(); + /** + * Gets the DppCrossTenantVaultMappingsClient object to access its operations. + * + * @return the DppCrossTenantVaultMappingsClient object. + */ + DppCrossTenantVaultMappingsClient getDppCrossTenantVaultMappings(); + + /** + * Gets the DppCrossTenantVaultMappingStatusClient object to access its operations. + * + * @return the DppCrossTenantVaultMappingStatusClient object. + */ + DppCrossTenantVaultMappingStatusClient getDppCrossTenantVaultMappingStatus(); + + /** + * Gets the BackupInstancesFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupInstancesFromDppCrossTenantVaultsClient object. + */ + BackupInstancesFromDppCrossTenantVaultsClient getBackupInstancesFromDppCrossTenantVaults(); + + /** + * Gets the BackupInstanceFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupInstanceFromDppCrossTenantVaultsClient object. + */ + BackupInstanceFromDppCrossTenantVaultsClient getBackupInstanceFromDppCrossTenantVaults(); + + /** + * Gets the RestoresFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the RestoresFromDppCrossTenantVaultsClient object. + */ + RestoresFromDppCrossTenantVaultsClient getRestoresFromDppCrossTenantVaults(); + + /** + * Gets the ValidateRestoreFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the ValidateRestoreFromDppCrossTenantVaultsClient object. + */ + ValidateRestoreFromDppCrossTenantVaultsClient getValidateRestoreFromDppCrossTenantVaults(); + + /** + * Gets the RestorableTimeRangesFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the RestorableTimeRangesFromDppCrossTenantVaultsClient object. + */ + RestorableTimeRangesFromDppCrossTenantVaultsClient getRestorableTimeRangesFromDppCrossTenantVaults(); + + /** + * Gets the RecoveryPointsFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the RecoveryPointsFromDppCrossTenantVaultsClient object. + */ + RecoveryPointsFromDppCrossTenantVaultsClient getRecoveryPointsFromDppCrossTenantVaults(); + + /** + * Gets the RecoveryPointFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the RecoveryPointFromDppCrossTenantVaultsClient object. + */ + RecoveryPointFromDppCrossTenantVaultsClient getRecoveryPointFromDppCrossTenantVaults(); + + /** + * Gets the BackupJobsFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupJobsFromDppCrossTenantVaultsClient object. + */ + BackupJobsFromDppCrossTenantVaultsClient getBackupJobsFromDppCrossTenantVaults(); + + /** + * Gets the JobFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the JobFromDppCrossTenantVaultsClient object. + */ + JobFromDppCrossTenantVaultsClient getJobFromDppCrossTenantVaults(); + + /** + * Gets the BackupInstanceOperationStatusFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupInstanceOperationStatusFromDppCrossTenantVaultsClient object. + */ + BackupInstanceOperationStatusFromDppCrossTenantVaultsClient + getBackupInstanceOperationStatusFromDppCrossTenantVaults(); + + /** + * Gets the BackupInstanceOperationResultFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupInstanceOperationResultFromDppCrossTenantVaultsClient object. + */ + BackupInstanceOperationResultFromDppCrossTenantVaultsClient + getBackupInstanceOperationResultFromDppCrossTenantVaults(); + /** * Gets the BackupVaultsClient object to access its operations. * diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingStatusClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingStatusClient.java new file mode 100644 index 0000000000000..ebcd0fadcd736 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingStatusClient.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingStatusResponseInner; + +/** + * An instance of this class provides access to all the operations defined in DppCrossTenantVaultMappingStatusClient. + */ +public interface DppCrossTenantVaultMappingStatusClient { + /** + * Gets the status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + * + * @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 status (Active/Inactive) of a cross-tenant vault mapping from the source vault side along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response checkWithResponse(String resourceGroupName, String vaultName, + Context context); + + /** + * Gets the status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + * + * @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 status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CrossTenantVaultMappingStatusResponseInner check(String resourceGroupName, String vaultName); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingsClient.java new file mode 100644 index 0000000000000..afc8b1ef0f63d --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingsClient.java @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.CrossTenantVaultMappingInner; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequest; + +/** + * An instance of this class provides access to all the operations defined in DppCrossTenantVaultMappingsClient. + */ +public interface DppCrossTenantVaultMappingsClient { + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @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 cross-tenant vault mapping by name from the target vault along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, Context context); + + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @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 cross-tenant vault mapping by name from the target vault. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CrossTenantVaultMappingInner get(String resourceGroupName, String vaultName, String mappingName); + + /** + * Creates or updates a cross-tenant vault mapping under the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param resource Resource create parameters. + * @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 cross-tenant vault mapping resource for cross-tenant restore along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String vaultName, + String mappingName, CrossTenantVaultMappingInner resource, Context context); + + /** + * Creates or updates a cross-tenant vault mapping under the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param resource Resource create parameters. + * @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 cross-tenant vault mapping resource for cross-tenant restore. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CrossTenantVaultMappingInner createOrUpdate(String resourceGroupName, String vaultName, String mappingName, + CrossTenantVaultMappingInner resource); + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String vaultName); + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String vaultName, Context context); + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param body The content of the action request. + * @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 removeWithResponse(String resourceGroupName, String vaultName, String mappingName, + CrossTenantVaultMappingRemoveRequest body, Context context); + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @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 remove(String resourceGroupName, String vaultName, String mappingName); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..9a4ab10407a21 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobFromDppCrossTenantVaultsClient.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupJobResourceInner; + +/** + * An instance of this class provides access to all the operations defined in JobFromDppCrossTenantVaultsClient. + */ +public interface JobFromDppCrossTenantVaultsClient { + /** + * Gets a job of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param jobId The name of the AzureBackupJobResource. + * @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 job of the mapped source vault in a different tenant along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String jobId, Context context); + + /** + * Gets a job of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param jobId The name of the AzureBackupJobResource. + * @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 job of the mapped source vault in a different tenant. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AzureBackupJobResourceInner get(String resourceGroupName, String vaultName, String mappingName, String jobId); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..5ab3bb4d874cf --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointFromDppCrossTenantVaultsClient.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner; + +/** + * An instance of this class provides access to all the operations defined in + * RecoveryPointFromDppCrossTenantVaultsClient. + */ +public interface RecoveryPointFromDppCrossTenantVaultsClient { + /** + * Gets a vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param recoveryPointId The name of the AzureBackupRecoveryPointResource. + * @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 vault-tier recovery point for a backup instance of the mapped source vault in a different tenant along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String recoveryPointId, Context context); + + /** + * Gets a vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param recoveryPointId The name of the AzureBackupRecoveryPointResource. + * @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 vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AzureBackupRecoveryPointResourceInner get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String recoveryPointId); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..abd7c05771906 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsFromDppCrossTenantVaultsClient.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.AzureBackupRecoveryPointResourceInner; + +/** + * An instance of this class provides access to all the operations defined in + * RecoveryPointsFromDppCrossTenantVaultsClient. + */ +public interface RecoveryPointsFromDppCrossTenantVaultsClient { + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @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 azure backup recoveryPoint resource list as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName); + + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param filter OData filter options. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return azure backup recoveryPoint resource list as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String filter, Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..ddfa1006d610a --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesFromDppCrossTenantVaultsClient.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupFindRestorableTimeRangesResponseResourceInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest; + +/** + * An instance of this class provides access to all the operations defined in + * RestorableTimeRangesFromDppCrossTenantVaultsClient. + */ +public interface RestorableTimeRangesFromDppCrossTenantVaultsClient { + /** + * Finds the restorable time ranges for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 list Restore Ranges Response along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response findWithResponse(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, + AzureBackupFindRestorableTimeRangesRequest body, Context context); + + /** + * Finds the restorable time ranges for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 list Restore Ranges Response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AzureBackupFindRestorableTimeRangesResponseResourceInner find(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, AzureBackupFindRestorableTimeRangesRequest body); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestoresFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestoresFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..46db70effa613 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestoresFromDppCrossTenantVaultsClient.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; + +/** + * An instance of this class provides access to all the operations defined in RestoresFromDppCrossTenantVaultsClient. + */ +public interface RestoresFromDppCrossTenantVaultsClient { + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link SyncPoller} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationJobExtendedInfoInner> beginTrigger( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + AzureBackupRestoreRequest body); + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link SyncPoller} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationJobExtendedInfoInner> beginTrigger( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + AzureBackupRestoreRequest body, Context context); + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationJobExtendedInfoInner trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body); + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationJobExtendedInfoInner trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body, Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ValidateRestoreFromDppCrossTenantVaultsClient.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ValidateRestoreFromDppCrossTenantVaultsClient.java new file mode 100644 index 0000000000000..37e778c021448 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/ValidateRestoreFromDppCrossTenantVaultsClient.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; +import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject; + +/** + * An instance of this class provides access to all the operations defined in + * ValidateRestoreFromDppCrossTenantVaultsClient. + */ +public interface ValidateRestoreFromDppCrossTenantVaultsClient { + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link SyncPoller} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationJobExtendedInfoInner> beginTrigger( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + ValidateRestoreRequestObject body); + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link SyncPoller} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, OperationJobExtendedInfoInner> beginTrigger( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + ValidateRestoreRequestObject body, Context context); + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationJobExtendedInfoInner trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body); + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationJobExtendedInfoInner trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body, Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantBackupInstanceResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantBackupInstanceResourceInner.java new file mode 100644 index 0000000000000..789712b2c4cc8 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantBackupInstanceResourceInner.java @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.dataprotection.models.CrossTenantBackupInstance; +import java.io.IOException; +import java.util.Map; + +/** + * BackupInstance resource as returned by the cross-tenant read surface; its + * properties exclude SecretStoreResource.value. + */ +@Immutable +public final class CrossTenantBackupInstanceResourceInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private CrossTenantBackupInstance properties; + + /* + * Proxy Resource tags. + */ + private Map tags; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of CrossTenantBackupInstanceResourceInner class. + */ + private CrossTenantBackupInstanceResourceInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public CrossTenantBackupInstance properties() { + return this.properties; + } + + /** + * Get the tags property: Proxy Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantBackupInstanceResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantBackupInstanceResourceInner if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CrossTenantBackupInstanceResourceInner. + */ + public static CrossTenantBackupInstanceResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantBackupInstanceResourceInner deserializedCrossTenantBackupInstanceResourceInner + = new CrossTenantBackupInstanceResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedCrossTenantBackupInstanceResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedCrossTenantBackupInstanceResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedCrossTenantBackupInstanceResourceInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedCrossTenantBackupInstanceResourceInner.properties + = CrossTenantBackupInstance.fromJson(reader); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedCrossTenantBackupInstanceResourceInner.tags = tags; + } else if ("systemData".equals(fieldName)) { + deserializedCrossTenantBackupInstanceResourceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantBackupInstanceResourceInner; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingInner.java new file mode 100644 index 0000000000000..db25bc27f6303 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingInner.java @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingProperties; +import java.io.IOException; + +/** + * Cross-tenant vault mapping resource for cross-tenant restore. + */ +@Fluent +public final class CrossTenantVaultMappingInner extends ProxyResource { + /* + * CrossTenantVaultMapping properties. + */ + private CrossTenantVaultMappingProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of CrossTenantVaultMappingInner class. + */ + public CrossTenantVaultMappingInner() { + } + + /** + * Get the properties property: CrossTenantVaultMapping properties. + * + * @return the properties value. + */ + public CrossTenantVaultMappingProperties properties() { + return this.properties; + } + + /** + * Set the properties property: CrossTenantVaultMapping properties. + * + * @param properties the properties value to set. + * @return the CrossTenantVaultMappingInner object itself. + */ + public CrossTenantVaultMappingInner withProperties(CrossTenantVaultMappingProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantVaultMappingInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantVaultMappingInner if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CrossTenantVaultMappingInner. + */ + public static CrossTenantVaultMappingInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantVaultMappingInner deserializedCrossTenantVaultMappingInner = new CrossTenantVaultMappingInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedCrossTenantVaultMappingInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedCrossTenantVaultMappingInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedCrossTenantVaultMappingInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedCrossTenantVaultMappingInner.properties + = CrossTenantVaultMappingProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedCrossTenantVaultMappingInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantVaultMappingInner; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingStatusResponseInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingStatusResponseInner.java new file mode 100644 index 0000000000000..0cd13902e6e00 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingStatusResponseInner.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.dataprotection.models.VaultMappingState; +import java.io.IOException; + +/** + * Response for the cross-tenant vault mapping status check, from the source vault side. + */ +@Immutable +public final class CrossTenantVaultMappingStatusResponseInner + implements JsonSerializable { + /* + * Name of the cross-tenant vault mapping, if the source vault is mapped. + */ + private String mappingName; + + /* + * Current state of the cross-tenant vault mapping. + */ + private VaultMappingState mappingState; + + /** + * Creates an instance of CrossTenantVaultMappingStatusResponseInner class. + */ + private CrossTenantVaultMappingStatusResponseInner() { + } + + /** + * Get the mappingName property: Name of the cross-tenant vault mapping, if the source vault is mapped. + * + * @return the mappingName value. + */ + public String mappingName() { + return this.mappingName; + } + + /** + * Get the mappingState property: Current state of the cross-tenant vault mapping. + * + * @return the mappingState value. + */ + public VaultMappingState mappingState() { + return this.mappingState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("mappingName", this.mappingName); + jsonWriter.writeStringField("mappingState", this.mappingState == null ? null : this.mappingState.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantVaultMappingStatusResponseInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantVaultMappingStatusResponseInner if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CrossTenantVaultMappingStatusResponseInner. + */ + public static CrossTenantVaultMappingStatusResponseInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantVaultMappingStatusResponseInner deserializedCrossTenantVaultMappingStatusResponseInner + = new CrossTenantVaultMappingStatusResponseInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("mappingName".equals(fieldName)) { + deserializedCrossTenantVaultMappingStatusResponseInner.mappingName = reader.getString(); + } else if ("mappingState".equals(fieldName)) { + deserializedCrossTenantVaultMappingStatusResponseInner.mappingState + = VaultMappingState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantVaultMappingStatusResponseInner; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..13cab368e74e1 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.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.BackupInstanceFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * BackupInstanceFromDppCrossTenantVaultsClient. + */ +public final class BackupInstanceFromDppCrossTenantVaultsClientImpl + implements BackupInstanceFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final BackupInstanceFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of BackupInstanceFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + BackupInstanceFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(BackupInstanceFromDppCrossTenantVaultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientBackupInstanceFromDppCrossTenantVaults + * to be used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientBackupInstanceFromDppCrossTenantVaults") + public interface BackupInstanceFromDppCrossTenantVaultsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 backup instance of the mapped source vault in a different tenant along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 backup instance of the mapped source vault in a different tenant on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName) { + return getWithResponseAsync(resourceGroupName, vaultName, mappingName, backupInstanceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @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 backup instance of the mapped source vault in a different tenant along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, backupInstanceName, accept, context); + } + + /** + * Gets a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 backup instance of the mapped source vault in a different tenant. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CrossTenantBackupInstanceResourceInner get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName) { + return getWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, Context.NONE).getValue(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..888591653d502 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.dataprotection.fluent.BackupInstanceFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner; +import com.azure.resourcemanager.dataprotection.models.BackupInstanceFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.CrossTenantBackupInstanceResource; + +public final class BackupInstanceFromDppCrossTenantVaultsImpl implements BackupInstanceFromDppCrossTenantVaults { + private static final ClientLogger LOGGER = new ClientLogger(BackupInstanceFromDppCrossTenantVaultsImpl.class); + + private final BackupInstanceFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public BackupInstanceFromDppCrossTenantVaultsImpl(BackupInstanceFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new CrossTenantBackupInstanceResourceImpl(inner.getValue(), this.manager())); + } + + public CrossTenantBackupInstanceResource get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName) { + CrossTenantBackupInstanceResourceInner inner + = this.serviceClient().get(resourceGroupName, vaultName, mappingName, backupInstanceName); + if (inner != null) { + return new CrossTenantBackupInstanceResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + private BackupInstanceFromDppCrossTenantVaultsClient 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/BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..0b03235d243a6 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.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.BackupInstanceOperationResultFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; +import com.azure.resourcemanager.dataprotection.models.BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * BackupInstanceOperationResultFromDppCrossTenantVaultsClient. + */ +public final class BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl + implements BackupInstanceOperationResultFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final BackupInstanceOperationResultFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(BackupInstanceOperationResultFromDppCrossTenantVaultsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for + * DataProtectionManagementClientBackupInstanceOperationResultFromDppCrossTenantVaults to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientBackupInstanceOperationResultFromDppCrossTenantVaults") + public interface BackupInstanceOperationResultFromDppCrossTenantVaultsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/operationResults/{operationId}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono get( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/operationResults/{operationId}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Fetches the result of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the + * mapped source vault - the leg the restore's Location header points at. Returns 202 with Location/Retry-After + * while pending, and 200 with the operation result body when complete. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 operation Job Extended Info on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getWithResponseAsync( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, String operationId) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, + operationId, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Fetches the result of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the + * mapped source vault - the leg the restore's Location header points at. Returns 202 with Location/Retry-After + * while pending, and 200 with the operation result body when complete. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 operation Job Extended Info on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId) { + return getWithResponseAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Fetches the result of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the + * mapped source vault - the leg the restore's Location header points at. Returns 202 with Location/Retry-After + * while pending, and 200 with the operation result body when complete. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse getWithResponse(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, String operationId, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, backupInstanceName, operationId, accept, context); + } + + /** + * Fetches the result of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the + * mapped source vault - the leg the restore's Location header points at. Returns 202 with Location/Retry-After + * while pending, and 200 with the operation result body when complete. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationJobExtendedInfoInner get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId) { + return getWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, operationId, Context.NONE) + .getValue(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationResultFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationResultFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..dbcb766c0ee74 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationResultFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationResultFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; +import com.azure.resourcemanager.dataprotection.models.BackupInstanceOperationResultFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse; +import com.azure.resourcemanager.dataprotection.models.OperationJobExtendedInfo; + +public final class BackupInstanceOperationResultFromDppCrossTenantVaultsImpl + implements BackupInstanceOperationResultFromDppCrossTenantVaults { + private static final ClientLogger LOGGER + = new ClientLogger(BackupInstanceOperationResultFromDppCrossTenantVaultsImpl.class); + + private final BackupInstanceOperationResultFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public BackupInstanceOperationResultFromDppCrossTenantVaultsImpl( + BackupInstanceOperationResultFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String operationId, Context context) { + BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse inner = this.serviceClient() + .getWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, operationId, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new OperationJobExtendedInfoImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public OperationJobExtendedInfo get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId) { + OperationJobExtendedInfoInner inner + = this.serviceClient().get(resourceGroupName, vaultName, mappingName, backupInstanceName, operationId); + if (inner != null) { + return new OperationJobExtendedInfoImpl(inner, this.manager()); + } else { + return null; + } + } + + private BackupInstanceOperationResultFromDppCrossTenantVaultsClient 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/BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..7364d9c3a0a74 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,174 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.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.BackupInstanceOperationStatusFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * BackupInstanceOperationStatusFromDppCrossTenantVaultsClient. + */ +public final class BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl + implements BackupInstanceOperationStatusFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final BackupInstanceOperationStatusFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(BackupInstanceOperationStatusFromDppCrossTenantVaultsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for + * DataProtectionManagementClientBackupInstanceOperationStatusFromDppCrossTenantVaults to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientBackupInstanceOperationStatusFromDppCrossTenantVaults") + public interface BackupInstanceOperationStatusFromDppCrossTenantVaultsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/operationStatus/{operationId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/operationStatus/{operationId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the status of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the mapped + * source vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 status of a cross-tenant operation (e.g along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String operationId) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, + operationId, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the status of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the mapped + * source vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 status of a cross-tenant operation (e.g on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId) { + return getWithResponseAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the status of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the mapped + * source vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 status of a cross-tenant operation (e.g along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String operationId, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, backupInstanceName, operationId, accept, context); + } + + /** + * Gets the status of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the mapped + * source vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 status of a cross-tenant operation (e.g. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationResourceInner get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId) { + return getWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, operationId, Context.NONE) + .getValue(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..2ca11def17d53 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationStatusFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner; +import com.azure.resourcemanager.dataprotection.models.BackupInstanceOperationStatusFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.OperationResource; + +public final class BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl + implements BackupInstanceOperationStatusFromDppCrossTenantVaults { + private static final ClientLogger LOGGER + = new ClientLogger(BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl.class); + + private final BackupInstanceOperationStatusFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl( + BackupInstanceOperationStatusFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, operationId, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new OperationResourceImpl(inner.getValue(), this.manager())); + } + + public OperationResource get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId) { + OperationResourceInner inner + = this.serviceClient().get(resourceGroupName, vaultName, mappingName, backupInstanceName, operationId); + if (inner != null) { + return new OperationResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + private BackupInstanceOperationStatusFromDppCrossTenantVaultsClient 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/BackupInstancesFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..ce6259bcfbf3d --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,281 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.BackupInstancesFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner; +import com.azure.resourcemanager.dataprotection.implementation.models.CrossTenantBackupInstanceResourceList; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * BackupInstancesFromDppCrossTenantVaultsClient. + */ +public final class BackupInstancesFromDppCrossTenantVaultsClientImpl + implements BackupInstancesFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final BackupInstancesFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of BackupInstancesFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + BackupInstancesFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(BackupInstancesFromDppCrossTenantVaultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientBackupInstancesFromDppCrossTenantVaults + * to be used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientBackupInstancesFromDppCrossTenantVaults") + public interface BackupInstancesFromDppCrossTenantVaultsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @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("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant BackupInstance resource list response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String vaultName, String mappingName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, 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())); + } + + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant BackupInstance resource list response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String vaultName, + String mappingName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, vaultName, mappingName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant BackupInstance resource list response along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, + String vaultName, String mappingName) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 cross-tenant BackupInstance resource list response along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, + String vaultName, String mappingName, Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant BackupInstance resource list response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, vaultName, mappingName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 cross-tenant BackupInstance resource list response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, vaultName, mappingName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return cross-tenant BackupInstance resource list response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant BackupInstance resource list response along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 cross-tenant BackupInstance resource list response along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/BackupInstancesFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..71432bb9e9121 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.BackupInstancesFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner; +import com.azure.resourcemanager.dataprotection.models.BackupInstancesFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.CrossTenantBackupInstanceResource; + +public final class BackupInstancesFromDppCrossTenantVaultsImpl implements BackupInstancesFromDppCrossTenantVaults { + private static final ClientLogger LOGGER = new ClientLogger(BackupInstancesFromDppCrossTenantVaultsImpl.class); + + private final BackupInstancesFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public BackupInstancesFromDppCrossTenantVaultsImpl(BackupInstancesFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, vaultName, mappingName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new CrossTenantBackupInstanceResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, vaultName, mappingName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new CrossTenantBackupInstanceResourceImpl(inner1, this.manager())); + } + + private BackupInstancesFromDppCrossTenantVaultsClient 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/BackupJobsFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupJobsFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..081ab85c021f7 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupJobsFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,279 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.BackupJobsFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupJobResourceInner; +import com.azure.resourcemanager.dataprotection.implementation.models.AzureBackupJobResourceList; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in BackupJobsFromDppCrossTenantVaultsClient. + */ +public final class BackupJobsFromDppCrossTenantVaultsClientImpl implements BackupJobsFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final BackupJobsFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of BackupJobsFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + BackupJobsFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(BackupJobsFromDppCrossTenantVaultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientBackupJobsFromDppCrossTenantVaults to + * be used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientBackupJobsFromDppCrossTenantVaults") + public interface BackupJobsFromDppCrossTenantVaultsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupJobs") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupJobs") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @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("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 AzureBackup Job resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String vaultName, String mappingName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, 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())); + } + + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 AzureBackup Job resources as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String vaultName, + String mappingName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, vaultName, mappingName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 AzureBackup Job resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String vaultName, + String mappingName) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 AzureBackup Job resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String vaultName, + String mappingName, Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 AzureBackup Job resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, vaultName, mappingName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 AzureBackup Job resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, vaultName, mappingName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of AzureBackup Job resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 AzureBackup Job resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 AzureBackup Job resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/BackupJobsFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupJobsFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..63638efef9bd0 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupJobsFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.BackupJobsFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupJobResourceInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupJobResource; +import com.azure.resourcemanager.dataprotection.models.BackupJobsFromDppCrossTenantVaults; + +public final class BackupJobsFromDppCrossTenantVaultsImpl implements BackupJobsFromDppCrossTenantVaults { + private static final ClientLogger LOGGER = new ClientLogger(BackupJobsFromDppCrossTenantVaultsImpl.class); + + private final BackupJobsFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public BackupJobsFromDppCrossTenantVaultsImpl(BackupJobsFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String vaultName, String mappingName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, vaultName, mappingName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureBackupJobResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String vaultName, String mappingName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, vaultName, mappingName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureBackupJobResourceImpl(inner1, this.manager())); + } + + private BackupJobsFromDppCrossTenantVaultsClient 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/CrossTenantBackupInstanceResourceImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantBackupInstanceResourceImpl.java new file mode 100644 index 0000000000000..58cc1382251d5 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantBackupInstanceResourceImpl.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner; +import com.azure.resourcemanager.dataprotection.models.CrossTenantBackupInstance; +import com.azure.resourcemanager.dataprotection.models.CrossTenantBackupInstanceResource; +import java.util.Collections; +import java.util.Map; + +public final class CrossTenantBackupInstanceResourceImpl implements CrossTenantBackupInstanceResource { + private CrossTenantBackupInstanceResourceInner innerObject; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + CrossTenantBackupInstanceResourceImpl(CrossTenantBackupInstanceResourceInner innerObject, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public CrossTenantBackupInstance properties() { + return this.innerModel().properties(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public CrossTenantBackupInstanceResourceInner 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/implementation/CrossTenantVaultMappingImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantVaultMappingImpl.java new file mode 100644 index 0000000000000..30bd970e5c0b0 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantVaultMappingImpl.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.CrossTenantVaultMappingInner; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMapping; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingProperties; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequest; + +public final class CrossTenantVaultMappingImpl + implements CrossTenantVaultMapping, CrossTenantVaultMapping.Definition, CrossTenantVaultMapping.Update { + private CrossTenantVaultMappingInner 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 CrossTenantVaultMappingProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public CrossTenantVaultMappingInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.dataprotection.DataProtectionManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String vaultName; + + private String mappingName; + + public CrossTenantVaultMappingImpl withExistingBackupVault(String resourceGroupName, String vaultName) { + this.resourceGroupName = resourceGroupName; + this.vaultName = vaultName; + return this; + } + + public CrossTenantVaultMapping create() { + this.innerObject = serviceManager.serviceClient() + .getDppCrossTenantVaultMappings() + .createOrUpdateWithResponse(resourceGroupName, vaultName, mappingName, this.innerModel(), Context.NONE) + .getValue(); + return this; + } + + public CrossTenantVaultMapping create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getDppCrossTenantVaultMappings() + .createOrUpdateWithResponse(resourceGroupName, vaultName, mappingName, this.innerModel(), context) + .getValue(); + return this; + } + + CrossTenantVaultMappingImpl(String name, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerObject = new CrossTenantVaultMappingInner(); + this.serviceManager = serviceManager; + this.mappingName = name; + } + + public CrossTenantVaultMappingImpl update() { + return this; + } + + public CrossTenantVaultMapping apply() { + this.innerObject = serviceManager.serviceClient() + .getDppCrossTenantVaultMappings() + .createOrUpdateWithResponse(resourceGroupName, vaultName, mappingName, this.innerModel(), Context.NONE) + .getValue(); + return this; + } + + public CrossTenantVaultMapping apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getDppCrossTenantVaultMappings() + .createOrUpdateWithResponse(resourceGroupName, vaultName, mappingName, this.innerModel(), context) + .getValue(); + return this; + } + + CrossTenantVaultMappingImpl(CrossTenantVaultMappingInner innerObject, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.vaultName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "backupVaults"); + this.mappingName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "crossTenantVaultMappings"); + } + + public CrossTenantVaultMapping refresh() { + this.innerObject = serviceManager.serviceClient() + .getDppCrossTenantVaultMappings() + .getWithResponse(resourceGroupName, vaultName, mappingName, Context.NONE) + .getValue(); + return this; + } + + public CrossTenantVaultMapping refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getDppCrossTenantVaultMappings() + .getWithResponse(resourceGroupName, vaultName, mappingName, context) + .getValue(); + return this; + } + + public Response removeWithResponse(CrossTenantVaultMappingRemoveRequest body, Context context) { + return serviceManager.dppCrossTenantVaultMappings() + .removeWithResponse(resourceGroupName, vaultName, mappingName, body, context); + } + + public void remove() { + serviceManager.dppCrossTenantVaultMappings().remove(resourceGroupName, vaultName, mappingName); + } + + public CrossTenantVaultMappingImpl withProperties(CrossTenantVaultMappingProperties properties) { + this.innerModel().withProperties(properties); + return this; + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantVaultMappingStatusResponseImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantVaultMappingStatusResponseImpl.java new file mode 100644 index 0000000000000..544169c86b91f --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantVaultMappingStatusResponseImpl.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingStatusResponseInner; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingStatusResponse; +import com.azure.resourcemanager.dataprotection.models.VaultMappingState; + +public final class CrossTenantVaultMappingStatusResponseImpl implements CrossTenantVaultMappingStatusResponse { + private CrossTenantVaultMappingStatusResponseInner innerObject; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + CrossTenantVaultMappingStatusResponseImpl(CrossTenantVaultMappingStatusResponseInner innerObject, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String mappingName() { + return this.innerModel().mappingName(); + } + + public VaultMappingState mappingState() { + return this.innerModel().mappingState(); + } + + public CrossTenantVaultMappingStatusResponseInner 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/implementation/DataProtectionManagementClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionManagementClientImpl.java index c4850e118e7db..ee3a98c985f67 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionManagementClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionManagementClientImpl.java @@ -26,8 +26,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; +import com.azure.resourcemanager.dataprotection.fluent.BackupInstanceFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationResultFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationStatusFromDppCrossTenantVaultsClient; import com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient; import com.azure.resourcemanager.dataprotection.fluent.BackupInstancesExtensionRoutingsClient; +import com.azure.resourcemanager.dataprotection.fluent.BackupInstancesFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.BackupJobsFromDppCrossTenantVaultsClient; import com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient; import com.azure.resourcemanager.dataprotection.fluent.BackupVaultOperationResultsClient; import com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient; @@ -36,20 +41,28 @@ import com.azure.resourcemanager.dataprotection.fluent.DataProtectionsClient; import com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient; import com.azure.resourcemanager.dataprotection.fluent.DeletedBackupVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingStatusClient; +import com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingsClient; 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.FetchCrossRegionRestoreJobsClient; import com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsOperationsClient; import com.azure.resourcemanager.dataprotection.fluent.FetchSecondaryRecoveryPointsClient; +import com.azure.resourcemanager.dataprotection.fluent.JobFromDppCrossTenantVaultsClient; import com.azure.resourcemanager.dataprotection.fluent.JobsClient; import com.azure.resourcemanager.dataprotection.fluent.OperationResultsClient; import com.azure.resourcemanager.dataprotection.fluent.OperationStatusBackupVaultContextsClient; import com.azure.resourcemanager.dataprotection.fluent.OperationStatusClient; import com.azure.resourcemanager.dataprotection.fluent.OperationStatusResourceGroupContextsClient; +import com.azure.resourcemanager.dataprotection.fluent.RecoveryPointFromDppCrossTenantVaultsClient; import com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient; +import com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsFromDppCrossTenantVaultsClient; import com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient; import com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesClient; +import com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.RestoresFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.ValidateRestoreFromDppCrossTenantVaultsClient; import java.io.IOException; import java.lang.reflect.Type; import java.nio.ByteBuffer; @@ -218,6 +231,190 @@ public ResourceGuardsClient getResourceGuards() { return this.resourceGuards; } + /** + * The DppCrossTenantVaultMappingsClient object to access its operations. + */ + private final DppCrossTenantVaultMappingsClient dppCrossTenantVaultMappings; + + /** + * Gets the DppCrossTenantVaultMappingsClient object to access its operations. + * + * @return the DppCrossTenantVaultMappingsClient object. + */ + public DppCrossTenantVaultMappingsClient getDppCrossTenantVaultMappings() { + return this.dppCrossTenantVaultMappings; + } + + /** + * The DppCrossTenantVaultMappingStatusClient object to access its operations. + */ + private final DppCrossTenantVaultMappingStatusClient dppCrossTenantVaultMappingStatus; + + /** + * Gets the DppCrossTenantVaultMappingStatusClient object to access its operations. + * + * @return the DppCrossTenantVaultMappingStatusClient object. + */ + public DppCrossTenantVaultMappingStatusClient getDppCrossTenantVaultMappingStatus() { + return this.dppCrossTenantVaultMappingStatus; + } + + /** + * The BackupInstancesFromDppCrossTenantVaultsClient object to access its operations. + */ + private final BackupInstancesFromDppCrossTenantVaultsClient backupInstancesFromDppCrossTenantVaults; + + /** + * Gets the BackupInstancesFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupInstancesFromDppCrossTenantVaultsClient object. + */ + public BackupInstancesFromDppCrossTenantVaultsClient getBackupInstancesFromDppCrossTenantVaults() { + return this.backupInstancesFromDppCrossTenantVaults; + } + + /** + * The BackupInstanceFromDppCrossTenantVaultsClient object to access its operations. + */ + private final BackupInstanceFromDppCrossTenantVaultsClient backupInstanceFromDppCrossTenantVaults; + + /** + * Gets the BackupInstanceFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupInstanceFromDppCrossTenantVaultsClient object. + */ + public BackupInstanceFromDppCrossTenantVaultsClient getBackupInstanceFromDppCrossTenantVaults() { + return this.backupInstanceFromDppCrossTenantVaults; + } + + /** + * The RestoresFromDppCrossTenantVaultsClient object to access its operations. + */ + private final RestoresFromDppCrossTenantVaultsClient restoresFromDppCrossTenantVaults; + + /** + * Gets the RestoresFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the RestoresFromDppCrossTenantVaultsClient object. + */ + public RestoresFromDppCrossTenantVaultsClient getRestoresFromDppCrossTenantVaults() { + return this.restoresFromDppCrossTenantVaults; + } + + /** + * The ValidateRestoreFromDppCrossTenantVaultsClient object to access its operations. + */ + private final ValidateRestoreFromDppCrossTenantVaultsClient validateRestoreFromDppCrossTenantVaults; + + /** + * Gets the ValidateRestoreFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the ValidateRestoreFromDppCrossTenantVaultsClient object. + */ + public ValidateRestoreFromDppCrossTenantVaultsClient getValidateRestoreFromDppCrossTenantVaults() { + return this.validateRestoreFromDppCrossTenantVaults; + } + + /** + * The RestorableTimeRangesFromDppCrossTenantVaultsClient object to access its operations. + */ + private final RestorableTimeRangesFromDppCrossTenantVaultsClient restorableTimeRangesFromDppCrossTenantVaults; + + /** + * Gets the RestorableTimeRangesFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the RestorableTimeRangesFromDppCrossTenantVaultsClient object. + */ + public RestorableTimeRangesFromDppCrossTenantVaultsClient getRestorableTimeRangesFromDppCrossTenantVaults() { + return this.restorableTimeRangesFromDppCrossTenantVaults; + } + + /** + * The RecoveryPointsFromDppCrossTenantVaultsClient object to access its operations. + */ + private final RecoveryPointsFromDppCrossTenantVaultsClient recoveryPointsFromDppCrossTenantVaults; + + /** + * Gets the RecoveryPointsFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the RecoveryPointsFromDppCrossTenantVaultsClient object. + */ + public RecoveryPointsFromDppCrossTenantVaultsClient getRecoveryPointsFromDppCrossTenantVaults() { + return this.recoveryPointsFromDppCrossTenantVaults; + } + + /** + * The RecoveryPointFromDppCrossTenantVaultsClient object to access its operations. + */ + private final RecoveryPointFromDppCrossTenantVaultsClient recoveryPointFromDppCrossTenantVaults; + + /** + * Gets the RecoveryPointFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the RecoveryPointFromDppCrossTenantVaultsClient object. + */ + public RecoveryPointFromDppCrossTenantVaultsClient getRecoveryPointFromDppCrossTenantVaults() { + return this.recoveryPointFromDppCrossTenantVaults; + } + + /** + * The BackupJobsFromDppCrossTenantVaultsClient object to access its operations. + */ + private final BackupJobsFromDppCrossTenantVaultsClient backupJobsFromDppCrossTenantVaults; + + /** + * Gets the BackupJobsFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupJobsFromDppCrossTenantVaultsClient object. + */ + public BackupJobsFromDppCrossTenantVaultsClient getBackupJobsFromDppCrossTenantVaults() { + return this.backupJobsFromDppCrossTenantVaults; + } + + /** + * The JobFromDppCrossTenantVaultsClient object to access its operations. + */ + private final JobFromDppCrossTenantVaultsClient jobFromDppCrossTenantVaults; + + /** + * Gets the JobFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the JobFromDppCrossTenantVaultsClient object. + */ + public JobFromDppCrossTenantVaultsClient getJobFromDppCrossTenantVaults() { + return this.jobFromDppCrossTenantVaults; + } + + /** + * The BackupInstanceOperationStatusFromDppCrossTenantVaultsClient object to access its operations. + */ + private final BackupInstanceOperationStatusFromDppCrossTenantVaultsClient backupInstanceOperationStatusFromDppCrossTenantVaults; + + /** + * Gets the BackupInstanceOperationStatusFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupInstanceOperationStatusFromDppCrossTenantVaultsClient object. + */ + public BackupInstanceOperationStatusFromDppCrossTenantVaultsClient + getBackupInstanceOperationStatusFromDppCrossTenantVaults() { + return this.backupInstanceOperationStatusFromDppCrossTenantVaults; + } + + /** + * The BackupInstanceOperationResultFromDppCrossTenantVaultsClient object to access its operations. + */ + private final BackupInstanceOperationResultFromDppCrossTenantVaultsClient backupInstanceOperationResultFromDppCrossTenantVaults; + + /** + * Gets the BackupInstanceOperationResultFromDppCrossTenantVaultsClient object to access its operations. + * + * @return the BackupInstanceOperationResultFromDppCrossTenantVaultsClient object. + */ + public BackupInstanceOperationResultFromDppCrossTenantVaultsClient + getBackupInstanceOperationResultFromDppCrossTenantVaults() { + return this.backupInstanceOperationResultFromDppCrossTenantVaults; + } + /** * The BackupVaultsClient object to access its operations. */ @@ -487,12 +684,28 @@ public BackupInstancesExtensionRoutingsClient getBackupInstancesExtensionRouting this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-07-01"; + this.apiVersion = "2026-08-31-preview"; this.dataProtectionOperations = new DataProtectionOperationsClientImpl(this); this.backupInstances = new BackupInstancesClientImpl(this); this.backupVaultOperationResults = new BackupVaultOperationResultsClientImpl(this); this.deletedBackupVaults = new DeletedBackupVaultsClientImpl(this); this.resourceGuards = new ResourceGuardsClientImpl(this); + this.dppCrossTenantVaultMappings = new DppCrossTenantVaultMappingsClientImpl(this); + this.dppCrossTenantVaultMappingStatus = new DppCrossTenantVaultMappingStatusClientImpl(this); + this.backupInstancesFromDppCrossTenantVaults = new BackupInstancesFromDppCrossTenantVaultsClientImpl(this); + this.backupInstanceFromDppCrossTenantVaults = new BackupInstanceFromDppCrossTenantVaultsClientImpl(this); + this.restoresFromDppCrossTenantVaults = new RestoresFromDppCrossTenantVaultsClientImpl(this); + this.validateRestoreFromDppCrossTenantVaults = new ValidateRestoreFromDppCrossTenantVaultsClientImpl(this); + this.restorableTimeRangesFromDppCrossTenantVaults + = new RestorableTimeRangesFromDppCrossTenantVaultsClientImpl(this); + this.recoveryPointsFromDppCrossTenantVaults = new RecoveryPointsFromDppCrossTenantVaultsClientImpl(this); + this.recoveryPointFromDppCrossTenantVaults = new RecoveryPointFromDppCrossTenantVaultsClientImpl(this); + this.backupJobsFromDppCrossTenantVaults = new BackupJobsFromDppCrossTenantVaultsClientImpl(this); + this.jobFromDppCrossTenantVaults = new JobFromDppCrossTenantVaultsClientImpl(this); + this.backupInstanceOperationStatusFromDppCrossTenantVaults + = new BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl(this); + this.backupInstanceOperationResultFromDppCrossTenantVaults + = new BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl(this); this.backupVaults = new BackupVaultsClientImpl(this); this.operationStatusBackupVaultContexts = new OperationStatusBackupVaultContextsClientImpl(this); this.exportJobs = new ExportJobsClientImpl(this); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusClientImpl.java new file mode 100644 index 0000000000000..6d6b8a1985cf5 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusClientImpl.java @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.annotation.ExpectedResponses; +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.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingStatusClient; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingStatusResponseInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in DppCrossTenantVaultMappingStatusClient. + */ +public final class DppCrossTenantVaultMappingStatusClientImpl implements DppCrossTenantVaultMappingStatusClient { + /** + * The proxy service used to perform REST calls. + */ + private final DppCrossTenantVaultMappingStatusService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of DppCrossTenantVaultMappingStatusClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + DppCrossTenantVaultMappingStatusClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(DppCrossTenantVaultMappingStatusService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientDppCrossTenantVaultMappingStatus to be + * used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientDppCrossTenantVaultMappingStatus") + public interface DppCrossTenantVaultMappingStatusService { + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappingStatus") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> check(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappingStatus") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response checkSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + * + * @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 status (Active/Inactive) of a cross-tenant vault mapping from the source vault side along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> checkWithResponseAsync(String resourceGroupName, + String vaultName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.check(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + * + * @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 status (Active/Inactive) of a cross-tenant vault mapping from the source vault side on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono checkAsync(String resourceGroupName, String vaultName) { + return checkWithResponseAsync(resourceGroupName, vaultName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + * + * @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 status (Active/Inactive) of a cross-tenant vault mapping from the source vault side along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response checkWithResponse(String resourceGroupName, + String vaultName, Context context) { + final String accept = "application/json"; + return service.checkSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, accept, context); + } + + /** + * Gets the status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + * + * @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 status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CrossTenantVaultMappingStatusResponseInner check(String resourceGroupName, String vaultName) { + return checkWithResponse(resourceGroupName, vaultName, Context.NONE).getValue(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusImpl.java new file mode 100644 index 0000000000000..728c68c5cad72 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusImpl.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingStatusClient; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingStatusResponseInner; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingStatusResponse; +import com.azure.resourcemanager.dataprotection.models.DppCrossTenantVaultMappingStatus; + +public final class DppCrossTenantVaultMappingStatusImpl implements DppCrossTenantVaultMappingStatus { + private static final ClientLogger LOGGER = new ClientLogger(DppCrossTenantVaultMappingStatusImpl.class); + + private final DppCrossTenantVaultMappingStatusClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public DppCrossTenantVaultMappingStatusImpl(DppCrossTenantVaultMappingStatusClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response checkWithResponse(String resourceGroupName, String vaultName, + Context context) { + Response inner + = this.serviceClient().checkWithResponse(resourceGroupName, vaultName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new CrossTenantVaultMappingStatusResponseImpl(inner.getValue(), this.manager())); + } + + public CrossTenantVaultMappingStatusResponse check(String resourceGroupName, String vaultName) { + CrossTenantVaultMappingStatusResponseInner inner = this.serviceClient().check(resourceGroupName, vaultName); + if (inner != null) { + return new CrossTenantVaultMappingStatusResponseImpl(inner, this.manager()); + } else { + return null; + } + } + + private DppCrossTenantVaultMappingStatusClient 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/DppCrossTenantVaultMappingsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingsClientImpl.java new file mode 100644 index 0000000000000..52f12ff8dba51 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingsClientImpl.java @@ -0,0 +1,568 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.annotation.BodyParam; +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.DppCrossTenantVaultMappingsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingInner; +import com.azure.resourcemanager.dataprotection.implementation.models.CrossTenantVaultMappingList; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequest; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in DppCrossTenantVaultMappingsClient. + */ +public final class DppCrossTenantVaultMappingsClientImpl implements DppCrossTenantVaultMappingsClient { + /** + * The proxy service used to perform REST calls. + */ + private final DppCrossTenantVaultMappingsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of DppCrossTenantVaultMappingsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + DppCrossTenantVaultMappingsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(DppCrossTenantVaultMappingsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientDppCrossTenantVaultMappings to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientDppCrossTenantVaultMappings") + public interface DppCrossTenantVaultMappingsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") CrossTenantVaultMappingInner resource, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") CrossTenantVaultMappingInner resource, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/remove") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> remove(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, + @BodyParam("application/json") CrossTenantVaultMappingRemoveRequest body, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/remove") + @ExpectedResponses({ 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response removeSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, + @BodyParam("application/json") CrossTenantVaultMappingRemoveRequest body, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant vault mapping by name from the target vault along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String vaultName, String mappingName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant vault mapping by name from the target vault on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String vaultName, + String mappingName) { + return getWithResponseAsync(resourceGroupName, vaultName, mappingName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @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 cross-tenant vault mapping by name from the target vault along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, accept, context); + } + + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant vault mapping by name from the target vault. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CrossTenantVaultMappingInner get(String resourceGroupName, String vaultName, String mappingName) { + return getWithResponse(resourceGroupName, vaultName, mappingName, Context.NONE).getValue(); + } + + /** + * Creates or updates a cross-tenant vault mapping under the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant vault mapping resource for cross-tenant restore along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String vaultName, String mappingName, CrossTenantVaultMappingInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, contentType, accept, + resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a cross-tenant vault mapping under the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant vault mapping resource for cross-tenant restore on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String vaultName, + String mappingName, CrossTenantVaultMappingInner resource) { + return createOrUpdateWithResponseAsync(resourceGroupName, vaultName, mappingName, resource) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Creates or updates a cross-tenant vault mapping under the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param resource Resource create parameters. + * @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 cross-tenant vault mapping resource for cross-tenant restore along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, String vaultName, + String mappingName, CrossTenantVaultMappingInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, contentType, accept, resource, + context); + } + + /** + * Creates or updates a cross-tenant vault mapping under the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant vault mapping resource for cross-tenant restore. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CrossTenantVaultMappingInner createOrUpdate(String resourceGroupName, String vaultName, String mappingName, + CrossTenantVaultMappingInner resource) { + return createOrUpdateWithResponse(resourceGroupName, vaultName, mappingName, resource, Context.NONE).getValue(); + } + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String vaultName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, 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())); + } + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping 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)); + } + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String vaultName) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String vaultName, + Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String vaultName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, vaultName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping resources as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String vaultName, + Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, vaultName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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> removeWithResponseAsync(String resourceGroupName, String vaultName, String mappingName, + CrossTenantVaultMappingRemoveRequest body) { + return FluxUtil + .withContext(context -> service.remove(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 removeAsync(String resourceGroupName, String vaultName, String mappingName) { + final CrossTenantVaultMappingRemoveRequest body = null; + return removeWithResponseAsync(resourceGroupName, vaultName, mappingName, body) + .flatMap(ignored -> Mono.empty()); + } + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param body The content of the action request. + * @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 removeWithResponse(String resourceGroupName, String vaultName, String mappingName, + CrossTenantVaultMappingRemoveRequest body, Context context) { + return service.removeSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, body, context); + } + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 remove(String resourceGroupName, String vaultName, String mappingName) { + final CrossTenantVaultMappingRemoveRequest body = null; + removeWithResponse(resourceGroupName, vaultName, mappingName, body, Context.NONE); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of cross-tenant vault mapping resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 cross-tenant vault mapping resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 cross-tenant vault mapping resources along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/DppCrossTenantVaultMappingsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingsImpl.java new file mode 100644 index 0000000000000..7d495b7b59697 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingsImpl.java @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.DppCrossTenantVaultMappingsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingInner; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMapping; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequest; +import com.azure.resourcemanager.dataprotection.models.DppCrossTenantVaultMappings; + +public final class DppCrossTenantVaultMappingsImpl implements DppCrossTenantVaultMappings { + private static final ClientLogger LOGGER = new ClientLogger(DppCrossTenantVaultMappingsImpl.class); + + private final DppCrossTenantVaultMappingsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public DppCrossTenantVaultMappingsImpl(DppCrossTenantVaultMappingsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, vaultName, mappingName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new CrossTenantVaultMappingImpl(inner.getValue(), this.manager())); + } + + public CrossTenantVaultMapping get(String resourceGroupName, String vaultName, String mappingName) { + CrossTenantVaultMappingInner inner = this.serviceClient().get(resourceGroupName, vaultName, mappingName); + if (inner != null) { + return new CrossTenantVaultMappingImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String vaultName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, vaultName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CrossTenantVaultMappingImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String vaultName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, vaultName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CrossTenantVaultMappingImpl(inner1, this.manager())); + } + + public Response removeWithResponse(String resourceGroupName, String vaultName, String mappingName, + CrossTenantVaultMappingRemoveRequest body, Context context) { + return this.serviceClient().removeWithResponse(resourceGroupName, vaultName, mappingName, body, context); + } + + public void remove(String resourceGroupName, String vaultName, String mappingName) { + this.serviceClient().remove(resourceGroupName, vaultName, mappingName); + } + + public CrossTenantVaultMapping getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String vaultName = ResourceManagerUtils.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 mappingName = ResourceManagerUtils.getValueFromIdByName(id, "crossTenantVaultMappings"); + if (mappingName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'crossTenantVaultMappings'.", id))); + } + return this.getWithResponse(resourceGroupName, vaultName, mappingName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String vaultName = ResourceManagerUtils.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 mappingName = ResourceManagerUtils.getValueFromIdByName(id, "crossTenantVaultMappings"); + if (mappingName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'crossTenantVaultMappings'.", id))); + } + return this.getWithResponse(resourceGroupName, vaultName, mappingName, context); + } + + private DppCrossTenantVaultMappingsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.dataprotection.DataProtectionManager manager() { + return this.serviceManager; + } + + public CrossTenantVaultMappingImpl define(String name) { + return new CrossTenantVaultMappingImpl(name, this.manager()); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..4c57620f1b49d --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,161 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.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.JobFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupJobResourceInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in JobFromDppCrossTenantVaultsClient. + */ +public final class JobFromDppCrossTenantVaultsClientImpl implements JobFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final JobFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of JobFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + JobFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(JobFromDppCrossTenantVaultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientJobFromDppCrossTenantVaults to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientJobFromDppCrossTenantVaults") + public interface JobFromDppCrossTenantVaultsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupJobs/{jobId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("jobId") String jobId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupJobs/{jobId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("jobId") String jobId, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a job of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param jobId The name of the AzureBackupJobResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 job of the mapped source vault in a different tenant along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String vaultName, + String mappingName, String jobId) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, jobId, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a job of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param jobId The name of the AzureBackupJobResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 job of the mapped source vault in a different tenant on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String vaultName, String mappingName, + String jobId) { + return getWithResponseAsync(resourceGroupName, vaultName, mappingName, jobId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a job of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param jobId The name of the AzureBackupJobResource. + * @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 job of the mapped source vault in a different tenant along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String jobId, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, jobId, accept, context); + } + + /** + * Gets a job of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param jobId The name of the AzureBackupJobResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 job of the mapped source vault in a different tenant. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AzureBackupJobResourceInner get(String resourceGroupName, String vaultName, String mappingName, + String jobId) { + return getWithResponse(resourceGroupName, vaultName, mappingName, jobId, Context.NONE).getValue(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..35df72608fcc4 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.dataprotection.fluent.JobFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupJobResourceInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupJobResource; +import com.azure.resourcemanager.dataprotection.models.JobFromDppCrossTenantVaults; + +public final class JobFromDppCrossTenantVaultsImpl implements JobFromDppCrossTenantVaults { + private static final ClientLogger LOGGER = new ClientLogger(JobFromDppCrossTenantVaultsImpl.class); + + private final JobFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public JobFromDppCrossTenantVaultsImpl(JobFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String jobId, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, vaultName, mappingName, jobId, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new AzureBackupJobResourceImpl(inner.getValue(), this.manager())); + } + + public AzureBackupJobResource get(String resourceGroupName, String vaultName, String mappingName, String jobId) { + AzureBackupJobResourceInner inner = this.serviceClient().get(resourceGroupName, vaultName, mappingName, jobId); + if (inner != null) { + return new AzureBackupJobResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + private JobFromDppCrossTenantVaultsClient 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/RecoveryPointFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..0e295dc807a00 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,173 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.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.RecoveryPointFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * RecoveryPointFromDppCrossTenantVaultsClient. + */ +public final class RecoveryPointFromDppCrossTenantVaultsClientImpl + implements RecoveryPointFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final RecoveryPointFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of RecoveryPointFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + RecoveryPointFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(RecoveryPointFromDppCrossTenantVaultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientRecoveryPointFromDppCrossTenantVaults + * to be used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientRecoveryPointFromDppCrossTenantVaults") + public interface RecoveryPointFromDppCrossTenantVaultsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @PathParam("recoveryPointId") String recoveryPointId, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @PathParam("recoveryPointId") String recoveryPointId, @HeaderParam("Accept") String accept, + Context context); + } + + /** + * Gets a vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param recoveryPointId The name of the AzureBackupRecoveryPointResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 vault-tier recovery point for a backup instance of the mapped source vault in a different tenant along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, String recoveryPointId) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, + recoveryPointId, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param recoveryPointId The name of the AzureBackupRecoveryPointResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 vault-tier recovery point for a backup instance of the mapped source vault in a different tenant on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String recoveryPointId) { + return getWithResponseAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, recoveryPointId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param recoveryPointId The name of the AzureBackupRecoveryPointResource. + * @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 vault-tier recovery point for a backup instance of the mapped source vault in a different tenant along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String recoveryPointId, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, backupInstanceName, recoveryPointId, accept, context); + } + + /** + * Gets a vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param recoveryPointId The name of the AzureBackupRecoveryPointResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AzureBackupRecoveryPointResourceInner get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String recoveryPointId) { + return getWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, recoveryPointId, + Context.NONE).getValue(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..7c0ca6796fafa --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.dataprotection.fluent.RecoveryPointFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointResource; +import com.azure.resourcemanager.dataprotection.models.RecoveryPointFromDppCrossTenantVaults; + +public final class RecoveryPointFromDppCrossTenantVaultsImpl implements RecoveryPointFromDppCrossTenantVaults { + private static final ClientLogger LOGGER = new ClientLogger(RecoveryPointFromDppCrossTenantVaultsImpl.class); + + private final RecoveryPointFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public RecoveryPointFromDppCrossTenantVaultsImpl(RecoveryPointFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String recoveryPointId, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, recoveryPointId, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new AzureBackupRecoveryPointResourceImpl(inner.getValue(), this.manager())); + } + + public AzureBackupRecoveryPointResource get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String recoveryPointId) { + AzureBackupRecoveryPointResourceInner inner + = this.serviceClient().get(resourceGroupName, vaultName, mappingName, backupInstanceName, recoveryPointId); + if (inner != null) { + return new AzureBackupRecoveryPointResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + private RecoveryPointFromDppCrossTenantVaultsClient 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/RecoveryPointsFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..562bb0211fa41 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,320 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.RecoveryPointsFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner; +import com.azure.resourcemanager.dataprotection.implementation.models.AzureBackupRecoveryPointResourceList; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * RecoveryPointsFromDppCrossTenantVaultsClient. + */ +public final class RecoveryPointsFromDppCrossTenantVaultsClientImpl + implements RecoveryPointsFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final RecoveryPointsFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of RecoveryPointsFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + RecoveryPointsFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(RecoveryPointsFromDppCrossTenantVaultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientRecoveryPointsFromDppCrossTenantVaults + * to be used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientRecoveryPointsFromDppCrossTenantVaults") + public interface RecoveryPointsFromDppCrossTenantVaultsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/recoveryPoints") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/recoveryPoints") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @QueryParam("$filter") String filter, @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("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param filter OData filter options. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return azure backup recoveryPoint resource list along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, String filter) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, filter, + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param filter OData filter options. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return azure backup recoveryPoint resource list as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String filter) { + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, filter), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 azure backup recoveryPoint resource list as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName) { + final String filter = null; + return new PagedFlux<>( + () -> listSinglePageAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, filter), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param filter OData filter options. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return azure backup recoveryPoint resource list along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, String filter) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, backupInstanceName, filter, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param filter OData filter options. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return azure backup recoveryPoint resource list along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, String filter, Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, backupInstanceName, filter, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 azure backup recoveryPoint resource list as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName) { + final String filter = null; + return new PagedIterable<>( + () -> listSinglePage(resourceGroupName, vaultName, mappingName, backupInstanceName, filter), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param filter OData filter options. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return azure backup recoveryPoint resource list as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String filter, Context context) { + return new PagedIterable<>( + () -> listSinglePage(resourceGroupName, vaultName, mappingName, backupInstanceName, filter, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return azure backup recoveryPoint resource list along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @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 azure backup recoveryPoint resource list along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 azure backup recoveryPoint resource list along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return 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/RecoveryPointsFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..dd8e1ada9984f --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.RecoveryPointsFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointResource; +import com.azure.resourcemanager.dataprotection.models.RecoveryPointsFromDppCrossTenantVaults; + +public final class RecoveryPointsFromDppCrossTenantVaultsImpl implements RecoveryPointsFromDppCrossTenantVaults { + private static final ClientLogger LOGGER = new ClientLogger(RecoveryPointsFromDppCrossTenantVaultsImpl.class); + + private final RecoveryPointsFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public RecoveryPointsFromDppCrossTenantVaultsImpl(RecoveryPointsFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, vaultName, mappingName, backupInstanceName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new AzureBackupRecoveryPointResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String filter, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, vaultName, mappingName, backupInstanceName, filter, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new AzureBackupRecoveryPointResourceImpl(inner1, this.manager())); + } + + private RecoveryPointsFromDppCrossTenantVaultsClient 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/RestorableTimeRangesFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..c63a81faf6021 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.HeaderParam; +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.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupFindRestorableTimeRangesResponseResourceInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * RestorableTimeRangesFromDppCrossTenantVaultsClient. + */ +public final class RestorableTimeRangesFromDppCrossTenantVaultsClientImpl + implements RestorableTimeRangesFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final RestorableTimeRangesFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of RestorableTimeRangesFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + RestorableTimeRangesFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(RestorableTimeRangesFromDppCrossTenantVaultsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for + * DataProtectionManagementClientRestorableTimeRangesFromDppCrossTenantVaults to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientRestorableTimeRangesFromDppCrossTenantVaults") + public interface RestorableTimeRangesFromDppCrossTenantVaultsService { + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> find( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") AzureBackupFindRestorableTimeRangesRequest body, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response findSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") AzureBackupFindRestorableTimeRangesRequest body, Context context); + } + + /** + * Finds the restorable time ranges for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 list Restore Ranges Response along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> findWithResponseAsync( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + AzureBackupFindRestorableTimeRangesRequest body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.find(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, + contentType, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Finds the restorable time ranges for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 list Restore Ranges Response on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono findAsync(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, + AzureBackupFindRestorableTimeRangesRequest body) { + return findWithResponseAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, body) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Finds the restorable time ranges for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 list Restore Ranges Response along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response findWithResponse(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, + AzureBackupFindRestorableTimeRangesRequest body, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.findSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, mappingName, backupInstanceName, contentType, accept, body, context); + } + + /** + * Finds the restorable time ranges for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 list Restore Ranges Response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AzureBackupFindRestorableTimeRangesResponseResourceInner find(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, AzureBackupFindRestorableTimeRangesRequest body) { + return findWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, body, Context.NONE) + .getValue(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..860fa662b3f99 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupFindRestorableTimeRangesResponseResourceInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest; +import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesResponseResource; +import com.azure.resourcemanager.dataprotection.models.RestorableTimeRangesFromDppCrossTenantVaults; + +public final class RestorableTimeRangesFromDppCrossTenantVaultsImpl + implements RestorableTimeRangesFromDppCrossTenantVaults { + private static final ClientLogger LOGGER = new ClientLogger(RestorableTimeRangesFromDppCrossTenantVaultsImpl.class); + + private final RestorableTimeRangesFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public RestorableTimeRangesFromDppCrossTenantVaultsImpl( + RestorableTimeRangesFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response findWithResponse(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, + AzureBackupFindRestorableTimeRangesRequest body, Context context) { + Response inner = this.serviceClient() + .findWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, body, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new AzureBackupFindRestorableTimeRangesResponseResourceImpl(inner.getValue(), this.manager())); + } + + public AzureBackupFindRestorableTimeRangesResponseResource find(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, AzureBackupFindRestorableTimeRangesRequest body) { + AzureBackupFindRestorableTimeRangesResponseResourceInner inner + = this.serviceClient().find(resourceGroupName, vaultName, mappingName, backupInstanceName, body); + if (inner != null) { + return new AzureBackupFindRestorableTimeRangesResponseResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + private RestorableTimeRangesFromDppCrossTenantVaultsClient 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/RestoresFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestoresFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..67a69278a6a6f --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestoresFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,290 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.HeaderParam; +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.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.dataprotection.fluent.RestoresFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in RestoresFromDppCrossTenantVaultsClient. + */ +public final class RestoresFromDppCrossTenantVaultsClientImpl implements RestoresFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final RestoresFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of RestoresFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + RestoresFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(RestoresFromDppCrossTenantVaultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientRestoresFromDppCrossTenantVaults to be + * used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientRestoresFromDppCrossTenantVaults") + public interface RestoresFromDppCrossTenantVaultsService { + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/restore") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> trigger(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") AzureBackupRestoreRequest body, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/restore") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response triggerSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") AzureBackupRestoreRequest body, Context context); + } + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> triggerWithResponseAsync(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, AzureBackupRestoreRequest body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.trigger(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, + contentType, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response triggerWithResponse(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.triggerSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, contentType, + accept, body, Context.NONE); + } + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response triggerWithResponse(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.triggerSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, contentType, + accept, body, context); + } + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link PollerFlux} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationJobExtendedInfoInner> beginTriggerAsync( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + AzureBackupRestoreRequest body) { + Mono>> mono + = triggerWithResponseAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, body); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationJobExtendedInfoInner.class, OperationJobExtendedInfoInner.class, + this.client.getContext()); + } + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link SyncPoller} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationJobExtendedInfoInner> beginTrigger( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + AzureBackupRestoreRequest body) { + Response response + = triggerWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, body); + return this.client.getLroResult(response, + OperationJobExtendedInfoInner.class, OperationJobExtendedInfoInner.class, Context.NONE); + } + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link SyncPoller} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationJobExtendedInfoInner> beginTrigger( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + AzureBackupRestoreRequest body, Context context) { + Response response + = triggerWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, body, context); + return this.client.getLroResult(response, + OperationJobExtendedInfoInner.class, OperationJobExtendedInfoInner.class, context); + } + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono triggerAsync(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, AzureBackupRestoreRequest body) { + return beginTriggerAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationJobExtendedInfoInner trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body) { + return beginTrigger(resourceGroupName, vaultName, mappingName, backupInstanceName, body).getFinalResult(); + } + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationJobExtendedInfoInner trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body, Context context) { + return beginTrigger(resourceGroupName, vaultName, mappingName, backupInstanceName, body, context) + .getFinalResult(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestoresFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestoresFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..c2e971c1c4345 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestoresFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.dataprotection.fluent.RestoresFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; +import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; +import com.azure.resourcemanager.dataprotection.models.OperationJobExtendedInfo; +import com.azure.resourcemanager.dataprotection.models.RestoresFromDppCrossTenantVaults; + +public final class RestoresFromDppCrossTenantVaultsImpl implements RestoresFromDppCrossTenantVaults { + private static final ClientLogger LOGGER = new ClientLogger(RestoresFromDppCrossTenantVaultsImpl.class); + + private final RestoresFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public RestoresFromDppCrossTenantVaultsImpl(RestoresFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public OperationJobExtendedInfo trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body) { + OperationJobExtendedInfoInner inner + = this.serviceClient().trigger(resourceGroupName, vaultName, mappingName, backupInstanceName, body); + if (inner != null) { + return new OperationJobExtendedInfoImpl(inner, this.manager()); + } else { + return null; + } + } + + public OperationJobExtendedInfo trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body, Context context) { + OperationJobExtendedInfoInner inner = this.serviceClient() + .trigger(resourceGroupName, vaultName, mappingName, backupInstanceName, body, context); + if (inner != null) { + return new OperationJobExtendedInfoImpl(inner, this.manager()); + } else { + return null; + } + } + + private RestoresFromDppCrossTenantVaultsClient 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/ValidateRestoreFromDppCrossTenantVaultsClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ValidateRestoreFromDppCrossTenantVaultsClientImpl.java new file mode 100644 index 0000000000000..fa81785f88e38 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ValidateRestoreFromDppCrossTenantVaultsClientImpl.java @@ -0,0 +1,301 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.HeaderParam; +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.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.dataprotection.fluent.ValidateRestoreFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; +import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * ValidateRestoreFromDppCrossTenantVaultsClient. + */ +public final class ValidateRestoreFromDppCrossTenantVaultsClientImpl + implements ValidateRestoreFromDppCrossTenantVaultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ValidateRestoreFromDppCrossTenantVaultsService service; + + /** + * The service client containing this operation class. + */ + private final DataProtectionManagementClientImpl client; + + /** + * Initializes an instance of ValidateRestoreFromDppCrossTenantVaultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ValidateRestoreFromDppCrossTenantVaultsClientImpl(DataProtectionManagementClientImpl client) { + this.service = RestProxy.create(ValidateRestoreFromDppCrossTenantVaultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for DataProtectionManagementClientValidateRestoreFromDppCrossTenantVaults + * to be used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "DataProtectionManagementClientValidateRestoreFromDppCrossTenantVaults") + public interface ValidateRestoreFromDppCrossTenantVaultsService { + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/validateRestore") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> trigger(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ValidateRestoreRequestObject body, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/crossTenantVaultMappings/{mappingName}/backupInstances/{backupInstanceName}/validateRestore") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response triggerSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("mappingName") String mappingName, @PathParam("backupInstanceName") String backupInstanceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ValidateRestoreRequestObject body, Context context); + } + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> triggerWithResponseAsync(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, ValidateRestoreRequestObject body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.trigger(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, + contentType, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response triggerWithResponse(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.triggerSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, contentType, + accept, body, Context.NONE); + } + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response triggerWithResponse(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.triggerSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, mappingName, backupInstanceName, contentType, + accept, body, context); + } + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link PollerFlux} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, OperationJobExtendedInfoInner> beginTriggerAsync( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + ValidateRestoreRequestObject body) { + Mono>> mono + = triggerWithResponseAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, body); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationJobExtendedInfoInner.class, OperationJobExtendedInfoInner.class, + this.client.getContext()); + } + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link SyncPoller} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationJobExtendedInfoInner> beginTrigger( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + ValidateRestoreRequestObject body) { + Response response + = triggerWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, body); + return this.client.getLroResult(response, + OperationJobExtendedInfoInner.class, OperationJobExtendedInfoInner.class, Context.NONE); + } + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 {@link SyncPoller} for polling of operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, OperationJobExtendedInfoInner> beginTrigger( + String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + ValidateRestoreRequestObject body, Context context) { + Response response + = triggerWithResponse(resourceGroupName, vaultName, mappingName, backupInstanceName, body, context); + return this.client.getLroResult(response, + OperationJobExtendedInfoInner.class, OperationJobExtendedInfoInner.class, context); + } + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono triggerAsync(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, ValidateRestoreRequestObject body) { + return beginTriggerAsync(resourceGroupName, vaultName, mappingName, backupInstanceName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationJobExtendedInfoInner trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body) { + return beginTrigger(resourceGroupName, vaultName, mappingName, backupInstanceName, body).getFinalResult(); + } + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationJobExtendedInfoInner trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body, Context context) { + return beginTrigger(resourceGroupName, vaultName, mappingName, backupInstanceName, body, context) + .getFinalResult(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ValidateRestoreFromDppCrossTenantVaultsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ValidateRestoreFromDppCrossTenantVaultsImpl.java new file mode 100644 index 0000000000000..b0cb36a841868 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/ValidateRestoreFromDppCrossTenantVaultsImpl.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation; + +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.dataprotection.fluent.ValidateRestoreFromDppCrossTenantVaultsClient; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; +import com.azure.resourcemanager.dataprotection.models.OperationJobExtendedInfo; +import com.azure.resourcemanager.dataprotection.models.ValidateRestoreFromDppCrossTenantVaults; +import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject; + +public final class ValidateRestoreFromDppCrossTenantVaultsImpl implements ValidateRestoreFromDppCrossTenantVaults { + private static final ClientLogger LOGGER = new ClientLogger(ValidateRestoreFromDppCrossTenantVaultsImpl.class); + + private final ValidateRestoreFromDppCrossTenantVaultsClient innerClient; + + private final com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager; + + public ValidateRestoreFromDppCrossTenantVaultsImpl(ValidateRestoreFromDppCrossTenantVaultsClient innerClient, + com.azure.resourcemanager.dataprotection.DataProtectionManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public OperationJobExtendedInfo trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body) { + OperationJobExtendedInfoInner inner + = this.serviceClient().trigger(resourceGroupName, vaultName, mappingName, backupInstanceName, body); + if (inner != null) { + return new OperationJobExtendedInfoImpl(inner, this.manager()); + } else { + return null; + } + } + + public OperationJobExtendedInfo trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body, Context context) { + OperationJobExtendedInfoInner inner = this.serviceClient() + .trigger(resourceGroupName, vaultName, mappingName, backupInstanceName, body, context); + if (inner != null) { + return new OperationJobExtendedInfoImpl(inner, this.manager()); + } else { + return null; + } + } + + private ValidateRestoreFromDppCrossTenantVaultsClient 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/models/CrossTenantBackupInstanceResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/CrossTenantBackupInstanceResourceList.java new file mode 100644 index 0000000000000..6780c494194b0 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/CrossTenantBackupInstanceResourceList.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner; +import com.azure.resourcemanager.dataprotection.models.DppResourceList; +import java.io.IOException; +import java.util.List; + +/** + * Cross-tenant BackupInstance resource list response. + */ +@Immutable +public final class CrossTenantBackupInstanceResourceList extends DppResourceList { + /* + * List of resources. + */ + private List value; + + /* + * The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + */ + private String nextLink; + + /** + * Creates an instance of CrossTenantBackupInstanceResourceList class. + */ + private CrossTenantBackupInstanceResourceList() { + } + + /** + * Get the value property: List of resources. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The uri to fetch the next page of resources. Call ListNext() fetches next page of + * resources. + * + * @return the nextLink value. + */ + @Override + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", nextLink()); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantBackupInstanceResourceList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantBackupInstanceResourceList if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CrossTenantBackupInstanceResourceList. + */ + public static CrossTenantBackupInstanceResourceList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantBackupInstanceResourceList deserializedCrossTenantBackupInstanceResourceList + = new CrossTenantBackupInstanceResourceList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedCrossTenantBackupInstanceResourceList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> CrossTenantBackupInstanceResourceInner.fromJson(reader1)); + deserializedCrossTenantBackupInstanceResourceList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantBackupInstanceResourceList; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/CrossTenantVaultMappingList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/CrossTenantVaultMappingList.java new file mode 100644 index 0000000000000..e3ab03d4d185d --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/CrossTenantVaultMappingList.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingInner; +import com.azure.resourcemanager.dataprotection.models.DppResourceList; +import java.io.IOException; +import java.util.List; + +/** + * List of cross-tenant vault mapping resources. + */ +@Immutable +public final class CrossTenantVaultMappingList extends DppResourceList { + /* + * List of resources. + */ + private List value; + + /* + * The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. + */ + private String nextLink; + + /** + * Creates an instance of CrossTenantVaultMappingList class. + */ + private CrossTenantVaultMappingList() { + } + + /** + * Get the value property: List of resources. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The uri to fetch the next page of resources. Call ListNext() fetches next page of + * resources. + * + * @return the nextLink value. + */ + @Override + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", nextLink()); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantVaultMappingList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantVaultMappingList if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CrossTenantVaultMappingList. + */ + public static CrossTenantVaultMappingList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantVaultMappingList deserializedCrossTenantVaultMappingList = new CrossTenantVaultMappingList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedCrossTenantVaultMappingList.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> CrossTenantVaultMappingInner.fromJson(reader1)); + deserializedCrossTenantVaultMappingList.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantVaultMappingList; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..cd44e6480b078 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceFromDppCrossTenantVaults.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of BackupInstanceFromDppCrossTenantVaults. + */ +public interface BackupInstanceFromDppCrossTenantVaults { + /** + * Gets a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @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 backup instance of the mapped source vault in a different tenant along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, Context context); + + /** + * Gets a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @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 backup instance of the mapped source vault in a different tenant. + */ + CrossTenantBackupInstanceResource get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..93e34398a250d --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaults.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of BackupInstanceOperationResultFromDppCrossTenantVaults. + */ +public interface BackupInstanceOperationResultFromDppCrossTenantVaults { + /** + * Fetches the result of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the + * mapped source vault - the leg the restore's Location header points at. Returns 202 with Location/Retry-After + * while pending, and 200 with the operation result body when complete. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 operation Job Extended Info. + */ + Response getWithResponse(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId, Context context); + + /** + * Fetches the result of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the + * mapped source vault - the leg the restore's Location header points at. Returns 202 with Location/Retry-After + * while pending, and 200 with the operation result body when complete. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 operation Job Extended Info. + */ + OperationJobExtendedInfo get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders.java new file mode 100644 index 0000000000000..99d9d4c33796c --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.HttpHeaders; + +/** + * The BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders model. + */ +@Immutable +public final class BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders { + /* + * The Location property. + */ + private final String location; + + /* + * The Retry-After property. + */ + private final Integer retryAfter; + + // HttpHeaders containing the raw property values. + /** + * Creates an instance of BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders class. + * + * @param rawHeaders The raw HttpHeaders that will be used to create the property values. + */ + public BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders(HttpHeaders rawHeaders) { + this.location = rawHeaders.getValue(HttpHeaderName.LOCATION); + String retryAfter = rawHeaders.getValue(HttpHeaderName.RETRY_AFTER); + if (retryAfter != null) { + this.retryAfter = Integer.parseInt(retryAfter); + } else { + this.retryAfter = null; + } + } + + /** + * Get the location property: The Location property. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Get the retryAfter property: The Retry-After property. + * + * @return the retryAfter value. + */ + public Integer retryAfter() { + return this.retryAfter; + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse.java new file mode 100644 index 0000000000000..98da098154ffe --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; +import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; + +/** + * Contains all response data for the get operation. + */ +public final class BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse extends + ResponseBase { + /** + * Creates an instance of BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse. + * + * @param request the request which resulted in this + * BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse(HttpRequest request, int statusCode, + HttpHeaders rawHeaders, OperationJobExtendedInfoInner value, + BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } + + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ + @Override + public OperationJobExtendedInfoInner getValue() { + return super.getValue(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationStatusFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationStatusFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..9f212bdd53122 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationStatusFromDppCrossTenantVaults.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of BackupInstanceOperationStatusFromDppCrossTenantVaults. + */ +public interface BackupInstanceOperationStatusFromDppCrossTenantVaults { + /** + * Gets the status of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the mapped + * source vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 status of a cross-tenant operation (e.g along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String operationId, Context context); + + /** + * Gets the status of a cross-tenant operation (e.g. a cross-tenant restore) for a backup instance of the mapped + * source vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param operationId The name of the BackupInstanceResource. + * @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 status of a cross-tenant operation (e.g. + */ + OperationResource get(String resourceGroupName, String vaultName, String mappingName, String backupInstanceName, + String operationId); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..0567cd0ca8a93 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesFromDppCrossTenantVaults.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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 BackupInstancesFromDppCrossTenantVaults. + */ +public interface BackupInstancesFromDppCrossTenantVaults { + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 cross-tenant BackupInstance resource list response as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String vaultName, + String mappingName); + + /** + * Lists the backup instances of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 cross-tenant BackupInstance resource list response as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String vaultName, + String mappingName, Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupJobsFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupJobsFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..1d83e9353fc26 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupJobsFromDppCrossTenantVaults.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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 BackupJobsFromDppCrossTenantVaults. + */ +public interface BackupJobsFromDppCrossTenantVaults { + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 AzureBackup Job resources as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String vaultName, String mappingName); + + /** + * Lists the jobs of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @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 AzureBackup Job resources as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String vaultName, String mappingName, + Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupRuleBasedAutoProtectionSettings.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupRuleBasedAutoProtectionSettings.java index 677f1fce4be85..3362ef865d620 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupRuleBasedAutoProtectionSettings.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupRuleBasedAutoProtectionSettings.java @@ -22,6 +22,7 @@ public final class BlobBackupRuleBasedAutoProtectionSettings extends BlobBackupA private String objectType = "BlobBackupRuleBasedAutoProtectionSettings"; /* + * * Rules are evaluated in the order provided. Inclusion adds candidates; exclusion removes candidates. * If no rules are present, all containers are considered eligible when enabled = true. */ @@ -44,8 +45,8 @@ public String objectType() { } /** - * Get the rules property: Rules are evaluated in the order provided. Inclusion adds candidates; exclusion removes - * candidates. + * Get the rules property: + * Rules are evaluated in the order provided. Inclusion adds candidates; exclusion removes candidates. * If no rules are present, all containers are considered eligible when enabled = true. * * @return the rules value. @@ -55,8 +56,8 @@ public List rules() { } /** - * Set the rules property: Rules are evaluated in the order provided. Inclusion adds candidates; exclusion removes - * candidates. + * Set the rules property: + * Rules are evaluated in the order provided. Inclusion adds candidates; exclusion removes candidates. * If no rules are present, all containers are considered eligible when enabled = true. * * @param rules the rules value to set. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantAuthCredentials.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantAuthCredentials.java new file mode 100644 index 0000000000000..d46da4a27d000 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantAuthCredentials.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Cross-tenant projection of the authentication-credentials discriminated base, + * forked so its secret-store subtype references the value-less + * CrossTenantSecretStoreResource. Mirror any new AuthCredentials subtype here. + */ +@Immutable +public class CrossTenantAuthCredentials implements JsonSerializable { + /* + * Type of the specific object - used for deserializing. + */ + private String objectType = "CrossTenantAuthCredentials"; + + /** + * Creates an instance of CrossTenantAuthCredentials class. + */ + protected CrossTenantAuthCredentials() { + } + + /** + * Get the objectType property: Type of the specific object - used for deserializing. + * + * @return the objectType value. + */ + public String objectType() { + return this.objectType; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("objectType", this.objectType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantAuthCredentials from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantAuthCredentials if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CrossTenantAuthCredentials. + */ + public static CrossTenantAuthCredentials fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("objectType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("SecretStoreBasedAuthCredentials".equals(discriminatorValue)) { + return CrossTenantSecretStoreBasedAuthCredentials.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static CrossTenantAuthCredentials fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantAuthCredentials deserializedCrossTenantAuthCredentials = new CrossTenantAuthCredentials(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("objectType".equals(fieldName)) { + deserializedCrossTenantAuthCredentials.objectType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantAuthCredentials; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstance.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstance.java new file mode 100644 index 0000000000000..f32f386e83850 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstance.java @@ -0,0 +1,291 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Cross-tenant read projection of BackupInstance. Spreads the shared model so new + * fields flow through automatically; only datasourceAuthCredentials is re-typed to + * the value-less CrossTenantAuthCredentials chain. + */ +@Immutable +public final class CrossTenantBackupInstance implements JsonSerializable { + /* + * Gets or sets the Backup Instance friendly name. + */ + private String friendlyName; + + /* + * Gets or sets the data source information. + */ + private Datasource dataSourceInfo; + + /* + * Gets or sets the data source set information. + */ + private DatasourceSet dataSourceSetInfo; + + /* + * Gets or sets the policy information. + */ + private PolicyInfo policyInfo; + + /* + * ResourceGuardOperationRequests on which LAC check will be performed + */ + private List resourceGuardOperationRequests; + + /* + * Specifies the protection status of the resource + */ + private ProtectionStatusDetails protectionStatus; + + /* + * Specifies the current protection state of the resource + */ + private CurrentProtectionState currentProtectionState; + + /* + * Specifies the protection error of the resource + */ + private UserFacingError protectionErrorDetails; + + /* + * Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed + */ + private String provisioningState; + + /* + * Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run + * again. + */ + private ValidationType validationType; + + /* + * Contains information of the Identity Details for the BI. + * If it is null, default will be considered as System Assigned. + */ + private IdentityDetails identityDetails; + + /* + * The objectType property. + */ + private String objectType; + + /* + * Credentials to use to authenticate with data source provider. + */ + private CrossTenantAuthCredentials datasourceAuthCredentials; + + /** + * Creates an instance of CrossTenantBackupInstance class. + */ + private CrossTenantBackupInstance() { + } + + /** + * Get the friendlyName property: Gets or sets the Backup Instance friendly name. + * + * @return the friendlyName value. + */ + public String friendlyName() { + return this.friendlyName; + } + + /** + * Get the dataSourceInfo property: Gets or sets the data source information. + * + * @return the dataSourceInfo value. + */ + public Datasource dataSourceInfo() { + return this.dataSourceInfo; + } + + /** + * Get the dataSourceSetInfo property: Gets or sets the data source set information. + * + * @return the dataSourceSetInfo value. + */ + public DatasourceSet dataSourceSetInfo() { + return this.dataSourceSetInfo; + } + + /** + * Get the policyInfo property: Gets or sets the policy information. + * + * @return the policyInfo value. + */ + public PolicyInfo policyInfo() { + return this.policyInfo; + } + + /** + * Get the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be + * performed. + * + * @return the resourceGuardOperationRequests value. + */ + public List resourceGuardOperationRequests() { + return this.resourceGuardOperationRequests; + } + + /** + * Get the protectionStatus property: Specifies the protection status of the resource. + * + * @return the protectionStatus value. + */ + public ProtectionStatusDetails protectionStatus() { + return this.protectionStatus; + } + + /** + * Get the currentProtectionState property: Specifies the current protection state of the resource. + * + * @return the currentProtectionState value. + */ + public CurrentProtectionState currentProtectionState() { + return this.currentProtectionState; + } + + /** + * Get the protectionErrorDetails property: Specifies the protection error of the resource. + * + * @return the protectionErrorDetails value. + */ + public UserFacingError protectionErrorDetails() { + return this.protectionErrorDetails; + } + + /** + * Get the provisioningState property: Specifies the provisioning state of the resource i.e. + * provisioning/updating/Succeeded/Failed. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the validationType property: Specifies the type of validation. In case of DeepValidation, all validations + * from /validateForBackup API will run again. + * + * @return the validationType value. + */ + public ValidationType validationType() { + return this.validationType; + } + + /** + * Get the identityDetails property: Contains information of the Identity Details for the BI. + * If it is null, default will be considered as System Assigned. + * + * @return the identityDetails value. + */ + public IdentityDetails identityDetails() { + return this.identityDetails; + } + + /** + * Get the objectType property: The objectType property. + * + * @return the objectType value. + */ + public String objectType() { + return this.objectType; + } + + /** + * Get the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider. + * + * @return the datasourceAuthCredentials value. + */ + public CrossTenantAuthCredentials datasourceAuthCredentials() { + return this.datasourceAuthCredentials; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("dataSourceInfo", this.dataSourceInfo); + jsonWriter.writeJsonField("policyInfo", this.policyInfo); + jsonWriter.writeStringField("objectType", this.objectType); + jsonWriter.writeStringField("friendlyName", this.friendlyName); + jsonWriter.writeJsonField("dataSourceSetInfo", this.dataSourceSetInfo); + jsonWriter.writeArrayField("resourceGuardOperationRequests", this.resourceGuardOperationRequests, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("validationType", + this.validationType == null ? null : this.validationType.toString()); + jsonWriter.writeJsonField("identityDetails", this.identityDetails); + jsonWriter.writeJsonField("datasourceAuthCredentials", this.datasourceAuthCredentials); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantBackupInstance from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantBackupInstance if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CrossTenantBackupInstance. + */ + public static CrossTenantBackupInstance fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantBackupInstance deserializedCrossTenantBackupInstance = new CrossTenantBackupInstance(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("dataSourceInfo".equals(fieldName)) { + deserializedCrossTenantBackupInstance.dataSourceInfo = Datasource.fromJson(reader); + } else if ("policyInfo".equals(fieldName)) { + deserializedCrossTenantBackupInstance.policyInfo = PolicyInfo.fromJson(reader); + } else if ("objectType".equals(fieldName)) { + deserializedCrossTenantBackupInstance.objectType = reader.getString(); + } else if ("friendlyName".equals(fieldName)) { + deserializedCrossTenantBackupInstance.friendlyName = reader.getString(); + } else if ("dataSourceSetInfo".equals(fieldName)) { + deserializedCrossTenantBackupInstance.dataSourceSetInfo = DatasourceSet.fromJson(reader); + } else if ("resourceGuardOperationRequests".equals(fieldName)) { + List resourceGuardOperationRequests = reader.readArray(reader1 -> reader1.getString()); + deserializedCrossTenantBackupInstance.resourceGuardOperationRequests + = resourceGuardOperationRequests; + } else if ("protectionStatus".equals(fieldName)) { + deserializedCrossTenantBackupInstance.protectionStatus = ProtectionStatusDetails.fromJson(reader); + } else if ("currentProtectionState".equals(fieldName)) { + deserializedCrossTenantBackupInstance.currentProtectionState + = CurrentProtectionState.fromString(reader.getString()); + } else if ("protectionErrorDetails".equals(fieldName)) { + deserializedCrossTenantBackupInstance.protectionErrorDetails = UserFacingError.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedCrossTenantBackupInstance.provisioningState = reader.getString(); + } else if ("validationType".equals(fieldName)) { + deserializedCrossTenantBackupInstance.validationType + = ValidationType.fromString(reader.getString()); + } else if ("identityDetails".equals(fieldName)) { + deserializedCrossTenantBackupInstance.identityDetails = IdentityDetails.fromJson(reader); + } else if ("datasourceAuthCredentials".equals(fieldName)) { + deserializedCrossTenantBackupInstance.datasourceAuthCredentials + = CrossTenantAuthCredentials.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantBackupInstance; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstanceResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstanceResource.java new file mode 100644 index 0000000000000..95a92c6311562 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstanceResource.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner; +import java.util.Map; + +/** + * An immutable client-side representation of CrossTenantBackupInstanceResource. + */ +public interface CrossTenantBackupInstanceResource { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + CrossTenantBackupInstance properties(); + + /** + * Gets the tags property: Proxy Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner + * object. + * + * @return the inner object. + */ + CrossTenantBackupInstanceResourceInner innerModel(); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreBasedAuthCredentials.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreBasedAuthCredentials.java new file mode 100644 index 0000000000000..d19a362a9c6d0 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreBasedAuthCredentials.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Cross-tenant projection of SecretStoreBasedAuthCredentials whose secret store + * omits `value`. + */ +@Immutable +public final class CrossTenantSecretStoreBasedAuthCredentials extends CrossTenantAuthCredentials { + /* + * Type of the specific object - used for deserializing. + */ + private String objectType = "SecretStoreBasedAuthCredentials"; + + /* + * Secret store resource (cross-tenant read projection, without `value`). + */ + private CrossTenantSecretStoreResource secretStoreResource; + + /** + * Creates an instance of CrossTenantSecretStoreBasedAuthCredentials class. + */ + private CrossTenantSecretStoreBasedAuthCredentials() { + } + + /** + * Get the objectType property: Type of the specific object - used for deserializing. + * + * @return the objectType value. + */ + @Override + public String objectType() { + return this.objectType; + } + + /** + * Get the secretStoreResource property: Secret store resource (cross-tenant read projection, without `value`). + * + * @return the secretStoreResource value. + */ + public CrossTenantSecretStoreResource secretStoreResource() { + return this.secretStoreResource; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("objectType", this.objectType); + jsonWriter.writeJsonField("secretStoreResource", this.secretStoreResource); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantSecretStoreBasedAuthCredentials from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantSecretStoreBasedAuthCredentials if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CrossTenantSecretStoreBasedAuthCredentials. + */ + public static CrossTenantSecretStoreBasedAuthCredentials fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantSecretStoreBasedAuthCredentials deserializedCrossTenantSecretStoreBasedAuthCredentials + = new CrossTenantSecretStoreBasedAuthCredentials(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("objectType".equals(fieldName)) { + deserializedCrossTenantSecretStoreBasedAuthCredentials.objectType = reader.getString(); + } else if ("secretStoreResource".equals(fieldName)) { + deserializedCrossTenantSecretStoreBasedAuthCredentials.secretStoreResource + = CrossTenantSecretStoreResource.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantSecretStoreBasedAuthCredentials; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreResource.java new file mode 100644 index 0000000000000..18b0227738bd6 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreResource.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Cross-tenant projection of SecretStoreResource used only by the cross-tenant + * backup-instance read surface: the shared model minus `value` (a write-time + * credential the service never returns). Spread keeps uri/secretStoreType in sync. + */ +@Immutable +public final class CrossTenantSecretStoreResource implements JsonSerializable { + /* + * Uri to get to the resource + */ + private String uri; + + /* + * Gets or sets the type of secret store + */ + private SecretStoreType secretStoreType; + + /** + * Creates an instance of CrossTenantSecretStoreResource class. + */ + private CrossTenantSecretStoreResource() { + } + + /** + * Get the uri property: Uri to get to the resource. + * + * @return the uri value. + */ + public String uri() { + return this.uri; + } + + /** + * Get the secretStoreType property: Gets or sets the type of secret store. + * + * @return the secretStoreType value. + */ + public SecretStoreType secretStoreType() { + return this.secretStoreType; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("secretStoreType", + this.secretStoreType == null ? null : this.secretStoreType.toString()); + jsonWriter.writeStringField("uri", this.uri); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantSecretStoreResource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantSecretStoreResource if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CrossTenantSecretStoreResource. + */ + public static CrossTenantSecretStoreResource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantSecretStoreResource deserializedCrossTenantSecretStoreResource + = new CrossTenantSecretStoreResource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("secretStoreType".equals(fieldName)) { + deserializedCrossTenantSecretStoreResource.secretStoreType + = SecretStoreType.fromString(reader.getString()); + } else if ("uri".equals(fieldName)) { + deserializedCrossTenantSecretStoreResource.uri = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantSecretStoreResource; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMapping.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMapping.java new file mode 100644 index 0000000000000..212c486baf5e9 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMapping.java @@ -0,0 +1,210 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.CrossTenantVaultMappingInner; + +/** + * An immutable client-side representation of CrossTenantVaultMapping. + */ +public interface CrossTenantVaultMapping { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: CrossTenantVaultMapping properties. + * + * @return the properties value. + */ + CrossTenantVaultMappingProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * 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.CrossTenantVaultMappingInner object. + * + * @return the inner object. + */ + CrossTenantVaultMappingInner innerModel(); + + /** + * The entirety of the CrossTenantVaultMapping definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The CrossTenantVaultMapping definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the CrossTenantVaultMapping definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the CrossTenantVaultMapping definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, vaultName. + * + * @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. + */ + WithCreate withExistingBackupVault(String resourceGroupName, String vaultName); + } + + /** + * The stage of the CrossTenantVaultMapping 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. + */ + CrossTenantVaultMapping create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + CrossTenantVaultMapping create(Context context); + } + + /** + * The stage of the CrossTenantVaultMapping definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: CrossTenantVaultMapping properties.. + * + * @param properties CrossTenantVaultMapping properties. + * @return the next definition stage. + */ + WithCreate withProperties(CrossTenantVaultMappingProperties properties); + } + } + + /** + * Begins update for the CrossTenantVaultMapping resource. + * + * @return the stage of resource update. + */ + CrossTenantVaultMapping.Update update(); + + /** + * The template for CrossTenantVaultMapping update. + */ + interface Update extends UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + CrossTenantVaultMapping apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + CrossTenantVaultMapping apply(Context context); + } + + /** + * The CrossTenantVaultMapping update stages. + */ + interface UpdateStages { + /** + * The stage of the CrossTenantVaultMapping update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: CrossTenantVaultMapping properties.. + * + * @param properties CrossTenantVaultMapping properties. + * @return the next definition stage. + */ + Update withProperties(CrossTenantVaultMappingProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + CrossTenantVaultMapping refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + CrossTenantVaultMapping refresh(Context context); + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @param body The content of the action request. + * @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 removeWithResponse(CrossTenantVaultMappingRemoveRequest body, Context context); + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @throws com.azure.core.management.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 remove(); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingProperties.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingProperties.java new file mode 100644 index 0000000000000..ed0e37a2f116b --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingProperties.java @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Cross-tenant vault mapping properties for cross-tenant restore. + */ +@Fluent +public final class CrossTenantVaultMappingProperties implements JsonSerializable { + /* + * ARM resource ID of the source backup vault whose data can be restored across tenants. + */ + private String sourceVaultId; + + /* + * ResourceGuardOperationRequests on which the MUA (LAC) check will be performed. + */ + private List resourceGuardOperationRequests; + + /* + * Tenant ID of the source vault in the cross-tenant vault mapping. + */ + private String sourceTenantId; + + /* + * Provisioning state of the cross-tenant vault mapping. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of CrossTenantVaultMappingProperties class. + */ + public CrossTenantVaultMappingProperties() { + } + + /** + * Get the sourceVaultId property: ARM resource ID of the source backup vault whose data can be restored across + * tenants. + * + * @return the sourceVaultId value. + */ + public String sourceVaultId() { + return this.sourceVaultId; + } + + /** + * Set the sourceVaultId property: ARM resource ID of the source backup vault whose data can be restored across + * tenants. + * + * @param sourceVaultId the sourceVaultId value to set. + * @return the CrossTenantVaultMappingProperties object itself. + */ + public CrossTenantVaultMappingProperties withSourceVaultId(String sourceVaultId) { + this.sourceVaultId = sourceVaultId; + return this; + } + + /** + * Get the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which the MUA (LAC) check will + * be performed. + * + * @return the resourceGuardOperationRequests value. + */ + public List resourceGuardOperationRequests() { + return this.resourceGuardOperationRequests; + } + + /** + * Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which the MUA (LAC) check will + * be performed. + * + * @param resourceGuardOperationRequests the resourceGuardOperationRequests value to set. + * @return the CrossTenantVaultMappingProperties object itself. + */ + public CrossTenantVaultMappingProperties + withResourceGuardOperationRequests(List resourceGuardOperationRequests) { + this.resourceGuardOperationRequests = resourceGuardOperationRequests; + return this; + } + + /** + * Get the sourceTenantId property: Tenant ID of the source vault in the cross-tenant vault mapping. + * + * @return the sourceTenantId value. + */ + public String sourceTenantId() { + return this.sourceTenantId; + } + + /** + * Get the provisioningState property: Provisioning state of the cross-tenant vault mapping. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("sourceVaultId", this.sourceVaultId); + jsonWriter.writeArrayField("resourceGuardOperationRequests", this.resourceGuardOperationRequests, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantVaultMappingProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantVaultMappingProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the CrossTenantVaultMappingProperties. + */ + public static CrossTenantVaultMappingProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantVaultMappingProperties deserializedCrossTenantVaultMappingProperties + = new CrossTenantVaultMappingProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("sourceVaultId".equals(fieldName)) { + deserializedCrossTenantVaultMappingProperties.sourceVaultId = reader.getString(); + } else if ("resourceGuardOperationRequests".equals(fieldName)) { + List resourceGuardOperationRequests = reader.readArray(reader1 -> reader1.getString()); + deserializedCrossTenantVaultMappingProperties.resourceGuardOperationRequests + = resourceGuardOperationRequests; + } else if ("sourceTenantId".equals(fieldName)) { + deserializedCrossTenantVaultMappingProperties.sourceTenantId = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedCrossTenantVaultMappingProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantVaultMappingProperties; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequest.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequest.java new file mode 100644 index 0000000000000..c59129d5f28fc --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequest.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Request body for the remove cross-tenant vault mapping action. Carries the Resource Guard + * operation requests used for the MUA (multi-user authorization) check on the remove. + */ +@Fluent +public final class CrossTenantVaultMappingRemoveRequest + implements JsonSerializable { + /* + * Properties of the remove cross-tenant vault mapping request. + */ + private CrossTenantVaultMappingRemoveRequestProperties properties; + + /** + * Creates an instance of CrossTenantVaultMappingRemoveRequest class. + */ + public CrossTenantVaultMappingRemoveRequest() { + } + + /** + * Get the properties property: Properties of the remove cross-tenant vault mapping request. + * + * @return the properties value. + */ + public CrossTenantVaultMappingRemoveRequestProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of the remove cross-tenant vault mapping request. + * + * @param properties the properties value to set. + * @return the CrossTenantVaultMappingRemoveRequest object itself. + */ + public CrossTenantVaultMappingRemoveRequest + withProperties(CrossTenantVaultMappingRemoveRequestProperties properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantVaultMappingRemoveRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantVaultMappingRemoveRequest if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CrossTenantVaultMappingRemoveRequest. + */ + public static CrossTenantVaultMappingRemoveRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantVaultMappingRemoveRequest deserializedCrossTenantVaultMappingRemoveRequest + = new CrossTenantVaultMappingRemoveRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedCrossTenantVaultMappingRemoveRequest.properties + = CrossTenantVaultMappingRemoveRequestProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantVaultMappingRemoveRequest; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequestProperties.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequestProperties.java new file mode 100644 index 0000000000000..6d50a6747eb69 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequestProperties.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Properties of the remove cross-tenant vault mapping request. + */ +@Fluent +public final class CrossTenantVaultMappingRemoveRequestProperties + implements JsonSerializable { + /* + * ResourceGuardOperationRequests on which the MUA (LAC) check will be performed for the remove. + */ + private List resourceGuardOperationRequests; + + /** + * Creates an instance of CrossTenantVaultMappingRemoveRequestProperties class. + */ + public CrossTenantVaultMappingRemoveRequestProperties() { + } + + /** + * Get the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which the MUA (LAC) check will + * be performed for the remove. + * + * @return the resourceGuardOperationRequests value. + */ + public List resourceGuardOperationRequests() { + return this.resourceGuardOperationRequests; + } + + /** + * Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which the MUA (LAC) check will + * be performed for the remove. + * + * @param resourceGuardOperationRequests the resourceGuardOperationRequests value to set. + * @return the CrossTenantVaultMappingRemoveRequestProperties object itself. + */ + public CrossTenantVaultMappingRemoveRequestProperties + withResourceGuardOperationRequests(List resourceGuardOperationRequests) { + this.resourceGuardOperationRequests = resourceGuardOperationRequests; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("resourceGuardOperationRequests", this.resourceGuardOperationRequests, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CrossTenantVaultMappingRemoveRequestProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CrossTenantVaultMappingRemoveRequestProperties if the JsonReader was pointing to an + * instance of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the CrossTenantVaultMappingRemoveRequestProperties. + */ + public static CrossTenantVaultMappingRemoveRequestProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CrossTenantVaultMappingRemoveRequestProperties deserializedCrossTenantVaultMappingRemoveRequestProperties + = new CrossTenantVaultMappingRemoveRequestProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceGuardOperationRequests".equals(fieldName)) { + List resourceGuardOperationRequests = reader.readArray(reader1 -> reader1.getString()); + deserializedCrossTenantVaultMappingRemoveRequestProperties.resourceGuardOperationRequests + = resourceGuardOperationRequests; + } else { + reader.skipChildren(); + } + } + + return deserializedCrossTenantVaultMappingRemoveRequestProperties; + }); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingStatusResponse.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingStatusResponse.java new file mode 100644 index 0000000000000..c1a686e335d50 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingStatusResponse.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingStatusResponseInner; + +/** + * An immutable client-side representation of CrossTenantVaultMappingStatusResponse. + */ +public interface CrossTenantVaultMappingStatusResponse { + /** + * Gets the mappingName property: Name of the cross-tenant vault mapping, if the source vault is mapped. + * + * @return the mappingName value. + */ + String mappingName(); + + /** + * Gets the mappingState property: Current state of the cross-tenant vault mapping. + * + * @return the mappingState value. + */ + VaultMappingState mappingState(); + + /** + * Gets the inner com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingStatusResponseInner + * object. + * + * @return the inner object. + */ + CrossTenantVaultMappingStatusResponseInner innerModel(); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappingStatus.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappingStatus.java new file mode 100644 index 0000000000000..04449c784ffb6 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappingStatus.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of DppCrossTenantVaultMappingStatus. + */ +public interface DppCrossTenantVaultMappingStatus { + /** + * Gets the status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + * + * @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 status (Active/Inactive) of a cross-tenant vault mapping from the source vault side along with + * {@link Response}. + */ + Response checkWithResponse(String resourceGroupName, String vaultName, + Context context); + + /** + * Gets the status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + * + * @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 status (Active/Inactive) of a cross-tenant vault mapping from the source vault side. + */ + CrossTenantVaultMappingStatusResponse check(String resourceGroupName, String vaultName); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappings.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappings.java new file mode 100644 index 0000000000000..52a0ada9a3181 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappings.java @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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 DppCrossTenantVaultMappings. + */ +public interface DppCrossTenantVaultMappings { + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @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 cross-tenant vault mapping by name from the target vault along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String vaultName, String mappingName, + Context context); + + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @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 cross-tenant vault mapping by name from the target vault. + */ + CrossTenantVaultMapping get(String resourceGroupName, String vaultName, String mappingName); + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping resources as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String vaultName); + + /** + * Lists the cross-tenant vault mappings under the target vault. + * + * @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 list of cross-tenant vault mapping resources as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String vaultName, Context context); + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @param body The content of the action request. + * @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 removeWithResponse(String resourceGroupName, String vaultName, String mappingName, + CrossTenantVaultMappingRemoveRequest body, Context context); + + /** + * Removes a cross-tenant vault mapping from the target vault. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the backup vault. + * @param mappingName The name of the cross-tenant vault mapping. + * @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 remove(String resourceGroupName, String vaultName, String mappingName); + + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @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 a cross-tenant vault mapping by name from the target vault along with {@link Response}. + */ + CrossTenantVaultMapping getById(String id); + + /** + * Gets a cross-tenant vault mapping by name from the target vault. + * + * @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 a cross-tenant vault mapping by name from the target vault along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new CrossTenantVaultMapping resource. + * + * @param name resource name. + * @return the first stage of the new CrossTenantVaultMapping definition. + */ + CrossTenantVaultMapping.DefinitionStages.Blank define(String name); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/JobFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/JobFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..94afab9ed5674 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/JobFromDppCrossTenantVaults.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of JobFromDppCrossTenantVaults. + */ +public interface JobFromDppCrossTenantVaults { + /** + * Gets a job of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param jobId The name of the AzureBackupJobResource. + * @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 job of the mapped source vault in a different tenant along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String vaultName, String mappingName, + String jobId, Context context); + + /** + * Gets a job of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param jobId The name of the AzureBackupJobResource. + * @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 job of the mapped source vault in a different tenant. + */ + AzureBackupJobResource get(String resourceGroupName, String vaultName, String mappingName, String jobId); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..33584623387fe --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointFromDppCrossTenantVaults.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of RecoveryPointFromDppCrossTenantVaults. + */ +public interface RecoveryPointFromDppCrossTenantVaults { + /** + * Gets a vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param recoveryPointId The name of the AzureBackupRecoveryPointResource. + * @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 vault-tier recovery point for a backup instance of the mapped source vault in a different tenant along + * with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, String recoveryPointId, Context context); + + /** + * Gets a vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param recoveryPointId The name of the AzureBackupRecoveryPointResource. + * @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 vault-tier recovery point for a backup instance of the mapped source vault in a different tenant. + */ + AzureBackupRecoveryPointResource get(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String recoveryPointId); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointsFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointsFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..a3ca26c1b1cc6 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointsFromDppCrossTenantVaults.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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 RecoveryPointsFromDppCrossTenantVaults. + */ +public interface RecoveryPointsFromDppCrossTenantVaults { + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @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 azure backup recoveryPoint resource list as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName); + + /** + * Lists the vault-tier recovery points for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param filter OData filter options. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return azure backup recoveryPoint resource list as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, String filter, Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRangesFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRangesFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..dd2b5d2eb09f0 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRangesFromDppCrossTenantVaults.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of RestorableTimeRangesFromDppCrossTenantVaults. + */ +public interface RestorableTimeRangesFromDppCrossTenantVaults { + /** + * Finds the restorable time ranges for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 list Restore Ranges Response along with {@link Response}. + */ + Response findWithResponse(String resourceGroupName, + String vaultName, String mappingName, String backupInstanceName, + AzureBackupFindRestorableTimeRangesRequest body, Context context); + + /** + * Finds the restorable time ranges for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 list Restore Ranges Response. + */ + AzureBackupFindRestorableTimeRangesResponseResource find(String resourceGroupName, String vaultName, + String mappingName, String backupInstanceName, AzureBackupFindRestorableTimeRangesRequest body); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoresFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoresFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..66f24326d4e31 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoresFromDppCrossTenantVaults.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.util.Context; + +/** + * Resource collection API of RestoresFromDppCrossTenantVaults. + */ +public interface RestoresFromDppCrossTenantVaults { + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + OperationJobExtendedInfo trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body); + + /** + * Triggers restore for a backup instance of the mapped source vault in a different tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + OperationJobExtendedInfo trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, AzureBackupRestoreRequest body, Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateRestoreFromDppCrossTenantVaults.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateRestoreFromDppCrossTenantVaults.java new file mode 100644 index 0000000000000..074ea3c9584d8 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateRestoreFromDppCrossTenantVaults.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.util.Context; + +/** + * Resource collection API of ValidateRestoreFromDppCrossTenantVaults. + */ +public interface ValidateRestoreFromDppCrossTenantVaults { + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + OperationJobExtendedInfo trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body); + + /** + * Validates whether restore can be triggered for a backup instance of the mapped source vault in a different + * tenant. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the BackupVaultResource. + * @param mappingName The name of the CrossTenantVaultMapping. + * @param backupInstanceName The name of the BackupInstanceResource. + * @param body 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 operation Job Extended Info. + */ + OperationJobExtendedInfo trigger(String resourceGroupName, String vaultName, String mappingName, + String backupInstanceName, ValidateRestoreRequestObject body, Context context); +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/VaultMappingState.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/VaultMappingState.java new file mode 100644 index 0000000000000..97308a9e14b28 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/VaultMappingState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * State of a cross-tenant vault mapping. + */ +public final class VaultMappingState extends ExpandableStringEnum { + /** + * The cross-tenant vault mapping is active. + */ + public static final VaultMappingState ACTIVE = fromString("Active"); + + /** + * The cross-tenant vault mapping is inactive. + */ + public static final VaultMappingState INACTIVE = fromString("Inactive"); + + /** + * Creates a new instance of VaultMappingState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VaultMappingState() { + } + + /** + * Creates or finds a VaultMappingState from its string representation. + * + * @param name a name to look for. + * @return the corresponding VaultMappingState. + */ + public static VaultMappingState fromString(String name) { + return fromString(name, VaultMappingState.class); + } + + /** + * Gets known VaultMappingState values. + * + * @return known VaultMappingState values. + */ + public static Collection values() { + return values(VaultMappingState.class); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/azure-resourcemanager-dataprotection_metadata.json b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/azure-resourcemanager-dataprotection_metadata.json index 3850224ed78c4..3e8b6e795c3d8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/azure-resourcemanager-dataprotection_metadata.json +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/azure-resourcemanager-dataprotection_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.DataProtection":"2026-07-01"},"crossLanguagePackageId":"Microsoft.DataProtection","crossLanguageVersion":"332966f982f0","crossLanguageDefinitions":{"com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient":"Microsoft.DataProtection.BackupInstances","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.adhocBackup":"Microsoft.DataProtection.BackupInstanceResources.adhocBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginAdhocBackup":"Microsoft.DataProtection.BackupInstanceResources.adhocBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginCreateOrUpdate":"Microsoft.DataProtection.BackupInstanceResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginDelete":"Microsoft.DataProtection.BackupInstanceResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginResumeBackups":"Microsoft.DataProtection.BackupInstanceResources.resumeBackups","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginResumeProtection":"Microsoft.DataProtection.BackupInstanceResources.resumeProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginStopProtection":"Microsoft.DataProtection.BackupInstanceResources.stopProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginSuspendBackups":"Microsoft.DataProtection.BackupInstanceResources.suspendBackups","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginSyncBackupInstance":"Microsoft.DataProtection.BackupInstanceResources.syncBackupInstance","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginTriggerCrossRegionRestore":"Microsoft.DataProtection.BackupInstancesOperationGroup.triggerCrossRegionRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginTriggerRehydrate":"Microsoft.DataProtection.BackupInstanceResources.triggerRehydrate","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginTriggerRestore":"Microsoft.DataProtection.BackupInstanceResources.triggerRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginValidateCrossRegionRestore":"Microsoft.DataProtection.BackupInstancesOperationGroup.validateCrossRegionRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginValidateForBackup":"Microsoft.DataProtection.BackupVaultResources.validateForBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginValidateForModifyBackup":"Microsoft.DataProtection.BackupInstanceResources.validateForModifyBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginValidateForRestore":"Microsoft.DataProtection.BackupInstanceResources.validateForRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.createOrUpdate":"Microsoft.DataProtection.BackupInstanceResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.delete":"Microsoft.DataProtection.BackupInstanceResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.get":"Microsoft.DataProtection.BackupInstanceResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.getBackupInstanceOperationResult":"Microsoft.DataProtection.BackupInstances.getBackupInstanceOperationResult","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.getBackupInstanceOperationResultWithResponse":"Microsoft.DataProtection.BackupInstances.getBackupInstanceOperationResult","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.getWithResponse":"Microsoft.DataProtection.BackupInstanceResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.list":"Microsoft.DataProtection.BackupInstances.list","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.resumeBackups":"Microsoft.DataProtection.BackupInstanceResources.resumeBackups","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.resumeProtection":"Microsoft.DataProtection.BackupInstanceResources.resumeProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.stopProtection":"Microsoft.DataProtection.BackupInstanceResources.stopProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.suspendBackups":"Microsoft.DataProtection.BackupInstanceResources.suspendBackups","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.syncBackupInstance":"Microsoft.DataProtection.BackupInstanceResources.syncBackupInstance","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.triggerCrossRegionRestore":"Microsoft.DataProtection.BackupInstancesOperationGroup.triggerCrossRegionRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.triggerRehydrate":"Microsoft.DataProtection.BackupInstanceResources.triggerRehydrate","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.triggerRestore":"Microsoft.DataProtection.BackupInstanceResources.triggerRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.validateCrossRegionRestore":"Microsoft.DataProtection.BackupInstancesOperationGroup.validateCrossRegionRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.validateForBackup":"Microsoft.DataProtection.BackupVaultResources.validateForBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.validateForModifyBackup":"Microsoft.DataProtection.BackupInstanceResources.validateForModifyBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.validateForRestore":"Microsoft.DataProtection.BackupInstanceResources.validateForRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesExtensionRoutingsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesExtensionRoutingsClient.list":"Microsoft.DataProtection.BackupInstancesExtensionRoutingOperationGroup.list","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.createOrUpdate":"Microsoft.DataProtection.BaseBackupPolicyResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.createOrUpdateWithResponse":"Microsoft.DataProtection.BaseBackupPolicyResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.delete":"Microsoft.DataProtection.BaseBackupPolicyResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.deleteWithResponse":"Microsoft.DataProtection.BaseBackupPolicyResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.get":"Microsoft.DataProtection.BaseBackupPolicyResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.getWithResponse":"Microsoft.DataProtection.BaseBackupPolicyResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.list":"Microsoft.DataProtection.BaseBackupPolicyResources.list","com.azure.resourcemanager.dataprotection.fluent.BackupVaultOperationResultsClient":"Microsoft.DataProtection.BackupVaultOperationResults","com.azure.resourcemanager.dataprotection.fluent.BackupVaultOperationResultsClient.get":"Microsoft.DataProtection.BackupVaultOperationResults.get","com.azure.resourcemanager.dataprotection.fluent.BackupVaultOperationResultsClient.getWithResponse":"Microsoft.DataProtection.BackupVaultOperationResults.get","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.beginCreateOrUpdate":"Microsoft.DataProtection.BackupVaultResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.beginDelete":"Microsoft.DataProtection.BackupVaultResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.beginUpdate":"Microsoft.DataProtection.BackupVaultResources.update","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.checkNameAvailability":"Microsoft.DataProtection.BackupVaultsOperationGroup.checkNameAvailability","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.checkNameAvailabilityWithResponse":"Microsoft.DataProtection.BackupVaultsOperationGroup.checkNameAvailability","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.createOrUpdate":"Microsoft.DataProtection.BackupVaultResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.delete":"Microsoft.DataProtection.BackupVaultResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.getByResourceGroup":"Microsoft.DataProtection.BackupVaultResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.getByResourceGroupWithResponse":"Microsoft.DataProtection.BackupVaultResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.list":"Microsoft.DataProtection.BackupVaultResources.getInSubscription","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.listByResourceGroup":"Microsoft.DataProtection.BackupVaultOperationResults.getInResourceGroup","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.update":"Microsoft.DataProtection.BackupVaultResources.update","com.azure.resourcemanager.dataprotection.fluent.DataProtectionManagementClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.DataProtectionOperationsClient":"Microsoft.DataProtection.Operations","com.azure.resourcemanager.dataprotection.fluent.DataProtectionOperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.dataprotection.fluent.DataProtectionsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.DataProtectionsClient.checkFeatureSupport":"Microsoft.DataProtection.DataProtectionOperationGroup.checkFeatureSupport","com.azure.resourcemanager.dataprotection.fluent.DataProtectionsClient.checkFeatureSupportWithResponse":"Microsoft.DataProtection.DataProtectionOperationGroup.checkFeatureSupport","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.beginUndelete":"Microsoft.DataProtection.DeletedBackupInstanceResources.undelete","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.get":"Microsoft.DataProtection.DeletedBackupInstanceResources.get","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.getWithResponse":"Microsoft.DataProtection.DeletedBackupInstanceResources.get","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.list":"Microsoft.DataProtection.DeletedBackupInstanceResources.list","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.undelete":"Microsoft.DataProtection.DeletedBackupInstanceResources.undelete","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupVaultsClient":"Microsoft.DataProtection.DeletedBackupVaults","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupVaultsClient.get":"Microsoft.DataProtection.DeletedBackupVaults.get","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupVaultsClient.getWithResponse":"Microsoft.DataProtection.DeletedBackupVaults.get","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupVaultsClient.listByLocation":"Microsoft.DataProtection.DeletedBackupVaults.listByLocation","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.createOrUpdate":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.createOrUpdateWithResponse":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.delete":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.delete","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.deleteWithResponse":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.delete","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.get":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.get","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.getWithResponse":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.get","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.list":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.list","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.unlockDelete":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.unlockDelete","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.unlockDeleteWithResponse":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.unlockDelete","com.azure.resourcemanager.dataprotection.fluent.ExportJobsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.ExportJobsClient.beginTrigger":"Microsoft.DataProtection.BackupVaultResources.trigger","com.azure.resourcemanager.dataprotection.fluent.ExportJobsClient.trigger":"Microsoft.DataProtection.BackupVaultResources.trigger","com.azure.resourcemanager.dataprotection.fluent.ExportJobsOperationResultsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.ExportJobsOperationResultsClient.get":"Microsoft.DataProtection.BackupVaultResources.exportJobsOperationResultGet","com.azure.resourcemanager.dataprotection.fluent.ExportJobsOperationResultsClient.getWithResponse":"Microsoft.DataProtection.BackupVaultResources.exportJobsOperationResultGet","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsClient.get":"Microsoft.DataProtection.FetchCrossRegionRestoreJobOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsClient.getWithResponse":"Microsoft.DataProtection.FetchCrossRegionRestoreJobOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsOperationsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsOperationsClient.list":"Microsoft.DataProtection.FetchCrossRegionRestoreJobsOperationGroup.list","com.azure.resourcemanager.dataprotection.fluent.FetchSecondaryRecoveryPointsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.FetchSecondaryRecoveryPointsClient.list":"Microsoft.DataProtection.FetchSecondaryRecoveryPointsOperationGroup.list","com.azure.resourcemanager.dataprotection.fluent.JobsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.JobsClient.get":"Microsoft.DataProtection.AzureBackupJobResources.get","com.azure.resourcemanager.dataprotection.fluent.JobsClient.getWithResponse":"Microsoft.DataProtection.AzureBackupJobResources.get","com.azure.resourcemanager.dataprotection.fluent.JobsClient.list":"Microsoft.DataProtection.AzureBackupJobResources.list","com.azure.resourcemanager.dataprotection.fluent.OperationResultsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.OperationResultsClient.get":"Microsoft.DataProtection.OperationResultOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationResultsClient.getWithResponse":"Microsoft.DataProtection.OperationResultOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationStatusBackupVaultContextsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.OperationStatusBackupVaultContextsClient.get":"Microsoft.DataProtection.BackupVaultResources.operationStatusBackupVaultContextGet","com.azure.resourcemanager.dataprotection.fluent.OperationStatusBackupVaultContextsClient.getWithResponse":"Microsoft.DataProtection.BackupVaultResources.operationStatusBackupVaultContextGet","com.azure.resourcemanager.dataprotection.fluent.OperationStatusClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.OperationStatusClient.get":"Microsoft.DataProtection.OperationStatusOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationStatusClient.getWithResponse":"Microsoft.DataProtection.OperationStatusOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationStatusResourceGroupContextsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.OperationStatusResourceGroupContextsClient.getByResourceGroup":"Microsoft.DataProtection.OperationStatusResourceGroupContextOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationStatusResourceGroupContextsClient.getByResourceGroupWithResponse":"Microsoft.DataProtection.OperationStatusResourceGroupContextOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient.get":"Microsoft.DataProtection.AzureBackupRecoveryPointResources.get","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient.getWithResponse":"Microsoft.DataProtection.AzureBackupRecoveryPointResources.get","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient.list":"Microsoft.DataProtection.AzureBackupRecoveryPointResources.list","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient":"Microsoft.DataProtection.ResourceGuards","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.delete":"Microsoft.DataProtection.ResourceGuardResources.delete","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.deleteWithResponse":"Microsoft.DataProtection.ResourceGuardResources.delete","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getBackupSecurityPinRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getBackupSecurityPINRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getByResourceGroup":"Microsoft.DataProtection.ResourceGuardResources.get","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getByResourceGroupWithResponse":"Microsoft.DataProtection.ResourceGuardResources.get","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultBackupSecurityPinRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultBackupSecurityPINRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultBackupSecurityPinRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultBackupSecurityPINRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDeleteProtectedItemRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultDeleteProtectedItemRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDeleteProtectedItemRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultDeleteProtectedItemRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDeleteResourceGuardProxyRequestsObject":"Microsoft.DataProtection.ResourceGuards.getDefaultDeleteResourceGuardProxyRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDeleteResourceGuardProxyRequestsObjectWithResponse":"Microsoft.DataProtection.ResourceGuards.getDefaultDeleteResourceGuardProxyRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDisableSoftDeleteRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultDisableSoftDeleteRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDisableSoftDeleteRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultDisableSoftDeleteRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultUpdateProtectedItemRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultUpdateProtectedItemRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultUpdateProtectedItemRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultUpdateProtectedItemRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultUpdateProtectionPolicyRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultUpdateProtectionPolicyRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultUpdateProtectionPolicyRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultUpdateProtectionPolicyRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDeleteProtectedItemRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDeleteProtectedItemRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDeleteResourceGuardProxyRequestsObjects":"Microsoft.DataProtection.ResourceGuards.getDeleteResourceGuardProxyRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDisableSoftDeleteRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDisableSoftDeleteRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getUpdateProtectedItemRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getUpdateProtectedItemRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getUpdateProtectionPolicyRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getUpdateProtectionPolicyRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.list":"Microsoft.DataProtection.ResourceGuardResources.getResourcesInSubscription","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.listByResourceGroup":"Microsoft.DataProtection.ResourceGuardResources.getResourcesInResourceGroup","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.patch":"Microsoft.DataProtection.ResourceGuardResources.patch","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.patchWithResponse":"Microsoft.DataProtection.ResourceGuardResources.patch","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.put":"Microsoft.DataProtection.ResourceGuardResources.put","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.putWithResponse":"Microsoft.DataProtection.ResourceGuardResources.put","com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesClient.find":"Microsoft.DataProtection.BackupInstanceResources.find","com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesClient.findWithResponse":"Microsoft.DataProtection.BackupInstanceResources.find","com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupFindRestorableTimeRangesResponseResourceInner":"Microsoft.DataProtection.AzureBackupFindRestorableTimeRangesResponseResource","com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupJobResourceInner":"Microsoft.DataProtection.AzureBackupJobResource","com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner":"Microsoft.DataProtection.AzureBackupRecoveryPointResource","com.azure.resourcemanager.dataprotection.fluent.models.BackupInstanceResourceInner":"Microsoft.DataProtection.BackupInstanceResource","com.azure.resourcemanager.dataprotection.fluent.models.BackupVaultResourceInner":"Microsoft.DataProtection.BackupVaultResource","com.azure.resourcemanager.dataprotection.fluent.models.BaseBackupPolicyResourceInner":"Microsoft.DataProtection.BaseBackupPolicyResource","com.azure.resourcemanager.dataprotection.fluent.models.CheckNameAvailabilityResultInner":"Microsoft.DataProtection.CheckNameAvailabilityResult","com.azure.resourcemanager.dataprotection.fluent.models.DeletedBackupInstanceResourceInner":"Microsoft.DataProtection.DeletedBackupInstanceResource","com.azure.resourcemanager.dataprotection.fluent.models.DeletedBackupVaultResourceInner":"Microsoft.DataProtection.DeletedBackupVaultResource","com.azure.resourcemanager.dataprotection.fluent.models.DppBaseResourceInner":"Microsoft.DataProtection.DppBaseResource","com.azure.resourcemanager.dataprotection.fluent.models.ExportJobsResultInner":"Microsoft.DataProtection.ExportJobsResult","com.azure.resourcemanager.dataprotection.fluent.models.FeatureValidationResponseBaseInner":"Microsoft.DataProtection.FeatureValidationResponseBase","com.azure.resourcemanager.dataprotection.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner":"Microsoft.DataProtection.OperationJobExtendedInfo","com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner":"Microsoft.DataProtection.OperationResource","com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner":"Microsoft.DataProtection.ResourceGuardProxyBaseResource","com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardResourceInner":"Microsoft.DataProtection.ResourceGuardResource","com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner":"Microsoft.DataProtection.UnlockDeleteResponse","com.azure.resourcemanager.dataprotection.implementation.DataProtectionManagementClientBuilder":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.implementation.models.AzureBackupJobResourceList":"Microsoft.DataProtection.AzureBackupJobResourceList","com.azure.resourcemanager.dataprotection.implementation.models.AzureBackupRecoveryPointResourceList":"Microsoft.DataProtection.AzureBackupRecoveryPointResourceList","com.azure.resourcemanager.dataprotection.implementation.models.BackupInstanceResourceList":"Microsoft.DataProtection.BackupInstanceResourceList","com.azure.resourcemanager.dataprotection.implementation.models.BackupVaultResourceList":"Microsoft.DataProtection.BackupVaultResourceList","com.azure.resourcemanager.dataprotection.implementation.models.BaseBackupPolicyResourceList":"Microsoft.DataProtection.BaseBackupPolicyResourceList","com.azure.resourcemanager.dataprotection.implementation.models.DeletedBackupInstanceResourceList":"Microsoft.DataProtection.DeletedBackupInstanceResourceList","com.azure.resourcemanager.dataprotection.implementation.models.DeletedBackupVaultResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.dataprotection.implementation.models.DppBaseResourceList":"Microsoft.DataProtection.DppBaseResourceList","com.azure.resourcemanager.dataprotection.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.dataprotection.implementation.models.ResourceGuardProxyBaseResourceList":"Microsoft.DataProtection.ResourceGuardProxyBaseResourceList","com.azure.resourcemanager.dataprotection.implementation.models.ResourceGuardResourceList":"Microsoft.DataProtection.ResourceGuardResourceList","com.azure.resourcemanager.dataprotection.models.AKSVolumeTypes":"Microsoft.DataProtection.AKSVolumeTypes","com.azure.resourcemanager.dataprotection.models.AbsoluteDeleteOption":"Microsoft.DataProtection.AbsoluteDeleteOption","com.azure.resourcemanager.dataprotection.models.AbsoluteMarker":"Microsoft.DataProtection.AbsoluteMarker","com.azure.resourcemanager.dataprotection.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.dataprotection.models.AdHocBackupRuleOptions":"Microsoft.DataProtection.AdHocBackupRuleOptions","com.azure.resourcemanager.dataprotection.models.AdhocBackupTriggerOption":"Microsoft.DataProtection.AdhocBackupTriggerOption","com.azure.resourcemanager.dataprotection.models.AdhocBasedTaggingCriteria":"Microsoft.DataProtection.AdhocBasedTaggingCriteria","com.azure.resourcemanager.dataprotection.models.AdhocBasedTriggerContext":"Microsoft.DataProtection.AdhocBasedTriggerContext","com.azure.resourcemanager.dataprotection.models.AdlsBlobBackupDatasourceParameters":"Microsoft.DataProtection.AdlsBlobBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.AdlsBlobBackupDatasourceParametersForAutoProtection":"Microsoft.DataProtection.AdlsBlobBackupDatasourceParametersForAutoProtection","com.azure.resourcemanager.dataprotection.models.AlertsState":"Microsoft.DataProtection.AlertsState","com.azure.resourcemanager.dataprotection.models.AuthCredentials":"Microsoft.DataProtection.AuthCredentials","com.azure.resourcemanager.dataprotection.models.AzureBackupDiscreteRecoveryPoint":"Microsoft.DataProtection.AzureBackupDiscreteRecoveryPoint","com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest":"Microsoft.DataProtection.AzureBackupFindRestorableTimeRangesRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesResponse":"Microsoft.DataProtection.AzureBackupFindRestorableTimeRangesResponse","com.azure.resourcemanager.dataprotection.models.AzureBackupJob":"Microsoft.DataProtection.AzureBackupJob","com.azure.resourcemanager.dataprotection.models.AzureBackupParams":"Microsoft.DataProtection.AzureBackupParams","com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPoint":"Microsoft.DataProtection.AzureBackupRecoveryPoint","com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest":"Microsoft.DataProtection.AzureBackupRecoveryPointBasedRestoreRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryTimeBasedRestoreRequest":"Microsoft.DataProtection.AzureBackupRecoveryTimeBasedRestoreRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRehydrationRequest":"Microsoft.DataProtection.AzureBackupRehydrationRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest":"Microsoft.DataProtection.AzureBackupRestoreRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreWithRehydrationRequest":"Microsoft.DataProtection.AzureBackupRestoreWithRehydrationRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRule":"Microsoft.DataProtection.AzureBackupRule","com.azure.resourcemanager.dataprotection.models.AzureMonitorAlertSettings":"Microsoft.DataProtection.AzureMonitorAlertSettings","com.azure.resourcemanager.dataprotection.models.AzureOperationalStoreParameters":"Microsoft.DataProtection.AzureOperationalStoreParameters","com.azure.resourcemanager.dataprotection.models.AzureRetentionRule":"Microsoft.DataProtection.AzureRetentionRule","com.azure.resourcemanager.dataprotection.models.BackupCriteria":"Microsoft.DataProtection.BackupCriteria","com.azure.resourcemanager.dataprotection.models.BackupDatasourceParameters":"Microsoft.DataProtection.BackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.BackupInstance":"Microsoft.DataProtection.BackupInstance","com.azure.resourcemanager.dataprotection.models.BackupParameters":"Microsoft.DataProtection.BackupParameters","com.azure.resourcemanager.dataprotection.models.BackupPolicy":"Microsoft.DataProtection.BackupPolicy","com.azure.resourcemanager.dataprotection.models.BackupSchedule":"Microsoft.DataProtection.BackupSchedule","com.azure.resourcemanager.dataprotection.models.BackupSolutionType":"Microsoft.DataProtection.BackupSolutionType","com.azure.resourcemanager.dataprotection.models.BackupVault":"Microsoft.DataProtection.BackupVault","com.azure.resourcemanager.dataprotection.models.BackupVaultOperationResultsGetHeaders":null,"com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy":"Microsoft.DataProtection.BaseBackupPolicy","com.azure.resourcemanager.dataprotection.models.BasePolicyRule":"Microsoft.DataProtection.BasePolicyRule","com.azure.resourcemanager.dataprotection.models.BaseResourceProperties":"Microsoft.DataProtection.BaseResourceProperties","com.azure.resourcemanager.dataprotection.models.BcdrSecurityLevel":"Microsoft.DataProtection.BCDRSecurityLevel","com.azure.resourcemanager.dataprotection.models.BlobBackupAutoProtectionRule":"Microsoft.DataProtection.BlobBackupAutoProtectionRule","com.azure.resourcemanager.dataprotection.models.BlobBackupAutoProtectionSettings":"Microsoft.DataProtection.BlobBackupAutoProtectionSettings","com.azure.resourcemanager.dataprotection.models.BlobBackupDatasourceParameters":"Microsoft.DataProtection.BlobBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.BlobBackupDatasourceParametersForAutoProtection":"Microsoft.DataProtection.BlobBackupDatasourceParametersForAutoProtection","com.azure.resourcemanager.dataprotection.models.BlobBackupPatternType":"Microsoft.DataProtection.BlobBackupPatternType","com.azure.resourcemanager.dataprotection.models.BlobBackupRuleBasedAutoProtectionSettings":"Microsoft.DataProtection.BlobBackupRuleBasedAutoProtectionSettings","com.azure.resourcemanager.dataprotection.models.BlobBackupRuleMode":"Microsoft.DataProtection.BlobBackupRuleMode","com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequest":"Microsoft.DataProtection.CheckNameAvailabilityRequest","com.azure.resourcemanager.dataprotection.models.CmkKekIdentity":"Microsoft.DataProtection.CmkKekIdentity","com.azure.resourcemanager.dataprotection.models.CmkKeyVaultProperties":"Microsoft.DataProtection.CmkKeyVaultProperties","com.azure.resourcemanager.dataprotection.models.CopyOnExpiryOption":"Microsoft.DataProtection.CopyOnExpiryOption","com.azure.resourcemanager.dataprotection.models.CopyOption":"Microsoft.DataProtection.CopyOption","com.azure.resourcemanager.dataprotection.models.CostManagementSettings":"Microsoft.DataProtection.CostManagementSettings","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreDetails":"Microsoft.DataProtection.CrossRegionRestoreDetails","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobRequest":"Microsoft.DataProtection.CrossRegionRestoreJobRequest","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobsRequest":"Microsoft.DataProtection.CrossRegionRestoreJobsRequest","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreRequestObject":"Microsoft.DataProtection.CrossRegionRestoreRequestObject","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreSettings":"Microsoft.DataProtection.CrossRegionRestoreSettings","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreState":"Microsoft.DataProtection.CrossRegionRestoreState","com.azure.resourcemanager.dataprotection.models.CrossSubscriptionRestoreSettings":"Microsoft.DataProtection.CrossSubscriptionRestoreSettings","com.azure.resourcemanager.dataprotection.models.CrossSubscriptionRestoreState":"Microsoft.DataProtection.CrossSubscriptionRestoreState","com.azure.resourcemanager.dataprotection.models.CurrentProtectionState":"Microsoft.DataProtection.CurrentProtectionState","com.azure.resourcemanager.dataprotection.models.CustomCopyOption":"Microsoft.DataProtection.CustomCopyOption","com.azure.resourcemanager.dataprotection.models.DataStoreInfoBase":"Microsoft.DataProtection.DataStoreInfoBase","com.azure.resourcemanager.dataprotection.models.DataStoreParameters":"Microsoft.DataProtection.DataStoreParameters","com.azure.resourcemanager.dataprotection.models.DataStoreTypes":"Microsoft.DataProtection.DataStoreTypes","com.azure.resourcemanager.dataprotection.models.Datasource":"Microsoft.DataProtection.Datasource","com.azure.resourcemanager.dataprotection.models.DatasourceSet":"Microsoft.DataProtection.DatasourceSet","com.azure.resourcemanager.dataprotection.models.Day":"Microsoft.DataProtection.Day","com.azure.resourcemanager.dataprotection.models.DayOfWeek":"Microsoft.DataProtection.DayOfWeek","com.azure.resourcemanager.dataprotection.models.DefaultResourceProperties":"Microsoft.DataProtection.DefaultResourceProperties","com.azure.resourcemanager.dataprotection.models.DeleteOption":"Microsoft.DataProtection.DeleteOption","com.azure.resourcemanager.dataprotection.models.DeletedBackupInstance":"Microsoft.DataProtection.DeletedBackupInstance","com.azure.resourcemanager.dataprotection.models.DeletedBackupVault":"Microsoft.DataProtection.DeletedBackupVault","com.azure.resourcemanager.dataprotection.models.DeletionInfo":"Microsoft.DataProtection.DeletionInfo","com.azure.resourcemanager.dataprotection.models.DppIdentityDetails":"Microsoft.DataProtection.DppIdentityDetails","com.azure.resourcemanager.dataprotection.models.DppResource":"Microsoft.DataProtection.DppResource","com.azure.resourcemanager.dataprotection.models.DppResourceList":"Microsoft.DataProtection.DppResourceList","com.azure.resourcemanager.dataprotection.models.DppTrackedResourceList":"Microsoft.DataProtection.DppTrackedResourceList","com.azure.resourcemanager.dataprotection.models.EncryptionSettings":"Microsoft.DataProtection.EncryptionSettings","com.azure.resourcemanager.dataprotection.models.EncryptionState":"Microsoft.DataProtection.EncryptionState","com.azure.resourcemanager.dataprotection.models.ExistingResourcePolicy":"Microsoft.DataProtection.ExistingResourcePolicy","com.azure.resourcemanager.dataprotection.models.FeatureSettings":"Microsoft.DataProtection.FeatureSettings","com.azure.resourcemanager.dataprotection.models.FeatureSupportStatus":"Microsoft.DataProtection.FeatureSupportStatus","com.azure.resourcemanager.dataprotection.models.FeatureType":"Microsoft.DataProtection.FeatureType","com.azure.resourcemanager.dataprotection.models.FeatureValidationRequest":"Microsoft.DataProtection.FeatureValidationRequest","com.azure.resourcemanager.dataprotection.models.FeatureValidationRequestBase":"Microsoft.DataProtection.FeatureValidationRequestBase","com.azure.resourcemanager.dataprotection.models.FeatureValidationResponse":"Microsoft.DataProtection.FeatureValidationResponse","com.azure.resourcemanager.dataprotection.models.FetchSecondaryRPsRequestParameters":"Microsoft.DataProtection.FetchSecondaryRPsRequestParameters","com.azure.resourcemanager.dataprotection.models.GenericBackupDatasourceParameters":"Microsoft.DataProtection.GenericBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.GenericRestoreDatasourceCriteria":"Microsoft.DataProtection.GenericRestoreDatasourceCriteria","com.azure.resourcemanager.dataprotection.models.GranularityLevel":"Microsoft.DataProtection.GranularityLevel","com.azure.resourcemanager.dataprotection.models.IdentityDetails":"Microsoft.DataProtection.IdentityDetails","com.azure.resourcemanager.dataprotection.models.IdentityType":"Microsoft.DataProtection.IdentityType","com.azure.resourcemanager.dataprotection.models.ImmediateCopyOption":"Microsoft.DataProtection.ImmediateCopyOption","com.azure.resourcemanager.dataprotection.models.ImmutabilityConfiguration":"Microsoft.DataProtection.ImmutabilityConfiguration","com.azure.resourcemanager.dataprotection.models.ImmutabilitySettings":"Microsoft.DataProtection.ImmutabilitySettings","com.azure.resourcemanager.dataprotection.models.ImmutabilityState":"Microsoft.DataProtection.ImmutabilityState","com.azure.resourcemanager.dataprotection.models.ImmutabilityType":"Microsoft.DataProtection.ImmutabilityType","com.azure.resourcemanager.dataprotection.models.InfrastructureEncryptionState":"Microsoft.DataProtection.InfrastructureEncryptionState","com.azure.resourcemanager.dataprotection.models.InnerError":"Microsoft.DataProtection.InnerError","com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreCriteria":"Microsoft.DataProtection.ItemLevelRestoreCriteria","com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreTargetInfo":"Microsoft.DataProtection.ItemLevelRestoreTargetInfo","com.azure.resourcemanager.dataprotection.models.ItemPathBasedRestoreCriteria":"Microsoft.DataProtection.ItemPathBasedRestoreCriteria","com.azure.resourcemanager.dataprotection.models.JobExtendedInfo":"Microsoft.DataProtection.JobExtendedInfo","com.azure.resourcemanager.dataprotection.models.JobSubTask":"Microsoft.DataProtection.JobSubTask","com.azure.resourcemanager.dataprotection.models.KubernetesClusterBackupDatasourceParameters":"Microsoft.DataProtection.KubernetesClusterBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.KubernetesClusterRestoreCriteria":"Microsoft.DataProtection.KubernetesClusterRestoreCriteria","com.azure.resourcemanager.dataprotection.models.KubernetesClusterVaultTierRestoreCriteria":"Microsoft.DataProtection.KubernetesClusterVaultTierRestoreCriteria","com.azure.resourcemanager.dataprotection.models.KubernetesPVRestoreCriteria":"Microsoft.DataProtection.KubernetesPVRestoreCriteria","com.azure.resourcemanager.dataprotection.models.KubernetesStorageClassRestoreCriteria":"Microsoft.DataProtection.KubernetesStorageClassRestoreCriteria","com.azure.resourcemanager.dataprotection.models.MonitoringSettings":"Microsoft.DataProtection.MonitoringSettings","com.azure.resourcemanager.dataprotection.models.Month":"Microsoft.DataProtection.Month","com.azure.resourcemanager.dataprotection.models.NamespacedNameResource":"Microsoft.DataProtection.NamespacedNameResource","com.azure.resourcemanager.dataprotection.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.dataprotection.models.OperationExtendedInfo":"Microsoft.DataProtection.OperationExtendedInfo","com.azure.resourcemanager.dataprotection.models.OperationResultsGetHeaders":null,"com.azure.resourcemanager.dataprotection.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.dataprotection.models.PatchBackupVaultInput":"Microsoft.DataProtection.PatchBackupVaultInput","com.azure.resourcemanager.dataprotection.models.PatchResourceGuardInput":"Microsoft.DataProtection.PatchResourceGuardInput","com.azure.resourcemanager.dataprotection.models.PatchResourceRequestInput":"Microsoft.DataProtection.PatchResourceRequestInput","com.azure.resourcemanager.dataprotection.models.PersistentVolumeRestoreMode":"Microsoft.DataProtection.PersistentVolumeRestoreMode","com.azure.resourcemanager.dataprotection.models.PolicyInfo":"Microsoft.DataProtection.PolicyInfo","com.azure.resourcemanager.dataprotection.models.PolicyParameters":"Microsoft.DataProtection.PolicyParameters","com.azure.resourcemanager.dataprotection.models.PostgreSqlFlexibleServerBackupDatasourceParameters":"Microsoft.DataProtection.PostgreSqlFlexibleServerBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.ProtectionStatusDetails":"Microsoft.DataProtection.ProtectionStatusDetails","com.azure.resourcemanager.dataprotection.models.ProvisioningState":"Microsoft.DataProtection.ProvisioningState","com.azure.resourcemanager.dataprotection.models.RangeBasedItemLevelRestoreCriteria":"Microsoft.DataProtection.RangeBasedItemLevelRestoreCriteria","com.azure.resourcemanager.dataprotection.models.RecoveryOption":"Microsoft.DataProtection.RecoveryOption","com.azure.resourcemanager.dataprotection.models.RecoveryPointCompletionState":"Microsoft.DataProtection.RecoveryPointCompletionState","com.azure.resourcemanager.dataprotection.models.RecoveryPointDataStoreDetails":"Microsoft.DataProtection.RecoveryPointDataStoreDetails","com.azure.resourcemanager.dataprotection.models.RecoveryPointImmutabilityProperties":"Microsoft.DataProtection.RecoveryPointImmutabilityProperties","com.azure.resourcemanager.dataprotection.models.RehydrationPriority":"Microsoft.DataProtection.RehydrationPriority","com.azure.resourcemanager.dataprotection.models.RehydrationStatus":"Microsoft.DataProtection.RehydrationStatus","com.azure.resourcemanager.dataprotection.models.ResourceDeletionInfo":"Microsoft.DataProtection.ResourceDeletionInfo","com.azure.resourcemanager.dataprotection.models.ResourceGuard":"Microsoft.DataProtection.ResourceGuard","com.azure.resourcemanager.dataprotection.models.ResourceGuardOperation":"Microsoft.DataProtection.ResourceGuardOperation","com.azure.resourcemanager.dataprotection.models.ResourceGuardOperationDetail":"Microsoft.DataProtection.ResourceGuardOperationDetail","com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase":"Microsoft.DataProtection.ResourceGuardProxyBase","com.azure.resourcemanager.dataprotection.models.ResourceListSelectionCriteria":"Microsoft.DataProtection.ResourceListSelectionCriteria","com.azure.resourcemanager.dataprotection.models.ResourceMoveDetails":"Microsoft.DataProtection.ResourceMoveDetails","com.azure.resourcemanager.dataprotection.models.ResourceMoveState":"Microsoft.DataProtection.ResourceMoveState","com.azure.resourcemanager.dataprotection.models.ResourcePropertiesObjectType":"Microsoft.DataProtection.ResourcePropertiesObjectType","com.azure.resourcemanager.dataprotection.models.RestorableTimeRange":"Microsoft.DataProtection.RestorableTimeRange","com.azure.resourcemanager.dataprotection.models.RestoreFilesTargetInfo":"Microsoft.DataProtection.RestoreFilesTargetInfo","com.azure.resourcemanager.dataprotection.models.RestoreJobRecoveryPointDetails":"Microsoft.DataProtection.RestoreJobRecoveryPointDetails","com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreType":"Microsoft.DataProtection.RestoreSourceDataStoreType","com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo":"Microsoft.DataProtection.RestoreTargetInfo","com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase":"Microsoft.DataProtection.RestoreTargetInfoBase","com.azure.resourcemanager.dataprotection.models.RestoreTargetLocationType":"Microsoft.DataProtection.RestoreTargetLocationType","com.azure.resourcemanager.dataprotection.models.RetentionTag":"Microsoft.DataProtection.RetentionTag","com.azure.resourcemanager.dataprotection.models.ScheduleBasedBackupCriteria":"Microsoft.DataProtection.ScheduleBasedBackupCriteria","com.azure.resourcemanager.dataprotection.models.ScheduleBasedTriggerContext":"Microsoft.DataProtection.ScheduleBasedTriggerContext","com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials":"Microsoft.DataProtection.SecretStoreBasedAuthCredentials","com.azure.resourcemanager.dataprotection.models.SecretStoreResource":"Microsoft.DataProtection.SecretStoreResource","com.azure.resourcemanager.dataprotection.models.SecretStoreType":"Microsoft.DataProtection.SecretStoreType","com.azure.resourcemanager.dataprotection.models.SecureScoreLevel":"Microsoft.DataProtection.SecureScoreLevel","com.azure.resourcemanager.dataprotection.models.SecuritySettings":"Microsoft.DataProtection.SecuritySettings","com.azure.resourcemanager.dataprotection.models.SoftDeleteSettings":"Microsoft.DataProtection.SoftDeleteSettings","com.azure.resourcemanager.dataprotection.models.SoftDeleteState":"Microsoft.DataProtection.SoftDeleteState","com.azure.resourcemanager.dataprotection.models.SourceDataStoreType":"Microsoft.DataProtection.SourceDataStoreType","com.azure.resourcemanager.dataprotection.models.SourceLifeCycle":"Microsoft.DataProtection.SourceLifeCycle","com.azure.resourcemanager.dataprotection.models.Status":"Microsoft.DataProtection.Status","com.azure.resourcemanager.dataprotection.models.StopProtectionRequest":"Microsoft.DataProtection.StopProtectionRequest","com.azure.resourcemanager.dataprotection.models.StorageSetting":"Microsoft.DataProtection.StorageSetting","com.azure.resourcemanager.dataprotection.models.StorageSettingStoreTypes":"Microsoft.DataProtection.StorageSettingStoreTypes","com.azure.resourcemanager.dataprotection.models.StorageSettingTypes":"Microsoft.DataProtection.StorageSettingTypes","com.azure.resourcemanager.dataprotection.models.SupportedFeature":"Microsoft.DataProtection.SupportedFeature","com.azure.resourcemanager.dataprotection.models.SuspendBackupRequest":"Microsoft.DataProtection.SuspendBackupRequest","com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest":"Microsoft.DataProtection.SyncBackupInstanceRequest","com.azure.resourcemanager.dataprotection.models.SyncType":"Microsoft.DataProtection.SyncType","com.azure.resourcemanager.dataprotection.models.TaggingCriteria":"Microsoft.DataProtection.TaggingCriteria","com.azure.resourcemanager.dataprotection.models.TargetCopySetting":"Microsoft.DataProtection.TargetCopySetting","com.azure.resourcemanager.dataprotection.models.TargetDetails":"Microsoft.DataProtection.TargetDetails","com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest":"Microsoft.DataProtection.TriggerBackupRequest","com.azure.resourcemanager.dataprotection.models.TriggerContext":"Microsoft.DataProtection.TriggerContext","com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest":"Microsoft.DataProtection.UnlockDeleteRequest","com.azure.resourcemanager.dataprotection.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.dataprotection.models.UserFacingError":"Microsoft.DataProtection.UserFacingError","com.azure.resourcemanager.dataprotection.models.UserFacingWarningDetail":"Microsoft.DataProtection.UserFacingWarningDetail","com.azure.resourcemanager.dataprotection.models.ValidateCrossRegionRestoreRequestObject":"Microsoft.DataProtection.ValidateCrossRegionRestoreRequestObject","com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest":"Microsoft.DataProtection.ValidateForBackupRequest","com.azure.resourcemanager.dataprotection.models.ValidateForModifyBackupRequest":"Microsoft.DataProtection.ValidateForModifyBackupRequest","com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject":"Microsoft.DataProtection.ValidateRestoreRequestObject","com.azure.resourcemanager.dataprotection.models.ValidationType":"Microsoft.DataProtection.ValidationType","com.azure.resourcemanager.dataprotection.models.WeekNumber":"Microsoft.DataProtection.WeekNumber"},"generatedFiles":["src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesExtensionRoutingsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionManagementClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupInstancesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppResourceGuardProxiesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/FetchCrossRegionRestoreJobsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/FetchCrossRegionRestoreJobsOperationsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/FetchSecondaryRecoveryPointsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationResultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupInstanceResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupVaultResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/UnlockDeleteResponseInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/package-info.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/AzureBackupFindRestorableTimeRangesResponseResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/AzureBackupJobResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/AzureBackupRecoveryPointResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BaseBackupPolicyResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/CheckNameAvailabilityResultImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionManagementClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionOperationsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstanceResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstancesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstancesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupVaultResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsResultImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FeatureValidationResponseBaseImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchCrossRegionRestoreJobsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchCrossRegionRestoreJobsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchCrossRegionRestoreJobsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchCrossRegionRestoreJobsOperationsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchSecondaryRecoveryPointsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchSecondaryRecoveryPointsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationJobExtendedInfoImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusBackupVaultContextsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusBackupVaultContextsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusResourceGroupContextsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusResourceGroupContextsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardProxyBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/UnlockDeleteResponseImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/AzureBackupJobResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/AzureBackupRecoveryPointResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/BackupInstanceResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/BackupVaultResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/BaseBackupPolicyResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/DeletedBackupInstanceResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/DeletedBackupVaultResourceListResult.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/DppBaseResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/ResourceGuardProxyBaseResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/ResourceGuardResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/package-info.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AKSVolumeTypes.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AbsoluteDeleteOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AbsoluteMarker.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ActionType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdHocBackupRuleOptions.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBackupTriggerOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBasedTaggingCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBasedTriggerContext.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdlsBlobBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdlsBlobBackupDatasourceParametersForAutoProtection.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AlertsState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AuthCredentials.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesResponseResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupJob.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupJobResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupParams.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPoint.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointBasedRestoreRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryTimeBasedRestoreRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRehydrationRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRestoreRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRestoreWithRehydrationRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureMonitorAlertSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureOperationalStoreParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureRetentionRule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstance.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstances.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesExtensionRoutings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicies.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicy.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupSchedule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupSolutionType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVault.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResultsGetHeaders.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResultsGetResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicy.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BasePolicyRule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BaseResourceProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BcdrSecurityLevel.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupAutoProtectionRule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupAutoProtectionSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupDatasourceParametersForAutoProtection.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupPatternType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupRuleBasedAutoProtectionSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupRuleMode.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CheckNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CheckNameAvailabilityResult.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CmkKekIdentity.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CmkKeyVaultProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CopyOnExpiryOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CopyOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CostManagementSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreJobRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreJobsRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreRequestObject.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CurrentProtectionState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CustomCopyOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataProtectionOperations.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataProtections.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataStoreInfoBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataStoreParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataStoreTypes.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Datasource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DatasourceSet.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Day.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DefaultResourceProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeleteOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstance.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstanceResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstances.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupVault.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupVaultResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletionInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppBaseResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppIdentityDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppResourceGuardProxies.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/models/EncryptionSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/EncryptionState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ExistingResourcePolicy.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobs.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobsOperationResults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobsResult.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureSupportStatus.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationRequestBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationResponseBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FetchCrossRegionRestoreJobs.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FetchCrossRegionRestoreJobsOperations.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FetchSecondaryRPsRequestParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FetchSecondaryRecoveryPoints.java","src/main/java/com/azure/resourcemanager/dataprotection/models/GenericBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/GenericRestoreDatasourceCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/GranularityLevel.java","src/main/java/com/azure/resourcemanager/dataprotection/models/IdentityDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/IdentityType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmediateCopyOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmutabilityConfiguration.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmutabilitySettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmutabilityState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmutabilityType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/InfrastructureEncryptionState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/InnerError.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ItemLevelRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ItemLevelRestoreTargetInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ItemPathBasedRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/JobExtendedInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/JobSubTask.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Jobs.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterVaultTierRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesPVRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesStorageClassRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/MonitoringSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Month.java","src/main/java/com/azure/resourcemanager/dataprotection/models/NamespacedNameResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Operation.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationExtendedInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResultsGetHeaders.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResultsGetResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatus.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusBackupVaultContexts.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusResourceGroupContexts.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Origin.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PatchBackupVaultInput.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PatchResourceGuardInput.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PatchResourceRequestInput.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PersistentVolumeRestoreMode.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PolicyInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PolicyParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PostgreSqlFlexibleServerBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ProtectionStatusDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RangeBasedItemLevelRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointCompletionState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointDataStoreDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointImmutabilityProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPoints.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RehydrationPriority.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RehydrationStatus.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceDeletionInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuard.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardOperation.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardOperationDetail.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuards.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceListSelectionCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceMoveDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceMoveState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourcePropertiesObjectType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRange.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRanges.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreFilesTargetInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreJobRecoveryPointDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreSourceDataStoreType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetInfoBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetLocationType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RetentionTag.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedTriggerContext.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreBasedAuthCredentials.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecureScoreLevel.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecuritySettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SoftDeleteSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SoftDeleteState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SourceDataStoreType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SourceLifeCycle.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Status.java","src/main/java/com/azure/resourcemanager/dataprotection/models/StopProtectionRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/StorageSetting.java","src/main/java/com/azure/resourcemanager/dataprotection/models/StorageSettingStoreTypes.java","src/main/java/com/azure/resourcemanager/dataprotection/models/StorageSettingTypes.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SupportedFeature.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SuspendBackupRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SyncBackupInstanceRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SyncType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TaggingCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TargetCopySetting.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TargetDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TriggerBackupRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TriggerContext.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UnlockDeleteRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UnlockDeleteResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UserFacingError.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UserFacingWarningDetail.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateCrossRegionRestoreRequestObject.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateForBackupRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateForModifyBackupRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateRestoreRequestObject.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidationType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/WeekNumber.java","src/main/java/com/azure/resourcemanager/dataprotection/models/package-info.java","src/main/java/com/azure/resourcemanager/dataprotection/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.DataProtection":"2026-08-31-preview"},"crossLanguagePackageId":"Microsoft.DataProtection","crossLanguageVersion":"8ab5df432838","crossLanguageDefinitions":{"com.azure.resourcemanager.dataprotection.fluent.BackupInstanceFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.BackupInstanceFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.BackupInstanceFromDppCrossTenantVaultsClient.get":"Microsoft.DataProtection.BackupInstanceFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstanceFromDppCrossTenantVaultsClient.getWithResponse":"Microsoft.DataProtection.BackupInstanceFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationResultFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.BackupInstanceOperationResultFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationResultFromDppCrossTenantVaultsClient.get":"Microsoft.DataProtection.BackupInstanceOperationResultFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationResultFromDppCrossTenantVaultsClient.getWithResponse":"Microsoft.DataProtection.BackupInstanceOperationResultFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationStatusFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.BackupInstanceOperationStatusFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationStatusFromDppCrossTenantVaultsClient.get":"Microsoft.DataProtection.BackupInstanceOperationStatusFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstanceOperationStatusFromDppCrossTenantVaultsClient.getWithResponse":"Microsoft.DataProtection.BackupInstanceOperationStatusFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient":"Microsoft.DataProtection.BackupInstances","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.adhocBackup":"Microsoft.DataProtection.BackupInstanceResources.adhocBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginAdhocBackup":"Microsoft.DataProtection.BackupInstanceResources.adhocBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginCreateOrUpdate":"Microsoft.DataProtection.BackupInstanceResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginDelete":"Microsoft.DataProtection.BackupInstanceResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginResumeBackups":"Microsoft.DataProtection.BackupInstanceResources.resumeBackups","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginResumeProtection":"Microsoft.DataProtection.BackupInstanceResources.resumeProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginStopProtection":"Microsoft.DataProtection.BackupInstanceResources.stopProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginSuspendBackups":"Microsoft.DataProtection.BackupInstanceResources.suspendBackups","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginSyncBackupInstance":"Microsoft.DataProtection.BackupInstanceResources.syncBackupInstance","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginTriggerCrossRegionRestore":"Microsoft.DataProtection.BackupInstancesOperationGroup.triggerCrossRegionRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginTriggerRehydrate":"Microsoft.DataProtection.BackupInstanceResources.triggerRehydrate","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginTriggerRestore":"Microsoft.DataProtection.BackupInstanceResources.triggerRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginValidateCrossRegionRestore":"Microsoft.DataProtection.BackupInstancesOperationGroup.validateCrossRegionRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginValidateForBackup":"Microsoft.DataProtection.BackupVaultResources.validateForBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginValidateForModifyBackup":"Microsoft.DataProtection.BackupInstanceResources.validateForModifyBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.beginValidateForRestore":"Microsoft.DataProtection.BackupInstanceResources.validateForRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.createOrUpdate":"Microsoft.DataProtection.BackupInstanceResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.delete":"Microsoft.DataProtection.BackupInstanceResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.get":"Microsoft.DataProtection.BackupInstanceResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.getBackupInstanceOperationResult":"Microsoft.DataProtection.BackupInstances.getBackupInstanceOperationResult","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.getBackupInstanceOperationResultWithResponse":"Microsoft.DataProtection.BackupInstances.getBackupInstanceOperationResult","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.getWithResponse":"Microsoft.DataProtection.BackupInstanceResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.list":"Microsoft.DataProtection.BackupInstances.list","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.resumeBackups":"Microsoft.DataProtection.BackupInstanceResources.resumeBackups","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.resumeProtection":"Microsoft.DataProtection.BackupInstanceResources.resumeProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.stopProtection":"Microsoft.DataProtection.BackupInstanceResources.stopProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.suspendBackups":"Microsoft.DataProtection.BackupInstanceResources.suspendBackups","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.syncBackupInstance":"Microsoft.DataProtection.BackupInstanceResources.syncBackupInstance","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.triggerCrossRegionRestore":"Microsoft.DataProtection.BackupInstancesOperationGroup.triggerCrossRegionRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.triggerRehydrate":"Microsoft.DataProtection.BackupInstanceResources.triggerRehydrate","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.triggerRestore":"Microsoft.DataProtection.BackupInstanceResources.triggerRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.validateCrossRegionRestore":"Microsoft.DataProtection.BackupInstancesOperationGroup.validateCrossRegionRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.validateForBackup":"Microsoft.DataProtection.BackupVaultResources.validateForBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.validateForModifyBackup":"Microsoft.DataProtection.BackupInstanceResources.validateForModifyBackup","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesClient.validateForRestore":"Microsoft.DataProtection.BackupInstanceResources.validateForRestore","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesExtensionRoutingsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesExtensionRoutingsClient.list":"Microsoft.DataProtection.BackupInstancesExtensionRoutingOperationGroup.list","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.BackupInstancesFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.BackupInstancesFromDppCrossTenantVaultsClient.list":"Microsoft.DataProtection.BackupInstancesFromDppCrossTenantVault.list","com.azure.resourcemanager.dataprotection.fluent.BackupJobsFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.BackupJobsFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.BackupJobsFromDppCrossTenantVaultsClient.list":"Microsoft.DataProtection.BackupJobsFromDppCrossTenantVault.list","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.createOrUpdate":"Microsoft.DataProtection.BaseBackupPolicyResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.createOrUpdateWithResponse":"Microsoft.DataProtection.BaseBackupPolicyResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.delete":"Microsoft.DataProtection.BaseBackupPolicyResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.deleteWithResponse":"Microsoft.DataProtection.BaseBackupPolicyResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.get":"Microsoft.DataProtection.BaseBackupPolicyResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.getWithResponse":"Microsoft.DataProtection.BaseBackupPolicyResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupPoliciesClient.list":"Microsoft.DataProtection.BaseBackupPolicyResources.list","com.azure.resourcemanager.dataprotection.fluent.BackupVaultOperationResultsClient":"Microsoft.DataProtection.BackupVaultOperationResults","com.azure.resourcemanager.dataprotection.fluent.BackupVaultOperationResultsClient.get":"Microsoft.DataProtection.BackupVaultOperationResults.get","com.azure.resourcemanager.dataprotection.fluent.BackupVaultOperationResultsClient.getWithResponse":"Microsoft.DataProtection.BackupVaultOperationResults.get","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.beginCreateOrUpdate":"Microsoft.DataProtection.BackupVaultResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.beginDelete":"Microsoft.DataProtection.BackupVaultResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.beginUpdate":"Microsoft.DataProtection.BackupVaultResources.update","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.checkNameAvailability":"Microsoft.DataProtection.BackupVaultsOperationGroup.checkNameAvailability","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.checkNameAvailabilityWithResponse":"Microsoft.DataProtection.BackupVaultsOperationGroup.checkNameAvailability","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.createOrUpdate":"Microsoft.DataProtection.BackupVaultResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.delete":"Microsoft.DataProtection.BackupVaultResources.delete","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.getByResourceGroup":"Microsoft.DataProtection.BackupVaultResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.getByResourceGroupWithResponse":"Microsoft.DataProtection.BackupVaultResources.get","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.list":"Microsoft.DataProtection.BackupVaultResources.getInSubscription","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.listByResourceGroup":"Microsoft.DataProtection.BackupVaultOperationResults.getInResourceGroup","com.azure.resourcemanager.dataprotection.fluent.BackupVaultsClient.update":"Microsoft.DataProtection.BackupVaultResources.update","com.azure.resourcemanager.dataprotection.fluent.DataProtectionManagementClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.DataProtectionOperationsClient":"Microsoft.DataProtection.Operations","com.azure.resourcemanager.dataprotection.fluent.DataProtectionOperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.dataprotection.fluent.DataProtectionsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.DataProtectionsClient.checkFeatureSupport":"Microsoft.DataProtection.DataProtectionOperationGroup.checkFeatureSupport","com.azure.resourcemanager.dataprotection.fluent.DataProtectionsClient.checkFeatureSupportWithResponse":"Microsoft.DataProtection.DataProtectionOperationGroup.checkFeatureSupport","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.beginUndelete":"Microsoft.DataProtection.DeletedBackupInstanceResources.undelete","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.get":"Microsoft.DataProtection.DeletedBackupInstanceResources.get","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.getWithResponse":"Microsoft.DataProtection.DeletedBackupInstanceResources.get","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.list":"Microsoft.DataProtection.DeletedBackupInstanceResources.list","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupInstancesClient.undelete":"Microsoft.DataProtection.DeletedBackupInstanceResources.undelete","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupVaultsClient":"Microsoft.DataProtection.DeletedBackupVaults","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupVaultsClient.get":"Microsoft.DataProtection.DeletedBackupVaults.get","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupVaultsClient.getWithResponse":"Microsoft.DataProtection.DeletedBackupVaults.get","com.azure.resourcemanager.dataprotection.fluent.DeletedBackupVaultsClient.listByLocation":"Microsoft.DataProtection.DeletedBackupVaults.listByLocation","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingStatusClient":"Microsoft.DataProtection.DppCrossTenantVaultMappingStatus","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingStatusClient.check":"Microsoft.DataProtection.DppCrossTenantVaultMappingStatus.check","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingStatusClient.checkWithResponse":"Microsoft.DataProtection.DppCrossTenantVaultMappingStatus.check","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingsClient":"Microsoft.DataProtection.DppCrossTenantVaultMappings","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingsClient.createOrUpdate":"Microsoft.DataProtection.DppCrossTenantVaultMappings.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingsClient.createOrUpdateWithResponse":"Microsoft.DataProtection.DppCrossTenantVaultMappings.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingsClient.get":"Microsoft.DataProtection.DppCrossTenantVaultMappings.get","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingsClient.getWithResponse":"Microsoft.DataProtection.DppCrossTenantVaultMappings.get","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingsClient.list":"Microsoft.DataProtection.DppCrossTenantVaultMappings.list","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingsClient.remove":"Microsoft.DataProtection.DppCrossTenantVaultMappings.remove","com.azure.resourcemanager.dataprotection.fluent.DppCrossTenantVaultMappingsClient.removeWithResponse":"Microsoft.DataProtection.DppCrossTenantVaultMappings.remove","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.createOrUpdate":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.createOrUpdateWithResponse":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.createOrUpdate","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.delete":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.delete","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.deleteWithResponse":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.delete","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.get":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.get","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.getWithResponse":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.get","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.list":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.list","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.unlockDelete":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.unlockDelete","com.azure.resourcemanager.dataprotection.fluent.DppResourceGuardProxiesClient.unlockDeleteWithResponse":"Microsoft.DataProtection.ResourceGuardProxyBaseResources.unlockDelete","com.azure.resourcemanager.dataprotection.fluent.ExportJobsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.ExportJobsClient.beginTrigger":"Microsoft.DataProtection.BackupVaultResources.trigger","com.azure.resourcemanager.dataprotection.fluent.ExportJobsClient.trigger":"Microsoft.DataProtection.BackupVaultResources.trigger","com.azure.resourcemanager.dataprotection.fluent.ExportJobsOperationResultsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.ExportJobsOperationResultsClient.get":"Microsoft.DataProtection.BackupVaultResources.exportJobsOperationResultGet","com.azure.resourcemanager.dataprotection.fluent.ExportJobsOperationResultsClient.getWithResponse":"Microsoft.DataProtection.BackupVaultResources.exportJobsOperationResultGet","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsClient.get":"Microsoft.DataProtection.FetchCrossRegionRestoreJobOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsClient.getWithResponse":"Microsoft.DataProtection.FetchCrossRegionRestoreJobOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsOperationsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.FetchCrossRegionRestoreJobsOperationsClient.list":"Microsoft.DataProtection.FetchCrossRegionRestoreJobsOperationGroup.list","com.azure.resourcemanager.dataprotection.fluent.FetchSecondaryRecoveryPointsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.FetchSecondaryRecoveryPointsClient.list":"Microsoft.DataProtection.FetchSecondaryRecoveryPointsOperationGroup.list","com.azure.resourcemanager.dataprotection.fluent.JobFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.JobFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.JobFromDppCrossTenantVaultsClient.get":"Microsoft.DataProtection.JobFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.JobFromDppCrossTenantVaultsClient.getWithResponse":"Microsoft.DataProtection.JobFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.JobsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.JobsClient.get":"Microsoft.DataProtection.AzureBackupJobResources.get","com.azure.resourcemanager.dataprotection.fluent.JobsClient.getWithResponse":"Microsoft.DataProtection.AzureBackupJobResources.get","com.azure.resourcemanager.dataprotection.fluent.JobsClient.list":"Microsoft.DataProtection.AzureBackupJobResources.list","com.azure.resourcemanager.dataprotection.fluent.OperationResultsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.OperationResultsClient.get":"Microsoft.DataProtection.OperationResultOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationResultsClient.getWithResponse":"Microsoft.DataProtection.OperationResultOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationStatusBackupVaultContextsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.OperationStatusBackupVaultContextsClient.get":"Microsoft.DataProtection.BackupVaultResources.operationStatusBackupVaultContextGet","com.azure.resourcemanager.dataprotection.fluent.OperationStatusBackupVaultContextsClient.getWithResponse":"Microsoft.DataProtection.BackupVaultResources.operationStatusBackupVaultContextGet","com.azure.resourcemanager.dataprotection.fluent.OperationStatusClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.OperationStatusClient.get":"Microsoft.DataProtection.OperationStatusOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationStatusClient.getWithResponse":"Microsoft.DataProtection.OperationStatusOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationStatusResourceGroupContextsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.OperationStatusResourceGroupContextsClient.getByResourceGroup":"Microsoft.DataProtection.OperationStatusResourceGroupContextOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.OperationStatusResourceGroupContextsClient.getByResourceGroupWithResponse":"Microsoft.DataProtection.OperationStatusResourceGroupContextOperationGroup.get","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.RecoveryPointFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointFromDppCrossTenantVaultsClient.get":"Microsoft.DataProtection.RecoveryPointFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointFromDppCrossTenantVaultsClient.getWithResponse":"Microsoft.DataProtection.RecoveryPointFromDppCrossTenantVault.get","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient.get":"Microsoft.DataProtection.AzureBackupRecoveryPointResources.get","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient.getWithResponse":"Microsoft.DataProtection.AzureBackupRecoveryPointResources.get","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsClient.list":"Microsoft.DataProtection.AzureBackupRecoveryPointResources.list","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.RecoveryPointsFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.RecoveryPointsFromDppCrossTenantVaultsClient.list":"Microsoft.DataProtection.RecoveryPointsFromDppCrossTenantVault.list","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient":"Microsoft.DataProtection.ResourceGuards","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.delete":"Microsoft.DataProtection.ResourceGuardResources.delete","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.deleteWithResponse":"Microsoft.DataProtection.ResourceGuardResources.delete","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getBackupSecurityPinRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getBackupSecurityPINRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getByResourceGroup":"Microsoft.DataProtection.ResourceGuardResources.get","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getByResourceGroupWithResponse":"Microsoft.DataProtection.ResourceGuardResources.get","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultBackupSecurityPinRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultBackupSecurityPINRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultBackupSecurityPinRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultBackupSecurityPINRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDeleteProtectedItemRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultDeleteProtectedItemRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDeleteProtectedItemRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultDeleteProtectedItemRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDeleteResourceGuardProxyRequestsObject":"Microsoft.DataProtection.ResourceGuards.getDefaultDeleteResourceGuardProxyRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDeleteResourceGuardProxyRequestsObjectWithResponse":"Microsoft.DataProtection.ResourceGuards.getDefaultDeleteResourceGuardProxyRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDisableSoftDeleteRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultDisableSoftDeleteRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultDisableSoftDeleteRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultDisableSoftDeleteRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultUpdateProtectedItemRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultUpdateProtectedItemRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultUpdateProtectedItemRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultUpdateProtectedItemRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultUpdateProtectionPolicyRequestsObject":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultUpdateProtectionPolicyRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDefaultUpdateProtectionPolicyRequestsObjectWithResponse":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDefaultUpdateProtectionPolicyRequestsObject","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDeleteProtectedItemRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDeleteProtectedItemRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDeleteResourceGuardProxyRequestsObjects":"Microsoft.DataProtection.ResourceGuards.getDeleteResourceGuardProxyRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getDisableSoftDeleteRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getDisableSoftDeleteRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getUpdateProtectedItemRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getUpdateProtectedItemRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.getUpdateProtectionPolicyRequestsObjects":"Microsoft.DataProtection.DppBaseResourceOperationGroup.getUpdateProtectionPolicyRequestsObjects","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.list":"Microsoft.DataProtection.ResourceGuardResources.getResourcesInSubscription","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.listByResourceGroup":"Microsoft.DataProtection.ResourceGuardResources.getResourcesInResourceGroup","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.patch":"Microsoft.DataProtection.ResourceGuardResources.patch","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.patchWithResponse":"Microsoft.DataProtection.ResourceGuardResources.patch","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.put":"Microsoft.DataProtection.ResourceGuardResources.put","com.azure.resourcemanager.dataprotection.fluent.ResourceGuardsClient.putWithResponse":"Microsoft.DataProtection.ResourceGuardResources.put","com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesClient":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesClient.find":"Microsoft.DataProtection.BackupInstanceResources.find","com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesClient.findWithResponse":"Microsoft.DataProtection.BackupInstanceResources.find","com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.RestorableTimeRangesFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesFromDppCrossTenantVaultsClient.find":"Microsoft.DataProtection.RestorableTimeRangesFromDppCrossTenantVault.find","com.azure.resourcemanager.dataprotection.fluent.RestorableTimeRangesFromDppCrossTenantVaultsClient.findWithResponse":"Microsoft.DataProtection.RestorableTimeRangesFromDppCrossTenantVault.find","com.azure.resourcemanager.dataprotection.fluent.RestoresFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.RestoresFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.RestoresFromDppCrossTenantVaultsClient.beginTrigger":"Microsoft.DataProtection.RestoresFromDppCrossTenantVault.trigger","com.azure.resourcemanager.dataprotection.fluent.RestoresFromDppCrossTenantVaultsClient.trigger":"Microsoft.DataProtection.RestoresFromDppCrossTenantVault.trigger","com.azure.resourcemanager.dataprotection.fluent.ValidateRestoreFromDppCrossTenantVaultsClient":"Microsoft.DataProtection.ValidateRestoreFromDppCrossTenantVault","com.azure.resourcemanager.dataprotection.fluent.ValidateRestoreFromDppCrossTenantVaultsClient.beginTrigger":"Microsoft.DataProtection.ValidateRestoreFromDppCrossTenantVault.trigger","com.azure.resourcemanager.dataprotection.fluent.ValidateRestoreFromDppCrossTenantVaultsClient.trigger":"Microsoft.DataProtection.ValidateRestoreFromDppCrossTenantVault.trigger","com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupFindRestorableTimeRangesResponseResourceInner":"Microsoft.DataProtection.AzureBackupFindRestorableTimeRangesResponseResource","com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupJobResourceInner":"Microsoft.DataProtection.AzureBackupJobResource","com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner":"Microsoft.DataProtection.AzureBackupRecoveryPointResource","com.azure.resourcemanager.dataprotection.fluent.models.BackupInstanceResourceInner":"Microsoft.DataProtection.BackupInstanceResource","com.azure.resourcemanager.dataprotection.fluent.models.BackupVaultResourceInner":"Microsoft.DataProtection.BackupVaultResource","com.azure.resourcemanager.dataprotection.fluent.models.BaseBackupPolicyResourceInner":"Microsoft.DataProtection.BaseBackupPolicyResource","com.azure.resourcemanager.dataprotection.fluent.models.CheckNameAvailabilityResultInner":"Microsoft.DataProtection.CheckNameAvailabilityResult","com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantBackupInstanceResourceInner":"Microsoft.DataProtection.CrossTenantBackupInstanceResource","com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingInner":"Microsoft.DataProtection.CrossTenantVaultMapping","com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingStatusResponseInner":"Microsoft.DataProtection.CrossTenantVaultMappingStatusResponse","com.azure.resourcemanager.dataprotection.fluent.models.DeletedBackupInstanceResourceInner":"Microsoft.DataProtection.DeletedBackupInstanceResource","com.azure.resourcemanager.dataprotection.fluent.models.DeletedBackupVaultResourceInner":"Microsoft.DataProtection.DeletedBackupVaultResource","com.azure.resourcemanager.dataprotection.fluent.models.DppBaseResourceInner":"Microsoft.DataProtection.DppBaseResource","com.azure.resourcemanager.dataprotection.fluent.models.ExportJobsResultInner":"Microsoft.DataProtection.ExportJobsResult","com.azure.resourcemanager.dataprotection.fluent.models.FeatureValidationResponseBaseInner":"Microsoft.DataProtection.FeatureValidationResponseBase","com.azure.resourcemanager.dataprotection.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner":"Microsoft.DataProtection.OperationJobExtendedInfo","com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner":"Microsoft.DataProtection.OperationResource","com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner":"Microsoft.DataProtection.ResourceGuardProxyBaseResource","com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardResourceInner":"Microsoft.DataProtection.ResourceGuardResource","com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner":"Microsoft.DataProtection.UnlockDeleteResponse","com.azure.resourcemanager.dataprotection.implementation.DataProtectionManagementClientBuilder":"Microsoft.DataProtection","com.azure.resourcemanager.dataprotection.implementation.models.AzureBackupJobResourceList":"Microsoft.DataProtection.AzureBackupJobResourceList","com.azure.resourcemanager.dataprotection.implementation.models.AzureBackupRecoveryPointResourceList":"Microsoft.DataProtection.AzureBackupRecoveryPointResourceList","com.azure.resourcemanager.dataprotection.implementation.models.BackupInstanceResourceList":"Microsoft.DataProtection.BackupInstanceResourceList","com.azure.resourcemanager.dataprotection.implementation.models.BackupVaultResourceList":"Microsoft.DataProtection.BackupVaultResourceList","com.azure.resourcemanager.dataprotection.implementation.models.BaseBackupPolicyResourceList":"Microsoft.DataProtection.BaseBackupPolicyResourceList","com.azure.resourcemanager.dataprotection.implementation.models.CrossTenantBackupInstanceResourceList":"Microsoft.DataProtection.CrossTenantBackupInstanceResourceList","com.azure.resourcemanager.dataprotection.implementation.models.CrossTenantVaultMappingList":"Microsoft.DataProtection.CrossTenantVaultMappingList","com.azure.resourcemanager.dataprotection.implementation.models.DeletedBackupInstanceResourceList":"Microsoft.DataProtection.DeletedBackupInstanceResourceList","com.azure.resourcemanager.dataprotection.implementation.models.DeletedBackupVaultResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.dataprotection.implementation.models.DppBaseResourceList":"Microsoft.DataProtection.DppBaseResourceList","com.azure.resourcemanager.dataprotection.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.dataprotection.implementation.models.ResourceGuardProxyBaseResourceList":"Microsoft.DataProtection.ResourceGuardProxyBaseResourceList","com.azure.resourcemanager.dataprotection.implementation.models.ResourceGuardResourceList":"Microsoft.DataProtection.ResourceGuardResourceList","com.azure.resourcemanager.dataprotection.models.AKSVolumeTypes":"Microsoft.DataProtection.AKSVolumeTypes","com.azure.resourcemanager.dataprotection.models.AbsoluteDeleteOption":"Microsoft.DataProtection.AbsoluteDeleteOption","com.azure.resourcemanager.dataprotection.models.AbsoluteMarker":"Microsoft.DataProtection.AbsoluteMarker","com.azure.resourcemanager.dataprotection.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.dataprotection.models.AdHocBackupRuleOptions":"Microsoft.DataProtection.AdHocBackupRuleOptions","com.azure.resourcemanager.dataprotection.models.AdhocBackupTriggerOption":"Microsoft.DataProtection.AdhocBackupTriggerOption","com.azure.resourcemanager.dataprotection.models.AdhocBasedTaggingCriteria":"Microsoft.DataProtection.AdhocBasedTaggingCriteria","com.azure.resourcemanager.dataprotection.models.AdhocBasedTriggerContext":"Microsoft.DataProtection.AdhocBasedTriggerContext","com.azure.resourcemanager.dataprotection.models.AdlsBlobBackupDatasourceParameters":"Microsoft.DataProtection.AdlsBlobBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.AdlsBlobBackupDatasourceParametersForAutoProtection":"Microsoft.DataProtection.AdlsBlobBackupDatasourceParametersForAutoProtection","com.azure.resourcemanager.dataprotection.models.AlertsState":"Microsoft.DataProtection.AlertsState","com.azure.resourcemanager.dataprotection.models.AuthCredentials":"Microsoft.DataProtection.AuthCredentials","com.azure.resourcemanager.dataprotection.models.AzureBackupDiscreteRecoveryPoint":"Microsoft.DataProtection.AzureBackupDiscreteRecoveryPoint","com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest":"Microsoft.DataProtection.AzureBackupFindRestorableTimeRangesRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesResponse":"Microsoft.DataProtection.AzureBackupFindRestorableTimeRangesResponse","com.azure.resourcemanager.dataprotection.models.AzureBackupJob":"Microsoft.DataProtection.AzureBackupJob","com.azure.resourcemanager.dataprotection.models.AzureBackupParams":"Microsoft.DataProtection.AzureBackupParams","com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPoint":"Microsoft.DataProtection.AzureBackupRecoveryPoint","com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest":"Microsoft.DataProtection.AzureBackupRecoveryPointBasedRestoreRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryTimeBasedRestoreRequest":"Microsoft.DataProtection.AzureBackupRecoveryTimeBasedRestoreRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRehydrationRequest":"Microsoft.DataProtection.AzureBackupRehydrationRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest":"Microsoft.DataProtection.AzureBackupRestoreRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreWithRehydrationRequest":"Microsoft.DataProtection.AzureBackupRestoreWithRehydrationRequest","com.azure.resourcemanager.dataprotection.models.AzureBackupRule":"Microsoft.DataProtection.AzureBackupRule","com.azure.resourcemanager.dataprotection.models.AzureMonitorAlertSettings":"Microsoft.DataProtection.AzureMonitorAlertSettings","com.azure.resourcemanager.dataprotection.models.AzureOperationalStoreParameters":"Microsoft.DataProtection.AzureOperationalStoreParameters","com.azure.resourcemanager.dataprotection.models.AzureRetentionRule":"Microsoft.DataProtection.AzureRetentionRule","com.azure.resourcemanager.dataprotection.models.BackupCriteria":"Microsoft.DataProtection.BackupCriteria","com.azure.resourcemanager.dataprotection.models.BackupDatasourceParameters":"Microsoft.DataProtection.BackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.BackupInstance":"Microsoft.DataProtection.BackupInstance","com.azure.resourcemanager.dataprotection.models.BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders":null,"com.azure.resourcemanager.dataprotection.models.BackupParameters":"Microsoft.DataProtection.BackupParameters","com.azure.resourcemanager.dataprotection.models.BackupPolicy":"Microsoft.DataProtection.BackupPolicy","com.azure.resourcemanager.dataprotection.models.BackupSchedule":"Microsoft.DataProtection.BackupSchedule","com.azure.resourcemanager.dataprotection.models.BackupSolutionType":"Microsoft.DataProtection.BackupSolutionType","com.azure.resourcemanager.dataprotection.models.BackupVault":"Microsoft.DataProtection.BackupVault","com.azure.resourcemanager.dataprotection.models.BackupVaultOperationResultsGetHeaders":null,"com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy":"Microsoft.DataProtection.BaseBackupPolicy","com.azure.resourcemanager.dataprotection.models.BasePolicyRule":"Microsoft.DataProtection.BasePolicyRule","com.azure.resourcemanager.dataprotection.models.BaseResourceProperties":"Microsoft.DataProtection.BaseResourceProperties","com.azure.resourcemanager.dataprotection.models.BcdrSecurityLevel":"Microsoft.DataProtection.BCDRSecurityLevel","com.azure.resourcemanager.dataprotection.models.BlobBackupAutoProtectionRule":"Microsoft.DataProtection.BlobBackupAutoProtectionRule","com.azure.resourcemanager.dataprotection.models.BlobBackupAutoProtectionSettings":"Microsoft.DataProtection.BlobBackupAutoProtectionSettings","com.azure.resourcemanager.dataprotection.models.BlobBackupDatasourceParameters":"Microsoft.DataProtection.BlobBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.BlobBackupDatasourceParametersForAutoProtection":"Microsoft.DataProtection.BlobBackupDatasourceParametersForAutoProtection","com.azure.resourcemanager.dataprotection.models.BlobBackupPatternType":"Microsoft.DataProtection.BlobBackupPatternType","com.azure.resourcemanager.dataprotection.models.BlobBackupRuleBasedAutoProtectionSettings":"Microsoft.DataProtection.BlobBackupRuleBasedAutoProtectionSettings","com.azure.resourcemanager.dataprotection.models.BlobBackupRuleMode":"Microsoft.DataProtection.BlobBackupRuleMode","com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequest":"Microsoft.DataProtection.CheckNameAvailabilityRequest","com.azure.resourcemanager.dataprotection.models.CmkKekIdentity":"Microsoft.DataProtection.CmkKekIdentity","com.azure.resourcemanager.dataprotection.models.CmkKeyVaultProperties":"Microsoft.DataProtection.CmkKeyVaultProperties","com.azure.resourcemanager.dataprotection.models.CopyOnExpiryOption":"Microsoft.DataProtection.CopyOnExpiryOption","com.azure.resourcemanager.dataprotection.models.CopyOption":"Microsoft.DataProtection.CopyOption","com.azure.resourcemanager.dataprotection.models.CostManagementSettings":"Microsoft.DataProtection.CostManagementSettings","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreDetails":"Microsoft.DataProtection.CrossRegionRestoreDetails","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobRequest":"Microsoft.DataProtection.CrossRegionRestoreJobRequest","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobsRequest":"Microsoft.DataProtection.CrossRegionRestoreJobsRequest","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreRequestObject":"Microsoft.DataProtection.CrossRegionRestoreRequestObject","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreSettings":"Microsoft.DataProtection.CrossRegionRestoreSettings","com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreState":"Microsoft.DataProtection.CrossRegionRestoreState","com.azure.resourcemanager.dataprotection.models.CrossSubscriptionRestoreSettings":"Microsoft.DataProtection.CrossSubscriptionRestoreSettings","com.azure.resourcemanager.dataprotection.models.CrossSubscriptionRestoreState":"Microsoft.DataProtection.CrossSubscriptionRestoreState","com.azure.resourcemanager.dataprotection.models.CrossTenantAuthCredentials":"Microsoft.DataProtection.CrossTenantAuthCredentials","com.azure.resourcemanager.dataprotection.models.CrossTenantBackupInstance":"Microsoft.DataProtection.CrossTenantBackupInstance","com.azure.resourcemanager.dataprotection.models.CrossTenantSecretStoreBasedAuthCredentials":"Microsoft.DataProtection.CrossTenantSecretStoreBasedAuthCredentials","com.azure.resourcemanager.dataprotection.models.CrossTenantSecretStoreResource":"Microsoft.DataProtection.CrossTenantSecretStoreResource","com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingProperties":"Microsoft.DataProtection.CrossTenantVaultMappingProperties","com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequest":"Microsoft.DataProtection.CrossTenantVaultMappingRemoveRequest","com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequestProperties":"Microsoft.DataProtection.CrossTenantVaultMappingRemoveRequestProperties","com.azure.resourcemanager.dataprotection.models.CurrentProtectionState":"Microsoft.DataProtection.CurrentProtectionState","com.azure.resourcemanager.dataprotection.models.CustomCopyOption":"Microsoft.DataProtection.CustomCopyOption","com.azure.resourcemanager.dataprotection.models.DataStoreInfoBase":"Microsoft.DataProtection.DataStoreInfoBase","com.azure.resourcemanager.dataprotection.models.DataStoreParameters":"Microsoft.DataProtection.DataStoreParameters","com.azure.resourcemanager.dataprotection.models.DataStoreTypes":"Microsoft.DataProtection.DataStoreTypes","com.azure.resourcemanager.dataprotection.models.Datasource":"Microsoft.DataProtection.Datasource","com.azure.resourcemanager.dataprotection.models.DatasourceSet":"Microsoft.DataProtection.DatasourceSet","com.azure.resourcemanager.dataprotection.models.Day":"Microsoft.DataProtection.Day","com.azure.resourcemanager.dataprotection.models.DayOfWeek":"Microsoft.DataProtection.DayOfWeek","com.azure.resourcemanager.dataprotection.models.DefaultResourceProperties":"Microsoft.DataProtection.DefaultResourceProperties","com.azure.resourcemanager.dataprotection.models.DeleteOption":"Microsoft.DataProtection.DeleteOption","com.azure.resourcemanager.dataprotection.models.DeletedBackupInstance":"Microsoft.DataProtection.DeletedBackupInstance","com.azure.resourcemanager.dataprotection.models.DeletedBackupVault":"Microsoft.DataProtection.DeletedBackupVault","com.azure.resourcemanager.dataprotection.models.DeletionInfo":"Microsoft.DataProtection.DeletionInfo","com.azure.resourcemanager.dataprotection.models.DppIdentityDetails":"Microsoft.DataProtection.DppIdentityDetails","com.azure.resourcemanager.dataprotection.models.DppResource":"Microsoft.DataProtection.DppResource","com.azure.resourcemanager.dataprotection.models.DppResourceList":"Microsoft.DataProtection.DppResourceList","com.azure.resourcemanager.dataprotection.models.DppTrackedResourceList":"Microsoft.DataProtection.DppTrackedResourceList","com.azure.resourcemanager.dataprotection.models.EncryptionSettings":"Microsoft.DataProtection.EncryptionSettings","com.azure.resourcemanager.dataprotection.models.EncryptionState":"Microsoft.DataProtection.EncryptionState","com.azure.resourcemanager.dataprotection.models.ExistingResourcePolicy":"Microsoft.DataProtection.ExistingResourcePolicy","com.azure.resourcemanager.dataprotection.models.FeatureSettings":"Microsoft.DataProtection.FeatureSettings","com.azure.resourcemanager.dataprotection.models.FeatureSupportStatus":"Microsoft.DataProtection.FeatureSupportStatus","com.azure.resourcemanager.dataprotection.models.FeatureType":"Microsoft.DataProtection.FeatureType","com.azure.resourcemanager.dataprotection.models.FeatureValidationRequest":"Microsoft.DataProtection.FeatureValidationRequest","com.azure.resourcemanager.dataprotection.models.FeatureValidationRequestBase":"Microsoft.DataProtection.FeatureValidationRequestBase","com.azure.resourcemanager.dataprotection.models.FeatureValidationResponse":"Microsoft.DataProtection.FeatureValidationResponse","com.azure.resourcemanager.dataprotection.models.FetchSecondaryRPsRequestParameters":"Microsoft.DataProtection.FetchSecondaryRPsRequestParameters","com.azure.resourcemanager.dataprotection.models.GenericBackupDatasourceParameters":"Microsoft.DataProtection.GenericBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.GenericRestoreDatasourceCriteria":"Microsoft.DataProtection.GenericRestoreDatasourceCriteria","com.azure.resourcemanager.dataprotection.models.GranularityLevel":"Microsoft.DataProtection.GranularityLevel","com.azure.resourcemanager.dataprotection.models.IdentityDetails":"Microsoft.DataProtection.IdentityDetails","com.azure.resourcemanager.dataprotection.models.IdentityType":"Microsoft.DataProtection.IdentityType","com.azure.resourcemanager.dataprotection.models.ImmediateCopyOption":"Microsoft.DataProtection.ImmediateCopyOption","com.azure.resourcemanager.dataprotection.models.ImmutabilityConfiguration":"Microsoft.DataProtection.ImmutabilityConfiguration","com.azure.resourcemanager.dataprotection.models.ImmutabilitySettings":"Microsoft.DataProtection.ImmutabilitySettings","com.azure.resourcemanager.dataprotection.models.ImmutabilityState":"Microsoft.DataProtection.ImmutabilityState","com.azure.resourcemanager.dataprotection.models.ImmutabilityType":"Microsoft.DataProtection.ImmutabilityType","com.azure.resourcemanager.dataprotection.models.InfrastructureEncryptionState":"Microsoft.DataProtection.InfrastructureEncryptionState","com.azure.resourcemanager.dataprotection.models.InnerError":"Microsoft.DataProtection.InnerError","com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreCriteria":"Microsoft.DataProtection.ItemLevelRestoreCriteria","com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreTargetInfo":"Microsoft.DataProtection.ItemLevelRestoreTargetInfo","com.azure.resourcemanager.dataprotection.models.ItemPathBasedRestoreCriteria":"Microsoft.DataProtection.ItemPathBasedRestoreCriteria","com.azure.resourcemanager.dataprotection.models.JobExtendedInfo":"Microsoft.DataProtection.JobExtendedInfo","com.azure.resourcemanager.dataprotection.models.JobSubTask":"Microsoft.DataProtection.JobSubTask","com.azure.resourcemanager.dataprotection.models.KubernetesClusterBackupDatasourceParameters":"Microsoft.DataProtection.KubernetesClusterBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.KubernetesClusterRestoreCriteria":"Microsoft.DataProtection.KubernetesClusterRestoreCriteria","com.azure.resourcemanager.dataprotection.models.KubernetesClusterVaultTierRestoreCriteria":"Microsoft.DataProtection.KubernetesClusterVaultTierRestoreCriteria","com.azure.resourcemanager.dataprotection.models.KubernetesPVRestoreCriteria":"Microsoft.DataProtection.KubernetesPVRestoreCriteria","com.azure.resourcemanager.dataprotection.models.KubernetesStorageClassRestoreCriteria":"Microsoft.DataProtection.KubernetesStorageClassRestoreCriteria","com.azure.resourcemanager.dataprotection.models.MonitoringSettings":"Microsoft.DataProtection.MonitoringSettings","com.azure.resourcemanager.dataprotection.models.Month":"Microsoft.DataProtection.Month","com.azure.resourcemanager.dataprotection.models.NamespacedNameResource":"Microsoft.DataProtection.NamespacedNameResource","com.azure.resourcemanager.dataprotection.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.dataprotection.models.OperationExtendedInfo":"Microsoft.DataProtection.OperationExtendedInfo","com.azure.resourcemanager.dataprotection.models.OperationResultsGetHeaders":null,"com.azure.resourcemanager.dataprotection.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.dataprotection.models.PatchBackupVaultInput":"Microsoft.DataProtection.PatchBackupVaultInput","com.azure.resourcemanager.dataprotection.models.PatchResourceGuardInput":"Microsoft.DataProtection.PatchResourceGuardInput","com.azure.resourcemanager.dataprotection.models.PatchResourceRequestInput":"Microsoft.DataProtection.PatchResourceRequestInput","com.azure.resourcemanager.dataprotection.models.PersistentVolumeRestoreMode":"Microsoft.DataProtection.PersistentVolumeRestoreMode","com.azure.resourcemanager.dataprotection.models.PolicyInfo":"Microsoft.DataProtection.PolicyInfo","com.azure.resourcemanager.dataprotection.models.PolicyParameters":"Microsoft.DataProtection.PolicyParameters","com.azure.resourcemanager.dataprotection.models.PostgreSqlFlexibleServerBackupDatasourceParameters":"Microsoft.DataProtection.PostgreSqlFlexibleServerBackupDatasourceParameters","com.azure.resourcemanager.dataprotection.models.ProtectionStatusDetails":"Microsoft.DataProtection.ProtectionStatusDetails","com.azure.resourcemanager.dataprotection.models.ProvisioningState":"Microsoft.DataProtection.ProvisioningState","com.azure.resourcemanager.dataprotection.models.RangeBasedItemLevelRestoreCriteria":"Microsoft.DataProtection.RangeBasedItemLevelRestoreCriteria","com.azure.resourcemanager.dataprotection.models.RecoveryOption":"Microsoft.DataProtection.RecoveryOption","com.azure.resourcemanager.dataprotection.models.RecoveryPointCompletionState":"Microsoft.DataProtection.RecoveryPointCompletionState","com.azure.resourcemanager.dataprotection.models.RecoveryPointDataStoreDetails":"Microsoft.DataProtection.RecoveryPointDataStoreDetails","com.azure.resourcemanager.dataprotection.models.RecoveryPointImmutabilityProperties":"Microsoft.DataProtection.RecoveryPointImmutabilityProperties","com.azure.resourcemanager.dataprotection.models.RehydrationPriority":"Microsoft.DataProtection.RehydrationPriority","com.azure.resourcemanager.dataprotection.models.RehydrationStatus":"Microsoft.DataProtection.RehydrationStatus","com.azure.resourcemanager.dataprotection.models.ResourceDeletionInfo":"Microsoft.DataProtection.ResourceDeletionInfo","com.azure.resourcemanager.dataprotection.models.ResourceGuard":"Microsoft.DataProtection.ResourceGuard","com.azure.resourcemanager.dataprotection.models.ResourceGuardOperation":"Microsoft.DataProtection.ResourceGuardOperation","com.azure.resourcemanager.dataprotection.models.ResourceGuardOperationDetail":"Microsoft.DataProtection.ResourceGuardOperationDetail","com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase":"Microsoft.DataProtection.ResourceGuardProxyBase","com.azure.resourcemanager.dataprotection.models.ResourceListSelectionCriteria":"Microsoft.DataProtection.ResourceListSelectionCriteria","com.azure.resourcemanager.dataprotection.models.ResourceMoveDetails":"Microsoft.DataProtection.ResourceMoveDetails","com.azure.resourcemanager.dataprotection.models.ResourceMoveState":"Microsoft.DataProtection.ResourceMoveState","com.azure.resourcemanager.dataprotection.models.ResourcePropertiesObjectType":"Microsoft.DataProtection.ResourcePropertiesObjectType","com.azure.resourcemanager.dataprotection.models.RestorableTimeRange":"Microsoft.DataProtection.RestorableTimeRange","com.azure.resourcemanager.dataprotection.models.RestoreFilesTargetInfo":"Microsoft.DataProtection.RestoreFilesTargetInfo","com.azure.resourcemanager.dataprotection.models.RestoreJobRecoveryPointDetails":"Microsoft.DataProtection.RestoreJobRecoveryPointDetails","com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreType":"Microsoft.DataProtection.RestoreSourceDataStoreType","com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo":"Microsoft.DataProtection.RestoreTargetInfo","com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase":"Microsoft.DataProtection.RestoreTargetInfoBase","com.azure.resourcemanager.dataprotection.models.RestoreTargetLocationType":"Microsoft.DataProtection.RestoreTargetLocationType","com.azure.resourcemanager.dataprotection.models.RetentionTag":"Microsoft.DataProtection.RetentionTag","com.azure.resourcemanager.dataprotection.models.ScheduleBasedBackupCriteria":"Microsoft.DataProtection.ScheduleBasedBackupCriteria","com.azure.resourcemanager.dataprotection.models.ScheduleBasedTriggerContext":"Microsoft.DataProtection.ScheduleBasedTriggerContext","com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials":"Microsoft.DataProtection.SecretStoreBasedAuthCredentials","com.azure.resourcemanager.dataprotection.models.SecretStoreResource":"Microsoft.DataProtection.SecretStoreResource","com.azure.resourcemanager.dataprotection.models.SecretStoreType":"Microsoft.DataProtection.SecretStoreType","com.azure.resourcemanager.dataprotection.models.SecureScoreLevel":"Microsoft.DataProtection.SecureScoreLevel","com.azure.resourcemanager.dataprotection.models.SecuritySettings":"Microsoft.DataProtection.SecuritySettings","com.azure.resourcemanager.dataprotection.models.SoftDeleteSettings":"Microsoft.DataProtection.SoftDeleteSettings","com.azure.resourcemanager.dataprotection.models.SoftDeleteState":"Microsoft.DataProtection.SoftDeleteState","com.azure.resourcemanager.dataprotection.models.SourceDataStoreType":"Microsoft.DataProtection.SourceDataStoreType","com.azure.resourcemanager.dataprotection.models.SourceLifeCycle":"Microsoft.DataProtection.SourceLifeCycle","com.azure.resourcemanager.dataprotection.models.Status":"Microsoft.DataProtection.Status","com.azure.resourcemanager.dataprotection.models.StopProtectionRequest":"Microsoft.DataProtection.StopProtectionRequest","com.azure.resourcemanager.dataprotection.models.StorageSetting":"Microsoft.DataProtection.StorageSetting","com.azure.resourcemanager.dataprotection.models.StorageSettingStoreTypes":"Microsoft.DataProtection.StorageSettingStoreTypes","com.azure.resourcemanager.dataprotection.models.StorageSettingTypes":"Microsoft.DataProtection.StorageSettingTypes","com.azure.resourcemanager.dataprotection.models.SupportedFeature":"Microsoft.DataProtection.SupportedFeature","com.azure.resourcemanager.dataprotection.models.SuspendBackupRequest":"Microsoft.DataProtection.SuspendBackupRequest","com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest":"Microsoft.DataProtection.SyncBackupInstanceRequest","com.azure.resourcemanager.dataprotection.models.SyncType":"Microsoft.DataProtection.SyncType","com.azure.resourcemanager.dataprotection.models.TaggingCriteria":"Microsoft.DataProtection.TaggingCriteria","com.azure.resourcemanager.dataprotection.models.TargetCopySetting":"Microsoft.DataProtection.TargetCopySetting","com.azure.resourcemanager.dataprotection.models.TargetDetails":"Microsoft.DataProtection.TargetDetails","com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest":"Microsoft.DataProtection.TriggerBackupRequest","com.azure.resourcemanager.dataprotection.models.TriggerContext":"Microsoft.DataProtection.TriggerContext","com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest":"Microsoft.DataProtection.UnlockDeleteRequest","com.azure.resourcemanager.dataprotection.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.dataprotection.models.UserFacingError":"Microsoft.DataProtection.UserFacingError","com.azure.resourcemanager.dataprotection.models.UserFacingWarningDetail":"Microsoft.DataProtection.UserFacingWarningDetail","com.azure.resourcemanager.dataprotection.models.ValidateCrossRegionRestoreRequestObject":"Microsoft.DataProtection.ValidateCrossRegionRestoreRequestObject","com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest":"Microsoft.DataProtection.ValidateForBackupRequest","com.azure.resourcemanager.dataprotection.models.ValidateForModifyBackupRequest":"Microsoft.DataProtection.ValidateForModifyBackupRequest","com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject":"Microsoft.DataProtection.ValidateRestoreRequestObject","com.azure.resourcemanager.dataprotection.models.ValidationType":"Microsoft.DataProtection.ValidationType","com.azure.resourcemanager.dataprotection.models.VaultMappingState":"Microsoft.DataProtection.VaultMappingState","com.azure.resourcemanager.dataprotection.models.WeekNumber":"Microsoft.DataProtection.WeekNumber"},"generatedFiles":["src/main/java/com/azure/resourcemanager/dataprotection/DataProtectionManager.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationResultFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstanceOperationStatusFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesExtensionRoutingsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupInstancesFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupJobsFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultOperationResultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/BackupVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionManagementClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionOperationsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DataProtectionsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupInstancesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DeletedBackupVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingStatusClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppCrossTenantVaultMappingsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/DppResourceGuardProxiesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/ExportJobsOperationResultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/FetchCrossRegionRestoreJobsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/FetchCrossRegionRestoreJobsOperationsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/FetchSecondaryRecoveryPointsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/JobsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationResultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusBackupVaultContextsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/OperationStatusResourceGroupContextsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/RecoveryPointsFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/ResourceGuardsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestorableTimeRangesFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/RestoresFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/ValidateRestoreFromDppCrossTenantVaultsClient.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CheckNameAvailabilityResultInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantBackupInstanceResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/CrossTenantVaultMappingStatusResponseInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupInstanceResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupVaultResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DppBaseResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ExportJobsResultInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/FeatureValidationResponseBaseInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/UnlockDeleteResponseInner.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/dataprotection/fluent/package-info.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/AzureBackupFindRestorableTimeRangesResponseResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/AzureBackupJobResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/AzureBackupRecoveryPointResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationResultFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceOperationStatusFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstanceResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesExtensionRoutingsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupInstancesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupJobsFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupJobsFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/BaseBackupPolicyResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/CheckNameAvailabilityResultImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantBackupInstanceResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantVaultMappingImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/CrossTenantVaultMappingStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionManagementClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionOperationsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstanceResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstancesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupInstancesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupVaultResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DeletedBackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingStatusImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppCrossTenantVaultMappingsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/DppResourceGuardProxiesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ExportJobsResultImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FeatureValidationResponseBaseImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchCrossRegionRestoreJobsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchCrossRegionRestoreJobsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchCrossRegionRestoreJobsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchCrossRegionRestoreJobsOperationsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchSecondaryRecoveryPointsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchSecondaryRecoveryPointsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/JobsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationJobExtendedInfoImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationResultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusBackupVaultContextsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusBackupVaultContextsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusResourceGroupContextsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/OperationStatusResourceGroupContextsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RecoveryPointsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardProxyBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardResourceImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceGuardsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestorableTimeRangesImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestoresFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/RestoresFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/UnlockDeleteResponseImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ValidateRestoreFromDppCrossTenantVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/ValidateRestoreFromDppCrossTenantVaultsImpl.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/AzureBackupJobResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/AzureBackupRecoveryPointResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/BackupInstanceResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/BackupVaultResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/BaseBackupPolicyResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/CrossTenantBackupInstanceResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/CrossTenantVaultMappingList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/DeletedBackupInstanceResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/DeletedBackupVaultResourceListResult.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/DppBaseResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/ResourceGuardProxyBaseResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/models/ResourceGuardResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/implementation/package-info.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AKSVolumeTypes.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AbsoluteDeleteOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AbsoluteMarker.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ActionType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdHocBackupRuleOptions.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBackupTriggerOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBasedTaggingCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBasedTriggerContext.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdlsBlobBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AdlsBlobBackupDatasourceParametersForAutoProtection.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AlertsState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AuthCredentials.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesResponseResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupJob.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupJobResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupParams.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPoint.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointBasedRestoreRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryTimeBasedRestoreRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRehydrationRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRestoreRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRestoreWithRehydrationRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureMonitorAlertSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureOperationalStoreParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/AzureRetentionRule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstance.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetHeaders.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationResultFromDppCrossTenantVaultsGetResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceOperationStatusFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstances.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesExtensionRoutings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstancesFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupJobsFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicies.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicy.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupSchedule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupSolutionType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVault.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResultsGetHeaders.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResultsGetResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicy.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BasePolicyRule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BaseResourceProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BcdrSecurityLevel.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupAutoProtectionRule.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupAutoProtectionSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupDatasourceParametersForAutoProtection.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupPatternType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupRuleBasedAutoProtectionSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupRuleMode.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CheckNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CheckNameAvailabilityResult.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CmkKekIdentity.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CmkKeyVaultProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CopyOnExpiryOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CopyOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CostManagementSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreJobRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreJobsRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreRequestObject.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossRegionRestoreState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossSubscriptionRestoreState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantAuthCredentials.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstance.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantBackupInstanceResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreBasedAuthCredentials.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantSecretStoreResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMapping.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingRemoveRequestProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CrossTenantVaultMappingStatusResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CurrentProtectionState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/CustomCopyOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataProtectionOperations.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataProtections.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataStoreInfoBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataStoreParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DataStoreTypes.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Datasource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DatasourceSet.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Day.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DefaultResourceProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeleteOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstance.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstanceResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstances.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupVault.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupVaultResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DeletionInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppBaseResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappingStatus.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppCrossTenantVaultMappings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppIdentityDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppResourceGuardProxies.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResourceList.java","src/main/java/com/azure/resourcemanager/dataprotection/models/EncryptionSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/EncryptionState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ExistingResourcePolicy.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobs.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobsOperationResults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ExportJobsResult.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureSupportStatus.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationRequestBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationResponseBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FetchCrossRegionRestoreJobs.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FetchCrossRegionRestoreJobsOperations.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FetchSecondaryRPsRequestParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/FetchSecondaryRecoveryPoints.java","src/main/java/com/azure/resourcemanager/dataprotection/models/GenericBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/GenericRestoreDatasourceCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/GranularityLevel.java","src/main/java/com/azure/resourcemanager/dataprotection/models/IdentityDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/IdentityType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmediateCopyOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmutabilityConfiguration.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmutabilitySettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmutabilityState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ImmutabilityType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/InfrastructureEncryptionState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/InnerError.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ItemLevelRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ItemLevelRestoreTargetInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ItemPathBasedRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/JobExtendedInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/JobFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/JobSubTask.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Jobs.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterVaultTierRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesPVRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesStorageClassRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/MonitoringSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Month.java","src/main/java/com/azure/resourcemanager/dataprotection/models/NamespacedNameResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Operation.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationExtendedInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResultsGetHeaders.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResultsGetResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatus.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusBackupVaultContexts.java","src/main/java/com/azure/resourcemanager/dataprotection/models/OperationStatusResourceGroupContexts.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Origin.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PatchBackupVaultInput.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PatchResourceGuardInput.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PatchResourceRequestInput.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PersistentVolumeRestoreMode.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PolicyInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PolicyParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/PostgreSqlFlexibleServerBackupDatasourceParameters.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ProtectionStatusDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RangeBasedItemLevelRestoreCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryOption.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointCompletionState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointDataStoreDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointImmutabilityProperties.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPoints.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RecoveryPointsFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RehydrationPriority.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RehydrationStatus.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceDeletionInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuard.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardOperation.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardOperationDetail.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuards.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceListSelectionCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceMoveDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceMoveState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ResourcePropertiesObjectType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRange.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRanges.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestorableTimeRangesFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreFilesTargetInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreJobRecoveryPointDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreSourceDataStoreType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetInfo.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetInfoBase.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetLocationType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RestoresFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/RetentionTag.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedTriggerContext.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreBasedAuthCredentials.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreResource.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecureScoreLevel.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SecuritySettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SoftDeleteSettings.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SoftDeleteState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SourceDataStoreType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SourceLifeCycle.java","src/main/java/com/azure/resourcemanager/dataprotection/models/Status.java","src/main/java/com/azure/resourcemanager/dataprotection/models/StopProtectionRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/StorageSetting.java","src/main/java/com/azure/resourcemanager/dataprotection/models/StorageSettingStoreTypes.java","src/main/java/com/azure/resourcemanager/dataprotection/models/StorageSettingTypes.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SupportedFeature.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SuspendBackupRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SyncBackupInstanceRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/SyncType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TaggingCriteria.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TargetCopySetting.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TargetDetails.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TriggerBackupRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/TriggerContext.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UnlockDeleteRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UnlockDeleteResponse.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UserFacingError.java","src/main/java/com/azure/resourcemanager/dataprotection/models/UserFacingWarningDetail.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateCrossRegionRestoreRequestObject.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateForBackupRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateForModifyBackupRequest.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateRestoreFromDppCrossTenantVaults.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidateRestoreRequestObject.java","src/main/java/com/azure/resourcemanager/dataprotection/models/ValidationType.java","src/main/java/com/azure/resourcemanager/dataprotection/models/VaultMappingState.java","src/main/java/com/azure/resourcemanager/dataprotection/models/WeekNumber.java","src/main/java/com/azure/resourcemanager/dataprotection/models/package-info.java","src/main/java/com/azure/resourcemanager/dataprotection/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-dataprotection/proxy-config.json b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-dataprotection/proxy-config.json index cdd2b49848b0b..1639a4b244777 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-dataprotection/proxy-config.json +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-dataprotection/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.dataprotection.implementation.BackupInstancesClientImpl$BackupInstancesService"],["com.azure.resourcemanager.dataprotection.implementation.BackupInstancesExtensionRoutingsClientImpl$BackupInstancesExtensionRoutingsService"],["com.azure.resourcemanager.dataprotection.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.dataprotection.implementation.BackupVaultOperationResultsClientImpl$BackupVaultOperationResultsService"],["com.azure.resourcemanager.dataprotection.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.DataProtectionOperationsClientImpl$DataProtectionOperationsService"],["com.azure.resourcemanager.dataprotection.implementation.DataProtectionsClientImpl$DataProtectionsService"],["com.azure.resourcemanager.dataprotection.implementation.DeletedBackupInstancesClientImpl$DeletedBackupInstancesService"],["com.azure.resourcemanager.dataprotection.implementation.DeletedBackupVaultsClientImpl$DeletedBackupVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.DppResourceGuardProxiesClientImpl$DppResourceGuardProxiesService"],["com.azure.resourcemanager.dataprotection.implementation.ExportJobsClientImpl$ExportJobsService"],["com.azure.resourcemanager.dataprotection.implementation.ExportJobsOperationResultsClientImpl$ExportJobsOperationResultsService"],["com.azure.resourcemanager.dataprotection.implementation.FetchCrossRegionRestoreJobsClientImpl$FetchCrossRegionRestoreJobsService"],["com.azure.resourcemanager.dataprotection.implementation.FetchCrossRegionRestoreJobsOperationsClientImpl$FetchCrossRegionRestoreJobsOperationsService"],["com.azure.resourcemanager.dataprotection.implementation.FetchSecondaryRecoveryPointsClientImpl$FetchSecondaryRecoveryPointsService"],["com.azure.resourcemanager.dataprotection.implementation.JobsClientImpl$JobsService"],["com.azure.resourcemanager.dataprotection.implementation.OperationResultsClientImpl$OperationResultsService"],["com.azure.resourcemanager.dataprotection.implementation.OperationStatusBackupVaultContextsClientImpl$OperationStatusBackupVaultContextsService"],["com.azure.resourcemanager.dataprotection.implementation.OperationStatusClientImpl$OperationStatusService"],["com.azure.resourcemanager.dataprotection.implementation.OperationStatusResourceGroupContextsClientImpl$OperationStatusResourceGroupContextsService"],["com.azure.resourcemanager.dataprotection.implementation.RecoveryPointsClientImpl$RecoveryPointsService"],["com.azure.resourcemanager.dataprotection.implementation.ResourceGuardsClientImpl$ResourceGuardsService"],["com.azure.resourcemanager.dataprotection.implementation.RestorableTimeRangesClientImpl$RestorableTimeRangesService"]] \ No newline at end of file +[["com.azure.resourcemanager.dataprotection.implementation.BackupInstanceFromDppCrossTenantVaultsClientImpl$BackupInstanceFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.BackupInstanceOperationResultFromDppCrossTenantVaultsClientImpl$BackupInstanceOperationResultFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.BackupInstanceOperationStatusFromDppCrossTenantVaultsClientImpl$BackupInstanceOperationStatusFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.BackupInstancesClientImpl$BackupInstancesService"],["com.azure.resourcemanager.dataprotection.implementation.BackupInstancesExtensionRoutingsClientImpl$BackupInstancesExtensionRoutingsService"],["com.azure.resourcemanager.dataprotection.implementation.BackupInstancesFromDppCrossTenantVaultsClientImpl$BackupInstancesFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.BackupJobsFromDppCrossTenantVaultsClientImpl$BackupJobsFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.dataprotection.implementation.BackupVaultOperationResultsClientImpl$BackupVaultOperationResultsService"],["com.azure.resourcemanager.dataprotection.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.DataProtectionOperationsClientImpl$DataProtectionOperationsService"],["com.azure.resourcemanager.dataprotection.implementation.DataProtectionsClientImpl$DataProtectionsService"],["com.azure.resourcemanager.dataprotection.implementation.DeletedBackupInstancesClientImpl$DeletedBackupInstancesService"],["com.azure.resourcemanager.dataprotection.implementation.DeletedBackupVaultsClientImpl$DeletedBackupVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.DppCrossTenantVaultMappingStatusClientImpl$DppCrossTenantVaultMappingStatusService"],["com.azure.resourcemanager.dataprotection.implementation.DppCrossTenantVaultMappingsClientImpl$DppCrossTenantVaultMappingsService"],["com.azure.resourcemanager.dataprotection.implementation.DppResourceGuardProxiesClientImpl$DppResourceGuardProxiesService"],["com.azure.resourcemanager.dataprotection.implementation.ExportJobsClientImpl$ExportJobsService"],["com.azure.resourcemanager.dataprotection.implementation.ExportJobsOperationResultsClientImpl$ExportJobsOperationResultsService"],["com.azure.resourcemanager.dataprotection.implementation.FetchCrossRegionRestoreJobsClientImpl$FetchCrossRegionRestoreJobsService"],["com.azure.resourcemanager.dataprotection.implementation.FetchCrossRegionRestoreJobsOperationsClientImpl$FetchCrossRegionRestoreJobsOperationsService"],["com.azure.resourcemanager.dataprotection.implementation.FetchSecondaryRecoveryPointsClientImpl$FetchSecondaryRecoveryPointsService"],["com.azure.resourcemanager.dataprotection.implementation.JobFromDppCrossTenantVaultsClientImpl$JobFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.JobsClientImpl$JobsService"],["com.azure.resourcemanager.dataprotection.implementation.OperationResultsClientImpl$OperationResultsService"],["com.azure.resourcemanager.dataprotection.implementation.OperationStatusBackupVaultContextsClientImpl$OperationStatusBackupVaultContextsService"],["com.azure.resourcemanager.dataprotection.implementation.OperationStatusClientImpl$OperationStatusService"],["com.azure.resourcemanager.dataprotection.implementation.OperationStatusResourceGroupContextsClientImpl$OperationStatusResourceGroupContextsService"],["com.azure.resourcemanager.dataprotection.implementation.RecoveryPointFromDppCrossTenantVaultsClientImpl$RecoveryPointFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.RecoveryPointsClientImpl$RecoveryPointsService"],["com.azure.resourcemanager.dataprotection.implementation.RecoveryPointsFromDppCrossTenantVaultsClientImpl$RecoveryPointsFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.ResourceGuardsClientImpl$ResourceGuardsService"],["com.azure.resourcemanager.dataprotection.implementation.RestorableTimeRangesClientImpl$RestorableTimeRangesService"],["com.azure.resourcemanager.dataprotection.implementation.RestorableTimeRangesFromDppCrossTenantVaultsClientImpl$RestorableTimeRangesFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.RestoresFromDppCrossTenantVaultsClientImpl$RestoresFromDppCrossTenantVaultsService"],["com.azure.resourcemanager.dataprotection.implementation.ValidateRestoreFromDppCrossTenantVaultsClientImpl$ValidateRestoreFromDppCrossTenantVaultsService"]] \ No newline at end of file diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceFromDppCrossTenantVaultGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceFromDppCrossTenantVaultGetSamples.java new file mode 100644 index 0000000000000..832bd31e63a5e --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceFromDppCrossTenantVaultGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for BackupInstanceFromDppCrossTenantVault Get. + */ +public final class BackupInstanceFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupInstanceFromDppCrossTenantVault_Get.json + */ + /** + * Sample code: Get a backup instance from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void getABackupInstanceFromACrossTenantVault( + com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupInstanceFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationResultFromDppCrossTenantVaultGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationResultFromDppCrossTenantVaultGetSamples.java new file mode 100644 index 0000000000000..7b6ef82f2a61a --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationResultFromDppCrossTenantVaultGetSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for BackupInstanceOperationResultFromDppCrossTenantVault Get. + */ +public final class BackupInstanceOperationResultFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupInstanceOperationResultFromDppCrossTenantVault_Get. + * json + */ + /** + * Sample code: Get cross-tenant operation result. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getCrossTenantOperationResult(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupInstanceOperationResultFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + "YWUzNDFkMzQtZmM5Yy00OGE4LWE5ZDgtY2VhMDAwMDAwMDAw", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationStatusFromDppCrossTenantVaultGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationStatusFromDppCrossTenantVaultGetSamples.java new file mode 100644 index 0000000000000..5e13602136849 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationStatusFromDppCrossTenantVaultGetSamples.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for BackupInstanceOperationStatusFromDppCrossTenantVault Get. + */ +public final class BackupInstanceOperationStatusFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupInstanceOperationStatusFromDppCrossTenantVault_Get. + * json + */ + /** + * Sample code: Get cross-tenant operation status. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getCrossTenantOperationStatus(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupInstanceOperationStatusFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + "YWUzNDFkMzQtZmM5Yy00OGE4LWE5ZDgtY2VhMDAwMDAwMDAw", com.azure.core.util.Context.NONE); + } +} 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 eb5258fe2dac1..f46fb5108fdab 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 @@ -13,7 +13,7 @@ */ public final class BackupInstancesAdhocBackupSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerBackup.json + * x-ms-original-file: 2026-08-31-preview/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 2ff446906acf0..3edfec8e65013 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 @@ -9,7 +9,6 @@ import com.azure.resourcemanager.dataprotection.models.AdlsBlobBackupDatasourceParametersForAutoProtection; import com.azure.resourcemanager.dataprotection.models.AzureOperationalStoreParameters; import com.azure.resourcemanager.dataprotection.models.BackupInstance; -import com.azure.resourcemanager.dataprotection.models.BackupSolutionType; import com.azure.resourcemanager.dataprotection.models.BlobBackupAutoProtectionRule; import com.azure.resourcemanager.dataprotection.models.BlobBackupDatasourceParametersForAutoProtection; import com.azure.resourcemanager.dataprotection.models.BlobBackupPatternType; @@ -23,7 +22,6 @@ import com.azure.resourcemanager.dataprotection.models.KubernetesClusterBackupDatasourceParameters; import com.azure.resourcemanager.dataprotection.models.PolicyInfo; import com.azure.resourcemanager.dataprotection.models.PolicyParameters; -import com.azure.resourcemanager.dataprotection.models.PostgreSqlFlexibleServerBackupDatasourceParameters; import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials; import com.azure.resourcemanager.dataprotection.models.SecretStoreResource; import com.azure.resourcemanager.dataprotection.models.SecretStoreType; @@ -37,7 +35,7 @@ */ public final class BackupInstancesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance.json */ /** * Sample code: Create BackupInstance. @@ -84,7 +82,7 @@ public static void createBackupInstance(com.azure.resourcemanager.dataprotection } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstanceWithGenericParameters.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/PutBackupInstanceWithGenericParameters.json */ /** * Sample code: Create BackupInstance with GenericBackupDatasourceParameters. @@ -127,7 +125,8 @@ public static void createBackupInstanceWithGenericBackupDatasourceParameters( } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupDatasourceParameters.json + * x-ms-original-file: + * 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupDatasourceParameters.json */ /** * Sample code: Create BackupInstance With ADLSBlobBackupDatasourceParameters. @@ -169,7 +168,7 @@ public static void createBackupInstanceWithADLSBlobBackupDatasourceParameters( } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance_ResourceGuardEnabled.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_ResourceGuardEnabled.json */ /** * Sample code: Create BackupInstance to perform critical operation With MUA. @@ -216,7 +215,7 @@ public static void createBackupInstanceToPerformCriticalOperationWithMUA( } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance_BlobBackupAutoProtection.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_BlobBackupAutoProtection.json */ /** * Sample code: Create BackupInstance With BlobBackupAutoProtection. @@ -269,7 +268,7 @@ public static void createBackupInstanceWithBlobBackupAutoProtection( /* * x-ms-original-file: - * 2026-07-01/BackupInstanceOperations/PutBackupInstance_KubernetesClusterBackupDatasourceParameters.json + * 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_KubernetesClusterBackupDatasourceParameters.json */ /** * Sample code: Create BackupInstance With KubernetesClusterBackupDatasourceParameters. @@ -323,7 +322,8 @@ public static void createBackupInstanceWithKubernetesClusterBackupDatasourcePara } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupAutoProtection.json + * x-ms-original-file: + * 2026-08-31-preview/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupAutoProtection.json */ /** * Sample code: Create BackupInstance With ADLSBlobBackupAutoProtection. @@ -374,49 +374,6 @@ public static void createBackupInstanceWithADLSBlobBackupAutoProtection( .create(); } - /* - * x-ms-original-file: - * 2026-07-01/BackupInstanceOperations/PutBackupInstance_PostgreSqlFlexibleServerBackupDatasourceParameters.json - */ - /** - * Sample code: Create BackupInstance With PostgreSqlFlexibleServerBackupDatasourceParameters. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void createBackupInstanceWithPostgreSqlFlexibleServerBackupDatasourceParameters( - com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager.backupInstances() - .define("pgflexbi") - .withExistingBackupVault("pgflexrg", "pgflexvault") - .withProperties(new BackupInstance().withFriendlyName("pgflexbi") - .withDataSourceInfo(new Datasource().withDatasourceType("Microsoft.DBforPostgreSQL/flexibleServers") - .withObjectType("Datasource") - .withResourceId( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflexserver") - .withResourceLocation("eastus2euap") - .withResourceName("pgflexserver") - .withResourceType("Microsoft.DBforPostgreSQL/flexibleServers") - .withResourceUri( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflexserver")) - .withDataSourceSetInfo(new DatasourceSet() - .withDatasourceType("Microsoft.DBforPostgreSQL/flexibleServers") - .withObjectType("DatasourceSet") - .withResourceId( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflexserver") - .withResourceLocation("eastus2euap") - .withResourceName("pgflexserver") - .withResourceType("Microsoft.DBforPostgreSQL/flexibleServers") - .withResourceUri( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgflexserver")) - .withPolicyInfo(new PolicyInfo().withPolicyId( - "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/pgflexrg/providers/Microsoft.DataProtection/BackupVaults/pgflexvault/backupPolicies/pgflexpolicy") - .withPolicyParameters(new PolicyParameters().withBackupDatasourceParametersList( - Arrays.asList(new PostgreSqlFlexibleServerBackupDatasourceParameters() - .withBackupSolutionType(BackupSolutionType.PHYSICAL_BACKUP))))) - .withObjectType("BackupInstance")) - .create(); - } - // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { 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 2954b8ddda7b7..fab6dbc5b641c 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 @@ -9,7 +9,7 @@ */ public final class BackupInstancesDeleteSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/DeleteBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/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 index 0583721c4de57..7c5613d5bcbb3 100644 --- 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 @@ -9,7 +9,7 @@ */ public final class BackupInstancesExtensionRoutingListSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json */ /** * Sample code: List BackupInstances associated with an azure resource. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesFromDppCrossTenantVaultListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesFromDppCrossTenantVaultListSamples.java new file mode 100644 index 0000000000000..049535ef60fb3 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesFromDppCrossTenantVaultListSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for BackupInstancesFromDppCrossTenantVault List. + */ +public final class BackupInstancesFromDppCrossTenantVaultListSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupInstancesFromDppCrossTenantVault_List.json + */ + /** + * Sample code: List backup instances from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void listBackupInstancesFromACrossTenantVault( + com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupInstancesFromDppCrossTenantVaults() + .list("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", + 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 19900112dd106..3a1a81d1a7593 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 @@ -9,7 +9,7 @@ */ public final class BackupInstancesGetBackupInstanceOperationResultSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstanceOperationResult.json + * x-ms-original-file: 2026-08-31-preview/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 d0f0f81bbc779..8e9d00732a9ef 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 @@ -9,7 +9,8 @@ */ public final class BackupInstancesGetSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupDatasourceParameters.json + * x-ms-original-file: + * 2026-08-31-preview/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupDatasourceParameters.json */ /** * Sample code: Get BackupInstance for ADLS Blob. @@ -23,7 +24,8 @@ public final class BackupInstancesGetSamples { } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupAutoProtection.json + * x-ms-original-file: + * 2026-08-31-preview/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupAutoProtection.json */ /** * Sample code: Get BackupInstance with ADLSBlobBackupAutoProtection. @@ -37,7 +39,7 @@ public static void getBackupInstanceWithADLSBlobBackupAutoProtection( } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstance_BlobBackupAutoProtection.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/GetBackupInstance_BlobBackupAutoProtection.json */ /** * Sample code: Get BackupInstance with BlobBackupAutoProtection. @@ -51,7 +53,7 @@ public static void getBackupInstanceWithBlobBackupAutoProtection( } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/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 359fbb9c9cfb3..47e0793baa503 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 @@ -9,7 +9,7 @@ */ public final class BackupInstancesListSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ListBackupInstances.json + * x-ms-original-file: 2026-08-31-preview/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 a383828839364..427dda273b0ec 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 @@ -9,7 +9,7 @@ */ public final class BackupInstancesResumeBackupsSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ResumeBackups.json + * x-ms-original-file: 2026-08-31-preview/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 4b5a00c295ecc..08d7f775530d3 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 @@ -9,7 +9,7 @@ */ public final class BackupInstancesResumeProtectionSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ResumeProtection.json + * x-ms-original-file: 2026-08-31-preview/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 daba03790fdc3..a58107c881e86 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 @@ -12,7 +12,7 @@ */ public final class BackupInstancesStopProtectionSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/StopProtection.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/StopProtection.json */ /** * Sample code: StopProtection. @@ -25,7 +25,7 @@ public static void stopProtection(com.azure.resourcemanager.dataprotection.DataP } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/StopProtection_ResourceGuardEnabled.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/StopProtection_ResourceGuardEnabled.json */ /** * Sample code: StopProtection with MUA. 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 cffef9bd7d33d..9be947f3c71f0 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 @@ -12,7 +12,7 @@ */ public final class BackupInstancesSuspendBackupsSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/SuspendBackups.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/SuspendBackups.json */ /** * Sample code: SuspendBackups. @@ -25,7 +25,7 @@ public static void suspendBackups(com.azure.resourcemanager.dataprotection.DataP } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/SuspendBackup_ResourceGuardEnabled.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/SuspendBackup_ResourceGuardEnabled.json */ /** * Sample code: SuspendBackups with MUA. 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 b7ec47bf57fc1..5c7bec6aeccbb 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 @@ -12,7 +12,7 @@ */ public final class BackupInstancesSyncBackupInstanceSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/SyncBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/SyncBackupInstance.json */ /** * Sample code: Sync BackupInstance. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreSamples.java index 6ea08457ee386..4407d64bd0944 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreSamples.java @@ -21,7 +21,7 @@ */ public final class BackupInstancesTriggerCrossRegionRestoreSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/TriggerCrossRegionRestore.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/TriggerCrossRegionRestore.json */ /** * Sample code: Trigger Cross Region Restore. 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 c29fe88e0bd3c..415d2585ee2de 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 @@ -12,7 +12,7 @@ */ public final class BackupInstancesTriggerRehydrateSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRehydrate.json + * x-ms-original-file: 2026-08-31-preview/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 34378cf207e08..d7616e42e7a45 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 @@ -31,7 +31,7 @@ */ public final class BackupInstancesTriggerRestoreSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreAsFiles.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerRestoreAsFiles.json */ /** * Sample code: Trigger Restore As Files. @@ -56,7 +56,7 @@ public static void triggerRestoreAsFiles(com.azure.resourcemanager.dataprotectio } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithGenericParameters.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerRestoreWithGenericParameters.json */ /** * Sample code: Trigger Restore with GenericRestoreDatasourceCriteria. @@ -100,7 +100,7 @@ public static void triggerRestoreWithGenericRestoreDatasourceCriteria( } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestoreWithRehydration.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerRestoreWithRehydration.json */ /** * Sample code: Trigger Restore With Rehydration. @@ -140,7 +140,7 @@ public static void triggerRestoreWithGenericRestoreDatasourceCriteria( } /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/TriggerRestore.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/TriggerRestore.json */ /** * Sample code: Trigger Restore. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreSamples.java index b60b0cc46e636..6c77c0c703896 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreSamples.java @@ -21,7 +21,7 @@ */ public final class BackupInstancesValidateCrossRegionRestoreSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/ValidateCrossRegionRestore.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/ValidateCrossRegionRestore.json */ /** * Sample code: Validate Cross Region 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 63dc57b2a4842..1a3b54a4786c0 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 @@ -19,7 +19,7 @@ */ public final class BackupInstancesValidateForBackupSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ValidateForBackup.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ValidateForBackup.json */ /** * Sample code: Validate For Backup. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForModifyBackupSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForModifyBackupSamples.java index 44d5d2a69fc03..78f39ca306e0f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForModifyBackupSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForModifyBackupSamples.java @@ -19,7 +19,7 @@ */ public final class BackupInstancesValidateForModifyBackupSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ValidateForModifyBackup.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ValidateForModifyBackup.json */ /** * Sample code: Validate For Modify 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 bf7e9c4547b20..4174d3bd98dc0 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 @@ -21,7 +21,7 @@ */ public final class BackupInstancesValidateForRestoreSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ValidateRestore.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/ValidateRestore.json */ /** * Sample code: Validate Restore. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupJobsFromDppCrossTenantVaultListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupJobsFromDppCrossTenantVaultListSamples.java new file mode 100644 index 0000000000000..081e3a33f8930 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/BackupJobsFromDppCrossTenantVaultListSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for BackupJobsFromDppCrossTenantVault List. + */ +public final class BackupJobsFromDppCrossTenantVaultListSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/BackupJobsFromDppCrossTenantVault_List.json + */ + /** + * Sample code: List jobs from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + listJobsFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.backupJobsFromDppCrossTenantVaults() + .list("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", + com.azure.core.util.Context.NONE); + } +} 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 6553d1d815e13..e084d1030f547 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 @@ -26,7 +26,7 @@ */ public final class BackupPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-07-01/PolicyCRUD/CreateOrUpdateBackupPolicy.json + * x-ms-original-file: 2026-08-31-preview/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 a662c9f21102e..dc73f0a7b60c7 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 @@ -9,7 +9,7 @@ */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-07-01/PolicyCRUD/DeleteBackupPolicy.json + * x-ms-original-file: 2026-08-31-preview/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 321dde1a86e3d..3ca4b39255155 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 @@ -9,7 +9,7 @@ */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: 2026-07-01/PolicyCRUD/GetBackupPolicy.json + * x-ms-original-file: 2026-08-31-preview/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 36efc7aee0eae..e0ed1dc3d05a8 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 @@ -9,7 +9,7 @@ */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: 2026-07-01/PolicyCRUD/ListBackupPolicy.json + * x-ms-original-file: 2026-08-31-preview/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 0c4c366b2c627..65ad2196c2ab2 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 @@ -9,7 +9,7 @@ */ public final class BackupVaultOperationResultsGetSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetOperationResultPatch.json + * x-ms-original-file: 2026-08-31-preview/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 9555cbf127b2b..e0d91f9c4e48a 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 @@ -11,7 +11,7 @@ */ public final class BackupVaultsCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/CheckBackupVaultsNameAvailability.json + * x-ms-original-file: 2026-08-31-preview/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 f62016166a645..29c9789111f51 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 @@ -20,10 +20,8 @@ import com.azure.resourcemanager.dataprotection.models.FeatureSettings; import com.azure.resourcemanager.dataprotection.models.GranularityLevel; import com.azure.resourcemanager.dataprotection.models.IdentityType; -import com.azure.resourcemanager.dataprotection.models.ImmutabilityConfiguration; import com.azure.resourcemanager.dataprotection.models.ImmutabilitySettings; import com.azure.resourcemanager.dataprotection.models.ImmutabilityState; -import com.azure.resourcemanager.dataprotection.models.ImmutabilityType; import com.azure.resourcemanager.dataprotection.models.InfrastructureEncryptionState; import com.azure.resourcemanager.dataprotection.models.MonitoringSettings; import com.azure.resourcemanager.dataprotection.models.SecuritySettings; @@ -41,7 +39,7 @@ */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVault.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVault.json */ /** * Sample code: Create BackupVault. @@ -69,7 +67,7 @@ public static void createBackupVault(com.azure.resourcemanager.dataprotection.Da } /* - * x-ms-original-file: 2026-07-01/PutBackupVaultWithUndelete.json + * x-ms-original-file: 2026-08-31-preview/PutBackupVaultWithUndelete.json */ /** * Sample code: Restore a soft-deleted backup vault. @@ -104,7 +102,7 @@ public static void createBackupVault(com.azure.resourcemanager.dataprotection.Da } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultWithCMK.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVaultWithCMK.json */ /** * Sample code: Create BackupVault With CMK. @@ -138,7 +136,7 @@ public static void createBackupVault(com.azure.resourcemanager.dataprotection.Da } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultCMKSettings_ResourceGuardEnabled.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVaultCMKSettings_ResourceGuardEnabled.json */ /** * Sample code: Create or Update Backup Vault With CMK and Resource Guard Enabled. @@ -173,7 +171,7 @@ public static void createOrUpdateBackupVaultWithCMKAndResourceGuardEnabled( } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultWithCostManagementSettings.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVaultWithCostManagementSettings.json */ /** * Sample code: Create BackupVault With Cost Management Settings. @@ -204,7 +202,7 @@ public static void createBackupVaultWithCostManagementSettings( } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultWithMSI.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PutBackupVaultWithMSI.json */ /** * Sample code: Create BackupVault With MSI. @@ -232,35 +230,6 @@ public static void createBackupVaultWithCostManagementSettings( .create(); } - /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PutBackupVaultWithTimedImmutability.json - */ - /** - * Sample code: Create BackupVault With Timed Immutability. - * - * @param manager Entry point to DataProtectionManager. - */ - public static void - createBackupVaultWithTimedImmutability(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { - manager.backupVaults() - .define("swaggerExample") - .withRegion("WestUS") - .withExistingResourceGroup("SampleResourceGroup") - .withProperties(new BackupVault() - .withSecuritySettings(new SecuritySettings() - .withSoftDeleteSettings( - new SoftDeleteSettings().withState(SoftDeleteState.ON).withRetentionDurationInDays(14.0D)) - .withImmutabilitySettings(new ImmutabilitySettings().withState(ImmutabilityState.UNLOCKED) - .withConfiguration(new ImmutabilityConfiguration().withType(ImmutabilityType.TIME_BASED) - .withDurationInDays(30)))) - .withStorageSettings( - Arrays.asList(new StorageSetting().withDatastoreType(StorageSettingStoreTypes.VAULT_STORE) - .withType(StorageSettingTypes.LOCALLY_REDUNDANT)))) - .withTags(mapOf("key1", "fakeTokenPlaceholder")) - .withIdentity(new DppIdentityDetails().withType("None")) - .create(); - } - // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { 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 6af55ec066eab..56794f5c61055 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 @@ -9,7 +9,7 @@ */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/DeleteBackupVault.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/DeleteBackupVault.json */ /** * Sample code: Delete BackupVault. 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 16d0d6aace73e..6b74d051da484 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 @@ -9,7 +9,7 @@ */ public final class BackupVaultsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultWithCostManagementSettings.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVaultWithCostManagementSettings.json */ /** * Sample code: Get BackupVault with Cost Management Settings. @@ -23,7 +23,7 @@ public static void getBackupVaultWithCostManagementSettings( } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVault.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVault.json */ /** * Sample code: Get BackupVault. @@ -36,7 +36,7 @@ public static void getBackupVault(com.azure.resourcemanager.dataprotection.DataP } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultWithMSI.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVaultWithMSI.json */ /** * Sample code: Get BackupVault With MSI. @@ -49,7 +49,7 @@ public static void getBackupVaultWithMSI(com.azure.resourcemanager.dataprotectio } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultWithCMK.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/GetBackupVaultWithCMK.json */ /** * Sample code: Get BackupVault With CMK. 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 78252bdf26790..4595937078d16 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 @@ -9,7 +9,7 @@ */ public final class BackupVaultsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultsInResourceGroup.json + * x-ms-original-file: 2026-08-31-preview/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 a4b193376f019..a9a56ede35437 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 @@ -9,7 +9,7 @@ */ public final class BackupVaultsListSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/GetBackupVaultsInSubscription.json + * x-ms-original-file: 2026-08-31-preview/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 65df1b4116d7f..187cf2e32bc26 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 @@ -30,7 +30,7 @@ */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PatchBackupVault.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PatchBackupVault.json */ /** * Sample code: Patch BackupVault. @@ -50,7 +50,7 @@ public static void patchBackupVault(com.azure.resourcemanager.dataprotection.Dat } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PatchBackupVaultWithCostManagementSettings.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PatchBackupVaultWithCostManagementSettings.json */ /** * Sample code: Patch BackupVault with Cost Management Settings. @@ -70,7 +70,7 @@ public static void patchBackupVaultWithCostManagementSettings( } /* - * x-ms-original-file: 2026-07-01/VaultCRUD/PatchBackupVaultWithCMK.json + * x-ms-original-file: 2026-08-31-preview/VaultCRUD/PatchBackupVaultWithCMK.json */ /** * Sample code: Patch BackupVault with CMK. 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 cf818302060b6..20bb9299a0e5e 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 @@ -12,7 +12,7 @@ */ public final class DataProtectionCheckFeatureSupportSamples { /* - * x-ms-original-file: 2026-07-01/CheckfeatureSupport.json + * x-ms-original-file: 2026-08-31-preview/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 3848ddbd93292..765e07ff1ed1b 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 @@ -9,7 +9,7 @@ */ public final class DataProtectionOperationsListSamples { /* - * x-ms-original-file: 2026-07-01/Operations/List.json + * x-ms-original-file: 2026-08-31-preview/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 96155f79bc927..f1b7c859740fe 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 @@ -9,7 +9,7 @@ */ public final class DeletedBackupInstancesGetSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/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 917d0609a2108..ee0027f9849ce 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 @@ -9,7 +9,7 @@ */ public final class DeletedBackupInstancesListSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json + * x-ms-original-file: 2026-08-31-preview/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 1a9a4f1f26b62..448cfc01badb9 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 @@ -9,7 +9,7 @@ */ public final class DeletedBackupInstancesUndeleteSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json + * x-ms-original-file: 2026-08-31-preview/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json */ /** * Sample code: Undelete Deleted BackupInstance. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupVaultsGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupVaultsGetSamples.java index c0a466deea5ce..b1ba77f21bf50 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupVaultsGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupVaultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DeletedBackupVaultsGetSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupVaults_Get.json + * x-ms-original-file: 2026-08-31-preview/DeletedBackupVaults_Get.json */ /** * Sample code: Get a deleted backup vault. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupVaultsListByLocationSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupVaultsListByLocationSamples.java index b213998d9c73d..d72d205233691 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupVaultsListByLocationSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupVaultsListByLocationSamples.java @@ -9,7 +9,7 @@ */ public final class DeletedBackupVaultsListByLocationSamples { /* - * x-ms-original-file: 2026-07-01/DeletedBackupVaults_ListByLocation.json + * x-ms-original-file: 2026-08-31-preview/DeletedBackupVaults_ListByLocation.json */ /** * Sample code: List deleted backup vaults by location. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingStatusCheckSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingStatusCheckSamples.java new file mode 100644 index 0000000000000..a8759996ca99a --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingStatusCheckSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for DppCrossTenantVaultMappingStatus Check. + */ +public final class DppCrossTenantVaultMappingStatusCheckSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappingStatus_Check.json + */ + /** + * Sample code: Get cross-tenant vault mapping status. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getCrossTenantVaultMappingStatus(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappingStatus() + .checkWithResponse("000pikumar", "PratikPrivatePreviewVault1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsCreateOrUpdateSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..5fb6a031421c3 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsCreateOrUpdateSamples.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingProperties; +import java.util.Arrays; + +/** + * Samples for DppCrossTenantVaultMappings CreateOrUpdate. + */ +public final class DppCrossTenantVaultMappingsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappings_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a cross-tenant vault mapping. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + createOrUpdateACrossTenantVaultMapping(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappings() + .define("sampleCrossTenantMapping") + .withExistingBackupVault("000pikumar", "PratikPrivatePreviewVault1") + .withProperties(new CrossTenantVaultMappingProperties().withSourceVaultId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/sourceRG/providers/Microsoft.DataProtection/backupVaults/sourceVault") + .withResourceGuardOperationRequests(Arrays.asList( + "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupResourceGuardProxies/swaggerExample"))) + .create(); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsGetSamples.java new file mode 100644 index 0000000000000..4d472f2c32b7f --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for DppCrossTenantVaultMappings Get. + */ +public final class DppCrossTenantVaultMappingsGetSamples { + /* + * x-ms-original-file: 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappings_Get.json + */ + /** + * Sample code: Get a cross-tenant vault mapping. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getACrossTenantVaultMapping(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappings() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsListSamples.java new file mode 100644 index 0000000000000..747a3a717ebe9 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for DppCrossTenantVaultMappings List. + */ +public final class DppCrossTenantVaultMappingsListSamples { + /* + * x-ms-original-file: 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappings_List.json + */ + /** + * Sample code: List cross-tenant vault mappings in a vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + listCrossTenantVaultMappingsInAVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappings() + .list("000pikumar", "PratikPrivatePreviewVault1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsRemoveSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsRemoveSamples.java new file mode 100644 index 0000000000000..656b7e8bbd3f6 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsRemoveSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for DppCrossTenantVaultMappings Remove. + */ +public final class DppCrossTenantVaultMappingsRemoveSamples { + /* + * x-ms-original-file: 2026-08-31-preview/CrossTenantVaultMappingOperations/DppCrossTenantVaultMappings_Remove.json + */ + /** + * Sample code: Remove a cross-tenant vault mapping. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + removeACrossTenantVaultMapping(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.dppCrossTenantVaultMappings() + .removeWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyCreateOrUpdateSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyCreateOrUpdateSamples.java index ec5535686f4e3..0da1f922997f2 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyCreateOrUpdateSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxyCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class DppResourceGuardProxyCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/PutResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/PutResourceGuardProxy.json */ /** * Sample code: Create ResourceGuardProxy. 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 index bd684e9d0eee9..fae72af283b12 100644 --- 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 @@ -9,7 +9,7 @@ */ public final class DppResourceGuardProxyDeleteSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json */ /** * Sample code: Delete ResourceGuardProxy. 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 index 6054b78c3114b..7965ac0888696 100644 --- 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 @@ -9,7 +9,7 @@ */ public final class DppResourceGuardProxyGetSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/GetResourceGuardProxy.json */ /** * Sample code: Get ResourceGuardProxy. 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 index 189493b22d4bf..132502b0c241f 100644 --- 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 @@ -9,7 +9,7 @@ */ public final class DppResourceGuardProxyListSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/ListResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/ListResourceGuardProxy.json */ /** * Sample code: Get ResourceGuardProxies. 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 index f01275d6074b8..59642925b2db9 100644 --- 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 @@ -12,7 +12,7 @@ */ public final class DppResourceGuardProxyUnlockDeleteSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json + * x-ms-original-file: 2026-08-31-preview/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json */ /** * Sample code: UnlockDelete ResourceGuardProxy. 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 89de4b434f6c1..ac322ffbc5549 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 @@ -9,7 +9,7 @@ */ public final class ExportJobsOperationResultGetSamples { /* - * x-ms-original-file: 2026-07-01/JobCRUD/GetExportJobsOperationResult.json + * x-ms-original-file: 2026-08-31-preview/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 af303ea9f1c7a..454f081bcd837 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 @@ -9,7 +9,7 @@ */ public final class ExportJobsTriggerSamples { /* - * x-ms-original-file: 2026-07-01/JobCRUD/TriggerExportJobs.json + * x-ms-original-file: 2026-08-31-preview/JobCRUD/TriggerExportJobs.json */ /** * Sample code: Trigger Export Jobs. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchCrossRegionRestoreJobGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchCrossRegionRestoreJobGetSamples.java index b87f3c20692a2..a5253258eefc8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchCrossRegionRestoreJobGetSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchCrossRegionRestoreJobGetSamples.java @@ -11,7 +11,7 @@ */ public final class FetchCrossRegionRestoreJobGetSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/FetchCrossRegionRestoreJob.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/FetchCrossRegionRestoreJob.json */ /** * Sample code: Get Cross Region Restore Job. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchCrossRegionRestoreJobsOperationListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchCrossRegionRestoreJobsOperationListSamples.java index efd1bd7d95db7..7a7c522f9ce29 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchCrossRegionRestoreJobsOperationListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchCrossRegionRestoreJobsOperationListSamples.java @@ -11,7 +11,7 @@ */ public final class FetchCrossRegionRestoreJobsOperationListSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/FetchCrossRegionRestoreJobs.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/FetchCrossRegionRestoreJobs.json */ /** * Sample code: List Cross Region Restore Jobs. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListSamples.java index e3c020d84854f..0161dca03b1c5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListSamples.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListSamples.java @@ -11,7 +11,7 @@ */ public final class FetchSecondaryRecoveryPointsListSamples { /* - * x-ms-original-file: 2026-07-01/CrossRegionRestore/FetchSecondaryRPs.json + * x-ms-original-file: 2026-08-31-preview/CrossRegionRestore/FetchSecondaryRPs.json */ /** * Sample code: Fetch SecondaryRPs. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobFromDppCrossTenantVaultGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobFromDppCrossTenantVaultGetSamples.java new file mode 100644 index 0000000000000..389593e45bbef --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/JobFromDppCrossTenantVaultGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for JobFromDppCrossTenantVault Get. + */ +public final class JobFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: 2026-08-31-preview/CrossTenantVaultMappingOperations/JobFromDppCrossTenantVault_Get.json + */ + /** + * Sample code: Get a job from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getAJobFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.jobFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", + "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE); + } +} 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 c7a16d753391f..d056ea5af2801 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 @@ -9,7 +9,7 @@ */ public final class JobsGetSamples { /* - * x-ms-original-file: 2026-07-01/JobCRUD/GetJob.json + * x-ms-original-file: 2026-08-31-preview/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 50e45fdfd0b0d..7987649c00a11 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 @@ -9,7 +9,7 @@ */ public final class JobsListSamples { /* - * x-ms-original-file: 2026-07-01/JobCRUD/ListJobs.json + * x-ms-original-file: 2026-08-31-preview/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 352df3fbfd553..2101e0de0dee0 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 @@ -9,7 +9,7 @@ */ public final class OperationResultGetSamples { /* - * x-ms-original-file: 2026-07-01/GetOperationResult.json + * x-ms-original-file: 2026-08-31-preview/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 d0855d1eb6c25..2f53d4113dea0 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 @@ -9,7 +9,7 @@ */ public final class OperationStatusBackupVaultContextGetSamples { /* - * x-ms-original-file: 2026-07-01/GetOperationStatusVaultContext.json + * x-ms-original-file: 2026-08-31-preview/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 0d56c9a240159..b11445726cf07 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 @@ -9,7 +9,7 @@ */ public final class OperationStatusGetSamples { /* - * x-ms-original-file: 2026-07-01/GetOperationStatus.json + * x-ms-original-file: 2026-08-31-preview/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 8079f8631b2bf..2ee9fd40c4aa7 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 @@ -9,7 +9,7 @@ */ public final class OperationStatusResourceGroupContextGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/GetOperationStatusRGContext.json + * x-ms-original-file: 2026-08-31-preview/GetOperationStatusRGContext.json */ /** * Sample code: Get OperationStatus. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointFromDppCrossTenantVaultGetSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointFromDppCrossTenantVaultGetSamples.java new file mode 100644 index 0000000000000..ac7068c8df756 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointFromDppCrossTenantVaultGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for RecoveryPointFromDppCrossTenantVault Get. + */ +public final class RecoveryPointFromDppCrossTenantVaultGetSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/RecoveryPointFromDppCrossTenantVault_Get.json + */ + /** + * Sample code: Get a recovery point from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + getARecoveryPointFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.recoveryPointFromDppCrossTenantVaults() + .getWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + "hardcodedRP", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsFromDppCrossTenantVaultListSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsFromDppCrossTenantVaultListSamples.java new file mode 100644 index 0000000000000..72e88b5d84c63 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsFromDppCrossTenantVaultListSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +/** + * Samples for RecoveryPointsFromDppCrossTenantVault List. + */ +public final class RecoveryPointsFromDppCrossTenantVaultListSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/RecoveryPointsFromDppCrossTenantVault_List.json + */ + /** + * Sample code: List recovery points from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void listRecoveryPointsFromACrossTenantVault( + com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.recoveryPointsFromDppCrossTenantVaults() + .list("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", null, + com.azure.core.util.Context.NONE); + } +} 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 c9c3e71029396..8d3394b986656 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 @@ -9,7 +9,7 @@ */ public final class RecoveryPointsGetSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/GetRecoveryPoint.json + * x-ms-original-file: 2026-08-31-preview/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 9b7a913097212..d8ee704002467 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 @@ -9,7 +9,7 @@ */ public final class RecoveryPointsListSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/ListRecoveryPoints.json + * x-ms-original-file: 2026-08-31-preview/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 81e0d98c2b0ba..b9c5146d77ee9 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsDeleteSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/DeleteResourceGuard.json + * x-ms-original-file: 2026-08-31-preview/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 12980b4497ae4..c73c822d05d87 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListBackupSecurityPINRequests.json + * x-ms-original-file: 2026-08-31-preview/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 701eb47badc0f..17255141dd9e0 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetResourceGuard.json + * x-ms-original-file: 2026-08-31-preview/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 b2df1b61977dd..274ae7be26345 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json + * x-ms-original-file: 2026-08-31-preview/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 75b2aa48d23ee..95e15f4395fcd 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json + * x-ms-original-file: 2026-08-31-preview/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 1d1c9ae2cf998..113e378447c37 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json + * x-ms-original-file: 2026-08-31-preview/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 c9e7ea2c228d4..514ec26b896f5 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json + * x-ms-original-file: 2026-08-31-preview/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 18a0b344b5f0d..49699316edbc5 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json + * x-ms-original-file: 2026-08-31-preview/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 c54be9fa04f63..8c517cd0ec42d 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json + * x-ms-original-file: 2026-08-31-preview/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 d38210dcf1c1c..1ff43212628b8 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json + * x-ms-original-file: 2026-08-31-preview/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 d2bcb01d660a3..f1d1d776f99e7 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json + * x-ms-original-file: 2026-08-31-preview/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 ad16a139550e0..88237a5c53f8b 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json + * x-ms-original-file: 2026-08-31-preview/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 a68de30381819..29fa1f52ff266 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json + * x-ms-original-file: 2026-08-31-preview/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 87233b2519711..dc67fb8db4762 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json + * x-ms-original-file: 2026-08-31-preview/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 124c08faa4d96..7dd190a2596d5 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json + * x-ms-original-file: 2026-08-31-preview/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 85715935ff2ea..81f1557dcc690 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 @@ -9,7 +9,7 @@ */ public final class ResourceGuardsListSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/GetResourceGuardsInSubscription.json + * x-ms-original-file: 2026-08-31-preview/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 de38a9c8f31e7..c44bec5a24e2a 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 @@ -13,7 +13,7 @@ */ public final class ResourceGuardsPatchSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/PatchResourceGuard.json + * x-ms-original-file: 2026-08-31-preview/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 8117b29457b99..f333514a05a6c 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 @@ -12,7 +12,7 @@ */ public final class ResourceGuardsPutSamples { /* - * x-ms-original-file: 2026-07-01/ResourceGuardCRUD/PutResourceGuard.json + * x-ms-original-file: 2026-08-31-preview/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 41e2f9022034f..9a3fb5973e42e 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 @@ -12,7 +12,7 @@ */ public final class RestorableTimeRangesFindSamples { /* - * x-ms-original-file: 2026-07-01/BackupInstanceOperations/FindRestorableTimeRanges.json + * x-ms-original-file: 2026-08-31-preview/BackupInstanceOperations/FindRestorableTimeRanges.json */ /** * Sample code: Find Restorable Time Ranges. diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFromDppCrossTenantVaultFindSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFromDppCrossTenantVaultFindSamples.java new file mode 100644 index 0000000000000..347da6ae012cd --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFromDppCrossTenantVaultFindSamples.java @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest; +import com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreType; + +/** + * Samples for RestorableTimeRangesFromDppCrossTenantVault Find. + */ +public final class RestorableTimeRangesFromDppCrossTenantVaultFindSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/RestorableTimeRangesFromDppCrossTenantVault_Find.json + */ + /** + * Sample code: Find restorable time ranges from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void findRestorableTimeRangesFromACrossTenantVault( + com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.restorableTimeRangesFromDppCrossTenantVaults() + .findWithResponse("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + new AzureBackupFindRestorableTimeRangesRequest() + .withSourceDataStoreType(RestoreSourceDataStoreType.OPERATIONAL_STORE) + .withStartTime("2020-10-17T23:28:17.6829685Z") + .withEndTime("2021-02-24T00:35:17.6829685Z"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestoresFromDppCrossTenantVaultTriggerSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestoresFromDppCrossTenantVaultTriggerSamples.java new file mode 100644 index 0000000000000..1f2baf643c279 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/RestoresFromDppCrossTenantVaultTriggerSamples.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest; +import com.azure.resourcemanager.dataprotection.models.Datasource; +import com.azure.resourcemanager.dataprotection.models.DatasourceSet; +import com.azure.resourcemanager.dataprotection.models.IdentityDetails; +import com.azure.resourcemanager.dataprotection.models.RecoveryOption; +import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo; +import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials; +import com.azure.resourcemanager.dataprotection.models.SecretStoreResource; +import com.azure.resourcemanager.dataprotection.models.SecretStoreType; +import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; + +/** + * Samples for RestoresFromDppCrossTenantVault Trigger. + */ +public final class RestoresFromDppCrossTenantVaultTriggerSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/RestoresFromDppCrossTenantVault_Trigger.json + */ + /** + * Sample code: Trigger restore from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + triggerRestoreFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.restoresFromDppCrossTenantVaults() + .trigger("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + new AzureBackupRecoveryPointBasedRestoreRequest().withRestoreTargetInfo(new RestoreTargetInfo() + .withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) + .withRestoreLocation("southeastasia") + .withDatasourceInfo(new Datasource() + .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withObjectType("Datasource") + .withResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb") + .withResourceLocation("") + .withResourceName("targetdb") + .withResourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withResourceUri("")) + .withDatasourceSetInfo(new DatasourceSet() + .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withObjectType("DatasourceSet") + .withResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest") + .withResourceLocation("") + .withResourceName("viveksipgtest") + .withResourceType("Microsoft.DBforPostgreSQL/servers") + .withResourceUri("")) + .withDatasourceAuthCredentials(new SecretStoreBasedAuthCredentials().withSecretStoreResource( + new SecretStoreResource().withUri("https://samplevault.vault.azure.net/secrets/credentials") + .withSecretStoreType(SecretStoreType.AZURE_KEY_VAULT)))) + .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE) + .withSourceResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb") + .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) + .withUserAssignedIdentityArmUrl( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami")) + .withRecoveryPointId("hardcodedRP"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreFromDppCrossTenantVaultTriggerSamples.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreFromDppCrossTenantVaultTriggerSamples.java new file mode 100644 index 0000000000000..234e33cc6f642 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/samples/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreFromDppCrossTenantVaultTriggerSamples.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest; +import com.azure.resourcemanager.dataprotection.models.Datasource; +import com.azure.resourcemanager.dataprotection.models.DatasourceSet; +import com.azure.resourcemanager.dataprotection.models.IdentityDetails; +import com.azure.resourcemanager.dataprotection.models.RecoveryOption; +import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfo; +import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials; +import com.azure.resourcemanager.dataprotection.models.SecretStoreResource; +import com.azure.resourcemanager.dataprotection.models.SecretStoreType; +import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; +import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject; + +/** + * Samples for ValidateRestoreFromDppCrossTenantVault Trigger. + */ +public final class ValidateRestoreFromDppCrossTenantVaultTriggerSamples { + /* + * x-ms-original-file: + * 2026-08-31-preview/CrossTenantVaultMappingOperations/ValidateRestoreFromDppCrossTenantVault_Trigger.json + */ + /** + * Sample code: Validate restore from a cross-tenant vault. + * + * @param manager Entry point to DataProtectionManager. + */ + public static void + validateRestoreFromACrossTenantVault(com.azure.resourcemanager.dataprotection.DataProtectionManager manager) { + manager.validateRestoreFromDppCrossTenantVaults() + .trigger("000pikumar", "PratikPrivatePreviewVault1", "sampleCrossTenantMapping", "testInstance1", + new ValidateRestoreRequestObject().withRestoreRequestObject( + new AzureBackupRecoveryPointBasedRestoreRequest().withRestoreTargetInfo(new RestoreTargetInfo() + .withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) + .withRestoreLocation("southeastasia") + .withDatasourceInfo(new Datasource() + .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withObjectType("Datasource") + .withResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/targetdb") + .withResourceLocation("") + .withResourceName("targetdb") + .withResourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withResourceUri("")) + .withDatasourceSetInfo(new DatasourceSet() + .withDatasourceType("Microsoft.DBforPostgreSQL/servers/databases") + .withObjectType("DatasourceSet") + .withResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest") + .withResourceLocation("") + .withResourceName("viveksipgtest") + .withResourceType("Microsoft.DBforPostgreSQL/servers") + .withResourceUri("")) + .withDatasourceAuthCredentials(new SecretStoreBasedAuthCredentials().withSecretStoreResource( + new SecretStoreResource().withUri("https://samplevault.vault.azure.net/secrets/credentials") + .withSecretStoreType(SecretStoreType.AZURE_KEY_VAULT)))) + .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE) + .withSourceResourceId( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb") + .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) + .withUserAssignedIdentityArmUrl( + "/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testUami")) + .withRecoveryPointId("hardcodedRP")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AbsoluteDeleteOptionTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AbsoluteDeleteOptionTests.java index d7992eae511ee..8ec4ab8002b90 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AbsoluteDeleteOptionTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AbsoluteDeleteOptionTests.java @@ -12,15 +12,15 @@ public final class AbsoluteDeleteOptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AbsoluteDeleteOption model - = BinaryData.fromString("{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"dl\"}") + = BinaryData.fromString("{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"tcyohpfkyrk\"}") .toObject(AbsoluteDeleteOption.class); - Assertions.assertEquals("dl", model.duration()); + Assertions.assertEquals("tcyohpfkyrk", model.duration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AbsoluteDeleteOption model = new AbsoluteDeleteOption().withDuration("dl"); + AbsoluteDeleteOption model = new AbsoluteDeleteOption().withDuration("tcyohpfkyrk"); model = BinaryData.fromObject(model).toObject(AbsoluteDeleteOption.class); - Assertions.assertEquals("dl", model.duration()); + Assertions.assertEquals("tcyohpfkyrk", model.duration()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTaggingCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTaggingCriteriaTests.java index b0c7c37c51baa..f8e80093d090d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTaggingCriteriaTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTaggingCriteriaTests.java @@ -13,16 +13,16 @@ public final class AdhocBasedTaggingCriteriaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AdhocBasedTaggingCriteria model - = BinaryData.fromString("{\"tagInfo\":{\"eTag\":\"vkg\",\"id\":\"bgdknnqv\",\"tagName\":\"aznqntoru\"}}") + = BinaryData.fromString("{\"tagInfo\":{\"eTag\":\"fkmr\",\"id\":\"mvvhmxtdrjfuta\",\"tagName\":\"oe\"}}") .toObject(AdhocBasedTaggingCriteria.class); - Assertions.assertEquals("aznqntoru", model.tagInfo().tagName()); + Assertions.assertEquals("oe", model.tagInfo().tagName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AdhocBasedTaggingCriteria model - = new AdhocBasedTaggingCriteria().withTagInfo(new RetentionTag().withTagName("aznqntoru")); + = new AdhocBasedTaggingCriteria().withTagInfo(new RetentionTag().withTagName("oe")); model = BinaryData.fromObject(model).toObject(AdhocBasedTaggingCriteria.class); - Assertions.assertEquals("aznqntoru", model.tagInfo().tagName()); + Assertions.assertEquals("oe", model.tagInfo().tagName()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTriggerContextTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTriggerContextTests.java index 535df64309e3f..0bd89defe6ca5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTriggerContextTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTriggerContextTests.java @@ -14,16 +14,16 @@ public final class AdhocBasedTriggerContextTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AdhocBasedTriggerContext model = BinaryData.fromString( - "{\"objectType\":\"AdhocBasedTriggerContext\",\"taggingCriteria\":{\"tagInfo\":{\"eTag\":\"xbvtvudu\",\"id\":\"cormr\",\"tagName\":\"xqtvcofu\"}}}") + "{\"objectType\":\"AdhocBasedTriggerContext\",\"taggingCriteria\":{\"tagInfo\":{\"eTag\":\"jcvb\",\"id\":\"wr\",\"tagName\":\"ehwagoh\"}}}") .toObject(AdhocBasedTriggerContext.class); - Assertions.assertEquals("xqtvcofu", model.taggingCriteria().tagInfo().tagName()); + Assertions.assertEquals("ehwagoh", model.taggingCriteria().tagInfo().tagName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AdhocBasedTriggerContext model = new AdhocBasedTriggerContext().withTaggingCriteria( - new AdhocBasedTaggingCriteria().withTagInfo(new RetentionTag().withTagName("xqtvcofu"))); + new AdhocBasedTaggingCriteria().withTagInfo(new RetentionTag().withTagName("ehwagoh"))); model = BinaryData.fromObject(model).toObject(AdhocBasedTriggerContext.class); - Assertions.assertEquals("xqtvcofu", model.taggingCriteria().tagInfo().tagName()); + Assertions.assertEquals("ehwagoh", model.taggingCriteria().tagInfo().tagName()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupDiscreteRecoveryPointTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupDiscreteRecoveryPointTests.java index e0d074955013f..81dc35aff2d80 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupDiscreteRecoveryPointTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupDiscreteRecoveryPointTests.java @@ -14,25 +14,25 @@ public final class AzureBackupDiscreteRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupDiscreteRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"friendlyName\":\"lvez\",\"recoveryPointDataStoresDetails\":[{\"creationTime\":\"2021-01-02T13:25:54Z\",\"expiryTime\":\"2021-06-02T23:04:04Z\",\"id\":\"okerqwkyhkobop\",\"metaData\":\"edkowepbqpcrfk\",\"state\":\"ccsnjvcdwxlpq\",\"type\":\"ftnkhtj\",\"visible\":false,\"rehydrationExpiryTime\":\"2021-09-20T22:34:13Z\",\"rehydrationStatus\":\"DELETE_IN_PROGRESS\"},{\"creationTime\":\"2021-02-20T13:18:06Z\",\"expiryTime\":\"2021-04-16T00:09:41Z\",\"id\":\"dhtmdvypgikd\",\"metaData\":\"zywkb\",\"state\":\"ryuzh\",\"type\":\"kj\",\"visible\":false,\"rehydrationExpiryTime\":\"2021-07-13T23:55:09Z\",\"rehydrationStatus\":\"DELETED\"}],\"recoveryPointTime\":\"2021-08-18T23:56:22Z\",\"policyName\":\"jinrvgoupmfiibfg\",\"policyVersion\":\"ioolvrwxkvtkkgll\",\"recoveryPointId\":\"jygvjayvbl\",\"recoveryPointType\":\"vkzuhbxvvyhgso\",\"retentionTagName\":\"yrqufegxuvwz\",\"retentionTagVersion\":\"nhlmctlpdng\",\"expiryTime\":\"2021-01-29T19:24:27Z\",\"recoveryPointState\":\"Partial\",\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-01-30T08:32:05Z\"}}") + "{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"friendlyName\":\"kixrj\",\"recoveryPointDataStoresDetails\":[{\"creationTime\":\"2021-10-08T15:41:33Z\",\"expiryTime\":\"2021-02-12T14:44:45Z\",\"id\":\"rlazszrnw\",\"metaData\":\"indfpwpjyl\",\"state\":\"tlhflsjcdhszf\",\"type\":\"fbgofeljagrqmqh\",\"visible\":false,\"rehydrationExpiryTime\":\"2021-10-25T17:37:19Z\",\"rehydrationStatus\":\"DELETED\"},{\"creationTime\":\"2021-11-23T14:52:02Z\",\"expiryTime\":\"2021-04-25T18:11:53Z\",\"id\":\"ghfkvtvsexs\",\"metaData\":\"ueluqhhahhxvrhmz\",\"state\":\"pjgwwspug\",\"type\":\"tqs\",\"visible\":true,\"rehydrationExpiryTime\":\"2021-10-27T14:28:11Z\",\"rehydrationStatus\":\"DELETE_IN_PROGRESS\"}],\"recoveryPointTime\":\"2021-10-26T21:17:13Z\",\"policyName\":\"ndxdigrjguufzdm\",\"policyVersion\":\"qtfihwhbotzinga\",\"recoveryPointId\":\"pph\",\"recoveryPointType\":\"zqzudph\",\"retentionTagName\":\"mvdk\",\"retentionTagVersion\":\"ynwcvtbv\",\"expiryTime\":\"2021-10-22T11:11:12Z\",\"recoveryPointState\":\"Completed\",\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-04-02T08:03:37Z\"}}") .toObject(AzureBackupDiscreteRecoveryPoint.class); - Assertions.assertEquals("lvez", model.friendlyName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-02T13:25:54Z"), + Assertions.assertEquals("kixrj", model.friendlyName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-08T15:41:33Z"), model.recoveryPointDataStoresDetails().get(0).creationTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-02T23:04:04Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-02-12T14:44:45Z"), model.recoveryPointDataStoresDetails().get(0).expiryTime()); - Assertions.assertEquals("okerqwkyhkobop", model.recoveryPointDataStoresDetails().get(0).id()); - Assertions.assertEquals("edkowepbqpcrfk", model.recoveryPointDataStoresDetails().get(0).metadata()); - Assertions.assertEquals("ccsnjvcdwxlpq", model.recoveryPointDataStoresDetails().get(0).state()); - Assertions.assertEquals("ftnkhtj", model.recoveryPointDataStoresDetails().get(0).type()); + Assertions.assertEquals("rlazszrnw", model.recoveryPointDataStoresDetails().get(0).id()); + Assertions.assertEquals("indfpwpjyl", model.recoveryPointDataStoresDetails().get(0).metadata()); + Assertions.assertEquals("tlhflsjcdhszf", model.recoveryPointDataStoresDetails().get(0).state()); + Assertions.assertEquals("fbgofeljagrqmqh", model.recoveryPointDataStoresDetails().get(0).type()); Assertions.assertFalse(model.recoveryPointDataStoresDetails().get(0).visible()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-18T23:56:22Z"), model.recoveryPointTime()); - Assertions.assertEquals("jinrvgoupmfiibfg", model.policyName()); - Assertions.assertEquals("ioolvrwxkvtkkgll", model.policyVersion()); - Assertions.assertEquals("jygvjayvbl", model.recoveryPointId()); - Assertions.assertEquals("vkzuhbxvvyhgso", model.recoveryPointType()); - Assertions.assertEquals("yrqufegxuvwz", model.retentionTagName()); - Assertions.assertEquals("nhlmctlpdng", model.retentionTagVersion()); - Assertions.assertEquals(RecoveryPointCompletionState.PARTIAL, model.recoveryPointState()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-26T21:17:13Z"), model.recoveryPointTime()); + Assertions.assertEquals("ndxdigrjguufzdm", model.policyName()); + Assertions.assertEquals("qtfihwhbotzinga", model.policyVersion()); + Assertions.assertEquals("pph", model.recoveryPointId()); + Assertions.assertEquals("zqzudph", model.recoveryPointType()); + Assertions.assertEquals("mvdk", model.retentionTagName()); + Assertions.assertEquals("ynwcvtbv", model.retentionTagVersion()); + Assertions.assertEquals(RecoveryPointCompletionState.COMPLETED, model.recoveryPointState()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestTests.java index 1fb55b86d76b7..69f078de56eff 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestTests.java @@ -13,23 +13,22 @@ public final class AzureBackupFindRestorableTimeRangesRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupFindRestorableTimeRangesRequest model = BinaryData - .fromString( - "{\"sourceDataStoreType\":\"ArchiveStore\",\"startTime\":\"bizikayuhq\",\"endTime\":\"jbsybbqw\"}") + .fromString("{\"sourceDataStoreType\":\"VaultStore\",\"startTime\":\"p\",\"endTime\":\"ksrpqv\"}") .toObject(AzureBackupFindRestorableTimeRangesRequest.class); - Assertions.assertEquals(RestoreSourceDataStoreType.ARCHIVE_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("bizikayuhq", model.startTime()); - Assertions.assertEquals("jbsybbqw", model.endTime()); + Assertions.assertEquals(RestoreSourceDataStoreType.VAULT_STORE, model.sourceDataStoreType()); + Assertions.assertEquals("p", model.startTime()); + Assertions.assertEquals("ksrpqv", model.endTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureBackupFindRestorableTimeRangesRequest model = new AzureBackupFindRestorableTimeRangesRequest() - .withSourceDataStoreType(RestoreSourceDataStoreType.ARCHIVE_STORE) - .withStartTime("bizikayuhq") - .withEndTime("jbsybbqw"); + .withSourceDataStoreType(RestoreSourceDataStoreType.VAULT_STORE) + .withStartTime("p") + .withEndTime("ksrpqv"); model = BinaryData.fromObject(model).toObject(AzureBackupFindRestorableTimeRangesRequest.class); - Assertions.assertEquals(RestoreSourceDataStoreType.ARCHIVE_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("bizikayuhq", model.startTime()); - Assertions.assertEquals("jbsybbqw", model.endTime()); + Assertions.assertEquals(RestoreSourceDataStoreType.VAULT_STORE, model.sourceDataStoreType()); + Assertions.assertEquals("p", model.startTime()); + Assertions.assertEquals("ksrpqv", model.endTime()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseResourceInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseResourceInnerTests.java index 60292697342c6..b8205b8ad0f55 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseResourceInnerTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseResourceInnerTests.java @@ -12,11 +12,11 @@ public final class AzureBackupFindRestorableTimeRangesResponseResourceInnerTests @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupFindRestorableTimeRangesResponseResourceInner model = BinaryData.fromString( - "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"dgmfpgvmpipasl\",\"endTime\":\"haq\",\"objectType\":\"ss\"},{\"startTime\":\"wutwbdsre\",\"endTime\":\"pdrhne\",\"objectType\":\"owqkdwytisi\"},{\"startTime\":\"ircgpikpz\",\"endTime\":\"mejzanlfzxia\",\"objectType\":\"mbzonokix\"}],\"objectType\":\"q\"},\"id\":\"rgz\",\"name\":\"rlazszrnw\",\"type\":\"indfpwpjyl\"}") + "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"aehtwd\",\"endTime\":\"r\",\"objectType\":\"swibyr\"},{\"startTime\":\"dl\",\"endTime\":\"h\",\"objectType\":\"fwpracstwi\"},{\"startTime\":\"ykhevxccedcpnmdy\",\"endTime\":\"dnwzxltjcvnhltiu\",\"objectType\":\"xnavvwxq\"}],\"objectType\":\"y\"},\"id\":\"nyowxwlmdjrkvfg\",\"name\":\"fvpdbo\",\"type\":\"cizsjqlhkrribdei\"}") .toObject(AzureBackupFindRestorableTimeRangesResponseResourceInner.class); - Assertions.assertEquals("dgmfpgvmpipasl", model.properties().restorableTimeRanges().get(0).startTime()); - Assertions.assertEquals("haq", model.properties().restorableTimeRanges().get(0).endTime()); - Assertions.assertEquals("ss", model.properties().restorableTimeRanges().get(0).objectType()); - Assertions.assertEquals("q", model.properties().objectType()); + Assertions.assertEquals("aehtwd", model.properties().restorableTimeRanges().get(0).startTime()); + Assertions.assertEquals("r", model.properties().restorableTimeRanges().get(0).endTime()); + Assertions.assertEquals("swibyr", model.properties().restorableTimeRanges().get(0).objectType()); + Assertions.assertEquals("y", model.properties().objectType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseTests.java index 1f68add59fd77..de8b23c3d7241 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseTests.java @@ -12,11 +12,11 @@ public final class AzureBackupFindRestorableTimeRangesResponseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupFindRestorableTimeRangesResponse model = BinaryData.fromString( - "{\"restorableTimeRanges\":[{\"startTime\":\"al\",\"endTime\":\"hfkvtvsexsowuel\",\"objectType\":\"hhahhxvrhmzkwpjg\"},{\"startTime\":\"wspughftqsxhqx\",\"endTime\":\"j\",\"objectType\":\"kndxdigrjgu\"},{\"startTime\":\"fzdm\",\"endTime\":\"yqtfihwh\",\"objectType\":\"tzingamvpph\"},{\"startTime\":\"szqzudphqamv\",\"endTime\":\"kfwynw\",\"objectType\":\"tbvkayhmtnvyq\"}],\"objectType\":\"tkzwpcnpwzc\"}") + "{\"restorableTimeRanges\":[{\"startTime\":\"fxzsjabibsyst\",\"endTime\":\"wfsdjpvkvpbj\",\"objectType\":\"kzbzkdvncjabudu\"},{\"startTime\":\"gkakmokzhjjklff\",\"endTime\":\"mouwqlgzrfzeey\",\"objectType\":\"izikayuhq\"}],\"objectType\":\"jbsybbqw\"}") .toObject(AzureBackupFindRestorableTimeRangesResponse.class); - Assertions.assertEquals("al", model.restorableTimeRanges().get(0).startTime()); - Assertions.assertEquals("hfkvtvsexsowuel", model.restorableTimeRanges().get(0).endTime()); - Assertions.assertEquals("hhahhxvrhmzkwpjg", model.restorableTimeRanges().get(0).objectType()); - Assertions.assertEquals("tkzwpcnpwzc", model.objectType()); + Assertions.assertEquals("fxzsjabibsyst", model.restorableTimeRanges().get(0).startTime()); + Assertions.assertEquals("wfsdjpvkvpbj", model.restorableTimeRanges().get(0).endTime()); + Assertions.assertEquals("kzbzkdvncjabudu", model.restorableTimeRanges().get(0).objectType()); + Assertions.assertEquals("jbsybbqw", model.objectType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupParamsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupParamsTests.java index 78b44e464572b..be1d686619854 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupParamsTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupParamsTests.java @@ -12,15 +12,15 @@ public final class AzureBackupParamsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupParams model - = BinaryData.fromString("{\"objectType\":\"AzureBackupParams\",\"backupType\":\"sdbnwdcfhucqdpf\"}") + = BinaryData.fromString("{\"objectType\":\"AzureBackupParams\",\"backupType\":\"jkqa\"}") .toObject(AzureBackupParams.class); - Assertions.assertEquals("sdbnwdcfhucqdpf", model.backupType()); + Assertions.assertEquals("jkqa", model.backupType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureBackupParams model = new AzureBackupParams().withBackupType("sdbnwdcfhucqdpf"); + AzureBackupParams model = new AzureBackupParams().withBackupType("jkqa"); model = BinaryData.fromObject(model).toObject(AzureBackupParams.class); - Assertions.assertEquals("sdbnwdcfhucqdpf", model.backupType()); + Assertions.assertEquals("jkqa", model.backupType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceInnerTests.java index 02f12ef82c99a..31b3dd8408499 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceInnerTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceInnerTests.java @@ -11,7 +11,7 @@ public final class AzureBackupRecoveryPointResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupRecoveryPointResourceInner model = BinaryData.fromString( - "{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"rmuhapfcq\",\"name\":\"psqxq\",\"type\":\"psvuoymgc\"}") + "{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"ircgpikpz\",\"name\":\"mejzanlfzxia\",\"type\":\"rmbzo\"}") .toObject(AzureBackupRecoveryPointResourceInner.class); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceListTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceListTests.java index 4694a3b225085..5c3d3792fbadd 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceListTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceListTests.java @@ -12,8 +12,8 @@ public final class AzureBackupRecoveryPointResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupRecoveryPointResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"qp\",\"name\":\"y\",\"type\":\"s\"}],\"nextLink\":\"on\"}") + "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"bdsrez\",\"name\":\"drhneuyow\",\"type\":\"kdw\"}],\"nextLink\":\"i\"}") .toObject(AzureBackupRecoveryPointResourceList.class); - Assertions.assertEquals("on", model.nextLink()); + Assertions.assertEquals("i", model.nextLink()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRuleTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRuleTests.java index e018be4cfe7b0..ce0b72ae3b1c5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRuleTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRuleTests.java @@ -16,23 +16,23 @@ public final class AzureBackupRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupRule model = BinaryData.fromString( - "{\"objectType\":\"AzureBackupRule\",\"backupParameters\":{\"objectType\":\"BackupParameters\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"jaltolmnc\"},\"trigger\":{\"objectType\":\"TriggerContext\"},\"name\":\"sobqw\"}") + "{\"objectType\":\"AzureBackupRule\",\"backupParameters\":{\"objectType\":\"BackupParameters\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"avyvnqqyba\"},\"trigger\":{\"objectType\":\"TriggerContext\"},\"name\":\"yeua\"}") .toObject(AzureBackupRule.class); - Assertions.assertEquals("sobqw", model.name()); - Assertions.assertEquals(DataStoreTypes.ARCHIVE_STORE, model.dataStore().dataStoreType()); - Assertions.assertEquals("jaltolmnc", model.dataStore().objectType()); + Assertions.assertEquals("yeua", model.name()); + Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.dataStore().dataStoreType()); + Assertions.assertEquals("avyvnqqyba", model.dataStore().objectType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureBackupRule model = new AzureBackupRule().withName("sobqw") + AzureBackupRule model = new AzureBackupRule().withName("yeua") .withBackupParameters(new BackupParameters()) - .withDataStore( - new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE).withObjectType("jaltolmnc")) + .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) + .withObjectType("avyvnqqyba")) .withTrigger(new TriggerContext()); model = BinaryData.fromObject(model).toObject(AzureBackupRule.class); - Assertions.assertEquals("sobqw", model.name()); - Assertions.assertEquals(DataStoreTypes.ARCHIVE_STORE, model.dataStore().dataStoreType()); - Assertions.assertEquals("jaltolmnc", model.dataStore().objectType()); + Assertions.assertEquals("yeua", model.name()); + Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.dataStore().dataStoreType()); + Assertions.assertEquals("avyvnqqyba", model.dataStore().objectType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureRetentionRuleTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureRetentionRuleTests.java index 8d85e75c326dc..ed8b335931971 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureRetentionRuleTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureRetentionRuleTests.java @@ -19,84 +19,89 @@ public final class AzureRetentionRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureRetentionRule model = BinaryData.fromString( - "{\"objectType\":\"AzureRetentionRule\",\"isDefault\":true,\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"ngqqmoakuf\"},\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"jzrwrdgrtw\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"uzkopbminrfd\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"yuhhziu\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"fozbhdmsmlmzqhof\"}}]},{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"rmaequ\"},\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"hxicslfaoqz\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"lhalnswh\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"sp\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"aivwitqscywu\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"woluhczbwemhair\"}}]},{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"brgz\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"msweypqwdxggicc\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"huexmk\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"lstvlzywe\"}}]},{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"hz\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"csdtclusiypbs\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"gusl\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"adcy\"}}]}],\"name\":\"qukyhejhzi\"}") + "{\"objectType\":\"AzureRetentionRule\",\"isDefault\":true,\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"smsks\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"iml\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"xkcgxxlxsffgcvi\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"zdwlvwlyoupfgfb\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"ubdyhgk\"}}]},{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"minsgowzf\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"sttktlahbqa\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"gzukxitmm\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"gqqqxh\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"xrxc\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"uisavokq\"}}]},{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"zfvazi\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"l\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"tbajlkatn\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"yiopi\"}}]},{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"kqqfk\"},\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"s\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"mligov\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"rxkpmloazuruoc\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"oorb\"}}]}],\"name\":\"eoybfhjxakvvjgs\"}") .toObject(AzureRetentionRule.class); - Assertions.assertEquals("qukyhejhzi", model.name()); + Assertions.assertEquals("eoybfhjxakvvjgs", model.name()); Assertions.assertTrue(model.isDefault()); - Assertions.assertEquals("ngqqmoakuf", model.lifecycles().get(0).deleteAfter().duration()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, - model.lifecycles().get(0).sourceDataStore().dataStoreType()); - Assertions.assertEquals("jzrwrdgrtw", model.lifecycles().get(0).sourceDataStore().objectType()); + Assertions.assertEquals("smsks", model.lifecycles().get(0).deleteAfter().duration()); Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, + model.lifecycles().get(0).sourceDataStore().dataStoreType()); + Assertions.assertEquals("iml", model.lifecycles().get(0).sourceDataStore().objectType()); + Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.lifecycles().get(0).targetDataStoreCopySettings().get(0).dataStore().dataStoreType()); - Assertions.assertEquals("uzkopbminrfd", + Assertions.assertEquals("xkcgxxlxsffgcvi", model.lifecycles().get(0).targetDataStoreCopySettings().get(0).dataStore().objectType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureRetentionRule model = new AzureRetentionRule().withName("qukyhejhzi") + AzureRetentionRule model = new AzureRetentionRule().withName("eoybfhjxakvvjgs") .withIsDefault(true) .withLifecycles(Arrays.asList( - new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("ngqqmoakuf")) - .withSourceDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) - .withObjectType("jzrwrdgrtw")) + new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("smsks")) + .withSourceDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) + .withObjectType("iml")) .withTargetDataStoreCopySettings(Arrays.asList( new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) - .withObjectType("uzkopbminrfd")), - new TargetCopySetting().withCopyAfter(new CopyOption()) + .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) + .withObjectType("xkcgxxlxsffgcvi")), + new TargetCopySetting() + .withCopyAfter(new CopyOption()) .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE) - .withObjectType("yuhhziu")), + .withObjectType("zdwlvwlyoupfgfb")), new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE) - .withObjectType("fozbhdmsmlmzqhof")))), - new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("rmaequ")) - .withSourceDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) - .withObjectType("hxicslfaoqz")) + .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) + .withObjectType("ubdyhgk")))), + new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("minsgowzf")) + .withSourceDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) + .withObjectType("sttktlahbqa")) .withTargetDataStoreCopySettings(Arrays.asList( + new TargetCopySetting().withCopyAfter(new CopyOption()) + .withDataStore(new DataStoreInfoBase() + .withDataStoreType(DataStoreTypes.ARCHIVE_STORE) + .withObjectType("gzukxitmm")), + new TargetCopySetting().withCopyAfter(new CopyOption()) + .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) + .withObjectType("gqqqxh")), new TargetCopySetting().withCopyAfter(new CopyOption()) .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) - .withObjectType("lhalnswh")), + .withObjectType("xrxc")), new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE) - .withObjectType("sp")), + .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) + .withObjectType("uisavokq")))), + new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("zfvazi")) + .withSourceDataStore( + new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE).withObjectType("l")) + .withTargetDataStoreCopySettings(Arrays.asList( new TargetCopySetting().withCopyAfter(new CopyOption()) .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE) - .withObjectType("aivwitqscywu")), + .withObjectType("tbajlkatn")), new TargetCopySetting().withCopyAfter(new CopyOption()) .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) - .withObjectType("woluhczbwemhair")))), - new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("brgz")) - .withSourceDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) - .withObjectType("msweypqwdxggicc")) + .withObjectType("yiopi")))), + new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("kqqfk")) + .withSourceDataStore( + new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE).withObjectType("s")) .withTargetDataStoreCopySettings(Arrays.asList( new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) - .withObjectType("huexmk")), + .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) + .withObjectType("mligov")), new TargetCopySetting().withCopyAfter(new CopyOption()) .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) - .withObjectType("lstvlzywe")))), - new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("hz")) - .withSourceDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE) - .withObjectType("csdtclusiypbs")) - .withTargetDataStoreCopySettings(Arrays.asList( - new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) - .withObjectType("gusl")), + .withObjectType("rxkpmloazuruoc")), new TargetCopySetting().withCopyAfter(new CopyOption()) .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE) - .withObjectType("adcy")))))); + .withObjectType("oorb")))))); model = BinaryData.fromObject(model).toObject(AzureRetentionRule.class); - Assertions.assertEquals("qukyhejhzi", model.name()); + Assertions.assertEquals("eoybfhjxakvvjgs", model.name()); Assertions.assertTrue(model.isDefault()); - Assertions.assertEquals("ngqqmoakuf", model.lifecycles().get(0).deleteAfter().duration()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, - model.lifecycles().get(0).sourceDataStore().dataStoreType()); - Assertions.assertEquals("jzrwrdgrtw", model.lifecycles().get(0).sourceDataStore().objectType()); + Assertions.assertEquals("smsks", model.lifecycles().get(0).deleteAfter().duration()); Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, + model.lifecycles().get(0).sourceDataStore().dataStoreType()); + Assertions.assertEquals("iml", model.lifecycles().get(0).sourceDataStore().objectType()); + Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.lifecycles().get(0).targetDataStoreCopySettings().get(0).dataStore().dataStoreType()); - Assertions.assertEquals("uzkopbminrfd", + Assertions.assertEquals("xkcgxxlxsffgcvi", model.lifecycles().get(0).targetDataStoreCopySettings().get(0).dataStore().objectType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationResultFromDppCrossTenantVaultsGetWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationResultFromDppCrossTenantVaultsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..29eac52339501 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstanceOperationResultFromDppCrossTenantVaultsGetWithResponseMockTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.OperationJobExtendedInfo; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class BackupInstanceOperationResultFromDppCrossTenantVaultsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"rseqwjksghudgz\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + OperationJobExtendedInfo response = manager.backupInstanceOperationResultFromDppCrossTenantVaults() + .getWithResponse("brwimuvqejosovyr", "leaesi", "uqtljqobbpih", "hcecybmrqbr", "bbmpxdlvykfre", + com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("rseqwjksghudgz", response.jobId()); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupMockTests.java index 5152fb207b8e1..065f51bf51d90 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupMockTests.java @@ -23,7 +23,7 @@ public final class BackupInstancesAdhocBackupMockTests { @Test public void testAdhocBackup() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"sjnygqdnfwqzdzgt\"}"; + String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"rntvlwijp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,11 @@ public void testAdhocBackup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OperationJobExtendedInfo response = manager.backupInstances() - .adhocBackup("zhhzjhfjmhvvmu", "gpmuneqsxvmhfbuz", "yihsasbhudypohyu", - new TriggerBackupRequest().withBackupRuleOptions(new AdHocBackupRuleOptions().withRuleName("ms") - .withTriggerOption(new AdhocBackupTriggerOption().withRetentionTagOverride("nsqyrpfoobrltt"))), + .adhocBackup("rzpgep", "tybbwwpgda", "chzyvlixqnrk", + new TriggerBackupRequest().withBackupRuleOptions(new AdHocBackupRuleOptions().withRuleName("xkjibnxmy") + .withTriggerOption(new AdhocBackupTriggerOption().withRetentionTagOverride("xs"))), com.azure.core.util.Context.NONE); - Assertions.assertEquals("sjnygqdnfwqzdzgt", response.jobId()); + Assertions.assertEquals("rntvlwijp", response.jobId()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteMockTests.java index b67165498334a..a6fdacbd29a10 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteMockTests.java @@ -27,8 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.backupInstances() - .delete("nwsdtutnwlduyc", "uzhyrmewipmvekdx", "kuqgsjjxundxgket", com.azure.core.util.Context.NONE); + manager.backupInstances().delete("hnomdrkywuh", "svfuurutlwexxwl", "lniexz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsMockTests.java index b8bbbf4ff8a4b..125e6577874b5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsMockTests.java @@ -28,7 +28,7 @@ public void testResumeBackups() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.backupInstances() - .resumeBackups("qlkzme", "nitgvkxlz", "qdrfegcealzxwhc", com.azure.core.util.Context.NONE); + .resumeBackups("zslzojhp", "tfnmdx", "tngfdgugeyzihgr", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionMockTests.java index 8064d560843fb..9fb92f30e8e4b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionMockTests.java @@ -27,8 +27,7 @@ public void testResumeProtection() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.backupInstances() - .resumeProtection("nsymoyqhlwigd", "vbkbxgomf", "juwasqvdaeyyguxa", com.azure.core.util.Context.NONE); + manager.backupInstances().resumeProtection("yui", "absnmfpp", "ojeevy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionMockTests.java index 8924dff851bce..ac96c6fc42d7c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionMockTests.java @@ -30,9 +30,9 @@ public void testStopProtection() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.backupInstances() - .stopProtection( - "jsqzhzbezk", "imsidxasicddyvvj", "kgfmocwahpq", new StopProtectionRequest() - .withResourceGuardOperationRequests(Arrays.asList("jeaahhvjhh", "akz", "bbjjidjksyxk")), + .stopProtection("yhsgz", "czbgomfgbeg", "qgleohibetnluank", + new StopProtectionRequest().withResourceGuardOperationRequests( + Arrays.asList("xeeebtijvacvbmqz", "qqxlajr", "wxacevehj", "uyxoaf")), com.azure.core.util.Context.NONE); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsMockTests.java index fd418028971a5..e98bed6fe6c5f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsMockTests.java @@ -30,9 +30,9 @@ public void testSuspendBackups() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.backupInstances() - .suspendBackups( - "xvxevblbjednljla", "euaulxu", "smjbnkppxyn", new SuspendBackupRequest() - .withResourceGuardOperationRequests(Arrays.asList("svxeizzgwklnsr", "ffeycx")), + .suspendBackups("aoqltfaey", "inmfgvxirp", "hriypoqeyhlqhy", + new SuspendBackupRequest().withResourceGuardOperationRequests( + Arrays.asList("lpyznuciqdsmexi", "tdfuxt", "asiibmiybnnust", "nlj")), com.azure.core.util.Context.NONE); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceMockTests.java index f85783dd55716..dc49f9ac5c204 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceMockTests.java @@ -30,7 +30,7 @@ public void testSyncBackupInstance() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.backupInstances() - .syncBackupInstance("ktp", "ymerteeammxq", "ekkkzd", + .syncBackupInstance("nmgixh", "mavmq", "oudorhcgyyp", new SyncBackupInstanceRequest().withSyncType(SyncType.FORCE_RESYNC), com.azure.core.util.Context.NONE); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreMockTests.java index 3c935672e01ef..a98920e2c265c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreMockTests.java @@ -28,7 +28,7 @@ public final class BackupInstancesTriggerCrossRegionRestoreMockTests { @Test public void testTriggerCrossRegionRestore() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"nvbroylaxx\"}"; + String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"pqhe\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,19 +38,19 @@ public void testTriggerCrossRegionRestore() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OperationJobExtendedInfo response = manager.backupInstances() - .triggerCrossRegionRestore("irudh", "m", new CrossRegionRestoreRequestObject() + .triggerCrossRegionRestore("cohdx", "zlmcmuapcvhdb", new CrossRegionRestoreRequestObject() .withRestoreRequestObject(new AzureBackupRestoreRequest() .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("ckdlpag")) + .withRestoreLocation("qqxeyskon")) .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE) - .withSourceResourceId("x") - .withResourceGuardOperationRequests(Arrays.asList("lc", "xwmdboxd", "gsftufqobrjlnacg")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) - .withUserAssignedIdentityArmUrl("hxkizvytnrzv"))) - .withCrossRegionRestoreDetails( - new CrossRegionRestoreDetails().withSourceRegion("lj").withSourceBackupInstanceId("aaeranokqgukk")), + .withSourceResourceId("nkfkbgbzb") + .withResourceGuardOperationRequests(Arrays.asList("eqocljmygvk", "qkjjeokbz")) + .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(true) + .withUserAssignedIdentityArmUrl("xcczurtl"))) + .withCrossRegionRestoreDetails(new CrossRegionRestoreDetails().withSourceRegion("ipqxbkwvzgnzv") + .withSourceBackupInstanceId("fbzdixzmqpnoda")), com.azure.core.util.Context.NONE); - Assertions.assertEquals("nvbroylaxx", response.jobId()); + Assertions.assertEquals("pqhe", response.jobId()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreMockTests.java index c77e790b5742e..2a78cdd43d4d3 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreMockTests.java @@ -26,7 +26,7 @@ public final class BackupInstancesTriggerRestoreMockTests { @Test public void testTriggerRestore() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"fr\"}"; + String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"jdfqwmkyoqufdvr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,16 +37,17 @@ public void testTriggerRestore() throws Exception { OperationJobExtendedInfo response = manager.backupInstances() - .triggerRestore("la", "hnfhqlyvijouwi", "kxoyzunbixxr", new AzureBackupRestoreRequest() + .triggerRestore("ttexoqqpwcyyufmh", "uncuw", "qspkcdqzhlctd", new AzureBackupRestoreRequest() .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("vcpwpgclrc")) - .withSourceDataStoreType(SourceDataStoreType.SNAPSHOT_STORE) - .withSourceResourceId("soxfrken") - .withResourceGuardOperationRequests(Arrays.asList("yyefrpmpdnqqs")) + .withRestoreLocation("qn")) + .withSourceDataStoreType(SourceDataStoreType.ARCHIVE_STORE) + .withSourceResourceId("pchrqbn") + .withResourceGuardOperationRequests( + Arrays.asList("cgegydcwbo", "jumvqqolihrraio", "aubrjtloq", "fuojrngif")) .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) - .withUserAssignedIdentityArmUrl("qvmmbn")), + .withUserAssignedIdentityArmUrl("sccbiuimzd")), com.azure.core.util.Context.NONE); - Assertions.assertEquals("fr", response.jobId()); + Assertions.assertEquals("jdfqwmkyoqufdvr", response.jobId()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreMockTests.java index bfa9a1f99cf94..44a1a5c932ed1 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreMockTests.java @@ -28,7 +28,7 @@ public final class BackupInstancesValidateCrossRegionRestoreMockTests { @Test public void testValidateCrossRegionRestore() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"tg\"}"; + String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"olewjwi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,19 +38,19 @@ public void testValidateCrossRegionRestore() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OperationJobExtendedInfo response = manager.backupInstances() - .validateCrossRegionRestore("lcdisd", "sfjbjsvg", new ValidateCrossRegionRestoreRequestObject() + .validateCrossRegionRestore("jptmcgsbost", "eln", new ValidateCrossRegionRestoreRequestObject() .withRestoreRequestObject(new AzureBackupRestoreRequest() .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("hryvy")) - .withSourceDataStoreType(SourceDataStoreType.ARCHIVE_STORE) - .withSourceResourceId("dclxgc") - .withResourceGuardOperationRequests(Arrays.asList("fnwmbtmvpdvj")) - .withIdentityDetails( - new IdentityDetails().withUseSystemAssignedIdentity(false).withUserAssignedIdentityArmUrl("a"))) - .withCrossRegionRestoreDetails(new CrossRegionRestoreDetails().withSourceRegion("fedxihchrphkm") - .withSourceBackupInstanceId("rjdqnsdfzp")), + .withRestoreLocation("tutmzl")) + .withSourceDataStoreType(SourceDataStoreType.OPERATIONAL_STORE) + .withSourceResourceId("jlvfhrbbpneqv") + .withResourceGuardOperationRequests(Arrays.asList("yyurmochpprprsnm")) + .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(true) + .withUserAssignedIdentityArmUrl("ejnhlbkpb"))) + .withCrossRegionRestoreDetails(new CrossRegionRestoreDetails().withSourceRegion("pcpil") + .withSourceBackupInstanceId("hahzvechndbnwi")), com.azure.core.util.Context.NONE); - Assertions.assertEquals("tg", response.jobId()); + Assertions.assertEquals("olewjwi", response.jobId()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreMockTests.java index d877454766479..bffb2e9982179 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreMockTests.java @@ -27,7 +27,7 @@ public final class BackupInstancesValidateForRestoreMockTests { @Test public void testValidateForRestore() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"vodhtn\"}"; + String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"cdzsu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,17 +37,17 @@ public void testValidateForRestore() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OperationJobExtendedInfo response = manager.backupInstances() - .validateForRestore("kgdoj", "mxvavrefdee", "vecuijpx", + .validateForRestore("wy", "undmbx", "ugcmjkavlgorb", new ValidateRestoreRequestObject().withRestoreRequestObject(new AzureBackupRestoreRequest() .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("uwprtujwsawd")) + .withRestoreLocation("pmdtz")) .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE) - .withSourceResourceId("babxvitit") - .withResourceGuardOperationRequests(Arrays.asList("eexavo", "tfgle", "dmdqb", "pypqtgsfj")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(true) - .withUserAssignedIdentityArmUrl("hhxud"))), + .withSourceResourceId("tfvnz") + .withResourceGuardOperationRequests(Arrays.asList("t", "tpvopvpbdb", "qgqqihedsvqwthmk")) + .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) + .withUserAssignedIdentityArmUrl("sihsgqcwdhohsd"))), com.azure.core.util.Context.NONE); - Assertions.assertEquals("vodhtn", response.jobId()); + Assertions.assertEquals("cdzsu", response.jobId()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateWithResponseMockTests.java index c72d359ef56a0..3da402d0f70b8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class BackupPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"mzvupor\",\"zdfuydzvkfvxcnqm\"]},\"id\":\"psw\",\"name\":\"kmvkhl\",\"type\":\"gdhbe\"}"; + = "{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"tafsrbxrblmliowx\",\"hspnxwqagnepz\",\"aklsbsbq\"]},\"id\":\"agwwrxaom\",\"name\":\"isglrrc\",\"type\":\"ezkhhltnjadhqo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,11 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BaseBackupPolicyResource response = manager.backupPolicies() - .define("khpzvuqdflv") - .withExistingBackupVault("nkvxlxpaglqi", "bgkc") - .withProperties(new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("yp", "pubcpzgpxtivhjk"))) + .define("zydmxzjijpvuaurk") + .withExistingBackupVault("qzrdzsylollg", "rc") + .withProperties(new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("irldefxr"))) .create(); - Assertions.assertEquals("mzvupor", response.properties().datasourceTypes().get(0)); + Assertions.assertEquals("tafsrbxrblmliowx", response.properties().datasourceTypes().get(0)); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteWithResponseMockTests.java index 52cbe67135ac6..0e20ebba9d4b8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.backupPolicies() - .deleteWithResponse("mr", "ddoui", "amowaziynknlqwzd", com.azure.core.util.Context.NONE); + .deleteWithResponse("lzgaufcshhvnew", "nxkympqanxrjk", "xtwbta", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetWithResponseMockTests.java index b3052fdc9eaae..0d94e58fa7ece 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class BackupPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"qoiquvrehmrnjhv\"]},\"id\":\"jztczytqj\",\"name\":\"w\",\"type\":\"auunfprnjletlx\"}"; + = "{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"yeew\",\"ei\",\"bp\"]},\"id\":\"g\",\"name\":\"mguaml\",\"type\":\"dlrgms\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BaseBackupPolicyResource response = manager.backupPolicies() - .getWithResponse("nfsm", "cttuxuu", "i", com.azure.core.util.Context.NONE) + .getWithResponse("sizmoae", "sx", "wuived", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("qoiquvrehmrnjhv", response.properties().datasourceTypes().get(0)); + Assertions.assertEquals("yeew", response.properties().datasourceTypes().get(0)); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListMockTests.java index 5ad65c0e38591..a7fbf63d0e61c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListMockTests.java @@ -22,7 +22,7 @@ public final class BackupPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"huxy\",\"rjvmtygjbmzyosp\",\"p\",\"hckfkyjpmspbps\"]},\"id\":\"fppyogtieyujtvcz\",\"name\":\"cnyxrxmunjd\",\"type\":\"vg\"}]}"; + = "{\"value\":[{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"phdrw\",\"jkhvyomacluzvxnq\",\"hrpq\",\"df\"]},\"id\":\"kois\",\"name\":\"css\",\"type\":\"fxuifmcsypobk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.backupPolicies().list("piwhxqs", "dtmaa", com.azure.core.util.Context.NONE); + = manager.backupPolicies().list("ypnyghshxc", "lhkgmnsghp", com.azure.core.util.Context.NONE); - Assertions.assertEquals("huxy", response.iterator().next().properties().datasourceTypes().get(0)); + Assertions.assertEquals("phdrw", response.iterator().next().properties().datasourceTypes().get(0)); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPolicyTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPolicyTests.java index e8fab298c852f..f330c8d1c44ed 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPolicyTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPolicyTests.java @@ -14,21 +14,19 @@ public final class BackupPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupPolicy model = BinaryData.fromString( - "{\"objectType\":\"BackupPolicy\",\"policyRules\":[{\"objectType\":\"BasePolicyRule\",\"name\":\"eyvpnqicvinvkj\"},{\"objectType\":\"BasePolicyRule\",\"name\":\"xdxr\"},{\"objectType\":\"BasePolicyRule\",\"name\":\"uukzclewyhmlw\"},{\"objectType\":\"BasePolicyRule\",\"name\":\"aztz\"}],\"datasourceTypes\":[\"fn\",\"ckw\",\"fz\",\"whxxbuyqax\"]}") + "{\"objectType\":\"BackupPolicy\",\"policyRules\":[{\"objectType\":\"BasePolicyRule\",\"name\":\"qkdlw\"},{\"objectType\":\"BasePolicyRule\",\"name\":\"qfbumlkxtrqjf\"},{\"objectType\":\"BasePolicyRule\",\"name\":\"mlmbtxhwgfwsrta\"}],\"datasourceTypes\":[\"oezbrhubsk\",\"udygooo\",\"kqfqjbvl\"]}") .toObject(BackupPolicy.class); - Assertions.assertEquals("fn", model.datasourceTypes().get(0)); - Assertions.assertEquals("eyvpnqicvinvkj", model.policyRules().get(0).name()); + Assertions.assertEquals("oezbrhubsk", model.datasourceTypes().get(0)); + Assertions.assertEquals("qkdlw", model.policyRules().get(0).name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupPolicy model - = new BackupPolicy().withDatasourceTypes(Arrays.asList("fn", "ckw", "fz", "whxxbuyqax")) - .withPolicyRules(Arrays.asList(new BasePolicyRule().withName("eyvpnqicvinvkj"), - new BasePolicyRule().withName("xdxr"), new BasePolicyRule().withName("uukzclewyhmlw"), - new BasePolicyRule().withName("aztz"))); + BackupPolicy model = new BackupPolicy().withDatasourceTypes(Arrays.asList("oezbrhubsk", "udygooo", "kqfqjbvl")) + .withPolicyRules(Arrays.asList(new BasePolicyRule().withName("qkdlw"), + new BasePolicyRule().withName("qfbumlkxtrqjf"), new BasePolicyRule().withName("mlmbtxhwgfwsrta"))); model = BinaryData.fromObject(model).toObject(BackupPolicy.class); - Assertions.assertEquals("fn", model.datasourceTypes().get(0)); - Assertions.assertEquals("eyvpnqicvinvkj", model.policyRules().get(0).name()); + Assertions.assertEquals("oezbrhubsk", model.datasourceTypes().get(0)); + Assertions.assertEquals("qkdlw", model.policyRules().get(0).name()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupScheduleTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupScheduleTests.java index 73a689d49884d..de8b267377a88 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupScheduleTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupScheduleTests.java @@ -12,19 +12,20 @@ public final class BackupScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BackupSchedule model - = BinaryData.fromString("{\"repeatingTimeIntervals\":[\"qgsfraoyzkoow\"],\"timeZone\":\"mnguxawqaldsyu\"}") - .toObject(BackupSchedule.class); - Assertions.assertEquals("qgsfraoyzkoow", model.repeatingTimeIntervals().get(0)); - Assertions.assertEquals("mnguxawqaldsyu", model.timeZone()); + BackupSchedule model = BinaryData.fromString( + "{\"repeatingTimeIntervals\":[\"ieuzaofjchvcyyy\",\"fgdo\",\"cubiipuipw\"],\"timeZone\":\"onmacjekniz\"}") + .toObject(BackupSchedule.class); + Assertions.assertEquals("ieuzaofjchvcyyy", model.repeatingTimeIntervals().get(0)); + Assertions.assertEquals("onmacjekniz", model.timeZone()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupSchedule model = new BackupSchedule().withRepeatingTimeIntervals(Arrays.asList("qgsfraoyzkoow")) - .withTimeZone("mnguxawqaldsyu"); + BackupSchedule model + = new BackupSchedule().withRepeatingTimeIntervals(Arrays.asList("ieuzaofjchvcyyy", "fgdo", "cubiipuipw")) + .withTimeZone("onmacjekniz"); model = BinaryData.fromObject(model).toObject(BackupSchedule.class); - Assertions.assertEquals("qgsfraoyzkoow", model.repeatingTimeIntervals().get(0)); - Assertions.assertEquals("mnguxawqaldsyu", model.timeZone()); + Assertions.assertEquals("ieuzaofjchvcyyy", model.repeatingTimeIntervals().get(0)); + Assertions.assertEquals("onmacjekniz", model.timeZone()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilityWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilityWithResponseMockTests.java index 8991f83c201d5..a6fdd5c27b31d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilityWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class BackupVaultsCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"message\":\"lmjjyuo\",\"nameAvailable\":false,\"reason\":\"baxk\"}"; + String responseStr = "{\"message\":\"sl\",\"nameAvailable\":true,\"reason\":\"ovgqcgxuugqkctot\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,13 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CheckNameAvailabilityResult response = manager.backupVaults() - .checkNameAvailabilityWithResponse("bmhyreeudz", "av", - new CheckNameAvailabilityRequest().withName("dqmjxly").withType("glgou"), + .checkNameAvailabilityWithResponse("spphk", "xkykxdssjp", + new CheckNameAvailabilityRequest().withName("mucfxhikkf").withType("mymyincqlhri"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("lmjjyuo", response.message()); - Assertions.assertFalse(response.nameAvailable()); - Assertions.assertEquals("baxk", response.reason()); + Assertions.assertEquals("sl", response.message()); + Assertions.assertTrue(response.nameAvailable()); + Assertions.assertEquals("ovgqcgxuugqkctot", response.reason()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteMockTests.java index b428d01b7ca4a..a1610dc4dd4d4 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.backupVaults().delete("xzv", "mwmxqhndvnoamld", com.azure.core.util.Context.NONE); + manager.backupVaults().delete("fdv", "vhb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceInnerTests.java index 29c484c1b9a2e..642bc9885f96c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceInnerTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceInnerTests.java @@ -14,16 +14,16 @@ public final class BaseBackupPolicyResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BaseBackupPolicyResourceInner model = BinaryData.fromString( - "{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"vdkcrodtj\",\"nfwjlfltkacjvefk\",\"lfoakg\"]},\"id\":\"fpagaowpulp\",\"name\":\"blylsyxkqjnsj\",\"type\":\"r\"}") + "{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"aehvbbxuri\",\"ltfnhtbaxkgx\",\"wrck\"]},\"id\":\"kl\",\"name\":\"hpluodpvruudlg\",\"type\":\"ibthostgktstvd\"}") .toObject(BaseBackupPolicyResourceInner.class); - Assertions.assertEquals("vdkcrodtj", model.properties().datasourceTypes().get(0)); + Assertions.assertEquals("aehvbbxuri", model.properties().datasourceTypes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { BaseBackupPolicyResourceInner model = new BaseBackupPolicyResourceInner().withProperties( - new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("vdkcrodtj", "nfwjlfltkacjvefk", "lfoakg"))); + new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("aehvbbxuri", "ltfnhtbaxkgx", "wrck"))); model = BinaryData.fromObject(model).toObject(BaseBackupPolicyResourceInner.class); - Assertions.assertEquals("vdkcrodtj", model.properties().datasourceTypes().get(0)); + Assertions.assertEquals("aehvbbxuri", model.properties().datasourceTypes().get(0)); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceListTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceListTests.java index 9cebe9f895ad8..538de533b50a6 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceListTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceListTests.java @@ -12,9 +12,9 @@ public final class BaseBackupPolicyResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BaseBackupPolicyResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"dnwzxltjcvnhltiu\"]},\"id\":\"xnavvwxq\",\"name\":\"byqunyow\",\"type\":\"wlmdjrkv\"},{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"vfvpdbodaciz\",\"j\",\"lhkrribdeibqipqk\"]},\"id\":\"vxndz\",\"name\":\"mkrefajpjorwkq\",\"type\":\"yhgbijtjivfx\"},{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"ab\",\"bsystawfsdjpvk\",\"p\"]},\"id\":\"xbkzbzkdvncj\",\"name\":\"budurgkakmo\",\"type\":\"zhjjklffhmouwq\"}],\"nextLink\":\"zrfze\"}") + "{\"value\":[{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"jnobaiyh\",\"d\",\"iacegfnmn\",\"fpmvmemfnczd\"]},\"id\":\"vbalxlllc\",\"name\":\"podbzevwrdnh\",\"type\":\"ukuv\"},{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"swsmys\",\"uluqypfc\",\"lerchpq\"]},\"id\":\"f\",\"name\":\"jbabwidf\",\"type\":\"xsspuunnoxyhk\"}],\"nextLink\":\"qddrihpfhoqcaae\"}") .toObject(BaseBackupPolicyResourceList.class); - Assertions.assertEquals("zrfze", model.nextLink()); - Assertions.assertEquals("dnwzxltjcvnhltiu", model.value().get(0).properties().datasourceTypes().get(0)); + Assertions.assertEquals("qddrihpfhoqcaae", model.nextLink()); + Assertions.assertEquals("jnobaiyh", model.value().get(0).properties().datasourceTypes().get(0)); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyTests.java index 390b9d02ead03..d40e69a80e012 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyTests.java @@ -13,15 +13,15 @@ public final class BaseBackupPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BaseBackupPolicy model = BinaryData - .fromString("{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"iagxsdszuempsbz\",\"f\"]}") + .fromString("{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"clzedqbcvh\",\"lhpl\"]}") .toObject(BaseBackupPolicy.class); - Assertions.assertEquals("iagxsdszuempsbz", model.datasourceTypes().get(0)); + Assertions.assertEquals("clzedqbcvh", model.datasourceTypes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BaseBackupPolicy model = new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("iagxsdszuempsbz", "f")); + BaseBackupPolicy model = new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("clzedqbcvh", "lhpl")); model = BinaryData.fromObject(model).toObject(BaseBackupPolicy.class); - Assertions.assertEquals("iagxsdszuempsbz", model.datasourceTypes().get(0)); + Assertions.assertEquals("clzedqbcvh", model.datasourceTypes().get(0)); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BasePolicyRuleTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BasePolicyRuleTests.java index aa501c7987a22..a4ae09c27a035 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BasePolicyRuleTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BasePolicyRuleTests.java @@ -11,15 +11,15 @@ public final class BasePolicyRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BasePolicyRule model = BinaryData.fromString("{\"objectType\":\"BasePolicyRule\",\"name\":\"feqztppriol\"}") + BasePolicyRule model = BinaryData.fromString("{\"objectType\":\"BasePolicyRule\",\"name\":\"orfmluiqt\"}") .toObject(BasePolicyRule.class); - Assertions.assertEquals("feqztppriol", model.name()); + Assertions.assertEquals("orfmluiqt", model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BasePolicyRule model = new BasePolicyRule().withName("feqztppriol"); + BasePolicyRule model = new BasePolicyRule().withName("orfmluiqt"); model = BinaryData.fromObject(model).toObject(BasePolicyRule.class); - Assertions.assertEquals("feqztppriol", model.name()); + Assertions.assertEquals("orfmluiqt", model.name()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityRequestTests.java index bcf93e8029156..b86502e3a3c58 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityRequestTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityRequestTests.java @@ -11,18 +11,17 @@ public final class CheckNameAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CheckNameAvailabilityRequest model = BinaryData.fromString("{\"name\":\"iirqtd\",\"type\":\"axoruzfgsquy\"}") + CheckNameAvailabilityRequest model = BinaryData.fromString("{\"name\":\"mczuo\",\"type\":\"jw\"}") .toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("iirqtd", model.name()); - Assertions.assertEquals("axoruzfgsquy", model.type()); + Assertions.assertEquals("mczuo", model.name()); + Assertions.assertEquals("jw", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CheckNameAvailabilityRequest model - = new CheckNameAvailabilityRequest().withName("iirqtd").withType("axoruzfgsquy"); + CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("mczuo").withType("jw"); model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("iirqtd", model.name()); - Assertions.assertEquals("axoruzfgsquy", model.type()); + Assertions.assertEquals("mczuo", model.name()); + Assertions.assertEquals("jw", model.type()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityResultInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityResultInnerTests.java index 9789b284e55fb..2a53815d6754a 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityResultInnerTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityResultInnerTests.java @@ -12,10 +12,10 @@ public final class CheckNameAvailabilityResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CheckNameAvailabilityResultInner model - = BinaryData.fromString("{\"message\":\"rxxle\",\"nameAvailable\":true,\"reason\":\"mxjezwlw\"}") + = BinaryData.fromString("{\"message\":\"wqiok\",\"nameAvailable\":false,\"reason\":\"mojmsvpkjprvkw\"}") .toObject(CheckNameAvailabilityResultInner.class); - Assertions.assertEquals("rxxle", model.message()); - Assertions.assertTrue(model.nameAvailable()); - Assertions.assertEquals("mxjezwlw", model.reason()); + Assertions.assertEquals("wqiok", model.message()); + Assertions.assertFalse(model.nameAvailable()); + Assertions.assertEquals("mojmsvpkjprvkw", model.reason()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobRequestTests.java index 0671c4c4a1a60..c7837b94d3280 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobRequestTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobRequestTests.java @@ -12,21 +12,21 @@ public final class CrossRegionRestoreJobRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CrossRegionRestoreJobRequest model = BinaryData - .fromString("{\"sourceRegion\":\"pzdm\",\"sourceBackupVaultId\":\"vzvfvaawzqadfl\",\"jobId\":\"z\"}") + .fromString("{\"sourceRegion\":\"e\",\"sourceBackupVaultId\":\"y\",\"jobId\":\"uxakjsqzhzbezk\"}") .toObject(CrossRegionRestoreJobRequest.class); - Assertions.assertEquals("pzdm", model.sourceRegion()); - Assertions.assertEquals("vzvfvaawzqadfl", model.sourceBackupVaultId()); - Assertions.assertEquals("z", model.jobId()); + Assertions.assertEquals("e", model.sourceRegion()); + Assertions.assertEquals("y", model.sourceBackupVaultId()); + Assertions.assertEquals("uxakjsqzhzbezk", model.jobId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CrossRegionRestoreJobRequest model = new CrossRegionRestoreJobRequest().withSourceRegion("pzdm") - .withSourceBackupVaultId("vzvfvaawzqadfl") - .withJobId("z"); + CrossRegionRestoreJobRequest model = new CrossRegionRestoreJobRequest().withSourceRegion("e") + .withSourceBackupVaultId("y") + .withJobId("uxakjsqzhzbezk"); model = BinaryData.fromObject(model).toObject(CrossRegionRestoreJobRequest.class); - Assertions.assertEquals("pzdm", model.sourceRegion()); - Assertions.assertEquals("vzvfvaawzqadfl", model.sourceBackupVaultId()); - Assertions.assertEquals("z", model.jobId()); + Assertions.assertEquals("e", model.sourceRegion()); + Assertions.assertEquals("y", model.sourceBackupVaultId()); + Assertions.assertEquals("uxakjsqzhzbezk", model.jobId()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobsRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobsRequestTests.java index 3934ffe3add14..a20387feda05f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobsRequestTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobsRequestTests.java @@ -12,18 +12,18 @@ public final class CrossRegionRestoreJobsRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CrossRegionRestoreJobsRequest model - = BinaryData.fromString("{\"sourceRegion\":\"riglaec\",\"sourceBackupVaultId\":\"ndtic\"}") + = BinaryData.fromString("{\"sourceRegion\":\"imsidxasicddyvvj\",\"sourceBackupVaultId\":\"kgfmocwahpq\"}") .toObject(CrossRegionRestoreJobsRequest.class); - Assertions.assertEquals("riglaec", model.sourceRegion()); - Assertions.assertEquals("ndtic", model.sourceBackupVaultId()); + Assertions.assertEquals("imsidxasicddyvvj", model.sourceRegion()); + Assertions.assertEquals("kgfmocwahpq", model.sourceBackupVaultId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CrossRegionRestoreJobsRequest model - = new CrossRegionRestoreJobsRequest().withSourceRegion("riglaec").withSourceBackupVaultId("ndtic"); + CrossRegionRestoreJobsRequest model = new CrossRegionRestoreJobsRequest().withSourceRegion("imsidxasicddyvvj") + .withSourceBackupVaultId("kgfmocwahpq"); model = BinaryData.fromObject(model).toObject(CrossRegionRestoreJobsRequest.class); - Assertions.assertEquals("riglaec", model.sourceRegion()); - Assertions.assertEquals("ndtic", model.sourceBackupVaultId()); + Assertions.assertEquals("imsidxasicddyvvj", model.sourceRegion()); + Assertions.assertEquals("kgfmocwahpq", model.sourceBackupVaultId()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantAuthCredentialsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantAuthCredentialsTests.java new file mode 100644 index 0000000000000..d14869c0d7426 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantAuthCredentialsTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.dataprotection.models.CrossTenantAuthCredentials; + +public final class CrossTenantAuthCredentialsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CrossTenantAuthCredentials model = BinaryData.fromString("{\"objectType\":\"CrossTenantAuthCredentials\"}") + .toObject(CrossTenantAuthCredentials.class); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingInnerTests.java new file mode 100644 index 0000000000000..dd251346918dd --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingInnerTests.java @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingInner; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class CrossTenantVaultMappingInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CrossTenantVaultMappingInner model = BinaryData.fromString( + "{\"properties\":{\"sourceVaultId\":\"cktqumiekkezzi\",\"resourceGuardOperationRequests\":[\"yf\"],\"sourceTenantId\":\"dgqggebdu\",\"provisioningState\":\"Updating\"},\"id\":\"eqidbqfatpx\",\"name\":\"lr\",\"type\":\"cyjmoadsuvarmy\"}") + .toObject(CrossTenantVaultMappingInner.class); + Assertions.assertEquals("cktqumiekkezzi", model.properties().sourceVaultId()); + Assertions.assertEquals("yf", model.properties().resourceGuardOperationRequests().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CrossTenantVaultMappingInner model = new CrossTenantVaultMappingInner() + .withProperties(new CrossTenantVaultMappingProperties().withSourceVaultId("cktqumiekkezzi") + .withResourceGuardOperationRequests(Arrays.asList("yf"))); + model = BinaryData.fromObject(model).toObject(CrossTenantVaultMappingInner.class); + Assertions.assertEquals("cktqumiekkezzi", model.properties().sourceVaultId()); + Assertions.assertEquals("yf", model.properties().resourceGuardOperationRequests().get(0)); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingListTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingListTests.java new file mode 100644 index 0000000000000..fb306a41e5670 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingListTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.dataprotection.implementation.models.CrossTenantVaultMappingList; +import org.junit.jupiter.api.Assertions; + +public final class CrossTenantVaultMappingListTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CrossTenantVaultMappingList model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"sourceVaultId\":\"fn\",\"resourceGuardOperationRequests\":[\"baaa\",\"jyvayffimrzrtuz\",\"ogs\"],\"sourceTenantId\":\"nevfdnw\",\"provisioningState\":\"Updating\"},\"id\":\"wzsyyceuzs\",\"name\":\"i\",\"type\":\"judpfrxt\"},{\"properties\":{\"sourceVaultId\":\"hzv\",\"resourceGuardOperationRequests\":[\"dwkqbrq\",\"bpaxhexiilivpdt\"],\"sourceTenantId\":\"r\",\"provisioningState\":\"Provisioning\"},\"id\":\"oaxoruzfgsqu\",\"name\":\"fxrxxle\",\"type\":\"tramxjez\"},{\"properties\":{\"sourceVaultId\":\"wnwxuqlcvyd\",\"resourceGuardOperationRequests\":[\"tdooaoj\",\"niodkooeb\",\"nuj\",\"emmsbvdkc\"],\"sourceTenantId\":\"dtjinfw\",\"provisioningState\":\"Failed\"},\"id\":\"tkacj\",\"name\":\"efkdlf\",\"type\":\"akggkfpag\"}],\"nextLink\":\"wpu\"}") + .toObject(CrossTenantVaultMappingList.class); + Assertions.assertEquals("wpu", model.nextLink()); + Assertions.assertEquals("fn", model.value().get(0).properties().sourceVaultId()); + Assertions.assertEquals("baaa", model.value().get(0).properties().resourceGuardOperationRequests().get(0)); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingPropertiesTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingPropertiesTests.java new file mode 100644 index 0000000000000..087c1b4386dea --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingPropertiesTests.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class CrossTenantVaultMappingPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CrossTenantVaultMappingProperties model = BinaryData.fromString( + "{\"sourceVaultId\":\"dmjsjqb\",\"resourceGuardOperationRequests\":[\"yxxrwlycoduh\",\"kxkgymareqna\",\"xqugjhkycubedd\",\"ssofwqmzqa\"],\"sourceTenantId\":\"rmnjijpx\",\"provisioningState\":\"Unknown\"}") + .toObject(CrossTenantVaultMappingProperties.class); + Assertions.assertEquals("dmjsjqb", model.sourceVaultId()); + Assertions.assertEquals("yxxrwlycoduh", model.resourceGuardOperationRequests().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CrossTenantVaultMappingProperties model = new CrossTenantVaultMappingProperties().withSourceVaultId("dmjsjqb") + .withResourceGuardOperationRequests( + Arrays.asList("yxxrwlycoduh", "kxkgymareqna", "xqugjhkycubedd", "ssofwqmzqa")); + model = BinaryData.fromObject(model).toObject(CrossTenantVaultMappingProperties.class); + Assertions.assertEquals("dmjsjqb", model.sourceVaultId()); + Assertions.assertEquals("yxxrwlycoduh", model.resourceGuardOperationRequests().get(0)); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingRemoveRequestPropertiesTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingRemoveRequestPropertiesTests.java new file mode 100644 index 0000000000000..d9b49f8b6f644 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingRemoveRequestPropertiesTests.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequestProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class CrossTenantVaultMappingRemoveRequestPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CrossTenantVaultMappingRemoveRequestProperties model + = BinaryData.fromString("{\"resourceGuardOperationRequests\":[\"icvi\"]}") + .toObject(CrossTenantVaultMappingRemoveRequestProperties.class); + Assertions.assertEquals("icvi", model.resourceGuardOperationRequests().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CrossTenantVaultMappingRemoveRequestProperties model = new CrossTenantVaultMappingRemoveRequestProperties() + .withResourceGuardOperationRequests(Arrays.asList("icvi")); + model = BinaryData.fromObject(model).toObject(CrossTenantVaultMappingRemoveRequestProperties.class); + Assertions.assertEquals("icvi", model.resourceGuardOperationRequests().get(0)); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingRemoveRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingRemoveRequestTests.java new file mode 100644 index 0000000000000..8961eb35cc6ae --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingRemoveRequestTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequest; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequestProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class CrossTenantVaultMappingRemoveRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CrossTenantVaultMappingRemoveRequest model = BinaryData.fromString( + "{\"properties\":{\"resourceGuardOperationRequests\":[\"lyls\",\"xkqjnsjervt\",\"agxsdszuemps\",\"zkfzbeyv\"]}}") + .toObject(CrossTenantVaultMappingRemoveRequest.class); + Assertions.assertEquals("lyls", model.properties().resourceGuardOperationRequests().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + CrossTenantVaultMappingRemoveRequest model = new CrossTenantVaultMappingRemoveRequest() + .withProperties(new CrossTenantVaultMappingRemoveRequestProperties() + .withResourceGuardOperationRequests(Arrays.asList("lyls", "xkqjnsjervt", "agxsdszuemps", "zkfzbeyv"))); + model = BinaryData.fromObject(model).toObject(CrossTenantVaultMappingRemoveRequest.class); + Assertions.assertEquals("lyls", model.properties().resourceGuardOperationRequests().get(0)); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingStatusResponseInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingStatusResponseInnerTests.java new file mode 100644 index 0000000000000..5f6742c31930d --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossTenantVaultMappingStatusResponseInnerTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.dataprotection.fluent.models.CrossTenantVaultMappingStatusResponseInner; +import com.azure.resourcemanager.dataprotection.models.VaultMappingState; +import org.junit.jupiter.api.Assertions; + +public final class CrossTenantVaultMappingStatusResponseInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CrossTenantVaultMappingStatusResponseInner model + = BinaryData.fromString("{\"mappingName\":\"kjj\",\"mappingState\":\"Inactive\"}") + .toObject(CrossTenantVaultMappingStatusResponseInner.class); + Assertions.assertEquals("kjj", model.mappingName()); + Assertions.assertEquals(VaultMappingState.INACTIVE, model.mappingState()); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CustomCopyOptionTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CustomCopyOptionTests.java index 44c2b15137dd0..c003dfa995a53 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CustomCopyOptionTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CustomCopyOptionTests.java @@ -11,16 +11,15 @@ public final class CustomCopyOptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CustomCopyOption model - = BinaryData.fromString("{\"objectType\":\"CustomCopyOption\",\"duration\":\"evxccedcp\"}") - .toObject(CustomCopyOption.class); - Assertions.assertEquals("evxccedcp", model.duration()); + CustomCopyOption model = BinaryData.fromString("{\"objectType\":\"CustomCopyOption\",\"duration\":\"gsj\"}") + .toObject(CustomCopyOption.class); + Assertions.assertEquals("gsj", model.duration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CustomCopyOption model = new CustomCopyOption().withDuration("evxccedcp"); + CustomCopyOption model = new CustomCopyOption().withDuration("gsj"); model = BinaryData.fromObject(model).toObject(CustomCopyOption.class); - Assertions.assertEquals("evxccedcp", model.duration()); + Assertions.assertEquals("gsj", model.duration()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListMockTests.java index 67fc23c9ac473..4800103267d82 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListMockTests.java @@ -21,7 +21,7 @@ public final class DataProtectionOperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"pvz\",\"isDataAction\":false,\"display\":{\"provider\":\"ld\",\"resource\":\"obfirclnpk\",\"operation\":\"ayzri\",\"description\":\"hya\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"tjeaahhvjhh\",\"isDataAction\":false,\"display\":{\"provider\":\"bbjjidjksyxk\",\"resource\":\"vxevblb\",\"operation\":\"dnlj\",\"description\":\"geuaulx\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionsCheckFeatureSupportWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionsCheckFeatureSupportWithResponseMockTests.java index c0cc55a349fce..725dbcea76ecf 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionsCheckFeatureSupportWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionsCheckFeatureSupportWithResponseMockTests.java @@ -30,7 +30,7 @@ public void testCheckFeatureSupportWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); FeatureValidationResponseBase response = manager.dataProtections() - .checkFeatureSupportWithResponse("zrvjfnmjmvlwyzgi", new FeatureValidationRequestBase(), + .checkFeatureSupportWithResponse("mclujyxkyxlzgs", new FeatureValidationRequestBase(), com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreInfoBaseTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreInfoBaseTests.java index a8de0f6924ea7..bfe30df91363d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreInfoBaseTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreInfoBaseTests.java @@ -13,18 +13,18 @@ public final class DataStoreInfoBaseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataStoreInfoBase model - = BinaryData.fromString("{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"glsbjjc\"}") + = BinaryData.fromString("{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"gzslesjcbhernnti\"}") .toObject(DataStoreInfoBase.class); Assertions.assertEquals(DataStoreTypes.ARCHIVE_STORE, model.dataStoreType()); - Assertions.assertEquals("glsbjjc", model.objectType()); + Assertions.assertEquals("gzslesjcbhernnti", model.objectType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DataStoreInfoBase model - = new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE).withObjectType("glsbjjc"); + DataStoreInfoBase model = new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE) + .withObjectType("gzslesjcbhernnti"); model = BinaryData.fromObject(model).toObject(DataStoreInfoBase.class); Assertions.assertEquals(DataStoreTypes.ARCHIVE_STORE, model.dataStoreType()); - Assertions.assertEquals("glsbjjc", model.objectType()); + Assertions.assertEquals("gzslesjcbhernnti", model.objectType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DayTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DayTests.java index dfbae0adf5914..ecfcd26800dc8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DayTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DayTests.java @@ -11,16 +11,16 @@ public final class DayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Day model = BinaryData.fromString("{\"date\":661100043,\"isLast\":true}").toObject(Day.class); - Assertions.assertEquals(661100043, model.date()); + Day model = BinaryData.fromString("{\"date\":1322513595,\"isLast\":true}").toObject(Day.class); + Assertions.assertEquals(1322513595, model.date()); Assertions.assertTrue(model.isLast()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Day model = new Day().withDate(661100043).withIsLast(true); + Day model = new Day().withDate(1322513595).withIsLast(true); model = BinaryData.fromObject(model).toObject(Day.class); - Assertions.assertEquals(661100043, model.date()); + Assertions.assertEquals(1322513595, model.date()); Assertions.assertTrue(model.isLast()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeleteOptionTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeleteOptionTests.java index 104c6c6dd90b1..d60fc9d7389b5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeleteOptionTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeleteOptionTests.java @@ -11,15 +11,15 @@ public final class DeleteOptionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DeleteOption model = BinaryData.fromString("{\"objectType\":\"DeleteOption\",\"duration\":\"swibyr\"}") + DeleteOption model = BinaryData.fromString("{\"objectType\":\"DeleteOption\",\"duration\":\"gwjplmag\"}") .toObject(DeleteOption.class); - Assertions.assertEquals("swibyr", model.duration()); + Assertions.assertEquals("gwjplmag", model.duration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DeleteOption model = new DeleteOption().withDuration("swibyr"); + DeleteOption model = new DeleteOption().withDuration("gwjplmag"); model = BinaryData.fromObject(model).toObject(DeleteOption.class); - Assertions.assertEquals("swibyr", model.duration()); + Assertions.assertEquals("gwjplmag", model.duration()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteMockTests.java index aabf48488ea2d..d6a033a3f7a75 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteMockTests.java @@ -28,7 +28,7 @@ public void testUndelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.deletedBackupInstances() - .undelete("qwtehtuevr", "rljyoogwxhnsdu", "gwbsreurf", com.azure.core.util.Context.NONE); + .undelete("mmzrrscub", "wsdrnpxqwodif", "jxcjrmmuabwib", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletionInfoTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletionInfoTests.java index d44763674ccdc..b2cb6614cb1ff 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletionInfoTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletionInfoTests.java @@ -11,7 +11,7 @@ public final class DeletionInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeletionInfo model = BinaryData.fromString( - "{\"deletionTime\":\"isze\",\"billingEndDate\":\"nb\",\"scheduledPurgeTime\":\"rxgibbd\",\"deleteActivityID\":\"confozauors\"}") + "{\"deletionTime\":\"cxvdfffwafqrouda\",\"billingEndDate\":\"avehhrvkbunzo\",\"scheduledPurgeTime\":\"dhcxgkmoy\",\"deleteActivityID\":\"dyuib\"}") .toObject(DeletionInfo.class); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingStatusCheckWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingStatusCheckWithResponseMockTests.java new file mode 100644 index 0000000000000..5574c90eef474 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingStatusCheckWithResponseMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingStatusResponse; +import com.azure.resourcemanager.dataprotection.models.VaultMappingState; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DppCrossTenantVaultMappingStatusCheckWithResponseMockTests { + @Test + public void testCheckWithResponse() throws Exception { + String responseStr = "{\"mappingName\":\"lgmtrwahzjmucf\",\"mappingState\":\"Inactive\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + CrossTenantVaultMappingStatusResponse response = manager.dppCrossTenantVaultMappingStatus() + .checkWithResponse("yuel", "etndnbfqyggagf", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("lgmtrwahzjmucf", response.mappingName()); + Assertions.assertEquals(VaultMappingState.INACTIVE, response.mappingState()); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsCreateOrUpdateWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsCreateOrUpdateWithResponseMockTests.java new file mode 100644 index 0000000000000..fd2da7c3dc6ab --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsCreateOrUpdateWithResponseMockTests.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMapping; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DppCrossTenantVaultMappingsCreateOrUpdateWithResponseMockTests { + @Test + public void testCreateOrUpdateWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"sourceVaultId\":\"ekewvnqvcdlguauc\",\"resourceGuardOperationRequests\":[\"jwnlax\",\"un\",\"qikczvvita\",\"gx\"],\"sourceTenantId\":\"csserxht\",\"provisioningState\":\"Succeeded\"},\"id\":\"hlwntsjgq\",\"name\":\"sxypruuu\",\"type\":\"bnchrsziz\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + CrossTenantVaultMapping response = manager.dppCrossTenantVaultMappings() + .define("m") + .withExistingBackupVault("razftxejwabmdujt", "vcopex") + .withProperties(new CrossTenantVaultMappingProperties().withSourceVaultId("rbuhhlky") + .withResourceGuardOperationRequests(Arrays.asList("qsrogt", "wkffdjkt", "ysidfvclgl"))) + .create(); + + Assertions.assertEquals("ekewvnqvcdlguauc", response.properties().sourceVaultId()); + Assertions.assertEquals("jwnlax", response.properties().resourceGuardOperationRequests().get(0)); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsGetWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..c4eca030a6bae --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsGetWithResponseMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMapping; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DppCrossTenantVaultMappingsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"sourceVaultId\":\"qtj\",\"resourceGuardOperationRequests\":[\"ttgepuslvyjtcv\"],\"sourceTenantId\":\"kasizie\",\"provisioningState\":\"Provisioning\"},\"id\":\"ghtuqfecjxey\",\"name\":\"tuhxuicb\",\"type\":\"ewmrswnjlxu\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + CrossTenantVaultMapping response = manager.dppCrossTenantVaultMappings() + .getWithResponse("ovne", "henlusfnr", "tjxtxr", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("qtj", response.properties().sourceVaultId()); + Assertions.assertEquals("ttgepuslvyjtcv", response.properties().resourceGuardOperationRequests().get(0)); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsListMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsListMockTests.java new file mode 100644 index 0000000000000..c1248015aae2a --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsListMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMapping; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DppCrossTenantVaultMappingsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"sourceVaultId\":\"qatucoigebxnc\",\"resourceGuardOperationRequests\":[\"epbnwgfm\",\"jgcgbjbgdlfgtdys\",\"aquflqbctqha\",\"zjrwdkqze\"],\"sourceTenantId\":\"jleziunjx\",\"provisioningState\":\"Succeeded\"},\"id\":\"ntkwcegy\",\"name\":\"mlbnseq\",\"type\":\"cjjvpilguooqja\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.dppCrossTenantVaultMappings().list("rhwpus", "jbaqehgpdoh", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("qatucoigebxnc", response.iterator().next().properties().sourceVaultId()); + Assertions.assertEquals("epbnwgfm", + response.iterator().next().properties().resourceGuardOperationRequests().get(0)); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsRemoveWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsRemoveWithResponseMockTests.java new file mode 100644 index 0000000000000..0b7caf41db975 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppCrossTenantVaultMappingsRemoveWithResponseMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequest; +import com.azure.resourcemanager.dataprotection.models.CrossTenantVaultMappingRemoveRequestProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DppCrossTenantVaultMappingsRemoveWithResponseMockTests { + @Test + public void testRemoveWithResponse() throws Exception { + String responseStr = "{}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 204, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + manager.dppCrossTenantVaultMappings() + .removeWithResponse("m", "itgueiookjbs", "hrtdtpdelq", + new CrossTenantVaultMappingRemoveRequest() + .withProperties(new CrossTenantVaultMappingRemoveRequestProperties() + .withResourceGuardOperationRequests(Arrays.asList("m", "toebnf", "o", "vcjkgd"))), + com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesCreateOrUpdateWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesCreateOrUpdateWithResponseMockTests.java index 58852123819e4..7eaa49448fbd2 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesCreateOrUpdateWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class DppResourceGuardProxiesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"resourceGuardResourceId\":\"c\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"rrmhwrbfdp\",\"defaultResourceRequest\":\"lubhvjg\"},{\"vaultCriticalOperation\":\"ocu\",\"defaultResourceRequest\":\"lw\"},{\"vaultCriticalOperation\":\"memhooclutnpq\",\"defaultResourceRequest\":\"mczjkm\"},{\"vaultCriticalOperation\":\"kyujxsglhsrrr\",\"defaultResourceRequest\":\"jylmbkzudnigr\"}],\"lastUpdatedTime\":\"hotj\",\"description\":\"lpxuzzjgnrefq\"},\"id\":\"qotoihiqakydiwfb\",\"name\":\"kwpzdqtvh\",\"type\":\"spodaqax\"}"; + = "{\"properties\":{\"resourceGuardResourceId\":\"emeluclv\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"kyrdnqodx\",\"defaultResourceRequest\":\"h\"},{\"vaultCriticalOperation\":\"qfaqnvzoqg\",\"defaultResourceRequest\":\"pem\"}],\"lastUpdatedTime\":\"gavsczuejd\",\"description\":\"ptlghwzhomewjjst\"},\"id\":\"uhqawmoaianc\",\"name\":\"nvodrrs\",\"type\":\"blxydkxr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,26 +34,24 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ResourceGuardProxyBaseResource response = manager.dppResourceGuardProxies() - .define("kjxnqpvwgfstmhq") - .withExistingBackupVault("uqibsxtkcu", "fbsfarfsiow") - .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("zmdk") + .define("sjsz") + .withExistingBackupVault("yvca", "oyvivbsiz") + .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("cmnlzijiufehg") .withResourceGuardOperationDetails(Arrays.asList( - new ResourceGuardOperationDetail().withVaultCriticalOperation("fcluqvo") - .withDefaultResourceRequest("ycjimryvwgcwwpbm"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("w") - .withDefaultResourceRequest("ydsx"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("fo") - .withDefaultResourceRequest("cbvopwndyqleallk"))) - .withLastUpdatedTime("tkhlowkxxpvbr") - .withDescription("jmzsyzfh")) + new ResourceGuardOperationDetail().withVaultCriticalOperation("nwyvq") + .withDefaultResourceRequest("rerlniy"), + new ResourceGuardOperationDetail().withVaultCriticalOperation("lyfwxzutg") + .withDefaultResourceRequest("twhghmupgxyjtc"))) + .withLastUpdatedTime("abbujftabenb") + .withDescription("lqpx")) .create(); - Assertions.assertEquals("c", response.properties().resourceGuardResourceId()); - Assertions.assertEquals("rrmhwrbfdp", + Assertions.assertEquals("emeluclv", response.properties().resourceGuardResourceId()); + Assertions.assertEquals("kyrdnqodx", response.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("lubhvjg", + Assertions.assertEquals("h", response.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("hotj", response.properties().lastUpdatedTime()); - Assertions.assertEquals("lpxuzzjgnrefq", response.properties().description()); + Assertions.assertEquals("gavsczuejd", response.properties().lastUpdatedTime()); + Assertions.assertEquals("ptlghwzhomewjjst", response.properties().description()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesDeleteWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesDeleteWithResponseMockTests.java index fe18a1c5fc779..63e18565951ea 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesDeleteWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesDeleteWithResponseMockTests.java @@ -27,8 +27,7 @@ public void testDeleteWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.dppResourceGuardProxies() - .deleteWithResponse("dtfgxqbawpcbb", "zqcyknap", "ofyuicd", com.azure.core.util.Context.NONE); + manager.dppResourceGuardProxies().deleteWithResponse("ad", "yqegx", "iv", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesGetWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesGetWithResponseMockTests.java index b2a306b09357b..b1e5a488f2ed7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesGetWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class DppResourceGuardProxiesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"resourceGuardResourceId\":\"slcqxypokkh\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"cymczngn\",\"defaultResourceRequest\":\"xxewu\"},{\"vaultCriticalOperation\":\"nvudbchaqdtvqecr\",\"defaultResourceRequest\":\"tmxxdtddmflhuy\"},{\"vaultCriticalOperation\":\"zv\",\"defaultResourceRequest\":\"napxbannovv\"},{\"vaultCriticalOperation\":\"czytprwn\",\"defaultResourceRequest\":\"roevyt\"}],\"lastUpdatedTime\":\"okrrrouuxv\",\"description\":\"asbcrymodizrx\"},\"id\":\"obdxnazpmkmlm\",\"name\":\"evfxzopjhbzxlioh\",\"type\":\"d\"}"; + = "{\"properties\":{\"resourceGuardResourceId\":\"pol\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"vboclzhzjk\",\"defaultResourceRequest\":\"uxgvttxpnr\"},{\"vaultCriticalOperation\":\"zaamrdixtrekid\",\"defaultResourceRequest\":\"yskbruff\"},{\"vaultCriticalOperation\":\"lukkutvlxhrpqhvm\",\"defaultResourceRequest\":\"couqehb\"}],\"lastUpdatedTime\":\"cdsziryrand\",\"description\":\"pmbltoormkfql\"},\"id\":\"ldykalsygaolnjp\",\"name\":\"nbmjksibjgsjjxxa\",\"type\":\"mr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,15 +31,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ResourceGuardProxyBaseResource response = manager.dppResourceGuardProxies() - .getWithResponse("kfuarenlv", "htkln", "nafvvkyfedev", com.azure.core.util.Context.NONE) + .getWithResponse("jogjonmc", "e", "oyzbamwineofvf", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("slcqxypokkh", response.properties().resourceGuardResourceId()); - Assertions.assertEquals("cymczngn", + Assertions.assertEquals("pol", response.properties().resourceGuardResourceId()); + Assertions.assertEquals("vboclzhzjk", response.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("xxewu", + Assertions.assertEquals("uxgvttxpnr", response.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("okrrrouuxv", response.properties().lastUpdatedTime()); - Assertions.assertEquals("asbcrymodizrx", response.properties().description()); + Assertions.assertEquals("cdsziryrand", response.properties().lastUpdatedTime()); + Assertions.assertEquals("pmbltoormkfql", response.properties().description()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesListMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesListMockTests.java index d9d7246e79280..3d779fd7ff520 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesListMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesListMockTests.java @@ -22,7 +22,7 @@ public final class DppResourceGuardProxiesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"vibidmhmwffpl\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"apckccrrvw\",\"defaultResourceRequest\":\"oxoyyukp\"}],\"lastUpdatedTime\":\"immoiroqboshbrag\",\"description\":\"yyrmfsvbp\"},\"id\":\"bopfppdbwnup\",\"name\":\"ahxku\",\"type\":\"asjcaacfdmmcpu\"}]}"; + = "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"eznjaujv\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"ggiycwkdtaawxwf\",\"defaultResourceRequest\":\"aumrrqmbzmqkrat\"},{\"vaultCriticalOperation\":\"xwbjs\",\"defaultResourceRequest\":\"birkfpksokdg\"},{\"vaultCriticalOperation\":\"ewijymrhbguz\",\"defaultResourceRequest\":\"kyewnfnzhhhqo\"},{\"vaultCriticalOperation\":\"ffjkutycyarnroo\",\"defaultResourceRequest\":\"uabzoghkt\"}],\"lastUpdatedTime\":\"yczhco\",\"description\":\"cnhz\"},\"id\":\"ot\",\"name\":\"jzcfyjzptwr\",\"type\":\"ohapqinfsz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.dppResourceGuardProxies().list("zb", "ybww", com.azure.core.util.Context.NONE); + = manager.dppResourceGuardProxies().list("inbmh", "bjijkgqxnh", com.azure.core.util.Context.NONE); - Assertions.assertEquals("vibidmhmwffpl", response.iterator().next().properties().resourceGuardResourceId()); - Assertions.assertEquals("apckccrrvw", + Assertions.assertEquals("eznjaujv", response.iterator().next().properties().resourceGuardResourceId()); + Assertions.assertEquals("ggiycwkdtaawxwf", response.iterator().next().properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("oxoyyukp", + Assertions.assertEquals("aumrrqmbzmqkrat", response.iterator().next().properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("immoiroqboshbrag", response.iterator().next().properties().lastUpdatedTime()); - Assertions.assertEquals("yyrmfsvbp", response.iterator().next().properties().description()); + Assertions.assertEquals("yczhco", response.iterator().next().properties().lastUpdatedTime()); + Assertions.assertEquals("cnhz", response.iterator().next().properties().description()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesUnlockDeleteWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesUnlockDeleteWithResponseMockTests.java index 29b62df50fd61..a40915574d0e7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesUnlockDeleteWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesUnlockDeleteWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class DppResourceGuardProxiesUnlockDeleteWithResponseMockTests { @Test public void testUnlockDeleteWithResponse() throws Exception { - String responseStr = "{\"unlockDeleteExpiryTime\":\"abeolhbhlvbm\"}"; + String responseStr = "{\"unlockDeleteExpiryTime\":\"hqxu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testUnlockDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); UnlockDeleteResponse response = manager.dppResourceGuardProxies() - .unlockDeleteWithResponse("mehqepvufh", "zeh", "whoqhnlbqnbldxe", - new UnlockDeleteRequest().withResourceGuardOperationRequests(Arrays.asList("gschorimkrsrr")) - .withResourceToBeDeleted("ucsofldpuviyf"), + .unlockDeleteWithResponse("yglqdhmrjzral", "xpjb", "ypsjoq", + new UnlockDeleteRequest().withResourceGuardOperationRequests(Arrays.asList("nkyhf")) + .withResourceToBeDeleted("vsqxfxjelgcmpzqj"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("abeolhbhlvbm", response.unlockDeleteExpiryTime()); + Assertions.assertEquals("hqxu", response.unlockDeleteExpiryTime()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceTests.java index c9663de953b61..a318c74fc9744 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceTests.java @@ -11,7 +11,7 @@ public final class DppResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DppResource model - = BinaryData.fromString("{\"id\":\"lhflsjcdhszfjvf\",\"name\":\"ofel\",\"type\":\"grqmqhldvrii\"}") + = BinaryData.fromString("{\"id\":\"p\",\"name\":\"ghvxndzwmkrefa\",\"type\":\"jorwkqnyhgbij\"}") .toObject(DppResource.class); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestTests.java index 98ed851094c81..5b75124601b34 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestTests.java @@ -13,18 +13,18 @@ public final class FeatureValidationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FeatureValidationRequest model = BinaryData.fromString( - "{\"objectType\":\"FeatureValidationRequest\",\"featureType\":\"Invalid\",\"featureName\":\"jtlvofqzhvfciby\"}") + "{\"objectType\":\"FeatureValidationRequest\",\"featureType\":\"Invalid\",\"featureName\":\"wpgclrcivt\"}") .toObject(FeatureValidationRequest.class); Assertions.assertEquals(FeatureType.INVALID, model.featureType()); - Assertions.assertEquals("jtlvofqzhvfciby", model.featureName()); + Assertions.assertEquals("wpgclrcivt", model.featureName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FeatureValidationRequest model - = new FeatureValidationRequest().withFeatureType(FeatureType.INVALID).withFeatureName("jtlvofqzhvfciby"); + = new FeatureValidationRequest().withFeatureType(FeatureType.INVALID).withFeatureName("wpgclrcivt"); model = BinaryData.fromObject(model).toObject(FeatureValidationRequest.class); Assertions.assertEquals(FeatureType.INVALID, model.featureType()); - Assertions.assertEquals("jtlvofqzhvfciby", model.featureName()); + Assertions.assertEquals("wpgclrcivt", model.featureName()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseTests.java index a067395c48715..74146150048b8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseTests.java @@ -14,11 +14,11 @@ public final class FeatureValidationResponseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FeatureValidationResponse model = BinaryData.fromString( - "{\"objectType\":\"FeatureValidationResponse\",\"featureType\":\"DataSourceType\",\"features\":[{\"featureName\":\"rkjpvdwxfzwii\",\"supportStatus\":\"AlphaPreview\",\"exposureControlledFeatures\":[\"hyzsxjrkamb\",\"rnegvmn\"]},{\"featureName\":\"q\",\"supportStatus\":\"AlphaPreview\",\"exposureControlledFeatures\":[\"spastjbkkdmf\",\"vestmjl\",\"rriloz\",\"peewchpxlkt\"]}]}") + "{\"objectType\":\"FeatureValidationResponse\",\"featureType\":\"Invalid\",\"features\":[{\"featureName\":\"enxpmyyefr\",\"supportStatus\":\"Invalid\",\"exposureControlledFeatures\":[\"qqs\"]},{\"featureName\":\"waoqvmmb\",\"supportStatus\":\"NotSupported\",\"exposureControlledFeatures\":[\"tqlkz\"]}]}") .toObject(FeatureValidationResponse.class); - Assertions.assertEquals(FeatureType.DATA_SOURCE_TYPE, model.featureType()); - Assertions.assertEquals("rkjpvdwxfzwii", model.features().get(0).featureName()); - Assertions.assertEquals(FeatureSupportStatus.ALPHA_PREVIEW, model.features().get(0).supportStatus()); - Assertions.assertEquals("hyzsxjrkamb", model.features().get(0).exposureControlledFeatures().get(0)); + Assertions.assertEquals(FeatureType.INVALID, model.featureType()); + Assertions.assertEquals("enxpmyyefr", model.features().get(0).featureName()); + Assertions.assertEquals(FeatureSupportStatus.INVALID, model.features().get(0).supportStatus()); + Assertions.assertEquals("qqs", model.features().get(0).exposureControlledFeatures().get(0)); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRPsRequestParametersTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRPsRequestParametersTests.java index c23bfc0ef40dd..51d44f9c80352 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRPsRequestParametersTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRPsRequestParametersTests.java @@ -12,18 +12,18 @@ public final class FetchSecondaryRPsRequestParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FetchSecondaryRPsRequestParameters model - = BinaryData.fromString("{\"sourceRegion\":\"oepry\",\"sourceBackupInstanceId\":\"nwy\"}") + = BinaryData.fromString("{\"sourceRegion\":\"mf\",\"sourceBackupInstanceId\":\"uwasqvd\"}") .toObject(FetchSecondaryRPsRequestParameters.class); - Assertions.assertEquals("oepry", model.sourceRegion()); - Assertions.assertEquals("nwy", model.sourceBackupInstanceId()); + Assertions.assertEquals("mf", model.sourceRegion()); + Assertions.assertEquals("uwasqvd", model.sourceBackupInstanceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FetchSecondaryRPsRequestParameters model - = new FetchSecondaryRPsRequestParameters().withSourceRegion("oepry").withSourceBackupInstanceId("nwy"); + = new FetchSecondaryRPsRequestParameters().withSourceRegion("mf").withSourceBackupInstanceId("uwasqvd"); model = BinaryData.fromObject(model).toObject(FetchSecondaryRPsRequestParameters.class); - Assertions.assertEquals("oepry", model.sourceRegion()); - Assertions.assertEquals("nwy", model.sourceBackupInstanceId()); + Assertions.assertEquals("mf", model.sourceRegion()); + Assertions.assertEquals("uwasqvd", model.sourceBackupInstanceId()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListMockTests.java index 0b90c13e05c54..7c70c936b9798 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListMockTests.java @@ -22,7 +22,7 @@ public final class FetchSecondaryRecoveryPointsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"dbqzolxrzvhqjw\",\"name\":\"rhtgvgzpcrrkol\",\"type\":\"w\"}]}"; + = "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"gcgqyhleseyqrhvy\",\"name\":\"ldotjvdkwisws\",\"type\":\"ukjtasbvwispkxk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,12 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.fetchSecondaryRecoveryPoints() - .list("lkujrllfojui", "jpu", new FetchSecondaryRPsRequestParameters().withSourceRegion("jucejikzoeovvtz") - .withSourceBackupInstanceId("et"), "kl", "tikyj", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.fetchSecondaryRecoveryPoints() + .list("gkzz", "taf", + new FetchSecondaryRPsRequestParameters().withSourceRegion("zffovwmbjl") + .withSourceBackupInstanceId("sczpgvdwnapfd"), + "wow", "tptnuwjtk", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/JobSubTaskTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/JobSubTaskTests.java index d911b32fcdca6..cd9b2bf169fd4 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/JobSubTaskTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/JobSubTaskTests.java @@ -12,11 +12,11 @@ public final class JobSubTaskTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobSubTask model = BinaryData.fromString( - "{\"additionalDetails\":{\"hirctymoxoftpipi\":\"cotmr\"},\"taskId\":420468172,\"taskName\":\"czuhxacpqjlihh\",\"taskProgress\":\"spskasdvlmfwdgz\",\"taskStatus\":\"ulucv\"}") + "{\"additionalDetails\":{\"eoxorggufhyao\":\"ydxtqm\",\"ovjzhpjbibgjmfx\":\"tbghhavgrvkf\"},\"taskId\":504672156,\"taskName\":\"vfcluyovwxnbkfe\",\"taskProgress\":\"xscyhwzdgirujbz\",\"taskStatus\":\"omvzzbtd\"}") .toObject(JobSubTask.class); - Assertions.assertEquals("cotmr", model.additionalDetails().get("hirctymoxoftpipi")); - Assertions.assertEquals(420468172, model.taskId()); - Assertions.assertEquals("czuhxacpqjlihh", model.taskName()); - Assertions.assertEquals("ulucv", model.taskStatus()); + Assertions.assertEquals("ydxtqm", model.additionalDetails().get("eoxorggufhyao")); + Assertions.assertEquals(504672156, model.taskId()); + Assertions.assertEquals("vfcluyovwxnbkfe", model.taskName()); + Assertions.assertEquals("omvzzbtd", model.taskStatus()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResultsGetWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResultsGetWithResponseMockTests.java index bc43edb398555..4940ae921d755 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResultsGetWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResultsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class OperationResultsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"lpnfpubntnb\"}"; + String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"qlrqffaweyurk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,9 +30,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OperationJobExtendedInfo response = manager.operationResults() - .getWithResponse("ipietgbe", "jfulbmoic", com.azure.core.util.Context.NONE) + .getWithResponse("vvbxiwkgfbqljnq", "hychocokuleh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("lpnfpubntnb", response.jobId()); + Assertions.assertEquals("qlrqffaweyurk", response.jobId()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointDataStoreDetailsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointDataStoreDetailsTests.java index 76bf1a81c4fed..4570d6617e01f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointDataStoreDetailsTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointDataStoreDetailsTests.java @@ -13,14 +13,14 @@ public final class RecoveryPointDataStoreDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPointDataStoreDetails model = BinaryData.fromString( - "{\"creationTime\":\"2021-07-22T15:51:59Z\",\"expiryTime\":\"2021-02-16T12:45:58Z\",\"id\":\"ijejvegrhbpn\",\"metaData\":\"xexccbdreaxhcexd\",\"state\":\"vqahqkghtpwi\",\"type\":\"hyjsvfycx\",\"visible\":false,\"rehydrationExpiryTime\":\"2021-05-23T16:51:59Z\",\"rehydrationStatus\":\"DELETED\"}") + "{\"creationTime\":\"2021-01-16T14:42:26Z\",\"expiryTime\":\"2021-01-15T03:34:12Z\",\"id\":\"zwpcnpwzcjaesg\",\"metaData\":\"sccyajguqf\",\"state\":\"ygz\",\"type\":\"dnkfx\",\"visible\":true,\"rehydrationExpiryTime\":\"2021-03-12T00:04:56Z\",\"rehydrationStatus\":\"FAILED\"}") .toObject(RecoveryPointDataStoreDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-22T15:51:59Z"), model.creationTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T12:45:58Z"), model.expiryTime()); - Assertions.assertEquals("ijejvegrhbpn", model.id()); - Assertions.assertEquals("xexccbdreaxhcexd", model.metadata()); - Assertions.assertEquals("vqahqkghtpwi", model.state()); - Assertions.assertEquals("hyjsvfycx", model.type()); - Assertions.assertFalse(model.visible()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-16T14:42:26Z"), model.creationTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-15T03:34:12Z"), model.expiryTime()); + Assertions.assertEquals("zwpcnpwzcjaesg", model.id()); + Assertions.assertEquals("sccyajguqf", model.metadata()); + Assertions.assertEquals("ygz", model.state()); + Assertions.assertEquals("dnkfx", model.type()); + Assertions.assertTrue(model.visible()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointFromDppCrossTenantVaultsGetWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointFromDppCrossTenantVaultsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..4bd737d2d8091 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointFromDppCrossTenantVaultsGetWithResponseMockTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointResource; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RecoveryPointFromDppCrossTenantVaultsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"veo\",\"name\":\"i\",\"type\":\"rvjfnmjmvlw\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + AzureBackupRecoveryPointResource response = manager.recoveryPointFromDppCrossTenantVaults() + .getWithResponse("ttcjuhplrvkmjc", "mjvlgfgg", "vkyylizrzbjpsf", "sfuztlvtmv", "gbwidqlvh", + com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointImmutabilityPropertiesTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointImmutabilityPropertiesTests.java index 43dc73d7df4b5..169be3161a88c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointImmutabilityPropertiesTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointImmutabilityPropertiesTests.java @@ -13,9 +13,9 @@ public final class RecoveryPointImmutabilityPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPointImmutabilityProperties model - = BinaryData.fromString("{\"isImmutable\":true,\"expiryTime\":\"2021-01-29T00:13:03Z\"}") + = BinaryData.fromString("{\"isImmutable\":true,\"expiryTime\":\"2021-01-08T05:14:28Z\"}") .toObject(RecoveryPointImmutabilityProperties.class); Assertions.assertTrue(model.isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-29T00:13:03Z"), model.expiryTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-08T05:14:28Z"), model.expiryTime()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsFromDppCrossTenantVaultsListMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsFromDppCrossTenantVaultsListMockTests.java new file mode 100644 index 0000000000000..2c66006a139e9 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsFromDppCrossTenantVaultsListMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointResource; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RecoveryPointsFromDppCrossTenantVaultsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"ulbmoichdlp\",\"name\":\"fpubntnbatz\",\"type\":\"iqsowsaaelc\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.recoveryPointsFromDppCrossTenantVaults() + .list("yhqotoihiqakydi", "fb", "kwpzdqtvh", "spodaqax", "ipietgbe", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetWithResponseMockTests.java index 32ded06999775..887ee6b7a16f5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class RecoveryPointsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"ebqinjipnw\",\"name\":\"fujqlafcba\",\"type\":\"hpzpo\"}"; + = "{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"rx\",\"name\":\"bsojk\",\"type\":\"inhmdptys\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AzureBackupRecoveryPointResource response = manager.recoveryPoints() - .getWithResponse("ipq", "jedmurrxxgewp", "tvqylkmqpzoyhlfb", "gwgcl", com.azure.core.util.Context.NONE) + .getWithResponse("kxcpt", "oqfyiaseqch", "rttzrazisgykiu", "mvanbwzo", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListMockTests.java index 613d39e7a4296..cd8380af38b54 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListMockTests.java @@ -21,7 +21,7 @@ public final class RecoveryPointsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"efchn\",\"name\":\"n\",\"type\":\"hmnxhkxjqi\"}]}"; + = "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"rzdcgdzbenribcaw\",\"name\":\"tzqdd\",\"type\":\"jwfljhznamtua\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.recoveryPoints() - .list("o", "yjwpfilkmkkh", "l", "dndviauogp", "uartvti", com.azure.core.util.Context.NONE); + .list("rqsgnzx", "jp", "lsvjgpliu", "iqwoyxqvapcoh", "oucqpqojx", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationDetailTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationDetailTests.java index 536878e47fe77..2cbba9bc6ae4b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationDetailTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationDetailTests.java @@ -11,19 +11,19 @@ public final class ResourceGuardOperationDetailTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceGuardOperationDetail model - = BinaryData.fromString("{\"vaultCriticalOperation\":\"kyrk\",\"defaultResourceRequest\":\"dg\"}") - .toObject(ResourceGuardOperationDetail.class); - Assertions.assertEquals("kyrk", model.vaultCriticalOperation()); - Assertions.assertEquals("dg", model.defaultResourceRequest()); + ResourceGuardOperationDetail model = BinaryData + .fromString("{\"vaultCriticalOperation\":\"ozzwculkba\",\"defaultResourceRequest\":\"fajnjwltlwtjjguk\"}") + .toObject(ResourceGuardOperationDetail.class); + Assertions.assertEquals("ozzwculkba", model.vaultCriticalOperation()); + Assertions.assertEquals("fajnjwltlwtjjguk", model.defaultResourceRequest()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceGuardOperationDetail model - = new ResourceGuardOperationDetail().withVaultCriticalOperation("kyrk").withDefaultResourceRequest("dg"); + ResourceGuardOperationDetail model = new ResourceGuardOperationDetail().withVaultCriticalOperation("ozzwculkba") + .withDefaultResourceRequest("fajnjwltlwtjjguk"); model = BinaryData.fromObject(model).toObject(ResourceGuardOperationDetail.class); - Assertions.assertEquals("kyrk", model.vaultCriticalOperation()); - Assertions.assertEquals("dg", model.defaultResourceRequest()); + Assertions.assertEquals("ozzwculkba", model.vaultCriticalOperation()); + Assertions.assertEquals("fajnjwltlwtjjguk", model.defaultResourceRequest()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceInnerTests.java index 53411e33170d6..d53814dba4572 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceInnerTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceInnerTests.java @@ -15,37 +15,39 @@ public final class ResourceGuardProxyBaseResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceGuardProxyBaseResourceInner model = BinaryData.fromString( - "{\"properties\":{\"resourceGuardResourceId\":\"gcvizqzdwlvwlyou\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"bkjubdyhgkfmins\",\"defaultResourceRequest\":\"wzf\"},{\"vaultCriticalOperation\":\"sttktlahbqa\",\"defaultResourceRequest\":\"xtgzukxitmmqtgqq\"},{\"vaultCriticalOperation\":\"hrnxrxc\",\"defaultResourceRequest\":\"uisavokq\"}],\"lastUpdatedTime\":\"fvazivjlfrqttba\",\"description\":\"katnwxyi\"},\"id\":\"id\",\"name\":\"qqfkuv\",\"type\":\"cxkdmligovi\"}") + "{\"properties\":{\"resourceGuardResourceId\":\"agr\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"teusqczkvyklxu\",\"defaultResourceRequest\":\"jaffmmfblcqcuu\"},{\"vaultCriticalOperation\":\"qibrtalme\",\"defaultResourceRequest\":\"t\"},{\"vaultCriticalOperation\":\"dslqxihhrmooizqs\",\"defaultResourceRequest\":\"pxiutc\"},{\"vaultCriticalOperation\":\"pzhyr\",\"defaultResourceRequest\":\"togebjoxsl\"}],\"lastUpdatedTime\":\"nhl\",\"description\":\"rqnkkzjcjbtr\"},\"id\":\"ehvvib\",\"name\":\"xjjs\",\"type\":\"oqbeitpkxzt\"}") .toObject(ResourceGuardProxyBaseResourceInner.class); - Assertions.assertEquals("gcvizqzdwlvwlyou", model.properties().resourceGuardResourceId()); - Assertions.assertEquals("bkjubdyhgkfmins", + Assertions.assertEquals("agr", model.properties().resourceGuardResourceId()); + Assertions.assertEquals("teusqczkvyklxu", model.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("wzf", + Assertions.assertEquals("jaffmmfblcqcuu", model.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("fvazivjlfrqttba", model.properties().lastUpdatedTime()); - Assertions.assertEquals("katnwxyi", model.properties().description()); + Assertions.assertEquals("nhl", model.properties().lastUpdatedTime()); + Assertions.assertEquals("rqnkkzjcjbtr", model.properties().description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ResourceGuardProxyBaseResourceInner model = new ResourceGuardProxyBaseResourceInner() - .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("gcvizqzdwlvwlyou") + .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("agr") .withResourceGuardOperationDetails(Arrays.asList( - new ResourceGuardOperationDetail().withVaultCriticalOperation("bkjubdyhgkfmins") - .withDefaultResourceRequest("wzf"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("sttktlahbqa") - .withDefaultResourceRequest("xtgzukxitmmqtgqq"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("hrnxrxc") - .withDefaultResourceRequest("uisavokq"))) - .withLastUpdatedTime("fvazivjlfrqttba") - .withDescription("katnwxyi")); + new ResourceGuardOperationDetail().withVaultCriticalOperation("teusqczkvyklxu") + .withDefaultResourceRequest("jaffmmfblcqcuu"), + new ResourceGuardOperationDetail().withVaultCriticalOperation("qibrtalme") + .withDefaultResourceRequest("t"), + new ResourceGuardOperationDetail().withVaultCriticalOperation("dslqxihhrmooizqs") + .withDefaultResourceRequest("pxiutc"), + new ResourceGuardOperationDetail().withVaultCriticalOperation("pzhyr") + .withDefaultResourceRequest("togebjoxsl"))) + .withLastUpdatedTime("nhl") + .withDescription("rqnkkzjcjbtr")); model = BinaryData.fromObject(model).toObject(ResourceGuardProxyBaseResourceInner.class); - Assertions.assertEquals("gcvizqzdwlvwlyou", model.properties().resourceGuardResourceId()); - Assertions.assertEquals("bkjubdyhgkfmins", + Assertions.assertEquals("agr", model.properties().resourceGuardResourceId()); + Assertions.assertEquals("teusqczkvyklxu", model.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("wzf", + Assertions.assertEquals("jaffmmfblcqcuu", model.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("fvazivjlfrqttba", model.properties().lastUpdatedTime()); - Assertions.assertEquals("katnwxyi", model.properties().description()); + Assertions.assertEquals("nhl", model.properties().lastUpdatedTime()); + Assertions.assertEquals("rqnkkzjcjbtr", model.properties().description()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceListTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceListTests.java index 4b7e273448892..220a5983821eb 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceListTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceListTests.java @@ -12,15 +12,15 @@ public final class ResourceGuardProxyBaseResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceGuardProxyBaseResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"kmnwqjnobaiyhddv\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"gfnmntfpmvmemfnc\",\"defaultResourceRequest\":\"wvvb\"},{\"vaultCriticalOperation\":\"xlllchp\",\"defaultResourceRequest\":\"bzevwrd\"},{\"vaultCriticalOperation\":\"fukuvsjcswsmystu\",\"defaultResourceRequest\":\"qypfcv\"}],\"lastUpdatedTime\":\"rchpqbmfpjbabwid\",\"description\":\"xsspuunnoxyhk\"},\"id\":\"qddrihpfhoqcaae\",\"name\":\"dao\",\"type\":\"djvlpj\"}],\"nextLink\":\"kzbrmsgeivsiy\"}") + "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"nvkcdmxzrpoa\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"wiaaomylweaz\",\"defaultResourceRequest\":\"cse\"},{\"vaultCriticalOperation\":\"wwnpj\",\"defaultResourceRequest\":\"fz\"},{\"vaultCriticalOperation\":\"pchwa\",\"defaultResourceRequest\":\"bousn\"}],\"lastUpdatedTime\":\"pgfewetwlyx\",\"description\":\"cxy\"},\"id\":\"hdjhlimmbcx\",\"name\":\"h\",\"type\":\"cporxvxcjz\"},{\"properties\":{\"resourceGuardResourceId\":\"zxfpxtgqsc\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"t\",\"defaultResourceRequest\":\"hdqazkmtgguwp\"},{\"vaultCriticalOperation\":\"r\",\"defaultResourceRequest\":\"civmmg\"}],\"lastUpdatedTime\":\"cf\",\"description\":\"rxgkne\"},\"id\":\"yinzqodfvpgs\",\"name\":\"oxgsgbpfgzdjtx\",\"type\":\"zflbqvg\"},{\"properties\":{\"resourceGuardResourceId\":\"lgafcqusrdve\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"dtutnwldu\",\"defaultResourceRequest\":\"vuzhyr\"},{\"vaultCriticalOperation\":\"wipmvekdxuk\",\"defaultResourceRequest\":\"gsjj\"},{\"vaultCriticalOperation\":\"n\",\"defaultResourceRequest\":\"gketwzhhzjhf\"}],\"lastUpdatedTime\":\"hvvmuvgpmun\",\"description\":\"sx\"},\"id\":\"hfbuzjyihsasbhud\",\"name\":\"pohyuemslynsqyr\",\"type\":\"foobrlttyms\"}],\"nextLink\":\"ygqdnfwqzdz\"}") .toObject(ResourceGuardProxyBaseResourceList.class); - Assertions.assertEquals("kzbrmsgeivsiy", model.nextLink()); - Assertions.assertEquals("kmnwqjnobaiyhddv", model.value().get(0).properties().resourceGuardResourceId()); - Assertions.assertEquals("gfnmntfpmvmemfnc", + Assertions.assertEquals("ygqdnfwqzdz", model.nextLink()); + Assertions.assertEquals("nvkcdmxzrpoa", model.value().get(0).properties().resourceGuardResourceId()); + Assertions.assertEquals("wiaaomylweaz", model.value().get(0).properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("wvvb", + Assertions.assertEquals("cse", model.value().get(0).properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("rchpqbmfpjbabwid", model.value().get(0).properties().lastUpdatedTime()); - Assertions.assertEquals("xsspuunnoxyhk", model.value().get(0).properties().description()); + Assertions.assertEquals("pgfewetwlyx", model.value().get(0).properties().lastUpdatedTime()); + Assertions.assertEquals("cxy", model.value().get(0).properties().description()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseTests.java index ebb651f57df58..61ed2cacb334d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseTests.java @@ -14,34 +14,30 @@ public final class ResourceGuardProxyBaseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceGuardProxyBase model = BinaryData.fromString( - "{\"resourceGuardResourceId\":\"xk\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"azur\",\"defaultResourceRequest\":\"cbgoor\"},{\"vaultCriticalOperation\":\"eoybfhjxakvvjgs\",\"defaultResourceRequest\":\"r\"},{\"vaultCriticalOperation\":\"lmywwtkgkxnyed\",\"defaultResourceRequest\":\"gyvudtjuewbc\"},{\"vaultCriticalOperation\":\"xuuwhcj\",\"defaultResourceRequest\":\"ccybvp\"}],\"lastUpdatedTime\":\"akkud\",\"description\":\"xgwjplmagstcyoh\"}") + "{\"resourceGuardResourceId\":\"ob\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"idgfc\",\"defaultResourceRequest\":\"mpimaqxzhemjyh\"}],\"lastUpdatedTime\":\"uj\",\"description\":\"t\"}") .toObject(ResourceGuardProxyBase.class); - Assertions.assertEquals("xk", model.resourceGuardResourceId()); - Assertions.assertEquals("azur", model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("cbgoor", model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("akkud", model.lastUpdatedTime()); - Assertions.assertEquals("xgwjplmagstcyoh", model.description()); + Assertions.assertEquals("ob", model.resourceGuardResourceId()); + Assertions.assertEquals("idgfc", model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); + Assertions.assertEquals("mpimaqxzhemjyh", + model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); + Assertions.assertEquals("uj", model.lastUpdatedTime()); + Assertions.assertEquals("t", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceGuardProxyBase model = new ResourceGuardProxyBase().withResourceGuardResourceId("xk") - .withResourceGuardOperationDetails(Arrays.asList( - new ResourceGuardOperationDetail().withVaultCriticalOperation("azur") - .withDefaultResourceRequest("cbgoor"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("eoybfhjxakvvjgs") - .withDefaultResourceRequest("r"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("lmywwtkgkxnyed") - .withDefaultResourceRequest("gyvudtjuewbc"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("xuuwhcj") - .withDefaultResourceRequest("ccybvp"))) - .withLastUpdatedTime("akkud") - .withDescription("xgwjplmagstcyoh"); + ResourceGuardProxyBase model = new ResourceGuardProxyBase().withResourceGuardResourceId("ob") + .withResourceGuardOperationDetails( + Arrays.asList(new ResourceGuardOperationDetail().withVaultCriticalOperation("idgfc") + .withDefaultResourceRequest("mpimaqxzhemjyh"))) + .withLastUpdatedTime("uj") + .withDescription("t"); model = BinaryData.fromObject(model).toObject(ResourceGuardProxyBase.class); - Assertions.assertEquals("xk", model.resourceGuardResourceId()); - Assertions.assertEquals("azur", model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("cbgoor", model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("akkud", model.lastUpdatedTime()); - Assertions.assertEquals("xgwjplmagstcyoh", model.description()); + Assertions.assertEquals("ob", model.resourceGuardResourceId()); + Assertions.assertEquals("idgfc", model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); + Assertions.assertEquals("mpimaqxzhemjyh", + model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); + Assertions.assertEquals("uj", model.lastUpdatedTime()); + Assertions.assertEquals("t", model.description()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteByResourceGroupWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteByResourceGroupWithResponseMockTests.java index 0a78a51017369..1d7a3366b13e5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteByResourceGroupWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteByResourceGroupWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.resourceGuards() - .deleteByResourceGroupWithResponse("czbgomfgbeg", "qgleohibetnluank", com.azure.core.util.Context.NONE); + .deleteByResourceGroupWithResponse("wziqgfuhokzr", "swhvhczznvfbycj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsMockTests.java index f271c193bd244..146bfc41b1646 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsMockTests.java @@ -20,7 +20,7 @@ public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsMockTests { @Test public void testGetBackupSecurityPinRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"aivmxyasflvgs\",\"name\":\"zwywako\",\"type\":\"hknsmjbl\"}]}"; + String responseStr = "{\"value\":[{\"id\":\"eiknpgo\",\"name\":\"gjiuqhibto\",\"type\":\"ipq\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetBackupSecurityPinRequestsObjects() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.resourceGuards() - .getBackupSecurityPinRequestsObjects("puamwabzxr", "xcushs", com.azure.core.util.Context.NONE); + .getBackupSecurityPinRequestsObjects("cvclxynpdk", "gfabuiyjibuzphdu", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupWithResponseMockTests.java index cc6733d81550a..bff4d6e3a6b3b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ResourceGuardsGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Unknown\",\"allowAutoApprovals\":true,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"wijpsttexoqqpwc\",\"requestResourceType\":\"ufmhrunc\"}],\"vaultCriticalOperationExclusionList\":[\"qspkcdqzhlctd\",\"unqndyfpchrqb\",\"jjrcgegydc\",\"boxjumvq\"],\"description\":\"lihrraiouaubr\"},\"eTag\":\"loqxfuojrngif\",\"location\":\"z\",\"tags\":{\"mkyoqufdvruzsl\":\"ccbiuimzdlyjdfq\",\"tfnmdx\":\"ojhp\",\"yui\":\"tngfdgugeyzihgr\"},\"id\":\"absnmfpp\",\"name\":\"ojeevy\",\"type\":\"yhsgz\"}"; + = "{\"properties\":{\"provisioningState\":\"Updating\",\"allowAutoApprovals\":true,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"vhpsylkkshkbffmb\",\"requestResourceType\":\"zjrgyww\"},{\"vaultCriticalOperation\":\"jx\",\"requestResourceType\":\"ptfujgicgaaoept\"},{\"vaultCriticalOperation\":\"qutdewemxs\",\"requestResourceType\":\"ruunzzjgehkf\"}],\"vaultCriticalOperationExclusionList\":[\"rtixokff\"],\"description\":\"inljqepqwhixmo\"},\"eTag\":\"tshi\",\"location\":\"gvelfc\",\"tags\":{\"ds\":\"ccbi\",\"b\":\"uwc\",\"nghgshej\":\"egstmninwjizci\"},\"id\":\"tbxqmuluxlxq\",\"name\":\"vnersbycucrw\",\"type\":\"amikzebrqbsm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ResourceGuardResource response = manager.resourceGuards() - .getByResourceGroupWithResponse("bn", "mysu", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("qkc", "cxwaxfewz", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("z", response.location()); - Assertions.assertEquals("ccbiuimzdlyjdfq", response.tags().get("mkyoqufdvruzsl")); - Assertions.assertEquals("qspkcdqzhlctd", response.properties().vaultCriticalOperationExclusionList().get(0)); - Assertions.assertEquals("loqxfuojrngif", response.etag()); + Assertions.assertEquals("gvelfc", response.location()); + Assertions.assertEquals("ccbi", response.tags().get("ds")); + Assertions.assertEquals("rtixokff", response.properties().vaultCriticalOperationExclusionList().get(0)); + Assertions.assertEquals("tshi", response.etag()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectWithResponseMockTests.java index 7cf1b0f7b48e0..6ed39d276732f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectWithResponseMockTests { @Test public void testGetDefaultBackupSecurityPinRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"mlfmkqs\",\"name\":\"azuawx\",\"type\":\"z\"}"; + String responseStr = "{\"id\":\"qwm\",\"name\":\"tx\",\"type\":\"jmxmcuqud\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testGetDefaultBackupSecurityPinRequestsObjectWithResponse() throws E new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DppBaseResource response = manager.resourceGuards() - .getDefaultBackupSecurityPinRequestsObjectWithResponse("vcpopmxe", "nwcl", "yjede", + .getDefaultBackupSecurityPinRequestsObjectWithResponse("tgplucfota", "gcfh", "ykzcugswvxwl", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectWithResponseMockTests.java index adf0acd3ee4d1..83de5fd67cbf2 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectWithResponseMockTests { @Test public void testGetDefaultDeleteProtectedItemRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"zob\",\"name\":\"opxlhslnelxieixy\",\"type\":\"llxecwc\"}"; + String responseStr = "{\"id\":\"gvriibakclac\",\"name\":\"fr\",\"type\":\"xousxauzl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testGetDefaultDeleteProtectedItemRequestsObjectWithResponse() throws new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DppBaseResource response = manager.resourceGuards() - .getDefaultDeleteProtectedItemRequestsObjectWithResponse("dsxwaab", "mifrygznmma", "ri", + .getDefaultDeleteProtectedItemRequestsObjectWithResponse("vpqcb", "rmbodt", "s", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponseMockTests.java index 3c0ecc3521ac2..87bdd8358cece 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponseMockTests { @Test public void testGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"urut\",\"name\":\"we\",\"type\":\"xwlalniexzsrzpg\"}"; + String responseStr = "{\"id\":\"mik\",\"name\":\"stbz\",\"type\":\"kiwbuqnyoph\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,8 @@ public void testGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponse() t new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DppBaseResource response = manager.resourceGuards() - .getDefaultDeleteResourceGuardProxyRequestsObjectWithResponse("belawumuaslzkwr", "woycqucwyha", - "nomdrkywuhpsv", com.azure.core.util.Context.NONE) + .getDefaultDeleteResourceGuardProxyRequestsObjectWithResponse("st", "vnlvxbcuiiznktwf", "nsnvpd", + com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectWithResponseMockTests.java index e5529de1524d5..bc3bd4adc33d0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectWithResponseMockTests { @Test public void testGetDefaultDisableSoftDeleteRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"chpp\",\"name\":\"prsnmokayzejn\",\"type\":\"lbkpb\"}"; + String responseStr = "{\"id\":\"ujztcz\",\"name\":\"tqjtwhauu\",\"type\":\"fprnjl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testGetDefaultDisableSoftDeleteRequestsObjectWithResponse() throws E new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DppBaseResource response = manager.resourceGuards() - .getDefaultDisableSoftDeleteRequestsObjectWithResponse("tmzlbiojlv", "hrbbpneqvcwwyy", "r", + .getDefaultDisableSoftDeleteRequestsObjectWithResponse("flqo", "quvre", "mrnjh", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectWithResponseMockTests.java index 9cc7bd6c1cfa1..9c48a3dc838d9 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectWithResponseMockTests { @Test public void testGetDefaultUpdateProtectedItemRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"ucljgkyexaoguya\",\"name\":\"p\",\"type\":\"dsdaultxijjumf\"}"; + String responseStr = "{\"id\":\"jpmspbpssdfppy\",\"name\":\"gt\",\"type\":\"eyujtvczkcnyxrx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,8 @@ public void testGetDefaultUpdateProtectedItemRequestsObjectWithResponse() throws new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DppBaseResource response = manager.resourceGuards() - .getDefaultUpdateProtectedItemRequestsObjectWithResponse("qtferrqwexjkmf", "apjwogqqnobpudcd", - "btqwpwyawbzas", com.azure.core.util.Context.NONE) + .getDefaultUpdateProtectedItemRequestsObjectWithResponse("szdtmaajquh", "xylrjvmtygjbmz", "ospspshckf", + com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectWithResponseMockTests.java index f00e670c52a0d..812453b5d316b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectWithResponseMockTests.java @@ -19,7 +19,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectWithResponseMockTests { @Test public void testGetDefaultUpdateProtectionPolicyRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"fh\",\"name\":\"l\",\"type\":\"qryxyn\"}"; + String responseStr = "{\"id\":\"qmhhaowj\",\"name\":\"mzvupor\",\"type\":\"zdfuydzvkfvxcnqm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,7 +29,7 @@ public void testGetDefaultUpdateProtectionPolicyRequestsObjectWithResponse() thr new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DppBaseResource response = manager.resourceGuards() - .getDefaultUpdateProtectionPolicyRequestsObjectWithResponse("svtui", "zh", "jqg", + .getDefaultUpdateProtectionPolicyRequestsObjectWithResponse("bcpzgpxtivh", "knidib", "qjxgpnrhgovfgp", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsMockTests.java index 765227419f361..73b9ebdd72078 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsMockTests.java @@ -20,7 +20,7 @@ public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsMockTests { @Test public void testGetDeleteProtectedItemRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"orq\",\"name\":\"bttzhraglkafhonq\",\"type\":\"ujeickp\"}]}"; + String responseStr = "{\"value\":[{\"id\":\"mk\",\"name\":\"svth\",\"type\":\"wpztekovmribia\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetDeleteProtectedItemRequestsObjects() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.resourceGuards() - .getDeleteProtectedItemRequestsObjects("ojphslhc", "wjutifdwfmv", com.azure.core.util.Context.NONE); + .getDeleteProtectedItemRequestsObjects("vsg", "wohqfzizvu", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsMockTests.java index a8f6252cb0b0e..eeff87bfca7f1 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsMockTests.java @@ -20,7 +20,8 @@ public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsMockTests { @Test public void testGetDeleteResourceGuardProxyRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"zyvli\",\"name\":\"q\",\"type\":\"rkcxkj\"}]}"; + String responseStr + = "{\"value\":[{\"id\":\"lfwyfwlwxjwetn\",\"name\":\"sihclafzvaylp\",\"type\":\"rsqqwztcm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +31,7 @@ public void testGetDeleteResourceGuardProxyRequestsObjects() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.resourceGuards() - .getDeleteResourceGuardProxyRequestsObjects("pqtybb", "wpgdak", com.azure.core.util.Context.NONE); + .getDeleteResourceGuardProxyRequestsObjects("fy", "sgcrpfbcunezzce", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsMockTests.java index 182ad628e8098..ecd9406cb57a7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsMockTests.java @@ -20,7 +20,7 @@ public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsMockTests { @Test public void testGetDisableSoftDeleteRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"olewjwi\",\"name\":\"ubwefqs\",\"type\":\"ap\"}]}"; + String responseStr = "{\"value\":[{\"id\":\"z\",\"name\":\"yn\",\"type\":\"nlqwzdvpiwhx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetDisableSoftDeleteRequestsObjects() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.resourceGuards() - .getDisableSoftDeleteRequestsObjects("pcpil", "hahzvechndbnwi", com.azure.core.util.Context.NONE); + .getDisableSoftDeleteRequestsObjects("tlxs", "rpddouifamo", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsMockTests.java index ef85942fb423e..bdcb767627036 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsMockTests.java @@ -20,7 +20,7 @@ public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsMockTests { @Test public void testGetUpdateProtectedItemRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"ngz\",\"name\":\"dqxtbjwgnyf\",\"type\":\"sf\"}]}"; + String responseStr = "{\"value\":[{\"id\":\"vbgkcvkhpzv\",\"name\":\"qdf\",\"type\":\"voniypfp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetUpdateProtectedItemRequestsObjects() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.resourceGuards() - .getUpdateProtectedItemRequestsObjects("waz", "nqnm", com.azure.core.util.Context.NONE); + .getUpdateProtectedItemRequestsObjects("unjdx", "glnkvxlxpagl", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsMockTests.java index 2c64775ed993c..706437f9a5f9a 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsMockTests.java @@ -20,7 +20,7 @@ public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsMockTests { @Test public void testGetUpdateProtectionPolicyRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"vf\",\"name\":\"lkvn\",\"type\":\"jlrigjkskyrioovz\"}]}"; + String responseStr = "{\"value\":[{\"id\":\"uwiwtglxxhljfpg\",\"name\":\"icrmnzh\",\"type\":\"gmqgjs\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetUpdateProtectionPolicyRequestsObjects() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.resourceGuards() - .getUpdateProtectionPolicyRequestsObjects("nzrdpsovwxz", "ptgoeiybbabp", com.azure.core.util.Context.NONE); + .getUpdateProtectionPolicyRequestsObjects("qpswokmvkhlggdhb", "mzqkz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupMockTests.java index 0e960b09aec16..8cc56df4f89f1 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupMockTests.java @@ -22,7 +22,7 @@ public final class ResourceGuardsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Provisioning\",\"allowAutoApprovals\":false,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"qqxlajr\",\"requestResourceType\":\"xaceve\"}],\"vaultCriticalOperationExclusionList\":[\"uyxoaf\",\"aoqltfaey\"],\"description\":\"nm\"},\"eTag\":\"vxirpghriypo\",\"location\":\"yhlqhykprlpyznu\",\"tags\":{\"yasiibmiy\":\"dsmexiitdfux\",\"nlj\":\"nnust\",\"mavmq\":\"nmgixh\"},\"id\":\"oudorhcgyyp\",\"name\":\"otwypundmb\",\"type\":\"hu\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"allowAutoApprovals\":true,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"qhndvnoam\",\"requestResourceType\":\"sehaohdjhhflzok\"},{\"vaultCriticalOperation\":\"ox\",\"requestResourceType\":\"lnjetaglt\"},{\"vaultCriticalOperation\":\"oatftgzpnpbswvef\",\"requestResourceType\":\"ccsrmozihmipgaw\"},{\"vaultCriticalOperation\":\"xp\",\"requestResourceType\":\"jcxcjxgrytfmpcyc\"}],\"vaultCriticalOperationExclusionList\":[\"mcayk\",\"gnoxuztrksx\"],\"description\":\"ndfcpfn\"},\"eTag\":\"thjtwk\",\"location\":\"osrxuzvoa\",\"tags\":{\"gxq\":\"cqiosmgbza\",\"katbhjm\":\"lyrtltlaprlt\"},\"id\":\"nnbsoqeqa\",\"name\":\"arvlagunbt\",\"type\":\"febwlnbmhyreeudz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.resourceGuards().listByResourceGroup("rfxeeebtij", com.azure.core.util.Context.NONE); + = manager.resourceGuards().listByResourceGroup("xjww", com.azure.core.util.Context.NONE); - Assertions.assertEquals("yhlqhykprlpyznu", response.iterator().next().location()); - Assertions.assertEquals("dsmexiitdfux", response.iterator().next().tags().get("yasiibmiy")); - Assertions.assertEquals("uyxoaf", + Assertions.assertEquals("osrxuzvoa", response.iterator().next().location()); + Assertions.assertEquals("cqiosmgbza", response.iterator().next().tags().get("gxq")); + Assertions.assertEquals("mcayk", response.iterator().next().properties().vaultCriticalOperationExclusionList().get(0)); - Assertions.assertEquals("vxirpghriypo", response.iterator().next().etag()); + Assertions.assertEquals("thjtwk", response.iterator().next().etag()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListMockTests.java index 8123072f4ed45..2857f51eb5876 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListMockTests.java @@ -22,7 +22,7 @@ public final class ResourceGuardsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Provisioning\",\"allowAutoApprovals\":false,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"or\",\"requestResourceType\":\"ftpmdtzfjltfv\"},{\"vaultCriticalOperation\":\"cyjtotpvop\",\"requestResourceType\":\"bdb\"}],\"vaultCriticalOperationExclusionList\":[\"qqihedsvqwthmk\",\"ibcysihsgqc\",\"dhohsdtmcdzsuf\"],\"description\":\"hdxbzlm\"},\"eTag\":\"uapcvhdbevwqqxe\",\"location\":\"ko\",\"tags\":{\"owxeqocljmy\":\"inkfkbgbz\",\"jeokbzefezrxccz\":\"vkzqk\",\"pqxbkwvzgnzvdf\":\"rtle\",\"mqpnoda\":\"zdix\"},\"id\":\"opqhewjptmc\",\"name\":\"sbostzel\",\"type\":\"dlat\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Unknown\",\"allowAutoApprovals\":false,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"xlyyzglgou\",\"requestResourceType\":\"lmjjyuo\"},{\"vaultCriticalOperation\":\"tob\",\"requestResourceType\":\"kjeytunl\"},{\"vaultCriticalOperation\":\"jkwrusnkq\",\"requestResourceType\":\"syrq\"},{\"vaultCriticalOperation\":\"jqhden\",\"requestResourceType\":\"ulkpakd\"}],\"vaultCriticalOperationExclusionList\":[\"mjnnawtq\",\"bpxuckpggqoweyi\",\"dhlisngwflqqmpi\"],\"description\":\"uwnpqxpxiwfcng\"},\"eTag\":\"aas\",\"location\":\"xtmkzjvkviir\",\"tags\":{\"ra\":\"grwsdp\",\"ctctbrxkjz\":\"zvzbglbyv\",\"bkgozxwopdbydpi\":\"rgxffmshkw\",\"nugj\":\"qaclnapxbiy\"},\"id\":\"nfsm\",\"name\":\"cttuxuu\",\"type\":\"i\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testList() throws Exception { PagedIterable response = manager.resourceGuards().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("ko", response.iterator().next().location()); - Assertions.assertEquals("inkfkbgbz", response.iterator().next().tags().get("owxeqocljmy")); - Assertions.assertEquals("qqihedsvqwthmk", + Assertions.assertEquals("xtmkzjvkviir", response.iterator().next().location()); + Assertions.assertEquals("grwsdp", response.iterator().next().tags().get("ra")); + Assertions.assertEquals("mjnnawtq", response.iterator().next().properties().vaultCriticalOperationExclusionList().get(0)); - Assertions.assertEquals("uapcvhdbevwqqxe", response.iterator().next().etag()); + Assertions.assertEquals("aas", response.iterator().next().etag()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutWithResponseMockTests.java index e9b79e202129d..98403e92a4121 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutWithResponseMockTests.java @@ -25,7 +25,7 @@ public final class ResourceGuardsPutWithResponseMockTests { @Test public void testPutWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Updating\",\"allowAutoApprovals\":true,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"yls\",\"requestResourceType\":\"rpfbcunezz\"},{\"vaultCriticalOperation\":\"zelfwyfwl\",\"requestResourceType\":\"jwetnpsihcla\"}],\"vaultCriticalOperationExclusionList\":[\"aylp\"],\"description\":\"sqqw\"},\"eTag\":\"cmwqkchcxwa\",\"location\":\"ewzjkjexfd\",\"tags\":{\"bffmbmxz\":\"hpsylkksh\",\"jx\":\"rgywwp\",\"gaao\":\"nptfujgi\",\"wemxswvruunzz\":\"pttaqutd\"},\"id\":\"gehkfkimrtixokff\",\"name\":\"yinljqe\",\"type\":\"qwhix\"}"; + = "{\"properties\":{\"provisioningState\":\"Unknown\",\"allowAutoApprovals\":true,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"gaztt\",\"requestResourceType\":\"o\"}],\"vaultCriticalOperationExclusionList\":[\"mfqhppubowse\",\"dfgkmtdh\",\"rngbtcjuahokqtob\"],\"description\":\"uxofshfphwpnulai\"},\"eTag\":\"zejywhslw\",\"location\":\"jpllndnpdwrpq\",\"tags\":{\"oc\":\"fugsnnfhyetefy\",\"vzuyturmlmu\":\"ctfjgtixr\",\"iropionszon\":\"wolba\"},\"id\":\"pngajin\",\"name\":\"ixjawrtm\",\"type\":\"fjmyccxlzhco\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,19 +35,18 @@ public void testPutWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ResourceGuardResource response = manager.resourceGuards() - .define("ryuzcbmqqv") - .withRegion("zvcjfelisdjubggb") - .withExistingResourceGroup("ljhlnymzotq") - .withTags(mapOf("m", "kxkbsazgakgacyr", "pv", "dmspof", "iofrzgbzjedmstk", "hryl")) - .withProperties( - new ResourceGuard().withVaultCriticalOperationExclusionList(Arrays.asList("fvwbcb", "embnkbw"))) - .withEtag("wfmdurage") + .define("tvqylkmqpzoyhlfb") + .withRegion("auo") + .withExistingResourceGroup("jedmurrxxgewp") + .withTags(mapOf("kyefchnmnahmnxhk", "uartvti", "ooxf", "jqirwrw")) + .withProperties(new ResourceGuard().withVaultCriticalOperationExclusionList(Arrays.asList("ofoiy", "w"))) + .withEtag("olvdnd") .create(); - Assertions.assertEquals("ewzjkjexfd", response.location()); - Assertions.assertEquals("hpsylkksh", response.tags().get("bffmbmxz")); - Assertions.assertEquals("aylp", response.properties().vaultCriticalOperationExclusionList().get(0)); - Assertions.assertEquals("cmwqkchcxwa", response.etag()); + Assertions.assertEquals("jpllndnpdwrpq", response.location()); + Assertions.assertEquals("fugsnnfhyetefy", response.tags().get("oc")); + Assertions.assertEquals("mfqhppubowse", response.properties().vaultCriticalOperationExclusionList().get(0)); + Assertions.assertEquals("zejywhslw", response.etag()); } // Use "Map.of" if available diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangeTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangeTests.java index b5a3c52c311d4..b6bd00910413c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangeTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangeTests.java @@ -11,11 +11,11 @@ public final class RestorableTimeRangeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RestorableTimeRange model = BinaryData - .fromString("{\"startTime\":\"a\",\"endTime\":\"sgvvsccyajguq\",\"objectType\":\"wygzlvdnkfxusem\"}") - .toObject(RestorableTimeRange.class); - Assertions.assertEquals("a", model.startTime()); - Assertions.assertEquals("sgvvsccyajguq", model.endTime()); - Assertions.assertEquals("wygzlvdnkfxusem", model.objectType()); + RestorableTimeRange model + = BinaryData.fromString("{\"startTime\":\"vtldgmfpgvmpip\",\"endTime\":\"slthaq\",\"objectType\":\"ss\"}") + .toObject(RestorableTimeRange.class); + Assertions.assertEquals("vtldgmfpgvmpip", model.startTime()); + Assertions.assertEquals("slthaq", model.endTime()); + Assertions.assertEquals("ss", model.objectType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindWithResponseMockTests.java index 6da4234faf011..5360b21e6d379 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindWithResponseMockTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class RestorableTimeRangesFindWithResponseMockTests { @Test public void testFindWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"iibakcl\",\"endTime\":\"c\",\"objectType\":\"rnxousxauzlwvsg\"},{\"startTime\":\"wohqfzizvu\",\"endTime\":\"mmkjsvthnwpztek\",\"objectType\":\"mribiat\"},{\"startTime\":\"gplucfotangcfhny\",\"endTime\":\"zcugswvxwlmzqw\",\"objectType\":\"tx\"}],\"objectType\":\"mxmcuqudtcvclxy\"},\"id\":\"dkvgfabuiyjibuzp\",\"name\":\"ugneikn\",\"type\":\"oxgjiuqhibt\"}"; + = "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"yqyybxubmdna\",\"endTime\":\"cbq\",\"objectType\":\"e\"}],\"objectType\":\"ela\"},\"id\":\"cigeleohdbvqvw\",\"name\":\"jopwbeonrlkwz\",\"type\":\"ybxc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testFindWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AzureBackupFindRestorableTimeRangesResponseResource response = manager.restorableTimeRanges() - .findWithResponse("zqkzszuwi", "tglxx", "ljfp", + .findWithResponse("wjqo", "ueayfbpcmsplb", "rrueqthwmg", new AzureBackupFindRestorableTimeRangesRequest() - .withSourceDataStoreType(RestoreSourceDataStoreType.ARCHIVE_STORE) - .withStartTime("crmnzhrgmqgjs") - .withEndTime("pqcbfrmbodthsq"), + .withSourceDataStoreType(RestoreSourceDataStoreType.VAULT_STORE) + .withStartTime("scbbxig") + .withEndTime("xiidloped"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("iibakcl", response.properties().restorableTimeRanges().get(0).startTime()); - Assertions.assertEquals("c", response.properties().restorableTimeRanges().get(0).endTime()); - Assertions.assertEquals("rnxousxauzlwvsg", response.properties().restorableTimeRanges().get(0).objectType()); - Assertions.assertEquals("mxmcuqudtcvclxy", response.properties().objectType()); + Assertions.assertEquals("yqyybxubmdna", response.properties().restorableTimeRanges().get(0).startTime()); + Assertions.assertEquals("cbq", response.properties().restorableTimeRanges().get(0).endTime()); + Assertions.assertEquals("e", response.properties().restorableTimeRanges().get(0).objectType()); + Assertions.assertEquals("ela", response.properties().objectType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFromDppCrossTenantVaultsFindWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFromDppCrossTenantVaultsFindWithResponseMockTests.java new file mode 100644 index 0000000000000..91d1679e1a240 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFromDppCrossTenantVaultsFindWithResponseMockTests.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest; +import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesResponseResource; +import com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreType; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RestorableTimeRangesFromDppCrossTenantVaultsFindWithResponseMockTests { + @Test + public void testFindWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"vjglrocuyzlwhhme\",\"endTime\":\"hoocl\",\"objectType\":\"n\"}],\"objectType\":\"memczjkmmyk\"},\"id\":\"jxsglhsr\",\"name\":\"yejylmbkzudnigrf\",\"type\":\"otjewlpxuzzjgnre\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + AzureBackupFindRestorableTimeRangesResponseResource response + = manager.restorableTimeRangesFromDppCrossTenantVaults() + .findWithResponse("lhikcyychunsj", "pjrtws", "hv", "uic", + new AzureBackupFindRestorableTimeRangesRequest() + .withSourceDataStoreType(RestoreSourceDataStoreType.VAULT_STORE) + .withStartTime("trrmhwrb") + .withEndTime("pyf"), + com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("vjglrocuyzlwhhme", response.properties().restorableTimeRanges().get(0).startTime()); + Assertions.assertEquals("hoocl", response.properties().restorableTimeRanges().get(0).endTime()); + Assertions.assertEquals("n", response.properties().restorableTimeRanges().get(0).objectType()); + Assertions.assertEquals("memczjkmmyk", response.properties().objectType()); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreJobRecoveryPointDetailsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreJobRecoveryPointDetailsTests.java index d6091c24c7926..e2cd040a9ca9b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreJobRecoveryPointDetailsTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreJobRecoveryPointDetailsTests.java @@ -12,10 +12,10 @@ public final class RestoreJobRecoveryPointDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RestoreJobRecoveryPointDetails model = BinaryData - .fromString("{\"recoveryPointID\":\"snrbgyefrymsgao\",\"recoveryPointTime\":\"2020-12-25T11:28:29Z\"}") - .toObject(RestoreJobRecoveryPointDetails.class); - Assertions.assertEquals("snrbgyefrymsgao", model.recoveryPointId()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-25T11:28:29Z"), model.recoveryPointTime()); + RestoreJobRecoveryPointDetails model + = BinaryData.fromString("{\"recoveryPointID\":\"oi\",\"recoveryPointTime\":\"2021-03-06T20:05:06Z\"}") + .toObject(RestoreJobRecoveryPointDetails.class); + Assertions.assertEquals("oi", model.recoveryPointId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-06T20:05:06Z"), model.recoveryPointTime()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoresFromDppCrossTenantVaultsTriggerMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoresFromDppCrossTenantVaultsTriggerMockTests.java new file mode 100644 index 0000000000000..a0c45af9cd444 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoresFromDppCrossTenantVaultsTriggerMockTests.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; +import com.azure.resourcemanager.dataprotection.models.IdentityDetails; +import com.azure.resourcemanager.dataprotection.models.OperationJobExtendedInfo; +import com.azure.resourcemanager.dataprotection.models.RecoveryOption; +import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase; +import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RestoresFromDppCrossTenantVaultsTriggerMockTests { + @Test + public void testTrigger() throws Exception { + String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"hbhlvbm\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + OperationJobExtendedInfo response + = manager.restoresFromDppCrossTenantVaults() + .trigger("fppdbwnu", "gahxkumasjcaa", "fdmmcpug", "ehqepvufhbzehe", new AzureBackupRestoreRequest() + .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) + .withRestoreLocation("qhnlbqnbld")) + .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE) + .withSourceResourceId("clgsc") + .withResourceGuardOperationRequests(Arrays.asList("imkrsrrmouc")) + .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) + .withUserAssignedIdentityArmUrl("puviyfcaabe")), + com.azure.core.util.Context.NONE); + + Assertions.assertEquals("hbhlvbm", response.jobId()); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RetentionTagTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RetentionTagTests.java index b937f9647b409..4bb66db191d19 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RetentionTagTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RetentionTagTests.java @@ -11,15 +11,15 @@ public final class RetentionTagTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RetentionTag model = BinaryData.fromString("{\"eTag\":\"gsahmkycgrauw\",\"id\":\"etaebu\",\"tagName\":\"u\"}") + RetentionTag model = BinaryData.fromString("{\"eTag\":\"vewzcj\",\"id\":\"m\",\"tagName\":\"cpmguaadraufact\"}") .toObject(RetentionTag.class); - Assertions.assertEquals("u", model.tagName()); + Assertions.assertEquals("cpmguaadraufact", model.tagName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RetentionTag model = new RetentionTag().withTagName("u"); + RetentionTag model = new RetentionTag().withTagName("cpmguaadraufact"); model = BinaryData.fromObject(model).toObject(RetentionTag.class); - Assertions.assertEquals("u", model.tagName()); + Assertions.assertEquals("cpmguaadraufact", model.tagName()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedBackupCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedBackupCriteriaTests.java index ec88a0614824f..b1d6691636905 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedBackupCriteriaTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedBackupCriteriaTests.java @@ -19,37 +19,37 @@ public final class ScheduleBasedBackupCriteriaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScheduleBasedBackupCriteria model = BinaryData.fromString( - "{\"objectType\":\"ScheduleBasedBackupCriteria\",\"absoluteCriteria\":[\"AllBackup\"],\"daysOfMonth\":[{\"date\":1595958724,\"isLast\":false},{\"date\":1293750730,\"isLast\":true},{\"date\":1790091997,\"isLast\":false},{\"date\":323713899,\"isLast\":true}],\"daysOfTheWeek\":[\"Thursday\",\"Thursday\",\"Tuesday\",\"Saturday\"],\"monthsOfYear\":[\"July\",\"April\",\"June\"],\"scheduleTimes\":[\"2021-03-10T22:25:44Z\",\"2021-04-25T00:37:55Z\",\"2021-04-05T04:34:32Z\"],\"weeksOfTheMonth\":[\"First\",\"Third\",\"Last\"]}") + "{\"objectType\":\"ScheduleBasedBackupCriteria\",\"absoluteCriteria\":[\"FirstOfWeek\",\"FirstOfDay\",\"FirstOfWeek\",\"AllBackup\"],\"daysOfMonth\":[{\"date\":2094171015,\"isLast\":true},{\"date\":1999414611,\"isLast\":true},{\"date\":1581877796,\"isLast\":false},{\"date\":1937456044,\"isLast\":false}],\"daysOfTheWeek\":[\"Wednesday\",\"Saturday\",\"Monday\",\"Wednesday\"],\"monthsOfYear\":[\"August\"],\"scheduleTimes\":[\"2021-02-16T13:24:10Z\"],\"weeksOfTheMonth\":[\"Third\"]}") .toObject(ScheduleBasedBackupCriteria.class); - Assertions.assertEquals(AbsoluteMarker.ALL_BACKUP, model.absoluteCriteria().get(0)); - Assertions.assertEquals(1595958724, model.daysOfMonth().get(0).date()); - Assertions.assertFalse(model.daysOfMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.daysOfTheWeek().get(0)); - Assertions.assertEquals(Month.JULY, model.monthsOfYear().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-10T22:25:44Z"), model.scheduleTimes().get(0)); - Assertions.assertEquals(WeekNumber.FIRST, model.weeksOfTheMonth().get(0)); + Assertions.assertEquals(AbsoluteMarker.FIRST_OF_WEEK, model.absoluteCriteria().get(0)); + Assertions.assertEquals(2094171015, model.daysOfMonth().get(0).date()); + Assertions.assertTrue(model.daysOfMonth().get(0).isLast()); + Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.daysOfTheWeek().get(0)); + Assertions.assertEquals(Month.AUGUST, model.monthsOfYear().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T13:24:10Z"), model.scheduleTimes().get(0)); + Assertions.assertEquals(WeekNumber.THIRD, model.weeksOfTheMonth().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScheduleBasedBackupCriteria model - = new ScheduleBasedBackupCriteria().withAbsoluteCriteria(Arrays.asList(AbsoluteMarker.ALL_BACKUP)) - .withDaysOfMonth(Arrays.asList(new Day().withDate(1595958724).withIsLast(false), - new Day().withDate(1293750730).withIsLast(true), new Day().withDate(1790091997).withIsLast(false), - new Day().withDate(323713899).withIsLast(true))) - .withDaysOfTheWeek( - Arrays.asList(DayOfWeek.THURSDAY, DayOfWeek.THURSDAY, DayOfWeek.TUESDAY, DayOfWeek.SATURDAY)) - .withMonthsOfYear(Arrays.asList(Month.JULY, Month.APRIL, Month.JUNE)) - .withScheduleTimes(Arrays.asList(OffsetDateTime.parse("2021-03-10T22:25:44Z"), - OffsetDateTime.parse("2021-04-25T00:37:55Z"), OffsetDateTime.parse("2021-04-05T04:34:32Z"))) - .withWeeksOfTheMonth(Arrays.asList(WeekNumber.FIRST, WeekNumber.THIRD, WeekNumber.LAST)); + ScheduleBasedBackupCriteria model = new ScheduleBasedBackupCriteria() + .withAbsoluteCriteria(Arrays.asList(AbsoluteMarker.FIRST_OF_WEEK, AbsoluteMarker.FIRST_OF_DAY, + AbsoluteMarker.FIRST_OF_WEEK, AbsoluteMarker.ALL_BACKUP)) + .withDaysOfMonth(Arrays.asList(new Day().withDate(2094171015).withIsLast(true), + new Day().withDate(1999414611).withIsLast(true), new Day().withDate(1581877796).withIsLast(false), + new Day().withDate(1937456044).withIsLast(false))) + .withDaysOfTheWeek( + Arrays.asList(DayOfWeek.WEDNESDAY, DayOfWeek.SATURDAY, DayOfWeek.MONDAY, DayOfWeek.WEDNESDAY)) + .withMonthsOfYear(Arrays.asList(Month.AUGUST)) + .withScheduleTimes(Arrays.asList(OffsetDateTime.parse("2021-02-16T13:24:10Z"))) + .withWeeksOfTheMonth(Arrays.asList(WeekNumber.THIRD)); model = BinaryData.fromObject(model).toObject(ScheduleBasedBackupCriteria.class); - Assertions.assertEquals(AbsoluteMarker.ALL_BACKUP, model.absoluteCriteria().get(0)); - Assertions.assertEquals(1595958724, model.daysOfMonth().get(0).date()); - Assertions.assertFalse(model.daysOfMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.daysOfTheWeek().get(0)); - Assertions.assertEquals(Month.JULY, model.monthsOfYear().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-10T22:25:44Z"), model.scheduleTimes().get(0)); - Assertions.assertEquals(WeekNumber.FIRST, model.weeksOfTheMonth().get(0)); + Assertions.assertEquals(AbsoluteMarker.FIRST_OF_WEEK, model.absoluteCriteria().get(0)); + Assertions.assertEquals(2094171015, model.daysOfMonth().get(0).date()); + Assertions.assertTrue(model.daysOfMonth().get(0).isLast()); + Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.daysOfTheWeek().get(0)); + Assertions.assertEquals(Month.AUGUST, model.monthsOfYear().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T13:24:10Z"), model.scheduleTimes().get(0)); + Assertions.assertEquals(WeekNumber.THIRD, model.weeksOfTheMonth().get(0)); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedTriggerContextTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedTriggerContextTests.java index 2cab021e441ca..c267796025d68 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedTriggerContextTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedTriggerContextTests.java @@ -17,46 +17,48 @@ public final class ScheduleBasedTriggerContextTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScheduleBasedTriggerContext model = BinaryData.fromString( - "{\"objectType\":\"ScheduleBasedTriggerContext\",\"schedule\":{\"repeatingTimeIntervals\":[\"movsmzlxwabmqoe\",\"kif\"],\"timeZone\":\"tpuqujmq\"},\"taggingCriteria\":[{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":false,\"taggingPriority\":2595329865796026079,\"tagInfo\":{\"eTag\":\"oaongbjc\",\"id\":\"ujitcjedftww\",\"tagName\":\"ezkojvdcp\"}},{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":true,\"taggingPriority\":6364486515251999629,\"tagInfo\":{\"eTag\":\"cybxa\",\"id\":\"gszufoxciqopid\",\"tagName\":\"amcio\"}},{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":false,\"taggingPriority\":7478138751380304372,\"tagInfo\":{\"eTag\":\"khnzbonlw\",\"id\":\"oegokdwbwh\",\"tagName\":\"szzcmrvexztv\"}}]}") + "{\"objectType\":\"ScheduleBasedTriggerContext\",\"schedule\":{\"repeatingTimeIntervals\":[\"hzovaj\",\"ziuxxpshnee\",\"ulfgslqu\",\"kwdlenrdsutujba\"],\"timeZone\":\"juohminyflnorw\"},\"taggingCriteria\":[{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":false,\"taggingPriority\":6592682584026148798,\"tagInfo\":{\"eTag\":\"vxwmygd\",\"id\":\"gpqch\",\"tagName\":\"sze\"}},{\"criteria\":[{\"objectType\":\"BackupCriteria\"}],\"isDefault\":true,\"taggingPriority\":6219904994785247374,\"tagInfo\":{\"eTag\":\"xgibbda\",\"id\":\"onfo\",\"tagName\":\"auorsukokw\"}},{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":false,\"taggingPriority\":2795143579421655198,\"tagInfo\":{\"eTag\":\"nuuepzlrp\",\"id\":\"zsoldwey\",\"tagName\":\"qdunvmnnrwrbior\"}},{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":false,\"taggingPriority\":2046569881616478612,\"tagInfo\":{\"eTag\":\"hhg\",\"id\":\"hxmsivfo\",\"tagName\":\"iloxggdufiq\"}}]}") .toObject(ScheduleBasedTriggerContext.class); - Assertions.assertEquals("movsmzlxwabmqoe", model.schedule().repeatingTimeIntervals().get(0)); - Assertions.assertEquals("tpuqujmq", model.schedule().timeZone()); + Assertions.assertEquals("hzovaj", model.schedule().repeatingTimeIntervals().get(0)); + Assertions.assertEquals("juohminyflnorw", model.schedule().timeZone()); Assertions.assertFalse(model.taggingCriteria().get(0).isDefault()); - Assertions.assertEquals(2595329865796026079L, model.taggingCriteria().get(0).taggingPriority()); - Assertions.assertEquals("ezkojvdcp", model.taggingCriteria().get(0).tagInfo().tagName()); + Assertions.assertEquals(6592682584026148798L, model.taggingCriteria().get(0).taggingPriority()); + Assertions.assertEquals("sze", model.taggingCriteria().get(0).tagInfo().tagName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ScheduleBasedTriggerContext model - = new ScheduleBasedTriggerContext() - .withSchedule(new BackupSchedule().withRepeatingTimeIntervals(Arrays.asList("movsmzlxwabmqoe", "kif")) - .withTimeZone("tpuqujmq")) - .withTaggingCriteria( - Arrays.asList( - new TaggingCriteria() - .withCriteria( - Arrays.asList(new BackupCriteria(), new BackupCriteria(), new BackupCriteria())) - .withIsDefault(false) - .withTaggingPriority(2595329865796026079L) - .withTagInfo(new RetentionTag().withTagName("ezkojvdcp")), - new TaggingCriteria() - .withCriteria(Arrays.asList(new BackupCriteria(), new BackupCriteria(), - new BackupCriteria(), new BackupCriteria())) - .withIsDefault(true) - .withTaggingPriority(6364486515251999629L) - .withTagInfo(new RetentionTag().withTagName("amcio")), - new TaggingCriteria() - .withCriteria(Arrays.asList(new BackupCriteria(), new BackupCriteria(), - new BackupCriteria(), new BackupCriteria())) - .withIsDefault(false) - .withTaggingPriority(7478138751380304372L) - .withTagInfo(new RetentionTag().withTagName("szzcmrvexztv")))); + ScheduleBasedTriggerContext model = new ScheduleBasedTriggerContext() + .withSchedule(new BackupSchedule() + .withRepeatingTimeIntervals(Arrays.asList("hzovaj", "ziuxxpshnee", "ulfgslqu", "kwdlenrdsutujba")) + .withTimeZone("juohminyflnorw")) + .withTaggingCriteria(Arrays.asList( + new TaggingCriteria() + .withCriteria(Arrays.asList(new BackupCriteria(), new BackupCriteria(), new BackupCriteria(), + new BackupCriteria())) + .withIsDefault(false) + .withTaggingPriority(6592682584026148798L) + .withTagInfo(new RetentionTag().withTagName("sze")), + new TaggingCriteria().withCriteria(Arrays.asList(new BackupCriteria())) + .withIsDefault(true) + .withTaggingPriority(6219904994785247374L) + .withTagInfo(new RetentionTag().withTagName("auorsukokw")), + new TaggingCriteria() + .withCriteria(Arrays.asList(new BackupCriteria(), new BackupCriteria(), new BackupCriteria(), + new BackupCriteria())) + .withIsDefault(false) + .withTaggingPriority(2795143579421655198L) + .withTagInfo(new RetentionTag().withTagName("qdunvmnnrwrbior")), + new TaggingCriteria() + .withCriteria(Arrays.asList(new BackupCriteria(), new BackupCriteria(), new BackupCriteria())) + .withIsDefault(false) + .withTaggingPriority(2046569881616478612L) + .withTagInfo(new RetentionTag().withTagName("iloxggdufiq")))); model = BinaryData.fromObject(model).toObject(ScheduleBasedTriggerContext.class); - Assertions.assertEquals("movsmzlxwabmqoe", model.schedule().repeatingTimeIntervals().get(0)); - Assertions.assertEquals("tpuqujmq", model.schedule().timeZone()); + Assertions.assertEquals("hzovaj", model.schedule().repeatingTimeIntervals().get(0)); + Assertions.assertEquals("juohminyflnorw", model.schedule().timeZone()); Assertions.assertFalse(model.taggingCriteria().get(0).isDefault()); - Assertions.assertEquals(2595329865796026079L, model.taggingCriteria().get(0).taggingPriority()); - Assertions.assertEquals("ezkojvdcp", model.taggingCriteria().get(0).tagInfo().tagName()); + Assertions.assertEquals(6592682584026148798L, model.taggingCriteria().get(0).taggingPriority()); + Assertions.assertEquals("sze", model.taggingCriteria().get(0).tagInfo().tagName()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SourceLifeCycleTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SourceLifeCycleTests.java index 6806c96ebbef4..be380689e559e 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SourceLifeCycleTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SourceLifeCycleTests.java @@ -18,30 +18,38 @@ public final class SourceLifeCycleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SourceLifeCycle model = BinaryData.fromString( - "{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"xgfpelolppv\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"r\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"jzraehtwdwrf\"}}]}") + "{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"ordilmywwtkgkxny\"},\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"abgyvudt\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"bcihxuuwhc\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"xccybvpa\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"kkudzp\"}}]}") .toObject(SourceLifeCycle.class); - Assertions.assertEquals("xgfpelolppv", model.deleteAfter().duration()); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.sourceDataStore().dataStoreType()); - Assertions.assertEquals("r", model.sourceDataStore().objectType()); + Assertions.assertEquals("ordilmywwtkgkxny", model.deleteAfter().duration()); + Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.sourceDataStore().dataStoreType()); + Assertions.assertEquals("abgyvudt", model.sourceDataStore().objectType()); Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.targetDataStoreCopySettings().get(0).dataStore().dataStoreType()); - Assertions.assertEquals("jzraehtwdwrf", model.targetDataStoreCopySettings().get(0).dataStore().objectType()); + Assertions.assertEquals("bcihxuuwhc", model.targetDataStoreCopySettings().get(0).dataStore().objectType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SourceLifeCycle model = new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("xgfpelolppv")) - .withSourceDataStore( - new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE).withObjectType("r")) - .withTargetDataStoreCopySettings(Arrays.asList(new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) - .withObjectType("jzraehtwdwrf")))); + SourceLifeCycle model + = new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("ordilmywwtkgkxny")) + .withSourceDataStore( + new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE).withObjectType("abgyvudt")) + .withTargetDataStoreCopySettings(Arrays.asList( + new TargetCopySetting().withCopyAfter(new CopyOption()) + .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) + .withObjectType("bcihxuuwhc")), + new TargetCopySetting().withCopyAfter(new CopyOption()) + .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) + .withObjectType("xccybvpa")), + new TargetCopySetting().withCopyAfter(new CopyOption()) + .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.ARCHIVE_STORE) + .withObjectType("kkudzp")))); model = BinaryData.fromObject(model).toObject(SourceLifeCycle.class); - Assertions.assertEquals("xgfpelolppv", model.deleteAfter().duration()); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.sourceDataStore().dataStoreType()); - Assertions.assertEquals("r", model.sourceDataStore().objectType()); + Assertions.assertEquals("ordilmywwtkgkxny", model.deleteAfter().duration()); + Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.sourceDataStore().dataStoreType()); + Assertions.assertEquals("abgyvudt", model.sourceDataStore().objectType()); Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.targetDataStoreCopySettings().get(0).dataStore().dataStoreType()); - Assertions.assertEquals("jzraehtwdwrf", model.targetDataStoreCopySettings().get(0).dataStore().objectType()); + Assertions.assertEquals("bcihxuuwhc", model.targetDataStoreCopySettings().get(0).dataStore().objectType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SupportedFeatureTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SupportedFeatureTests.java index 712531aec8d35..e0f017e5c81db 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SupportedFeatureTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SupportedFeatureTests.java @@ -13,10 +13,10 @@ public final class SupportedFeatureTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SupportedFeature model = BinaryData.fromString( - "{\"featureName\":\"uziycsl\",\"supportStatus\":\"GenerallyAvailable\",\"exposureControlledFeatures\":[\"ztcktyh\",\"tqedcgzulwm\",\"rqzz\",\"rjvpglydzgkrvqee\"]}") + "{\"featureName\":\"gnitgvkxlzyq\",\"supportStatus\":\"PrivatePreview\",\"exposureControlledFeatures\":[\"cealzxwh\",\"ansym\",\"yqhlwigdivbkbx\"]}") .toObject(SupportedFeature.class); - Assertions.assertEquals("uziycsl", model.featureName()); - Assertions.assertEquals(FeatureSupportStatus.GENERALLY_AVAILABLE, model.supportStatus()); - Assertions.assertEquals("ztcktyh", model.exposureControlledFeatures().get(0)); + Assertions.assertEquals("gnitgvkxlzyq", model.featureName()); + Assertions.assertEquals(FeatureSupportStatus.PRIVATE_PREVIEW, model.supportStatus()); + Assertions.assertEquals("cealzxwh", model.exposureControlledFeatures().get(0)); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TaggingCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TaggingCriteriaTests.java index 34cfcfdca90cc..10ae16298e595 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TaggingCriteriaTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TaggingCriteriaTests.java @@ -15,24 +15,22 @@ public final class TaggingCriteriaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TaggingCriteria model = BinaryData.fromString( - "{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":true,\"taggingPriority\":3817849966827949741,\"tagInfo\":{\"eTag\":\"fobwy\",\"id\":\"kby\",\"tagName\":\"utwpfhp\"}}") + "{\"criteria\":[{\"objectType\":\"BackupCriteria\"}],\"isDefault\":false,\"taggingPriority\":8892495531853240884,\"tagInfo\":{\"eTag\":\"pevf\",\"id\":\"b\",\"tagName\":\"rrilbywdxsmic\"}}") .toObject(TaggingCriteria.class); - Assertions.assertTrue(model.isDefault()); - Assertions.assertEquals(3817849966827949741L, model.taggingPriority()); - Assertions.assertEquals("utwpfhp", model.tagInfo().tagName()); + Assertions.assertFalse(model.isDefault()); + Assertions.assertEquals(8892495531853240884L, model.taggingPriority()); + Assertions.assertEquals("rrilbywdxsmic", model.tagInfo().tagName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TaggingCriteria model = new TaggingCriteria() - .withCriteria( - Arrays.asList(new BackupCriteria(), new BackupCriteria(), new BackupCriteria(), new BackupCriteria())) - .withIsDefault(true) - .withTaggingPriority(3817849966827949741L) - .withTagInfo(new RetentionTag().withTagName("utwpfhp")); + TaggingCriteria model = new TaggingCriteria().withCriteria(Arrays.asList(new BackupCriteria())) + .withIsDefault(false) + .withTaggingPriority(8892495531853240884L) + .withTagInfo(new RetentionTag().withTagName("rrilbywdxsmic")); model = BinaryData.fromObject(model).toObject(TaggingCriteria.class); - Assertions.assertTrue(model.isDefault()); - Assertions.assertEquals(3817849966827949741L, model.taggingPriority()); - Assertions.assertEquals("utwpfhp", model.tagInfo().tagName()); + Assertions.assertFalse(model.isDefault()); + Assertions.assertEquals(8892495531853240884L, model.taggingPriority()); + Assertions.assertEquals("rrilbywdxsmic", model.tagInfo().tagName()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetCopySettingTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetCopySettingTests.java index be3c42ffd6737..8929cad04bdd1 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetCopySettingTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetCopySettingTests.java @@ -15,19 +15,19 @@ public final class TargetCopySettingTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetCopySetting model = BinaryData.fromString( - "{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"shfwpracstwity\"}}") + "{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"dg\"}}") .toObject(TargetCopySetting.class); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.dataStore().dataStoreType()); - Assertions.assertEquals("shfwpracstwity", model.dataStore().objectType()); + Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.dataStore().dataStoreType()); + Assertions.assertEquals("dg", model.dataStore().objectType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TargetCopySetting model = new TargetCopySetting().withCopyAfter(new CopyOption()) .withDataStore( - new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE).withObjectType("shfwpracstwity")); + new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE).withObjectType("dg")); model = BinaryData.fromObject(model).toObject(TargetCopySetting.class); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.dataStore().dataStoreType()); - Assertions.assertEquals("shfwpracstwity", model.dataStore().objectType()); + Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.dataStore().dataStoreType()); + Assertions.assertEquals("dg", model.dataStore().objectType()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteRequestTests.java index 608739333ccd4..b93c0f35f1c6a 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteRequestTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteRequestTests.java @@ -13,19 +13,19 @@ public final class UnlockDeleteRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UnlockDeleteRequest model = BinaryData.fromString( - "{\"resourceGuardOperationRequests\":[\"dncj\",\"xonbzoggculapz\"],\"resourceToBeDeleted\":\"rpgogtqxep\"}") + "{\"resourceGuardOperationRequests\":[\"la\",\"hnfhqlyvijouwi\"],\"resourceToBeDeleted\":\"xoyzunbix\"}") .toObject(UnlockDeleteRequest.class); - Assertions.assertEquals("dncj", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("rpgogtqxep", model.resourceToBeDeleted()); + Assertions.assertEquals("la", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("xoyzunbix", model.resourceToBeDeleted()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { UnlockDeleteRequest model - = new UnlockDeleteRequest().withResourceGuardOperationRequests(Arrays.asList("dncj", "xonbzoggculapz")) - .withResourceToBeDeleted("rpgogtqxep"); + = new UnlockDeleteRequest().withResourceGuardOperationRequests(Arrays.asList("la", "hnfhqlyvijouwi")) + .withResourceToBeDeleted("xoyzunbix"); model = BinaryData.fromObject(model).toObject(UnlockDeleteRequest.class); - Assertions.assertEquals("dncj", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("rpgogtqxep", model.resourceToBeDeleted()); + Assertions.assertEquals("la", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("xoyzunbix", model.resourceToBeDeleted()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteResponseInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteResponseInnerTests.java index 87de60f5fd896..1b98e05c5b2d0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteResponseInnerTests.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteResponseInnerTests.java @@ -12,7 +12,7 @@ public final class UnlockDeleteResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UnlockDeleteResponseInner model - = BinaryData.fromString("{\"unlockDeleteExpiryTime\":\"lbfu\"}").toObject(UnlockDeleteResponseInner.class); - Assertions.assertEquals("lbfu", model.unlockDeleteExpiryTime()); + = BinaryData.fromString("{\"unlockDeleteExpiryTime\":\"ti\"}").toObject(UnlockDeleteResponseInner.class); + Assertions.assertEquals("ti", model.unlockDeleteExpiryTime()); } } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreFromDppCrossTenantVaultsTriggerMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreFromDppCrossTenantVaultsTriggerMockTests.java new file mode 100644 index 0000000000000..51e91418e103f --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreFromDppCrossTenantVaultsTriggerMockTests.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.dataprotection.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.dataprotection.DataProtectionManager; +import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; +import com.azure.resourcemanager.dataprotection.models.IdentityDetails; +import com.azure.resourcemanager.dataprotection.models.OperationJobExtendedInfo; +import com.azure.resourcemanager.dataprotection.models.RecoveryOption; +import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase; +import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; +import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObject; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ValidateRestoreFromDppCrossTenantVaultsTriggerMockTests { + @Test + public void testTrigger() throws Exception { + String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"vbrdfjmzsyzfho\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + DataProtectionManager manager = DataProtectionManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + OperationJobExtendedInfo response = manager.validateRestoreFromDppCrossTenantVaults() + .trigger("uqibsxtkcu", "fbsfarfsiow", "kjxnqpvwgfstmhq", "kizmdksaoafclu", + new ValidateRestoreRequestObject().withRestoreRequestObject(new AzureBackupRestoreRequest() + .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) + .withRestoreLocation("xmycjimryvwgcw")) + .withSourceDataStoreType(SourceDataStoreType.ARCHIVE_STORE) + .withSourceResourceId("mzgwe") + .withResourceGuardOperationRequests(Arrays.asList("sxwef", "hecbvopwndyq")) + .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) + .withUserAssignedIdentityArmUrl("klmtkhlowkx"))), + com.azure.core.util.Context.NONE); + + Assertions.assertEquals("vbrdfjmzsyzfho", response.jobId()); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/tsp-location.yaml b/sdk/dataprotection/azure-resourcemanager-dataprotection/tsp-location.yaml index 00858b3c86463..85252d835df1a 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/tsp-location.yaml +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/dataprotection/resource-manager/Microsoft.DataProtection/DataProtection -commit: eee059b61034c9a1d920083e801a389f8703fba1 +commit: caec1e2883d6f1487920816785df442bea525326 repo: Azure/azure-rest-api-specs additionalDirectories: diff --git a/sdk/spring/spring-cloud-azure-starter-servicebus-jms/pom.xml b/sdk/spring/spring-cloud-azure-starter-servicebus-jms/pom.xml index 93557e043243e..1b31055bb9cf4 100644 --- a/sdk/spring/spring-cloud-azure-starter-servicebus-jms/pom.xml +++ b/sdk/spring/spring-cloud-azure-starter-servicebus-jms/pom.xml @@ -106,7 +106,7 @@ currently released version and a lower version is resolved. --> io.netty netty-buffer - 4.2.19.Final + 4.2.17.Final io.netty