From 0ff7374709050e2d27854c21e7701cdd1051c830 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 2 Dec 2024 05:37:48 +0000 Subject: [PATCH] CodeGen from PR 31689 in Azure/azure-rest-api-specs Merge c1993aba6a7bf20801299162f2476bcfbacaa2b9 into 4aad50a36767f7c36673f2c7982bb4055dbf5ed4 --- .../CHANGELOG.md | 11 +- .../README.md | 55 +++--- .../SAMPLE.md | 166 +++++++++--------- .../pom.xml | 13 +- .../dataprotection/DataProtectionManager.java | 8 +- ...orableTimeRangesResponseResourceInner.java | 49 +++--- .../models/AzureBackupJobResourceInner.java | 49 +++--- ...AzureBackupRecoveryPointResourceInner.java | 49 +++--- .../models/BackupInstanceResourceInner.java | 49 +++--- .../models/BackupVaultResourceInner.java | 52 +++--- .../models/BaseBackupPolicyResourceInner.java | 49 +++--- .../DeletedBackupInstanceResourceInner.java | 49 +++--- .../models/OperationJobExtendedInfoInner.java | 1 - .../ResourceGuardProxyBaseResourceInner.java | 49 +++--- .../models/ResourceGuardResourceInner.java | 49 +++--- .../DataProtectionClientImpl.java | 4 +- .../FetchSecondaryRecoveryPointsImpl.java | 2 +- .../models/AbsoluteDeleteOption.java | 8 +- .../models/AdhocBasedTriggerContext.java | 1 - .../dataprotection/models/AksVolumeTypes.java | 51 ++++++ .../AzureBackupDiscreteRecoveryPoint.java | 1 - ...ndRestorableTimeRangesRequestResource.java | 1 - .../models/AzureBackupJobResourceList.java | 1 - .../models/AzureBackupParams.java | 1 - ...ackupRecoveryPointBasedRestoreRequest.java | 16 +- .../AzureBackupRecoveryPointResourceList.java | 1 - ...BackupRecoveryTimeBasedRestoreRequest.java | 16 +- ...reBackupRestoreWithRehydrationRequest.java | 21 ++- .../models/AzureBackupRule.java | 5 +- .../AzureOperationalStoreParameters.java | 9 +- .../models/AzureRetentionRule.java | 5 +- .../models/BackupInstanceResourceList.java | 1 - .../dataprotection/models/BackupPolicy.java | 5 +- ...BackupVaultOperationResultsGetHeaders.java | 4 +- .../models/BackupVaultResourceList.java | 1 - .../models/BaseBackupPolicyResourceList.java | 1 - .../BlobBackupDatasourceParameters.java | 1 - .../models/CopyOnExpiryOption.java | 1 - .../models/CustomCopyOption.java | 1 - .../models/DefaultResourceProperties.java | 1 - .../models/DeletedBackupInstance.java | 88 +++++++--- .../DeletedBackupInstanceResourceList.java | 1 - .../models/DppBaseTrackedResource.java | 24 +-- .../models/DppProxyResource.java | 24 +-- .../dataprotection/models/DppResource.java | 24 +-- .../models/DppTrackedResource.java | 49 +++--- .../models/FeatureValidationRequest.java | 1 - .../models/FeatureValidationResponse.java | 1 - .../models/ImmediateCopyOption.java | 1 - .../models/ItemLevelRestoreTargetInfo.java | 6 +- .../models/ItemPathBasedRestoreCriteria.java | 1 - ...etesClusterBackupDatasourceParameters.java | 35 +++- .../KubernetesClusterRestoreCriteria.java | 1 - ...rnetesClusterVaultTierRestoreCriteria.java | 1 - .../models/KubernetesPVRestoreCriteria.java | 1 - ...KubernetesStorageClassRestoreCriteria.java | 1 - .../models/OperationResultsGetHeaders.java | 4 +- .../RangeBasedItemLevelRestoreCriteria.java | 1 - .../ResourceGuardProxyBaseResourceList.java | 1 - .../models/ResourceGuardResourceList.java | 1 - .../models/RestoreFilesTargetInfo.java | 6 +- .../models/RestoreTargetInfo.java | 6 +- .../models/ScheduleBasedBackupCriteria.java | 1 - .../models/ScheduleBasedTriggerContext.java | 1 - .../SecretStoreBasedAuthCredentials.java | 1 - .../proxy-config.json | 2 +- .../reflect-config.json | 2 +- .../BackupInstancesAdhocBackupSamples.java | 2 +- .../BackupInstancesCreateOrUpdateSamples.java | 6 +- .../BackupInstancesDeleteSamples.java | 2 +- ...pInstancesExtensionRoutingListSamples.java | 2 +- ...tBackupInstanceOperationResultSamples.java | 2 +- .../generated/BackupInstancesGetSamples.java | 2 +- .../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 | 6 +- ...ncesValidateCrossRegionRestoreSamples.java | 2 +- ...ckupInstancesValidateForBackupSamples.java | 2 +- ...kupInstancesValidateForRestoreSamples.java | 2 +- .../BackupPoliciesCreateOrUpdateSamples.java | 2 +- .../BackupPoliciesDeleteSamples.java | 2 +- .../generated/BackupPoliciesGetSamples.java | 2 +- .../generated/BackupPoliciesListSamples.java | 2 +- ...BackupVaultOperationResultsGetSamples.java | 2 +- ...kupVaultsCheckNameAvailabilitySamples.java | 2 +- .../BackupVaultsCreateOrUpdateSamples.java | 6 +- .../generated/BackupVaultsDeleteSamples.java | 2 +- ...BackupVaultsGetByResourceGroupSamples.java | 6 +- ...ackupVaultsListByResourceGroupSamples.java | 2 +- .../generated/BackupVaultsListSamples.java | 2 +- .../generated/BackupVaultsUpdateSamples.java | 4 +- ...aProtectionCheckFeatureSupportSamples.java | 2 +- .../DataProtectionOperationsListSamples.java | 2 +- .../DeletedBackupInstancesGetSamples.java | 2 +- .../DeletedBackupInstancesListSamples.java | 2 +- ...DeletedBackupInstancesUndeleteSamples.java | 2 +- ...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 +- .../generated/JobsGetSamples.java | 2 +- .../generated/JobsListSamples.java | 2 +- .../generated/OperationResultGetSamples.java | 2 +- ...ionStatusBackupVaultContextGetSamples.java | 2 +- .../generated/OperationStatusGetSamples.java | 2 +- ...GroupContextGetByResourceGroupSamples.java | 2 +- .../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 +- .../generated/AbsoluteDeleteOptionTests.java | 26 --- .../AdHocBackupRuleOptionsTests.java | 30 ---- .../AdhocBackupTriggerOptionTests.java | 25 --- .../AdhocBasedTaggingCriteriaTests.java | 28 --- .../AdhocBasedTriggerContextTests.java | 29 --- .../generated/AuthCredentialsTests.java | 22 --- ...AzureBackupDiscreteRecoveryPointTests.java | 102 ----------- ...torableTimeRangesRequestResourceTests.java | 74 -------- ...pFindRestorableTimeRangesRequestTests.java | 35 ---- ...eTimeRangesResponseResourceInnerTests.java | 41 ----- ...FindRestorableTimeRangesResponseTests.java | 38 ---- .../generated/AzureBackupParamsTests.java | 26 --- ...RecoveryPointBasedRestoreRequestTests.java | 53 ------ ...BackupRecoveryPointResourceInnerTests.java | 25 --- ...eBackupRecoveryPointResourceListTests.java | 32 ---- .../AzureBackupRecoveryPointTests.java | 22 --- ...pRecoveryTimeBasedRestoreRequestTests.java | 53 ------ .../AzureBackupRehydrationRequestTests.java | 33 ---- .../AzureBackupRestoreRequestTests.java | 50 ------ ...kupRestoreWithRehydrationRequestTests.java | 60 ------- .../generated/AzureBackupRuleTests.java | 38 ---- .../AzureMonitorAlertSettingsTests.java | 27 --- .../AzureOperationalStoreParametersTests.java | 31 ---- .../generated/AzureRetentionRuleTests.java | 77 -------- .../generated/BackupCriteriaTests.java | 22 --- .../BackupDatasourceParametersTests.java | 22 --- .../BackupInstancesAdhocBackupMockTests.java | 43 ----- .../BackupInstancesDeleteMockTests.java | 34 ---- ...BackupInstancesResumeBackupsMockTests.java | 33 ---- ...kupInstancesResumeProtectionMockTests.java | 34 ---- ...ackupInstancesStopProtectionMockTests.java | 38 ---- ...ackupInstancesSuspendBackupsMockTests.java | 38 ---- ...pInstancesSyncBackupInstanceMockTests.java | 37 ---- ...cesTriggerCrossRegionRestoreMockTests.java | 56 ------ ...ackupInstancesTriggerRestoreMockTests.java | 51 ------ ...esValidateCrossRegionRestoreMockTests.java | 57 ------ ...pInstancesValidateForRestoreMockTests.java | 53 ------ .../generated/BackupParametersTests.java | 22 --- ...esCreateOrUpdateWithResponseMockTests.java | 43 ----- ...upPoliciesDeleteWithResponseMockTests.java | 34 ---- ...ackupPoliciesGetWithResponseMockTests.java | 39 ---- .../BackupPoliciesListMockTests.java | 39 ---- .../generated/BackupPolicyTests.java | 31 ---- .../generated/BackupScheduleTests.java | 31 ---- ...NameAvailabilityWithResponseMockTests.java | 43 ----- .../BackupVaultsDeleteMockTests.java | 33 ---- .../BaseBackupPolicyResourceInnerTests.java | 29 --- .../BaseBackupPolicyResourceListTests.java | 36 ---- .../generated/BaseBackupPolicyTests.java | 27 --- .../generated/BasePolicyRuleTests.java | 25 --- .../BaseResourcePropertiesTests.java | 22 --- .../BlobBackupDatasourceParametersTests.java | 28 --- .../CheckNameAvailabilityRequestTests.java | 27 --- ...CheckNameAvailabilityResultInnerTests.java | 32 ---- .../ClientDiscoveryDisplayTests.java | 36 ---- ...ientDiscoveryForLogSpecificationTests.java | 32 ---- .../ClientDiscoveryForPropertiesTests.java | 48 ----- ...DiscoveryForServiceSpecificationTests.java | 45 ----- .../ClientDiscoveryResponseTests.java | 71 -------- ...tDiscoveryValueForSingleApiInnerTests.java | 67 ------- .../generated/CmkKekIdentityTests.java | 28 --- .../generated/CopyOnExpiryOptionTests.java | 22 --- .../generated/CopyOptionTests.java | 21 --- .../CrossRegionRestoreDetailsTests.java | 29 --- .../CrossRegionRestoreJobRequestTests.java | 33 ---- .../CrossRegionRestoreJobsRequestTests.java | 29 --- .../CrossRegionRestoreRequestObjectTests.java | 62 ------- .../CrossRegionRestoreSettingsTests.java | 26 --- ...CrossSubscriptionRestoreSettingsTests.java | 27 --- .../generated/CustomCopyOptionTests.java | 25 --- ...DataProtectionOperationsListMockTests.java | 51 ------ ...ckFeatureSupportWithResponseMockTests.java | 38 ---- .../generated/DataStoreInfoBaseTests.java | 30 ---- .../generated/DataStoreParametersTests.java | 27 --- .../generated/DatasourceSetTests.java | 46 ----- .../generated/DatasourceTests.java | 46 ----- .../dataprotection/generated/DayTests.java | 26 --- .../DefaultResourcePropertiesTests.java | 22 --- .../generated/DeleteOptionTests.java | 25 --- ...letedBackupInstancesUndeleteMockTests.java | 33 ---- .../generated/DeletionInfoTests.java | 23 --- .../generated/DppBaseResourceInnerTests.java | 23 --- .../generated/DppBaseResourceListTests.java | 30 ---- .../DppBaseTrackedResourceTests.java | 46 ----- .../generated/DppIdentityDetailsTests.java | 43 ----- .../generated/DppProxyResourceTests.java | 40 ----- ...esCreateOrUpdateWithResponseMockTests.java | 55 ------ ...ardProxiesDeleteWithResponseMockTests.java | 34 ---- ...eGuardProxiesGetWithResponseMockTests.java | 45 ----- .../DppResourceGuardProxiesListMockTests.java | 45 ----- ...xiesUnlockDeleteWithResponseMockTests.java | 43 ----- .../generated/DppResourceListTests.java | 25 --- .../generated/DppResourceTests.java | 22 --- .../DppTrackedResourceListTests.java | 25 --- .../generated/DppTrackedResourceTests.java | 54 ------ .../generated/DppWorkerRequestTests.java | 61 ------- .../generated/FeatureSettingsTests.java | 38 ---- .../FeatureValidationRequestBaseTests.java | 22 --- .../FeatureValidationRequestTests.java | 31 ---- ...atureValidationResponseBaseInnerTests.java | 23 --- .../FeatureValidationResponseTests.java | 39 ---- ...tchSecondaryRPsRequestParametersTests.java | 29 --- ...hSecondaryRecoveryPointsListMockTests.java | 41 ----- .../generated/IdentityDetailsTests.java | 29 --- .../generated/ImmediateCopyOptionTests.java | 22 --- .../generated/ImmutabilitySettingsTests.java | 26 --- .../ItemLevelRestoreCriteriaTests.java | 22 --- .../ItemPathBasedRestoreCriteriaTests.java | 33 ---- .../generated/JobSubTaskTests.java | 50 ------ ...lusterBackupDatasourceParametersTests.java | 54 ------ ...KubernetesClusterRestoreCriteriaTests.java | 85 --------- ...sClusterVaultTierRestoreCriteriaTests.java | 89 ---------- .../KubernetesPVRestoreCriteriaTests.java | 30 ---- ...netesStorageClassRestoreCriteriaTests.java | 30 ---- .../generated/MonitoringSettingsTests.java | 29 --- .../NamespacedNameResourceTests.java | 29 --- .../generated/OperationExtendedInfoTests.java | 22 --- .../OperationJobExtendedInfoInnerTests.java | 26 --- .../OperationResourceInnerTests.java | 42 ----- ...rationResultsGetWithResponseMockTests.java | 38 ---- ...VaultContextsGetWithResponseMockTests.java | 43 ----- ...erationStatusGetWithResponseMockTests.java | 43 ----- ...tByResourceGroupWithResponseMockTests.java | 43 ----- .../PatchResourceGuardInputTests.java | 41 ----- .../generated/PolicyInfoTests.java | 42 ----- .../generated/PolicyParametersTests.java | 35 ---- ...ngeBasedItemLevelRestoreCriteriaTests.java | 30 ---- .../RecoveryPointDataStoreDetailsTests.java | 46 ----- ...ecoveryPointsGetWithResponseMockTests.java | 37 ---- .../RecoveryPointsListMockTests.java | 38 ---- .../ResourceGuardOperationDetailTests.java | 29 --- .../ResourceGuardOperationTests.java | 23 --- ...ourceGuardProxyBaseResourceInnerTests.java | 49 ------ ...sourceGuardProxyBaseResourceListTests.java | 54 ------ .../ResourceGuardProxyBaseTests.java | 49 ------ .../ResourceGuardResourceInnerTests.java | 52 ------ .../ResourceGuardResourceListTests.java | 62 ------- .../generated/ResourceGuardTests.java | 28 --- ...eByResourceGroupWithResponseMockTests.java | 34 ---- ...upSecurityPinRequestsObjectsMockTests.java | 36 ---- ...tByResourceGroupWithResponseMockTests.java | 42 ----- ...inRequestsObjectWithResponseMockTests.java | 37 ---- ...emRequestsObjectWithResponseMockTests.java | 37 ---- ...xyRequestsObjectWithResponseMockTests.java | 37 ---- ...teRequestsObjectWithResponseMockTests.java | 37 ---- ...emRequestsObjectWithResponseMockTests.java | 37 ---- ...cyRequestsObjectWithResponseMockTests.java | 37 ---- ...ProtectedItemRequestsObjectsMockTests.java | 36 ---- ...rceGuardProxyRequestsObjectsMockTests.java | 36 ---- ...bleSoftDeleteRequestsObjectsMockTests.java | 36 ---- ...ProtectedItemRequestsObjectsMockTests.java | 36 ---- ...tectionPolicyRequestsObjectsMockTests.java | 36 ---- ...rceGuardsListByResourceGroupMockTests.java | 43 ----- .../ResourceGuardsListMockTests.java | 42 ----- ...esourceGuardsPutWithResponseMockTests.java | 65 ------- .../generated/ResourceMoveDetailsTests.java | 38 ---- .../generated/RestorableTimeRangeTests.java | 31 ---- ...leTimeRangesFindWithResponseMockTests.java | 49 ------ .../RestoreFilesTargetInfoTests.java | 46 ----- .../RestoreJobRecoveryPointDetailsTests.java | 30 ---- .../generated/RestoreTargetInfoBaseTests.java | 30 ---- .../generated/RetentionTagTests.java | 26 --- .../ScheduleBasedBackupCriteriaTests.java | 55 ------ .../ScheduleBasedTriggerContextTests.java | 61 ------- .../generated/SoftDeleteSettingsTests.java | 30 ---- .../generated/SourceLifeCycleTests.java | 57 ------ .../generated/StopProtectionRequestTests.java | 27 --- .../generated/StorageSettingTests.java | 30 ---- .../generated/SupportedFeatureTests.java | 34 ---- .../generated/SuspendBackupRequestTests.java | 27 --- .../SyncBackupInstanceRequestTests.java | 26 --- .../generated/TaggingCriteriaTests.java | 37 ---- .../generated/TargetCopySettingTests.java | 33 ---- .../generated/TargetDetailsTests.java | 36 ---- .../generated/TriggerBackupRequestTests.java | 32 ---- .../generated/TriggerContextTests.java | 22 --- .../generated/UnlockDeleteRequestTests.java | 32 ---- .../UnlockDeleteResponseInnerTests.java | 25 --- .../generated/UserAssignedIdentityTests.java | 23 --- ...eCrossRegionRestoreRequestObjectTests.java | 66 ------- .../ValidateRestoreRequestObjectTests.java | 56 ------ 320 files changed, 729 insertions(+), 7420 deletions(-) create mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AksVolumeTypes.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AbsoluteDeleteOptionTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdHocBackupRuleOptionsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBackupTriggerOptionTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTaggingCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTriggerContextTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AuthCredentialsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupDiscreteRecoveryPointTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestResourceTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseResourceInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupParamsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointBasedRestoreRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceListTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryTimeBasedRestoreRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRehydrationRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRestoreRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRestoreWithRehydrationRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRuleTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureMonitorAlertSettingsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureOperationalStoreParametersTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureRetentionRuleTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupDatasourceParametersTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupParametersTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPolicyTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupScheduleTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilityWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceListTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BasePolicyRuleTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseResourcePropertiesTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BlobBackupDatasourceParametersTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityResultInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryDisplayTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForLogSpecificationTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForPropertiesTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForServiceSpecificationTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryResponseTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryValueForSingleApiInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CmkKekIdentityTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CopyOnExpiryOptionTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CopyOptionTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreDetailsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobsRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreRequestObjectTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreSettingsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossSubscriptionRestoreSettingsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CustomCopyOptionTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionsCheckFeatureSupportWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreInfoBaseTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreParametersTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DatasourceSetTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DatasourceTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DayTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DefaultResourcePropertiesTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeleteOptionTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletionInfoTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseResourceInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseResourceListTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseTrackedResourceTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppIdentityDetailsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppProxyResourceTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesCreateOrUpdateWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesDeleteWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesGetWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesListMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesUnlockDeleteWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceListTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppTrackedResourceListTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppTrackedResourceTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppWorkerRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureSettingsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestBaseTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseBaseInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRPsRequestParametersTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/IdentityDetailsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ImmediateCopyOptionTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ImmutabilitySettingsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ItemLevelRestoreCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ItemPathBasedRestoreCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/JobSubTaskTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterBackupDatasourceParametersTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterRestoreCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterVaultTierRestoreCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesPVRestoreCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesStorageClassRestoreCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/MonitoringSettingsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/NamespacedNameResourceTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationExtendedInfoTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationJobExtendedInfoInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResourceInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResultsGetWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusBackupVaultContextsGetWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusGetWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusResourceGroupContextsGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PatchResourceGuardInputTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PolicyInfoTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PolicyParametersTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RangeBasedItemLevelRestoreCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointDataStoreDetailsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationDetailTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceListTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardResourceInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardResourceListTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceMoveDetailsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangeTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindWithResponseMockTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreFilesTargetInfoTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreJobRecoveryPointDetailsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreTargetInfoBaseTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RetentionTagTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedBackupCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedTriggerContextTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SoftDeleteSettingsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SourceLifeCycleTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/StopProtectionRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/StorageSettingTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SupportedFeatureTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SuspendBackupRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SyncBackupInstanceRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TaggingCriteriaTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetCopySettingTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetDetailsTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TriggerBackupRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TriggerContextTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteRequestTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteResponseInnerTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UserAssignedIdentityTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateCrossRegionRestoreRequestObjectTests.java delete mode 100644 sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreRequestObjectTests.java diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md index dd11333d162f2..584ba6180827f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md @@ -1,14 +1,17 @@ # Release History -## 1.4.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2024-12-02) + +- Azure Resource Manager DataProtection client library for Java. This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2025-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.AksVolumeTypes` was added -### Bugs Fixed +#### `models.KubernetesClusterBackupDatasourceParameters` was modified -### Other Changes +* `withIncludedVolumeTypes(java.util.List)` was added +* `includedVolumeTypes()` was added ## 1.3.0 (2024-07-22) diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md index 2bba0d00551ef..19d63485fa5c0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/README.md @@ -2,7 +2,7 @@ Azure Resource Manager DataProtection client library for Java. -This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2024-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2025-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-dataprotection - 1.3.0 + 1.4.0-beta.1 ``` [//]: # ({x-version-update-end}) @@ -71,39 +71,24 @@ See [API design][design] for general introduction on design and key concepts on ## Examples ```java -resource = dataProtectionManager - .backupVaults() - .define(vaultName) - .withRegion(REGION) - .withExistingResourceGroup(resourceGroupName) - .withProperties( - new BackupVault() - .withMonitoringSettings( - new MonitoringSettings() - .withAzureMonitorAlertSettings( - new AzureMonitorAlertSettings() - .withAlertsForAllJobFailures(AlertsState.ENABLED))) - .withSecuritySettings( - new SecuritySettings() - .withSoftDeleteSettings( - new SoftDeleteSettings() - .withState(SoftDeleteState.ALWAYS_ON) - .withRetentionDurationInDays(14.0D)) - .withImmutabilitySettings( - new ImmutabilitySettings() - .withState(ImmutabilityState.LOCKED))) - .withStorageSettings( - Collections.singletonList( - new StorageSetting() - .withDatastoreType(StorageSettingStoreTypes.VAULT_STORE) - .withType(StorageSettingTypes.LOCALLY_REDUNDANT))) - .withFeatureSettings( - new FeatureSettings() - .withCrossSubscriptionRestoreSettings( - new CrossSubscriptionRestoreSettings() - .withState(CrossSubscriptionRestoreState.ENABLED)))) - .withIdentity(new DppIdentityDetails().withType("systemAssigned")) - .create(); +resource = dataProtectionManager.backupVaults() + .define(vaultName) + .withRegion(REGION) + .withExistingResourceGroup(resourceGroupName) + .withProperties(new BackupVault() + .withMonitoringSettings(new MonitoringSettings().withAzureMonitorAlertSettings( + new AzureMonitorAlertSettings().withAlertsForAllJobFailures(AlertsState.ENABLED))) + .withSecuritySettings(new SecuritySettings() + .withSoftDeleteSettings(new SoftDeleteSettings().withState(SoftDeleteState.ALWAYS_ON) + .withRetentionDurationInDays(14.0D)) + .withImmutabilitySettings(new ImmutabilitySettings().withState(ImmutabilityState.LOCKED))) + .withStorageSettings(Collections + .singletonList(new StorageSetting().withDatastoreType(StorageSettingStoreTypes.VAULT_STORE) + .withType(StorageSettingTypes.LOCALLY_REDUNDANT))) + .withFeatureSettings(new FeatureSettings().withCrossSubscriptionRestoreSettings( + new CrossSubscriptionRestoreSettings().withState(CrossSubscriptionRestoreState.ENABLED)))) + .withIdentity(new DppIdentityDetails().withType("systemAssigned")) + .create(); ``` [Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md) diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md b/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md index 748a7c74e332e..112dff606623f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md @@ -151,7 +151,7 @@ import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest; public final class BackupInstancesAdhocBackupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerBackup.json */ /** @@ -175,9 +175,9 @@ public final class BackupInstancesAdhocBackupSamples { ```java import com.azure.resourcemanager.dataprotection.models.AzureOperationalStoreParameters; import com.azure.resourcemanager.dataprotection.models.BackupInstance; +import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; import com.azure.resourcemanager.dataprotection.models.Datasource; import com.azure.resourcemanager.dataprotection.models.DatasourceSet; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; import com.azure.resourcemanager.dataprotection.models.PolicyInfo; import com.azure.resourcemanager.dataprotection.models.PolicyParameters; import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials; @@ -194,7 +194,7 @@ import java.util.Map; public final class BackupInstancesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/PutBackupInstance.json */ /** @@ -241,7 +241,7 @@ public final class BackupInstancesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/PutBackupInstance_ResourceGuardEnabled.json */ /** @@ -312,7 +312,7 @@ public final class BackupInstancesCreateOrUpdateSamples { public final class BackupInstancesDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/DeleteBackupInstance.json */ /** @@ -336,7 +336,7 @@ public final class BackupInstancesDeleteSamples { public final class BackupInstancesGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/GetBackupInstance.json */ /** @@ -361,7 +361,7 @@ public final class BackupInstancesGetSamples { public final class BackupInstancesGetBackupInstanceOperationResultSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/GetBackupInstanceOperationResult.json */ /** @@ -388,7 +388,7 @@ public final class BackupInstancesGetBackupInstanceOperationResultSamples { public final class BackupInstancesListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ListBackupInstances.json */ /** @@ -412,7 +412,7 @@ public final class BackupInstancesListSamples { public final class BackupInstancesResumeBackupsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ResumeBackups.json */ /** @@ -435,7 +435,7 @@ public final class BackupInstancesResumeBackupsSamples { public final class BackupInstancesResumeProtectionSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ResumeProtection.json */ /** @@ -461,7 +461,7 @@ import java.util.Arrays; public final class BackupInstancesStopProtectionSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/StopProtection.json */ /** @@ -476,7 +476,7 @@ public final class BackupInstancesStopProtectionSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/StopProtection_ResourceGuardEnabled.json */ /** @@ -506,7 +506,7 @@ import java.util.Arrays; public final class BackupInstancesSuspendBackupsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/SuspendBackups.json */ /** @@ -521,7 +521,7 @@ public final class BackupInstancesSuspendBackupsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/SuspendBackup_ResourceGuardEnabled.json */ /** @@ -551,7 +551,7 @@ import com.azure.resourcemanager.dataprotection.models.SyncType; public final class BackupInstancesSyncBackupInstanceSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/SyncBackupInstance.json */ /** @@ -588,7 +588,7 @@ import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; public final class BackupInstancesTriggerCrossRegionRestoreSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/TriggerCrossRegionRestore.json */ /** @@ -648,7 +648,7 @@ import com.azure.resourcemanager.dataprotection.models.RehydrationPriority; public final class BackupInstancesTriggerRehydrateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerRehydrate.json */ /** @@ -691,7 +691,7 @@ import com.azure.resourcemanager.dataprotection.models.TargetDetails; public final class BackupInstancesTriggerRestoreSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerRestoreAsFiles.json */ /** @@ -718,7 +718,7 @@ public final class BackupInstancesTriggerRestoreSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerRestoreWithRehydration.json */ /** @@ -760,7 +760,7 @@ public final class BackupInstancesTriggerRestoreSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerRestore.json */ /** @@ -825,7 +825,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateCrossRegionRestor public final class BackupInstancesValidateCrossRegionRestoreSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/ValidateCrossRegionRestore.json */ /** @@ -891,7 +891,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateForBackupRequest; public final class BackupInstancesValidateForBackupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ValidateForBackup.json */ /** @@ -950,7 +950,7 @@ import com.azure.resourcemanager.dataprotection.models.ValidateRestoreRequestObj public final class BackupInstancesValidateForRestoreSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ValidateRestore.json */ /** @@ -1004,7 +1004,7 @@ public final class BackupInstancesValidateForRestoreSamples { public final class BackupInstancesExtensionRoutingListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ListBackupInstancesExtensionRouting.json */ /** @@ -1048,7 +1048,7 @@ import java.util.Arrays; public final class BackupPoliciesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/PolicyCRUD/ * CreateOrUpdateBackupPolicy.json */ /** @@ -1121,7 +1121,7 @@ public final class BackupPoliciesCreateOrUpdateSamples { public final class BackupPoliciesDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/PolicyCRUD/ * DeleteBackupPolicy.json */ /** @@ -1145,7 +1145,7 @@ public final class BackupPoliciesDeleteSamples { public final class BackupPoliciesGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/PolicyCRUD/ * GetBackupPolicy.json */ /** @@ -1169,7 +1169,7 @@ public final class BackupPoliciesGetSamples { public final class BackupPoliciesListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/PolicyCRUD/ * ListBackupPolicy.json */ /** @@ -1192,7 +1192,7 @@ public final class BackupPoliciesListSamples { public final class BackupVaultOperationResultsGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetOperationResultPatch.json */ /** @@ -1220,7 +1220,7 @@ import com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequ public final class BackupVaultsCheckNameAvailabilitySamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * CheckBackupVaultsNameAvailability.json */ /** @@ -1274,7 +1274,7 @@ import java.util.Map; public final class BackupVaultsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PutBackupVault.json */ /** @@ -1305,7 +1305,7 @@ public final class BackupVaultsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PutBackupVaultWithCMK.json */ /** @@ -1342,7 +1342,7 @@ public final class BackupVaultsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PutBackupVaultWithMSI.json */ /** @@ -1395,7 +1395,7 @@ public final class BackupVaultsCreateOrUpdateSamples { public final class BackupVaultsDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * DeleteBackupVault.json */ /** @@ -1418,7 +1418,7 @@ public final class BackupVaultsDeleteSamples { public final class BackupVaultsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVault.json */ /** @@ -1433,7 +1433,7 @@ public final class BackupVaultsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVaultWithMSI.json */ /** @@ -1448,7 +1448,7 @@ public final class BackupVaultsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVaultWithCMK.json */ /** @@ -1472,7 +1472,7 @@ public final class BackupVaultsGetByResourceGroupSamples { public final class BackupVaultsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVaultsInSubscription.json */ /** @@ -1496,7 +1496,7 @@ public final class BackupVaultsListSamples { public final class BackupVaultsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVaultsInResourceGroup.json */ /** @@ -1539,7 +1539,7 @@ import java.util.Map; public final class BackupVaultsUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PatchBackupVault.json */ /** @@ -1561,7 +1561,7 @@ public final class BackupVaultsUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PatchBackupVaultWithCMK.json */ /** @@ -1615,7 +1615,7 @@ import com.azure.resourcemanager.dataprotection.models.FeatureValidationRequest; public final class DataProtectionCheckFeatureSupportSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CheckfeatureSupport.json */ /** @@ -1642,7 +1642,7 @@ public final class DataProtectionCheckFeatureSupportSamples { public final class DataProtectionOperationsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/Operations/List + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/Operations/List * .json */ /** @@ -1666,7 +1666,7 @@ public final class DataProtectionOperationsListSamples { public final class DeletedBackupInstancesGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * DeletedBackupInstanceOperations/GetDeletedBackupInstance.json */ /** @@ -1692,7 +1692,7 @@ public final class DeletedBackupInstancesGetSamples { public final class DeletedBackupInstancesListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * DeletedBackupInstanceOperations/ListDeletedBackupInstances.json */ /** @@ -1717,7 +1717,7 @@ public final class DeletedBackupInstancesListSamples { public final class DeletedBackupInstancesUndeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json */ /** @@ -1743,7 +1743,7 @@ import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; public final class DppResourceGuardProxyCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/PutResourceGuardProxy.json */ /** @@ -1772,7 +1772,7 @@ public final class DppResourceGuardProxyCreateOrUpdateSamples { public final class DppResourceGuardProxyDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json */ /** @@ -1798,7 +1798,7 @@ public final class DppResourceGuardProxyDeleteSamples { public final class DppResourceGuardProxyGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/GetResourceGuardProxy.json */ /** @@ -1822,7 +1822,7 @@ public final class DppResourceGuardProxyGetSamples { public final class DppResourceGuardProxyListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/ListResourceGuardProxy.json */ /** @@ -1848,7 +1848,7 @@ import java.util.Arrays; public final class DppResourceGuardProxyUnlockDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json */ /** @@ -1878,7 +1878,7 @@ public final class DppResourceGuardProxyUnlockDeleteSamples { public final class ExportJobsTriggerSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/JobCRUD/ * TriggerExportJobs.json */ /** @@ -1901,7 +1901,7 @@ public final class ExportJobsTriggerSamples { public final class ExportJobsOperationResultGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/JobCRUD/ * GetExportJobsOperationResult.json */ /** @@ -1929,7 +1929,7 @@ import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobRequ public final class FetchCrossRegionRestoreJobGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/FetchCrossRegionRestoreJob.json */ /** @@ -1959,7 +1959,7 @@ import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobsReq public final class FetchCrossRegionRestoreJobsOperationListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/FetchCrossRegionRestoreJobs.json */ /** @@ -1989,7 +1989,7 @@ import com.azure.resourcemanager.dataprotection.models.FetchSecondaryRPsRequestP public final class FetchSecondaryRecoveryPointsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/FetchSecondaryRPs.json */ /** @@ -2016,7 +2016,7 @@ public final class FetchSecondaryRecoveryPointsListSamples { public final class JobsGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/GetJob. + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/JobCRUD/GetJob. * json */ /** @@ -2041,7 +2041,7 @@ public final class JobsGetSamples { public final class JobsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/JobCRUD/ * ListJobs.json */ /** @@ -2064,7 +2064,7 @@ public final class JobsListSamples { public final class OperationResultGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * GetOperationResult.json */ /** @@ -2090,7 +2090,7 @@ public final class OperationResultGetSamples { public final class OperationStatusGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * GetOperationStatus.json */ /** @@ -2116,7 +2116,7 @@ public final class OperationStatusGetSamples { public final class OperationStatusBackupVaultContextGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * GetOperationStatusVaultContext.json */ /** @@ -2142,7 +2142,7 @@ public final class OperationStatusBackupVaultContextGetSamples { public final class OperationStatusResourceGroupContextGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * GetOperationStatusRGContext.json */ /** @@ -2168,7 +2168,7 @@ public final class OperationStatusResourceGroupContextGetByResourceGroupSamples public final class RecoveryPointsGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/GetRecoveryPoint.json */ /** @@ -2193,7 +2193,7 @@ public final class RecoveryPointsGetSamples { public final class RecoveryPointsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ListRecoveryPoints.json */ /** @@ -2219,7 +2219,7 @@ public final class RecoveryPointsListSamples { public final class ResourceGuardsDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/DeleteResourceGuard.json */ /** @@ -2244,7 +2244,7 @@ public final class ResourceGuardsDeleteSamples { public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListBackupSecurityPINRequests.json */ /** @@ -2270,7 +2270,7 @@ public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples { public final class ResourceGuardsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetResourceGuard.json */ /** @@ -2294,7 +2294,7 @@ public final class ResourceGuardsGetByResourceGroupSamples { public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json */ /** @@ -2320,7 +2320,7 @@ public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json */ /** @@ -2346,7 +2346,7 @@ public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamp public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json */ /** @@ -2372,7 +2372,7 @@ public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjec public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json */ /** @@ -2398,7 +2398,7 @@ public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json */ /** @@ -2424,7 +2424,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamp public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json */ /** @@ -2450,7 +2450,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectS public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListDeleteProtectedItemRequests.json */ /** @@ -2476,7 +2476,7 @@ public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples { public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json */ /** @@ -2502,7 +2502,7 @@ public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSampl public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListDisableSoftDeleteRequests.json */ /** @@ -2528,7 +2528,7 @@ public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples { public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListUpdateProtectedItemRequests.json */ /** @@ -2554,7 +2554,7 @@ public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples { public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json */ /** @@ -2580,7 +2580,7 @@ public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples public final class ResourceGuardsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetResourceGuardsInSubscription.json */ /** @@ -2604,7 +2604,7 @@ public final class ResourceGuardsListSamples { public final class ResourceGuardsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json */ /** @@ -2632,7 +2632,7 @@ import java.util.Map; public final class ResourceGuardsPatchSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/PatchResourceGuard.json */ /** @@ -2673,7 +2673,7 @@ import java.util.Map; public final class ResourceGuardsPutSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/PutResourceGuard.json */ /** @@ -2716,7 +2716,7 @@ import com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreTyp public final class RestorableTimeRangesFindSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/FindRestorableTimeRanges.json */ /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml b/sdk/dataprotection/azure-resourcemanager-dataprotection/pom.xml index 315f6f16f78eb..6cd2fb10e4971 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 DataProtection Management - This package contains Microsoft Azure SDK for DataProtection Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2024-04. + This package contains Microsoft Azure SDK for DataProtection Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2025-01. https://github.com/Azure/azure-sdk-for-java @@ -46,13 +46,9 @@ 0 0 true + false - - com.azure - azure-json - 1.3.0 - com.azure azure-core @@ -63,6 +59,11 @@ azure-core-management 1.15.6 + + com.azure + azure-json + 1.3.0 + com.azure azure-core-test 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 4ef726690ac1f..61247a3737f35 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 @@ -11,15 +11,15 @@ import com.azure.core.http.HttpPipelinePosition; import com.azure.core.http.policy.AddDatePolicy; import com.azure.core.http.policy.AddHeadersFromContextPolicy; -import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; @@ -289,7 +289,7 @@ public DataProtectionManager authenticate(TokenCredential credential, AzureProfi .append("-") .append("com.azure.resourcemanager.dataprotection") .append("/") - .append("1.3.0"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -322,7 +322,7 @@ public DataProtectionManager authenticate(TokenCredential credential, AzureProfi HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); - policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); + policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0]))); policies.addAll(this.policies.stream() .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .collect(Collectors.toList())); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java index a697e5961ae4c..596488cc222a8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupFindRestorableTimeRangesResponseResourceInner.java @@ -24,24 +24,24 @@ public final class AzureBackupFindRestorableTimeRangesResponseResourceInner exte private AzureBackupFindRestorableTimeRangesResponse properties; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of AzureBackupFindRestorableTimeRangesResponseResourceInner class. @@ -71,43 +71,43 @@ public AzureBackupFindRestorableTimeRangesResponse properties() { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -117,7 +117,6 @@ public SystemData systemData() { */ @Override public void validate() { - super.validate(); if (properties() != null) { properties().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java index 8a6d6525aa781..a53f42af0ab48 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupJobResourceInner.java @@ -24,24 +24,24 @@ public final class AzureBackupJobResourceInner extends DppResource { private AzureBackupJob properties; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of AzureBackupJobResourceInner class. @@ -70,43 +70,43 @@ public AzureBackupJobResourceInner withProperties(AzureBackupJob properties) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -116,7 +116,6 @@ public SystemData systemData() { */ @Override public void validate() { - super.validate(); if (properties() != null) { properties().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java index e86c143a65d64..a917c1642ac6d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/AzureBackupRecoveryPointResourceInner.java @@ -26,24 +26,24 @@ public final class AzureBackupRecoveryPointResourceInner extends DppResource { private AzureBackupRecoveryPoint properties; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of AzureBackupRecoveryPointResourceInner class. @@ -72,43 +72,43 @@ public AzureBackupRecoveryPointResourceInner withProperties(AzureBackupRecoveryP } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -118,7 +118,6 @@ public SystemData systemData() { */ @Override public void validate() { - super.validate(); if (properties() != null) { properties().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java index 93cdbdc39c695..fa3eae802e7fc 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupInstanceResourceInner.java @@ -27,24 +27,24 @@ public final class BackupInstanceResourceInner extends DppProxyResource { private BackupInstance properties; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of BackupInstanceResourceInner class. @@ -73,43 +73,43 @@ public BackupInstanceResourceInner withProperties(BackupInstance properties) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -128,7 +128,6 @@ public BackupInstanceResourceInner withTags(Map tags) { */ @Override public void validate() { - super.validate(); if (properties() != null) { properties().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java index fce5e36481188..e861a97e2a08b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BackupVaultResourceInner.java @@ -29,24 +29,24 @@ public final class BackupVaultResourceInner extends DppTrackedResource { private BackupVault properties; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of BackupVaultResourceInner class. @@ -75,43 +75,43 @@ public BackupVaultResourceInner withProperties(BackupVault properties) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -157,7 +157,6 @@ public BackupVaultResourceInner withTags(Map tags) { */ @Override public void validate() { - super.validate(); if (properties() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -165,6 +164,9 @@ public void validate() { } else { properties().validate(); } + if (identity() != null) { + identity().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(BackupVaultResourceInner.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java index 0cbfafcdce138..b53187312b97d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/BaseBackupPolicyResourceInner.java @@ -26,24 +26,24 @@ public final class BaseBackupPolicyResourceInner extends DppResource { private BaseBackupPolicy properties; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of BaseBackupPolicyResourceInner class. @@ -72,43 +72,43 @@ public BaseBackupPolicyResourceInner withProperties(BaseBackupPolicy properties) } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -118,7 +118,6 @@ public SystemData systemData() { */ @Override public void validate() { - super.validate(); if (properties() != null) { properties().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupInstanceResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupInstanceResourceInner.java index 9ab79aeb29530..c69d70de5b995 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupInstanceResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/DeletedBackupInstanceResourceInner.java @@ -24,24 +24,24 @@ public final class DeletedBackupInstanceResourceInner extends DppResource { private DeletedBackupInstance properties; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of DeletedBackupInstanceResourceInner class. @@ -70,43 +70,43 @@ public DeletedBackupInstanceResourceInner withProperties(DeletedBackupInstance p } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -116,7 +116,6 @@ public SystemData systemData() { */ @Override public void validate() { - super.validate(); if (properties() != null) { properties().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java index 82ea561f8dc94..cbfad1c5f2849 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/OperationJobExtendedInfoInner.java @@ -73,7 +73,6 @@ public OperationJobExtendedInfoInner withJobId(String jobId) { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java index d818635dd0736..d0923559fb860 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java @@ -24,24 +24,24 @@ public final class ResourceGuardProxyBaseResourceInner extends DppResource { private ResourceGuardProxyBase properties; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of ResourceGuardProxyBaseResourceInner class. @@ -70,43 +70,43 @@ public ResourceGuardProxyBaseResourceInner withProperties(ResourceGuardProxyBase } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -116,7 +116,6 @@ public SystemData systemData() { */ @Override public void validate() { - super.validate(); if (properties() != null) { properties().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java index 68c290660cd9d..1f7c7a11f1ad4 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/fluent/models/ResourceGuardResourceInner.java @@ -25,24 +25,24 @@ public final class ResourceGuardResourceInner extends DppBaseTrackedResource { private ResourceGuard properties; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of ResourceGuardResourceInner class. @@ -71,43 +71,43 @@ public ResourceGuardResourceInner withProperties(ResourceGuard properties) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -144,7 +144,6 @@ public ResourceGuardResourceInner withTags(Map tags) { */ @Override public void validate() { - super.validate(); if (properties() != null) { properties().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientImpl.java index 49e5d32ee68b4..81af80830572e 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/DataProtectionClientImpl.java @@ -13,8 +13,8 @@ import com.azure.core.management.AzureEnvironment; import com.azure.core.management.exception.ManagementError; import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollerFactory; import com.azure.core.management.polling.PollResult; +import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; @@ -469,7 +469,7 @@ public DppResourceGuardProxiesClient getDppResourceGuardProxies() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2024-04-01"; + this.apiVersion = "2025-01-01"; this.backupVaults = new BackupVaultsClientImpl(this); this.operationResults = new OperationResultsClientImpl(this); this.operationStatus = new OperationStatusClientImpl(this); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchSecondaryRecoveryPointsImpl.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchSecondaryRecoveryPointsImpl.java index 1fc5ba447ecd3..0874ad3cebdf0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchSecondaryRecoveryPointsImpl.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/implementation/FetchSecondaryRecoveryPointsImpl.java @@ -10,8 +10,8 @@ import com.azure.resourcemanager.dataprotection.fluent.FetchSecondaryRecoveryPointsClient; import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner; import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointResource; -import com.azure.resourcemanager.dataprotection.models.FetchSecondaryRecoveryPoints; import com.azure.resourcemanager.dataprotection.models.FetchSecondaryRPsRequestParameters; +import com.azure.resourcemanager.dataprotection.models.FetchSecondaryRecoveryPoints; public final class FetchSecondaryRecoveryPointsImpl implements FetchSecondaryRecoveryPoints { private static final ClientLogger LOGGER = new ClientLogger(FetchSecondaryRecoveryPointsImpl.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AbsoluteDeleteOption.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AbsoluteDeleteOption.java index 2a4d6b3de6b21..e240006feef05 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AbsoluteDeleteOption.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AbsoluteDeleteOption.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.dataprotection.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -54,9 +55,14 @@ public AbsoluteDeleteOption withDuration(String duration) { */ @Override public void validate() { - super.validate(); + if (duration() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property duration in model AbsoluteDeleteOption")); + } } + private static final ClientLogger LOGGER = new ClientLogger(AbsoluteDeleteOption.class); + /** * {@inheritDoc} */ diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBasedTriggerContext.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBasedTriggerContext.java index c2f75ce066286..62c939af03383 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBasedTriggerContext.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AdhocBasedTriggerContext.java @@ -71,7 +71,6 @@ public AdhocBasedTriggerContext withTaggingCriteria(AdhocBasedTaggingCriteria ta */ @Override public void validate() { - super.validate(); if (taggingCriteria() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AksVolumeTypes.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AksVolumeTypes.java new file mode 100644 index 0000000000000..2176546cd0ab0 --- /dev/null +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AksVolumeTypes.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.dataprotection.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Defines values for AksVolumeTypes. + */ +public final class AksVolumeTypes extends ExpandableStringEnum { + /** + * Static value AzureDisk for AksVolumeTypes. + */ + public static final AksVolumeTypes AZURE_DISK = fromString("AzureDisk"); + + /** + * Static value AzureFileShareSMB for AksVolumeTypes. + */ + public static final AksVolumeTypes AZURE_FILE_SHARE_SMB = fromString("AzureFileShareSMB"); + + /** + * Creates a new instance of AksVolumeTypes value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AksVolumeTypes() { + } + + /** + * Creates or finds a AksVolumeTypes from its string representation. + * + * @param name a name to look for. + * @return the corresponding AksVolumeTypes. + */ + public static AksVolumeTypes fromString(String name) { + return fromString(name, AksVolumeTypes.class); + } + + /** + * Gets known AksVolumeTypes values. + * + * @return known AksVolumeTypes values. + */ + public static Collection values() { + return values(AksVolumeTypes.class); + } +} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java index 7ffde09955991..f9b6c167c8352 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupDiscreteRecoveryPoint.java @@ -318,7 +318,6 @@ public AzureBackupDiscreteRecoveryPoint withRecoveryPointState(RecoveryPointComp */ @Override public void validate() { - super.validate(); if (recoveryPointDataStoresDetails() != null) { recoveryPointDataStoresDetails().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesRequestResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesRequestResource.java index 719cad3a70895..2bfbbc9fbb09f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesRequestResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupFindRestorableTimeRangesRequestResource.java @@ -120,7 +120,6 @@ public AzureBackupFindRestorableTimeRangesRequestResource withHttpMethod(String */ @Override public void validate() { - super.validate(); if (content() != null) { content().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupJobResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupJobResourceList.java index dc128597de3f1..50df0cc21acfe 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupJobResourceList.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupJobResourceList.java @@ -64,7 +64,6 @@ public AzureBackupJobResourceList withNextLink(String nextLink) { */ @Override public void validate() { - super.validate(); if (value() != null) { value().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupParams.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupParams.java index 5c2bad9f6da39..2fc1e18135fc9 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupParams.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupParams.java @@ -71,7 +71,6 @@ public AzureBackupParams withBackupType(String backupType) { */ @Override public void validate() { - super.validate(); if (backupType() == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Missing required property backupType in model AzureBackupParams")); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointBasedRestoreRequest.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointBasedRestoreRequest.java index 406f081265af8..d26800bc971b5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointBasedRestoreRequest.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointBasedRestoreRequest.java @@ -119,12 +119,26 @@ public AzureBackupRecoveryPointBasedRestoreRequest withIdentityDetails(IdentityD */ @Override public void validate() { - super.validate(); if (recoveryPointId() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( "Missing required property recoveryPointId in model AzureBackupRecoveryPointBasedRestoreRequest")); } + if (restoreTargetInfo() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property restoreTargetInfo in model AzureBackupRecoveryPointBasedRestoreRequest")); + } else { + restoreTargetInfo().validate(); + } + if (sourceDataStoreType() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property sourceDataStoreType in model AzureBackupRecoveryPointBasedRestoreRequest")); + } + if (identityDetails() != null) { + identityDetails().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(AzureBackupRecoveryPointBasedRestoreRequest.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointResourceList.java index 1ac9155a424e9..d34d57e4ce074 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointResourceList.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryPointResourceList.java @@ -66,7 +66,6 @@ public AzureBackupRecoveryPointResourceList withNextLink(String nextLink) { */ @Override public void validate() { - super.validate(); if (value() != null) { value().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryTimeBasedRestoreRequest.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryTimeBasedRestoreRequest.java index 02bc588bc5f60..606ae97686ab0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryTimeBasedRestoreRequest.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRecoveryTimeBasedRestoreRequest.java @@ -118,12 +118,26 @@ public AzureBackupRecoveryTimeBasedRestoreRequest withIdentityDetails(IdentityDe */ @Override public void validate() { - super.validate(); if (recoveryPointTime() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( "Missing required property recoveryPointTime in model AzureBackupRecoveryTimeBasedRestoreRequest")); } + if (restoreTargetInfo() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property restoreTargetInfo in model AzureBackupRecoveryTimeBasedRestoreRequest")); + } else { + restoreTargetInfo().validate(); + } + if (sourceDataStoreType() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property sourceDataStoreType in model AzureBackupRecoveryTimeBasedRestoreRequest")); + } + if (identityDetails() != null) { + identityDetails().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(AzureBackupRecoveryTimeBasedRestoreRequest.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRestoreWithRehydrationRequest.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRestoreWithRehydrationRequest.java index b33b6813783b7..69847f2c0dca5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRestoreWithRehydrationRequest.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRestoreWithRehydrationRequest.java @@ -153,7 +153,6 @@ public AzureBackupRestoreWithRehydrationRequest withIdentityDetails(IdentityDeta */ @Override public void validate() { - super.validate(); if (rehydrationPriority() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -164,6 +163,26 @@ public void validate() { .log(new IllegalArgumentException( "Missing required property rehydrationRetentionDuration in model AzureBackupRestoreWithRehydrationRequest")); } + if (restoreTargetInfo() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property restoreTargetInfo in model AzureBackupRestoreWithRehydrationRequest")); + } else { + restoreTargetInfo().validate(); + } + if (sourceDataStoreType() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property sourceDataStoreType in model AzureBackupRestoreWithRehydrationRequest")); + } + if (identityDetails() != null) { + identityDetails().validate(); + } + if (recoveryPointId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property recoveryPointId in model AzureBackupRestoreWithRehydrationRequest")); + } } private static final ClientLogger LOGGER = new ClientLogger(AzureBackupRestoreWithRehydrationRequest.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRule.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRule.java index 4287390e93136..9b07f6d9e575b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRule.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureBackupRule.java @@ -130,7 +130,6 @@ public AzureBackupRule withName(String name) { */ @Override public void validate() { - super.validate(); if (backupParameters() != null) { backupParameters().validate(); } @@ -146,6 +145,10 @@ public void validate() { } else { trigger().validate(); } + if (name() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model AzureBackupRule")); + } } private static final ClientLogger LOGGER = new ClientLogger(AzureBackupRule.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureOperationalStoreParameters.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureOperationalStoreParameters.java index eb4e942951393..e807c76d2e520 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureOperationalStoreParameters.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureOperationalStoreParameters.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.dataprotection.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -77,9 +78,15 @@ public AzureOperationalStoreParameters withDataStoreType(DataStoreTypes dataStor */ @Override public void validate() { - super.validate(); + if (dataStoreType() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property dataStoreType in model AzureOperationalStoreParameters")); + } } + private static final ClientLogger LOGGER = new ClientLogger(AzureOperationalStoreParameters.class); + /** * {@inheritDoc} */ diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureRetentionRule.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureRetentionRule.java index a999d2c7d2aa9..c1c32a15d22e7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureRetentionRule.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/AzureRetentionRule.java @@ -106,13 +106,16 @@ public AzureRetentionRule withName(String name) { */ @Override public void validate() { - super.validate(); if (lifecycles() == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Missing required property lifecycles in model AzureRetentionRule")); } else { lifecycles().forEach(e -> e.validate()); } + if (name() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model AzureRetentionRule")); + } } private static final ClientLogger LOGGER = new ClientLogger(AzureRetentionRule.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResourceList.java index 44b515600cbbf..c9a4a47dced99 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResourceList.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupInstanceResourceList.java @@ -66,7 +66,6 @@ public BackupInstanceResourceList withNextLink(String nextLink) { */ @Override public void validate() { - super.validate(); if (value() != null) { value().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicy.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicy.java index 6f406fa3121f0..cd8a642ec0c66 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicy.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupPolicy.java @@ -83,13 +83,16 @@ public BackupPolicy withDatasourceTypes(List datasourceTypes) { */ @Override public void validate() { - super.validate(); if (policyRules() == null) { throw LOGGER.atError() .log(new IllegalArgumentException("Missing required property policyRules in model BackupPolicy")); } else { policyRules().forEach(e -> e.validate()); } + if (datasourceTypes() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property datasourceTypes in model BackupPolicy")); + } } private static final ClientLogger LOGGER = new ClientLogger(BackupPolicy.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResultsGetHeaders.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResultsGetHeaders.java index ea99e624e7e44..0fa8be2e61aa0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResultsGetHeaders.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultOperationResultsGetHeaders.java @@ -28,8 +28,6 @@ public final class BackupVaultOperationResultsGetHeaders { */ private String location; - private static final HttpHeaderName AZURE_ASYNC_OPERATION = HttpHeaderName.fromString("Azure-AsyncOperation"); - // HttpHeaders containing the raw property values. /** * Creates an instance of BackupVaultOperationResultsGetHeaders class. @@ -41,7 +39,7 @@ public BackupVaultOperationResultsGetHeaders(HttpHeaders rawHeaders) { if (retryAfter != null) { this.retryAfter = Integer.parseInt(retryAfter); } - this.azureAsyncOperation = rawHeaders.getValue(AZURE_ASYNC_OPERATION); + this.azureAsyncOperation = rawHeaders.getValue(HttpHeaderName.AZURE_ASYNCOPERATION); this.location = rawHeaders.getValue(HttpHeaderName.LOCATION); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResourceList.java index 01b93314ce097..ca04c40293fde 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResourceList.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BackupVaultResourceList.java @@ -66,7 +66,6 @@ public BackupVaultResourceList withNextLink(String nextLink) { */ @Override public void validate() { - super.validate(); if (value() != null) { value().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResourceList.java index 0b713aff4ce79..9af708fe018e0 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResourceList.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BaseBackupPolicyResourceList.java @@ -66,7 +66,6 @@ public BaseBackupPolicyResourceList withNextLink(String nextLink) { */ @Override public void validate() { - super.validate(); if (value() != null) { value().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupDatasourceParameters.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupDatasourceParameters.java index a7fcc4147fd29..bb5f99baff303 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupDatasourceParameters.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/BlobBackupDatasourceParameters.java @@ -70,7 +70,6 @@ public BlobBackupDatasourceParameters withContainersList(List containers */ @Override public void validate() { - super.validate(); if (containersList() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CopyOnExpiryOption.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CopyOnExpiryOption.java index b2db6c02fd8b7..a5a7f6b09209f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CopyOnExpiryOption.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CopyOnExpiryOption.java @@ -45,7 +45,6 @@ public String objectType() { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CustomCopyOption.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CustomCopyOption.java index 23b28c38bd2dc..5f5ae7d525efb 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CustomCopyOption.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/CustomCopyOption.java @@ -70,7 +70,6 @@ public CustomCopyOption withDuration(String duration) { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DefaultResourceProperties.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DefaultResourceProperties.java index 4e4c9c36c3dcd..9f8b23f052868 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DefaultResourceProperties.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DefaultResourceProperties.java @@ -43,7 +43,6 @@ public ResourcePropertiesObjectType objectType() { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstance.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstance.java index 3b32595a219c2..a230e09c03add 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstance.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstance.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.dataprotection.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; @@ -22,24 +23,24 @@ public final class DeletedBackupInstance extends BackupInstance { private DeletionInfo deletionInfo; /* - * Specifies the protection status of the resource + * Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed */ - private ProtectionStatusDetails protectionStatus; + private String provisioningState; /* - * Specifies the current protection state of the resource + * Specifies the protection error of the resource */ - private CurrentProtectionState currentProtectionState; + private UserFacingError protectionErrorDetails; /* - * Specifies the protection error of the resource + * Specifies the current protection state of the resource */ - private UserFacingError protectionErrorDetails; + private CurrentProtectionState currentProtectionState; /* - * Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed + * Specifies the protection status of the resource */ - private String provisioningState; + private ProtectionStatusDetails protectionStatus; /** * Creates an instance of DeletedBackupInstance class. @@ -57,44 +58,44 @@ public DeletionInfo deletionInfo() { } /** - * Get the protectionStatus property: Specifies the protection status of the resource. + * Get the provisioningState property: Specifies the provisioning state of the resource i.e. + * provisioning/updating/Succeeded/Failed. * - * @return the protectionStatus value. + * @return the provisioningState value. */ @Override - public ProtectionStatusDetails protectionStatus() { - return this.protectionStatus; + public String provisioningState() { + return this.provisioningState; } /** - * Get the currentProtectionState property: Specifies the current protection state of the resource. + * Get the protectionErrorDetails property: Specifies the protection error of the resource. * - * @return the currentProtectionState value. + * @return the protectionErrorDetails value. */ @Override - public CurrentProtectionState currentProtectionState() { - return this.currentProtectionState; + public UserFacingError protectionErrorDetails() { + return this.protectionErrorDetails; } /** - * Get the protectionErrorDetails property: Specifies the protection error of the resource. + * Get the currentProtectionState property: Specifies the current protection state of the resource. * - * @return the protectionErrorDetails value. + * @return the currentProtectionState value. */ @Override - public UserFacingError protectionErrorDetails() { - return this.protectionErrorDetails; + public CurrentProtectionState currentProtectionState() { + return this.currentProtectionState; } /** - * Get the provisioningState property: Specifies the provisioning state of the resource i.e. - * provisioning/updating/Succeeded/Failed. + * Get the protectionStatus property: Specifies the protection status of the resource. * - * @return the provisioningState value. + * @return the protectionStatus value. */ @Override - public String provisioningState() { - return this.provisioningState; + public ProtectionStatusDetails protectionStatus() { + return this.protectionStatus; } /** @@ -185,12 +186,47 @@ public DeletedBackupInstance withObjectType(String objectType) { */ @Override public void validate() { - super.validate(); if (deletionInfo() != null) { deletionInfo().validate(); } + if (dataSourceInfo() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property dataSourceInfo in model DeletedBackupInstance")); + } else { + dataSourceInfo().validate(); + } + if (dataSourceSetInfo() != null) { + dataSourceSetInfo().validate(); + } + if (policyInfo() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property policyInfo in model DeletedBackupInstance")); + } else { + policyInfo().validate(); + } + if (protectionStatus() != null) { + protectionStatus().validate(); + } + if (protectionErrorDetails() != null) { + protectionErrorDetails().validate(); + } + if (datasourceAuthCredentials() != null) { + datasourceAuthCredentials().validate(); + } + if (identityDetails() != null) { + identityDetails().validate(); + } + if (objectType() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property objectType in model DeletedBackupInstance")); + } } + private static final ClientLogger LOGGER = new ClientLogger(DeletedBackupInstance.class); + /** * {@inheritDoc} */ diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstanceResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstanceResourceList.java index 9afee65f8807e..bcc54ddbf894b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstanceResourceList.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DeletedBackupInstanceResourceList.java @@ -64,7 +64,6 @@ public DeletedBackupInstanceResourceList withNextLink(String nextLink) { */ @Override public void validate() { - super.validate(); if (value() != null) { value().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppBaseTrackedResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppBaseTrackedResource.java index 0a6e7857e3846..625a8b392853a 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppBaseTrackedResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppBaseTrackedResource.java @@ -29,9 +29,9 @@ public class DppBaseTrackedResource extends Resource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public class DppBaseTrackedResource extends Resource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DppBaseTrackedResource class. @@ -90,13 +90,13 @@ DppBaseTrackedResource withSystemData(SystemData systemData) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -110,13 +110,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppProxyResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppProxyResource.java index 0568c62e75bfb..52210dcaeb14d 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppProxyResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppProxyResource.java @@ -29,9 +29,9 @@ public class DppProxyResource extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -39,9 +39,9 @@ public class DppProxyResource extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DppProxyResource class. @@ -90,13 +90,13 @@ DppProxyResource withSystemData(SystemData systemData) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -110,13 +110,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppResource.java index 8772e0603e8a7..858f4805d734e 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppResource.java @@ -25,9 +25,9 @@ public class DppResource extends ProxyResource { private SystemData systemData; /* - * Fully qualified resource Id for the resource. + * The type of the resource. */ - private String id; + private String type; /* * The name of the resource. @@ -35,9 +35,9 @@ public class DppResource extends ProxyResource { private String name; /* - * The type of the resource. + * Fully qualified resource Id for the resource. */ - private String type; + private String id; /** * Creates an instance of DppResource class. @@ -66,13 +66,13 @@ DppResource withSystemData(SystemData systemData) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the type property: The type of the resource. * - * @return the id value. + * @return the type value. */ @Override - public String id() { - return this.id; + public String type() { + return this.type; } /** @@ -86,13 +86,13 @@ public String name() { } /** - * Get the type property: The type of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the type value. + * @return the id value. */ @Override - public String type() { - return this.type; + public String id() { + return this.id; } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResource.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResource.java index 28ce084c7b492..b9a31bff10056 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResource.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/DppTrackedResource.java @@ -23,24 +23,24 @@ public class DppTrackedResource extends DppBaseTrackedResource { private DppIdentityDetails identity; /* - * Fully qualified resource Id for the resource. + * Metadata pertaining to creation and last modification of the resource. */ - private String id; + private SystemData systemData; /* - * The name of the resource. + * The type of the resource. */ - private String name; + private String type; /* - * The type of the resource. + * The name of the resource. */ - private String type; + private String name; /* - * Metadata pertaining to creation and last modification of the resource. + * Fully qualified resource Id for the resource. */ - private SystemData systemData; + private String id; /** * Creates an instance of DppTrackedResource class. @@ -69,43 +69,43 @@ public DppTrackedResource withIdentity(DppIdentityDetails identity) { } /** - * Get the id property: Fully qualified resource Id for the resource. + * Get the systemData property: Metadata pertaining to creation and last modification of the resource. * - * @return the id value. + * @return the systemData value. */ @Override - public String id() { - return this.id; + public SystemData systemData() { + return this.systemData; } /** - * Get the name property: The name of the resource. + * Get the type property: The type of the resource. * - * @return the name value. + * @return the type value. */ @Override - public String name() { - return this.name; + public String type() { + return this.type; } /** - * Get the type property: The type of the resource. + * Get the name property: The name of the resource. * - * @return the type value. + * @return the name value. */ @Override - public String type() { - return this.type; + public String name() { + return this.name; } /** - * Get the systemData property: Metadata pertaining to creation and last modification of the resource. + * Get the id property: Fully qualified resource Id for the resource. * - * @return the systemData value. + * @return the id value. */ @Override - public SystemData systemData() { - return this.systemData; + public String id() { + return this.id; } /** @@ -142,7 +142,6 @@ public DppTrackedResource withTags(Map tags) { */ @Override public void validate() { - super.validate(); if (identity() != null) { identity().validate(); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationRequest.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationRequest.java index 5b70d2b47babc..7fa3a1debb707 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationRequest.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationRequest.java @@ -93,7 +93,6 @@ public FeatureValidationRequest withFeatureName(String featureName) { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationResponse.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationResponse.java index 7f355805b497f..ef8e54858b3a3 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationResponse.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/FeatureValidationResponse.java @@ -95,7 +95,6 @@ public FeatureValidationResponse withFeatures(List features) { */ @Override public void validate() { - super.validate(); if (features() != null) { features().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ImmediateCopyOption.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ImmediateCopyOption.java index e4ebe0b1d30c5..809a5a50380fa 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ImmediateCopyOption.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ImmediateCopyOption.java @@ -45,7 +45,6 @@ public String objectType() { */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ItemLevelRestoreTargetInfo.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ItemLevelRestoreTargetInfo.java index 59e9512042446..5420d4f7de4ec 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ItemLevelRestoreTargetInfo.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ItemLevelRestoreTargetInfo.java @@ -163,7 +163,6 @@ public ItemLevelRestoreTargetInfo withRestoreLocation(String restoreLocation) { */ @Override public void validate() { - super.validate(); if (restoreCriteria() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -184,6 +183,11 @@ public void validate() { if (datasourceAuthCredentials() != null) { datasourceAuthCredentials().validate(); } + if (recoveryOption() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property recoveryOption in model ItemLevelRestoreTargetInfo")); + } } private static final ClientLogger LOGGER = new ClientLogger(ItemLevelRestoreTargetInfo.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ItemPathBasedRestoreCriteria.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ItemPathBasedRestoreCriteria.java index c297713dd167a..3056d7595f4b4 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ItemPathBasedRestoreCriteria.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ItemPathBasedRestoreCriteria.java @@ -126,7 +126,6 @@ public ItemPathBasedRestoreCriteria withSubItemPathPrefix(List subItemPa */ @Override public void validate() { - super.validate(); if (itemPath() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterBackupDatasourceParameters.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterBackupDatasourceParameters.java index 0b1a97d59a17c..f84aa30df79ea 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterBackupDatasourceParameters.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterBackupDatasourceParameters.java @@ -26,6 +26,11 @@ public final class KubernetesClusterBackupDatasourceParameters extends BackupDat */ private boolean snapshotVolumes; + /* + * Gets or sets the include volume types property. This property sets the volume types to be included during backup. + */ + private List includedVolumeTypes; + /* * Gets or sets the include cluster resources property. This property if enabled will include cluster scope * resources during backup. @@ -103,6 +108,29 @@ public KubernetesClusterBackupDatasourceParameters withSnapshotVolumes(boolean s return this; } + /** + * Get the includedVolumeTypes property: Gets or sets the include volume types property. This property sets the + * volume types to be included during backup. + * + * @return the includedVolumeTypes value. + */ + public List includedVolumeTypes() { + return this.includedVolumeTypes; + } + + /** + * Set the includedVolumeTypes property: Gets or sets the include volume types property. This property sets the + * volume types to be included during backup. + * + * @param includedVolumeTypes the includedVolumeTypes value to set. + * @return the KubernetesClusterBackupDatasourceParameters object itself. + */ + public KubernetesClusterBackupDatasourceParameters + withIncludedVolumeTypes(List includedVolumeTypes) { + this.includedVolumeTypes = includedVolumeTypes; + return this; + } + /** * Get the includeClusterScopeResources property: Gets or sets the include cluster resources property. This property * if enabled will include cluster scope resources during backup. @@ -266,7 +294,6 @@ public List backupHookReferences() { */ @Override public void validate() { - super.validate(); if (backupHookReferences() != null) { backupHookReferences().forEach(e -> e.validate()); } @@ -281,6 +308,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("snapshotVolumes", this.snapshotVolumes); jsonWriter.writeBooleanField("includeClusterScopeResources", this.includeClusterScopeResources); jsonWriter.writeStringField("objectType", this.objectType); + jsonWriter.writeArrayField("includedVolumeTypes", this.includedVolumeTypes, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); jsonWriter.writeArrayField("includedNamespaces", this.includedNamespaces, (writer, element) -> writer.writeString(element)); jsonWriter.writeArrayField("excludedNamespaces", this.excludedNamespaces, @@ -320,6 +349,10 @@ public static KubernetesClusterBackupDatasourceParameters fromJson(JsonReader js = reader.getBoolean(); } else if ("objectType".equals(fieldName)) { deserializedKubernetesClusterBackupDatasourceParameters.objectType = reader.getString(); + } else if ("includedVolumeTypes".equals(fieldName)) { + List includedVolumeTypes + = reader.readArray(reader1 -> AksVolumeTypes.fromString(reader1.getString())); + deserializedKubernetesClusterBackupDatasourceParameters.includedVolumeTypes = includedVolumeTypes; } else if ("includedNamespaces".equals(fieldName)) { List includedNamespaces = reader.readArray(reader1 -> reader1.getString()); deserializedKubernetesClusterBackupDatasourceParameters.includedNamespaces = includedNamespaces; diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java index 22f0ec28a4f1d..2511b765c63ad 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterRestoreCriteria.java @@ -351,7 +351,6 @@ public NamespacedNameResource resourceModifierReference() { */ @Override public void validate() { - super.validate(); if (restoreHookReferences() != null) { restoreHookReferences().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterVaultTierRestoreCriteria.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterVaultTierRestoreCriteria.java index 6e524c5dd536b..f380a839c613e 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterVaultTierRestoreCriteria.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesClusterVaultTierRestoreCriteria.java @@ -412,7 +412,6 @@ public NamespacedNameResource resourceModifierReference() { */ @Override public void validate() { - super.validate(); if (restoreHookReferences() != null) { restoreHookReferences().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesPVRestoreCriteria.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesPVRestoreCriteria.java index d6ba1df431814..67107bffb2ff9 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesPVRestoreCriteria.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesPVRestoreCriteria.java @@ -93,7 +93,6 @@ public KubernetesPVRestoreCriteria withStorageClassName(String storageClassName) */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesStorageClassRestoreCriteria.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesStorageClassRestoreCriteria.java index 59189aff3bbe0..20d210343420b 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesStorageClassRestoreCriteria.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/KubernetesStorageClassRestoreCriteria.java @@ -93,7 +93,6 @@ public KubernetesStorageClassRestoreCriteria withProvisioner(String provisioner) */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResultsGetHeaders.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResultsGetHeaders.java index 1f8f24f60db48..c8c66a065aa1f 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResultsGetHeaders.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/OperationResultsGetHeaders.java @@ -28,8 +28,6 @@ public final class OperationResultsGetHeaders { */ private String location; - private static final HttpHeaderName AZURE_ASYNC_OPERATION = HttpHeaderName.fromString("Azure-AsyncOperation"); - // HttpHeaders containing the raw property values. /** * Creates an instance of OperationResultsGetHeaders class. @@ -41,7 +39,7 @@ public OperationResultsGetHeaders(HttpHeaders rawHeaders) { if (retryAfter != null) { this.retryAfter = Integer.parseInt(retryAfter); } - this.azureAsyncOperation = rawHeaders.getValue(AZURE_ASYNC_OPERATION); + this.azureAsyncOperation = rawHeaders.getValue(HttpHeaderName.AZURE_ASYNCOPERATION); this.location = rawHeaders.getValue(HttpHeaderName.LOCATION); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RangeBasedItemLevelRestoreCriteria.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RangeBasedItemLevelRestoreCriteria.java index de80bb44bdf7d..a5856622d95e5 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RangeBasedItemLevelRestoreCriteria.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RangeBasedItemLevelRestoreCriteria.java @@ -93,7 +93,6 @@ public RangeBasedItemLevelRestoreCriteria withMaxMatchingValue(String maxMatchin */ @Override public void validate() { - super.validate(); } /** diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResourceList.java index fbfb4dffdc5fc..584a72d402ce7 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResourceList.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardProxyBaseResourceList.java @@ -64,7 +64,6 @@ public ResourceGuardProxyBaseResourceList withNextLink(String nextLink) { */ @Override public void validate() { - super.validate(); if (value() != null) { value().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResourceList.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResourceList.java index 9139e9314fb1d..83d61bcf870e4 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResourceList.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ResourceGuardResourceList.java @@ -64,7 +64,6 @@ public ResourceGuardResourceList withNextLink(String nextLink) { */ @Override public void validate() { - super.validate(); if (value() != null) { value().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreFilesTargetInfo.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreFilesTargetInfo.java index 461c92d7173f9..60341a90b747c 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreFilesTargetInfo.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreFilesTargetInfo.java @@ -87,7 +87,6 @@ public RestoreFilesTargetInfo withRestoreLocation(String restoreLocation) { */ @Override public void validate() { - super.validate(); if (targetDetails() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -95,6 +94,11 @@ public void validate() { } else { targetDetails().validate(); } + if (recoveryOption() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property recoveryOption in model RestoreFilesTargetInfo")); + } } private static final ClientLogger LOGGER = new ClientLogger(RestoreFilesTargetInfo.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetInfo.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetInfo.java index f7ff5849346f1..47a8bc5abe5d9 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetInfo.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/RestoreTargetInfo.java @@ -137,7 +137,6 @@ public RestoreTargetInfo withRestoreLocation(String restoreLocation) { */ @Override public void validate() { - super.validate(); if (datasourceInfo() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( @@ -151,6 +150,11 @@ public void validate() { if (datasourceAuthCredentials() != null) { datasourceAuthCredentials().validate(); } + if (recoveryOption() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property recoveryOption in model RestoreTargetInfo")); + } } private static final ClientLogger LOGGER = new ClientLogger(RestoreTargetInfo.class); diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java index c0366d72728b8..99464e759c5a4 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedBackupCriteria.java @@ -204,7 +204,6 @@ public ScheduleBasedBackupCriteria withWeeksOfTheMonth(List weeksOfT */ @Override public void validate() { - super.validate(); if (daysOfMonth() != null) { daysOfMonth().forEach(e -> e.validate()); } diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedTriggerContext.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedTriggerContext.java index dfad9e572ba4d..3a35411bd8f22 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedTriggerContext.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/ScheduleBasedTriggerContext.java @@ -97,7 +97,6 @@ public ScheduleBasedTriggerContext withTaggingCriteria(List tag */ @Override public void validate() { - super.validate(); if (schedule() == null) { throw LOGGER.atError() .log(new IllegalArgumentException( diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreBasedAuthCredentials.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreBasedAuthCredentials.java index 25d9e2704781e..9ffbb8d0999db 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreBasedAuthCredentials.java +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/java/com/azure/resourcemanager/dataprotection/models/SecretStoreBasedAuthCredentials.java @@ -68,7 +68,6 @@ public SecretStoreBasedAuthCredentials withSecretStoreResource(SecretStoreResour */ @Override public void validate() { - super.validate(); if (secretStoreResource() != null) { secretStoreResource().validate(); } 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 a806395f2c604..1a27c1c17e5a0 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.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.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.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 diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-dataprotection/reflect-config.json b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-dataprotection/reflect-config.json index 8878e547a7984..0637a088a01e8 100644 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-dataprotection/reflect-config.json +++ b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-dataprotection/reflect-config.json @@ -1 +1 @@ -[ ] \ No newline at end of file +[] \ No newline at end of file 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 f6800695cd8b2..8736e48bc748b 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 @@ -14,7 +14,7 @@ public final class BackupInstancesAdhocBackupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerBackup.json */ /** 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 1da29de568b3f..c32236978a462 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 @@ -6,9 +6,9 @@ import com.azure.resourcemanager.dataprotection.models.AzureOperationalStoreParameters; import com.azure.resourcemanager.dataprotection.models.BackupInstance; +import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; import com.azure.resourcemanager.dataprotection.models.Datasource; import com.azure.resourcemanager.dataprotection.models.DatasourceSet; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; import com.azure.resourcemanager.dataprotection.models.PolicyInfo; import com.azure.resourcemanager.dataprotection.models.PolicyParameters; import com.azure.resourcemanager.dataprotection.models.SecretStoreBasedAuthCredentials; @@ -25,7 +25,7 @@ public final class BackupInstancesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/PutBackupInstance.json */ /** @@ -72,7 +72,7 @@ public static void createBackupInstance(com.azure.resourcemanager.dataprotection /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/PutBackupInstance_ResourceGuardEnabled.json */ /** 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 82f94604b6c44..96bf9fc74c5ed 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 @@ -10,7 +10,7 @@ public final class BackupInstancesDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/DeleteBackupInstance.json */ /** 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 3d35f6972a458..f3bec897a35e4 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 @@ -10,7 +10,7 @@ public final class BackupInstancesExtensionRoutingListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ListBackupInstancesExtensionRouting.json */ /** 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 3186d502f8abf..7aa6bc4ac4b12 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 @@ -10,7 +10,7 @@ public final class BackupInstancesGetBackupInstanceOperationResultSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/GetBackupInstanceOperationResult.json */ /** 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 ee572ab72cf23..4402c70a037f8 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 @@ -10,7 +10,7 @@ public final class BackupInstancesGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/GetBackupInstance.json */ /** 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 fa404c9b659f3..27737a0675efe 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 @@ -10,7 +10,7 @@ public final class BackupInstancesListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ListBackupInstances.json */ /** 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 8dd2a4d29faba..cdd5015d2698e 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 @@ -10,7 +10,7 @@ public final class BackupInstancesResumeBackupsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ResumeBackups.json */ /** 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 c768739e51635..b89b682a282d9 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 @@ -10,7 +10,7 @@ public final class BackupInstancesResumeProtectionSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ResumeProtection.json */ /** 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 f94fdb2a947f6..7042759f821ca 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 @@ -13,7 +13,7 @@ public final class BackupInstancesStopProtectionSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/StopProtection.json */ /** @@ -28,7 +28,7 @@ public static void stopProtection(com.azure.resourcemanager.dataprotection.DataP /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/StopProtection_ResourceGuardEnabled.json */ /** 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 d0ec5738218b0..dde53d286145a 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 @@ -13,7 +13,7 @@ public final class BackupInstancesSuspendBackupsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/SuspendBackups.json */ /** @@ -28,7 +28,7 @@ public static void suspendBackups(com.azure.resourcemanager.dataprotection.DataP /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/SuspendBackup_ResourceGuardEnabled.json */ /** 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 bde5ec77e1fec..ad6f50559faa1 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 @@ -13,7 +13,7 @@ public final class BackupInstancesSyncBackupInstanceSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/SyncBackupInstance.json */ /** 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 ee4e6985c9991..8725675d59f36 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 @@ -22,7 +22,7 @@ public final class BackupInstancesTriggerCrossRegionRestoreSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/TriggerCrossRegionRestore.json */ /** 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 5fafdb297a19d..f1a70d531eb6f 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 @@ -13,7 +13,7 @@ public final class BackupInstancesTriggerRehydrateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerRehydrate.json */ /** 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 3bb3f5e9e931e..53f6f4801375c 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 @@ -25,7 +25,7 @@ public final class BackupInstancesTriggerRestoreSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerRestoreAsFiles.json */ /** @@ -52,7 +52,7 @@ public static void triggerRestoreAsFiles(com.azure.resourcemanager.dataprotectio /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerRestoreWithRehydration.json */ /** @@ -94,7 +94,7 @@ public static void triggerRestoreAsFiles(com.azure.resourcemanager.dataprotectio /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/TriggerRestore.json */ /** 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 b037e32ab99e0..cba3e1395a2b6 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 @@ -22,7 +22,7 @@ public final class BackupInstancesValidateCrossRegionRestoreSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/ValidateCrossRegionRestore.json */ /** 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 f46eb1cc1d7e5..82124532438d0 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: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ValidateForBackup.json */ /** 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 d7d86783bc155..83305f97acaa6 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: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ValidateRestore.json */ /** 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 e470714d0fdcc..bbdd915a8048e 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 @@ -27,7 +27,7 @@ public final class BackupPoliciesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/PolicyCRUD/ * CreateOrUpdateBackupPolicy.json */ /** 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 e9afa361a28db..be21f594aba87 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 @@ -10,7 +10,7 @@ public final class BackupPoliciesDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/PolicyCRUD/ * DeleteBackupPolicy.json */ /** 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 5d274e11fdf0d..40cad9a175c39 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 @@ -10,7 +10,7 @@ public final class BackupPoliciesGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/PolicyCRUD/ * GetBackupPolicy.json */ /** 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 09df838f9b709..385c4b848ae2b 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 @@ -10,7 +10,7 @@ public final class BackupPoliciesListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/PolicyCRUD/ * ListBackupPolicy.json */ /** 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 d8e72c479a1be..2280bed3bd5cb 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 @@ -10,7 +10,7 @@ public final class BackupVaultOperationResultsGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetOperationResultPatch.json */ /** 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 8c88876b578b1..224914133ca80 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 @@ -12,7 +12,7 @@ public final class BackupVaultsCheckNameAvailabilitySamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * CheckBackupVaultsNameAvailability.json */ /** 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 a93bedea545c7..de93485d351bf 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 @@ -36,7 +36,7 @@ public final class BackupVaultsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PutBackupVault.json */ /** @@ -67,7 +67,7 @@ public static void createBackupVault(com.azure.resourcemanager.dataprotection.Da /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PutBackupVaultWithCMK.json */ /** @@ -104,7 +104,7 @@ public static void createBackupVault(com.azure.resourcemanager.dataprotection.Da /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PutBackupVaultWithMSI.json */ /** 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 b21fea1d7a5cd..274442da8c46c 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 @@ -10,7 +10,7 @@ public final class BackupVaultsDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * DeleteBackupVault.json */ /** 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 14d239f2a6608..8df0db2af6fcf 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 @@ -10,7 +10,7 @@ public final class BackupVaultsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVault.json */ /** @@ -25,7 +25,7 @@ public static void getBackupVault(com.azure.resourcemanager.dataprotection.DataP /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVaultWithMSI.json */ /** @@ -40,7 +40,7 @@ public static void getBackupVaultWithMSI(com.azure.resourcemanager.dataprotectio /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVaultWithCMK.json */ /** 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 6e5e23ab48ae4..8627dd22af869 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 @@ -10,7 +10,7 @@ public final class BackupVaultsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVaultsInResourceGroup.json */ /** 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 c3890d7346b1f..ec4ffb9bfc12f 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 @@ -10,7 +10,7 @@ public final class BackupVaultsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * GetBackupVaultsInSubscription.json */ /** 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 98e99992ac3df..4109f63d0e69d 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 @@ -29,7 +29,7 @@ public final class BackupVaultsUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PatchBackupVault.json */ /** @@ -51,7 +51,7 @@ public static void patchBackupVault(com.azure.resourcemanager.dataprotection.Dat /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/VaultCRUD/ * PatchBackupVaultWithCMK.json */ /** 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 321d1e923a61b..93293c98cfc8b 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 @@ -13,7 +13,7 @@ public final class DataProtectionCheckFeatureSupportSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CheckfeatureSupport.json */ /** 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 20058ee27d8d0..507bddefd911e 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 @@ -10,7 +10,7 @@ public final class DataProtectionOperationsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/Operations/List + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/Operations/List * .json */ /** 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 9e8baa94d531f..2c4bcdc54d325 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 @@ -10,7 +10,7 @@ public final class DeletedBackupInstancesGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * DeletedBackupInstanceOperations/GetDeletedBackupInstance.json */ /** 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 b4fd70ac7b6be..210253b7308f0 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 @@ -10,7 +10,7 @@ public final class DeletedBackupInstancesListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * DeletedBackupInstanceOperations/ListDeletedBackupInstances.json */ /** 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 a3e4e3f75982e..67dd261f00983 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 @@ -10,7 +10,7 @@ public final class DeletedBackupInstancesUndeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json */ /** 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 178f423156916..9cc6cb393faed 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 @@ -12,7 +12,7 @@ public final class DppResourceGuardProxyCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/PutResourceGuardProxy.json */ /** 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 f669e7898e72a..17bb14ef01d8d 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 @@ -10,7 +10,7 @@ public final class DppResourceGuardProxyDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json */ /** 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 19c73b5e06587..935910d157c3c 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 @@ -10,7 +10,7 @@ public final class DppResourceGuardProxyGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/GetResourceGuardProxy.json */ /** 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 06572cefce04e..125ac82b2de41 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 @@ -10,7 +10,7 @@ public final class DppResourceGuardProxyListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/ListResourceGuardProxy.json */ /** 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 f16240ff6e5b0..78bb8bd42211f 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 @@ -13,7 +13,7 @@ public final class DppResourceGuardProxyUnlockDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json */ /** 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 a7923c4dda77e..1537d32717b05 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 @@ -10,7 +10,7 @@ public final class ExportJobsOperationResultGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/JobCRUD/ * GetExportJobsOperationResult.json */ /** 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 985edc5f21c2b..6296cb243f558 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 @@ -10,7 +10,7 @@ public final class ExportJobsTriggerSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/JobCRUD/ * TriggerExportJobs.json */ /** 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 333a886739fff..5f4c8a7abd9fc 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 @@ -12,7 +12,7 @@ public final class FetchCrossRegionRestoreJobGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/FetchCrossRegionRestoreJob.json */ /** 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 6607aa8ffeb21..e28c235d96cc3 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 @@ -12,7 +12,7 @@ public final class FetchCrossRegionRestoreJobsOperationListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/FetchCrossRegionRestoreJobs.json */ /** 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 d5f29a36e300b..a7661a0d167d8 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 @@ -12,7 +12,7 @@ public final class FetchSecondaryRecoveryPointsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * CrossRegionRestore/FetchSecondaryRPs.json */ /** 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 671df315d13be..a291abb86a897 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 @@ -10,7 +10,7 @@ public final class JobsGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/GetJob. + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/JobCRUD/GetJob. * json */ /** 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 eb3999795394d..147274e55fe97 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 @@ -10,7 +10,7 @@ public final class JobsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/JobCRUD/ * ListJobs.json */ /** 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 7184db087ce4c..681be91cdc9c5 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 @@ -10,7 +10,7 @@ public final class OperationResultGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * GetOperationResult.json */ /** 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 7101d47cabd92..aaece182f1cc0 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 @@ -10,7 +10,7 @@ public final class OperationStatusBackupVaultContextGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * GetOperationStatusVaultContext.json */ /** 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 4bd5151a03e58..f8e374e54f7aa 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 @@ -10,7 +10,7 @@ public final class OperationStatusGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * GetOperationStatus.json */ /** 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 10bbe02bedc47..eaa3d1cf9ec0a 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 @@ -10,7 +10,7 @@ public final class OperationStatusResourceGroupContextGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * GetOperationStatusRGContext.json */ /** 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 dca95f14b29cf..c4cff92a50b13 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 @@ -10,7 +10,7 @@ public final class RecoveryPointsGetSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/GetRecoveryPoint.json */ /** 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 8c3a02e5b1d90..44f34083f3465 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 @@ -10,7 +10,7 @@ public final class RecoveryPointsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/ListRecoveryPoints.json */ /** 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 b75bcf3096b24..b0feeff77577c 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsDeleteSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/DeleteResourceGuard.json */ /** 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 f5e790acc74f9..67eb1e11f6b87 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListBackupSecurityPINRequests.json */ /** 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 6f5e722c18e0f..b7eacd4313932 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetResourceGuard.json */ /** 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 9720e5a132745..3913992aedf0b 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json */ /** 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 6a567e6658280..723e00d60cfa0 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json */ /** 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 3855cd6b9657a..65e5cd9c4084d 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json */ /** 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 05f1dcbcb3c59..1a5d1c066d2c6 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json */ /** 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 879bbd7546d49..60ae5905b88de 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json */ /** 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 c1fc8b92d3d4a..e15108beb10ab 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json */ /** 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 9df505745e8e8..bebf1a09d0d98 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListDeleteProtectedItemRequests.json */ /** 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 a45adcc183d1e..d5facdda61358 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json */ /** 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 6d82233ba62f9..aab91275cc4b3 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListDisableSoftDeleteRequests.json */ /** 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 9f1afbc37c312..9f90ef10e8482 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListUpdateProtectedItemRequests.json */ /** 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 512b758a2a7b2..f89f06e3df9f4 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json */ /** 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 6c9b8b615af55..3942ec8c4bb27 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsListByResourceGroupSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json */ /** 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 fc0cba6e7077a..e081b0e94d1a0 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 @@ -10,7 +10,7 @@ public final class ResourceGuardsListSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/GetResourceGuardsInSubscription.json */ /** 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 bce4aae90d81b..74ed181a4dfef 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 @@ -14,7 +14,7 @@ public final class ResourceGuardsPatchSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/PatchResourceGuard.json */ /** 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 09b4302f1aa4f..6cf04b0f8bddd 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 @@ -13,7 +13,7 @@ public final class ResourceGuardsPutSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * ResourceGuardCRUD/PutResourceGuard.json */ /** 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 7c6c1362f39f0..c9d6855cdd7e1 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 @@ -13,7 +13,7 @@ public final class RestorableTimeRangesFindSamples { /* * x-ms-original-file: - * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ + * specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/examples/ * BackupInstanceOperations/FindRestorableTimeRanges.json */ /** 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 deleted file mode 100644 index 222c209682f4d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AbsoluteDeleteOptionTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AbsoluteDeleteOption; -import org.junit.jupiter.api.Assertions; - -public final class AbsoluteDeleteOptionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AbsoluteDeleteOption model - = BinaryData.fromString("{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"btndo\"}") - .toObject(AbsoluteDeleteOption.class); - Assertions.assertEquals("btndo", model.duration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AbsoluteDeleteOption model = new AbsoluteDeleteOption().withDuration("btndo"); - model = BinaryData.fromObject(model).toObject(AbsoluteDeleteOption.class); - Assertions.assertEquals("btndo", model.duration()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdHocBackupRuleOptionsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdHocBackupRuleOptionsTests.java deleted file mode 100644 index 0dfb21e0a7526..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdHocBackupRuleOptionsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AdHocBackupRuleOptions; -import com.azure.resourcemanager.dataprotection.models.AdhocBackupTriggerOption; -import org.junit.jupiter.api.Assertions; - -public final class AdHocBackupRuleOptionsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AdHocBackupRuleOptions model = BinaryData - .fromString("{\"ruleName\":\"yaxuconuqszfkb\",\"triggerOption\":{\"retentionTagOverride\":\"pewr\"}}") - .toObject(AdHocBackupRuleOptions.class); - Assertions.assertEquals("yaxuconuqszfkb", model.ruleName()); - Assertions.assertEquals("pewr", model.triggerOption().retentionTagOverride()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AdHocBackupRuleOptions model = new AdHocBackupRuleOptions().withRuleName("yaxuconuqszfkb") - .withTriggerOption(new AdhocBackupTriggerOption().withRetentionTagOverride("pewr")); - model = BinaryData.fromObject(model).toObject(AdHocBackupRuleOptions.class); - Assertions.assertEquals("yaxuconuqszfkb", model.ruleName()); - Assertions.assertEquals("pewr", model.triggerOption().retentionTagOverride()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBackupTriggerOptionTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBackupTriggerOptionTests.java deleted file mode 100644 index e3418090d9d3b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBackupTriggerOptionTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AdhocBackupTriggerOption; -import org.junit.jupiter.api.Assertions; - -public final class AdhocBackupTriggerOptionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AdhocBackupTriggerOption model = BinaryData.fromString("{\"retentionTagOverride\":\"mwvvjektcxsenhw\"}") - .toObject(AdhocBackupTriggerOption.class); - Assertions.assertEquals("mwvvjektcxsenhw", model.retentionTagOverride()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AdhocBackupTriggerOption model = new AdhocBackupTriggerOption().withRetentionTagOverride("mwvvjektcxsenhw"); - model = BinaryData.fromObject(model).toObject(AdhocBackupTriggerOption.class); - Assertions.assertEquals("mwvvjektcxsenhw", model.retentionTagOverride()); - } -} 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 deleted file mode 100644 index 5adb3019d6163..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTaggingCriteriaTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AdhocBasedTaggingCriteria; -import com.azure.resourcemanager.dataprotection.models.RetentionTag; -import org.junit.jupiter.api.Assertions; - -public final class AdhocBasedTaggingCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AdhocBasedTaggingCriteria model = BinaryData - .fromString("{\"tagInfo\":{\"eTag\":\"tcje\",\"id\":\"twwaezkojvdcpzf\",\"tagName\":\"qouicybxarzgsz\"}}") - .toObject(AdhocBasedTaggingCriteria.class); - Assertions.assertEquals("qouicybxarzgsz", model.tagInfo().tagName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AdhocBasedTaggingCriteria model - = new AdhocBasedTaggingCriteria().withTagInfo(new RetentionTag().withTagName("qouicybxarzgsz")); - model = BinaryData.fromObject(model).toObject(AdhocBasedTaggingCriteria.class); - Assertions.assertEquals("qouicybxarzgsz", 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 deleted file mode 100644 index 723bf4d293770..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AdhocBasedTriggerContextTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AdhocBasedTaggingCriteria; -import com.azure.resourcemanager.dataprotection.models.AdhocBasedTriggerContext; -import com.azure.resourcemanager.dataprotection.models.RetentionTag; -import org.junit.jupiter.api.Assertions; - -public final class AdhocBasedTriggerContextTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AdhocBasedTriggerContext model = BinaryData.fromString( - "{\"objectType\":\"AdhocBasedTriggerContext\",\"taggingCriteria\":{\"tagInfo\":{\"eTag\":\"zcmrvexztvb\",\"id\":\"gsfraoyzkoow\",\"tagName\":\"lmnguxaw\"}}}") - .toObject(AdhocBasedTriggerContext.class); - Assertions.assertEquals("lmnguxaw", 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("lmnguxaw"))); - model = BinaryData.fromObject(model).toObject(AdhocBasedTriggerContext.class); - Assertions.assertEquals("lmnguxaw", model.taggingCriteria().tagInfo().tagName()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AuthCredentialsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AuthCredentialsTests.java deleted file mode 100644 index d2b2a92e3df61..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AuthCredentialsTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AuthCredentials; - -public final class AuthCredentialsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AuthCredentials model - = BinaryData.fromString("{\"objectType\":\"AuthCredentials\"}").toObject(AuthCredentials.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AuthCredentials model = new AuthCredentials(); - model = BinaryData.fromObject(model).toObject(AuthCredentials.class); - } -} 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 deleted file mode 100644 index 32eb26ee6716d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupDiscreteRecoveryPointTests.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupDiscreteRecoveryPoint; -import com.azure.resourcemanager.dataprotection.models.RecoveryPointCompletionState; -import com.azure.resourcemanager.dataprotection.models.RecoveryPointDataStoreDetails; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupDiscreteRecoveryPointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupDiscreteRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"friendlyName\":\"ldsyuuximerqfob\",\"recoveryPointDataStoresDetails\":[{\"creationTime\":\"2021-04-12T06:30:25Z\",\"expiryTime\":\"2021-10-07T08:54:51Z\",\"id\":\"utwpfhp\",\"metaData\":\"m\",\"state\":\"skdsnfdsdoakg\",\"type\":\"lmkk\",\"visible\":true,\"rehydrationExpiryTime\":\"2020-12-20T17:30:39Z\",\"rehydrationStatus\":\"DELETE_IN_PROGRESS\"},{\"creationTime\":\"2021-05-16T03:51:54Z\",\"expiryTime\":\"2021-07-06T21:17:30Z\",\"id\":\"sttwvogvbbe\",\"metaData\":\"cngqqmoakufgmjz\",\"state\":\"rdgrtw\",\"type\":\"nuuzkopbm\",\"visible\":false,\"rehydrationExpiryTime\":\"2021-08-21T07:56:19Z\",\"rehydrationStatus\":\"CREATE_IN_PROGRESS\"},{\"creationTime\":\"2021-07-25T01:07:20Z\",\"expiryTime\":\"2021-12-03T00:28:31Z\",\"id\":\"iuiefozbhdmsm\",\"metaData\":\"zqhof\",\"state\":\"maequiahxicslfa\",\"type\":\"z\",\"visible\":true,\"rehydrationExpiryTime\":\"2021-07-09T22:00:16Z\",\"rehydrationStatus\":\"CREATE_IN_PROGRESS\"},{\"creationTime\":\"2021-10-10T06:29:17Z\",\"expiryTime\":\"2021-01-11T10:09:18Z\",\"id\":\"ccsphkaivwi\",\"metaData\":\"scywuggwoluhc\",\"state\":\"wem\",\"type\":\"i\",\"visible\":false,\"rehydrationExpiryTime\":\"2021-01-14T04:14:03Z\",\"rehydrationStatus\":\"FAILED\"}],\"recoveryPointTime\":\"2021-02-08T08:17:57Z\",\"policyName\":\"swe\",\"policyVersion\":\"qwdxggicc\",\"recoveryPointId\":\"xqhuexm\",\"recoveryPointType\":\"tlstvlzywem\",\"retentionTagName\":\"rncsdtclu\",\"retentionTagVersion\":\"ypbsfgytguslfead\",\"expiryTime\":\"2021-10-11T19:56:34Z\",\"recoveryPointState\":\"Partial\"}") - .toObject(AzureBackupDiscreteRecoveryPoint.class); - Assertions.assertEquals("ldsyuuximerqfob", model.friendlyName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-12T06:30:25Z"), - model.recoveryPointDataStoresDetails().get(0).creationTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-07T08:54:51Z"), - model.recoveryPointDataStoresDetails().get(0).expiryTime()); - Assertions.assertEquals("utwpfhp", model.recoveryPointDataStoresDetails().get(0).id()); - Assertions.assertEquals("m", model.recoveryPointDataStoresDetails().get(0).metadata()); - Assertions.assertEquals("skdsnfdsdoakg", model.recoveryPointDataStoresDetails().get(0).state()); - Assertions.assertEquals("lmkk", model.recoveryPointDataStoresDetails().get(0).type()); - Assertions.assertEquals(true, model.recoveryPointDataStoresDetails().get(0).visible()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-08T08:17:57Z"), model.recoveryPointTime()); - Assertions.assertEquals("swe", model.policyName()); - Assertions.assertEquals("qwdxggicc", model.policyVersion()); - Assertions.assertEquals("xqhuexm", model.recoveryPointId()); - Assertions.assertEquals("tlstvlzywem", model.recoveryPointType()); - Assertions.assertEquals("rncsdtclu", model.retentionTagName()); - Assertions.assertEquals("ypbsfgytguslfead", model.retentionTagVersion()); - Assertions.assertEquals(RecoveryPointCompletionState.PARTIAL, model.recoveryPointState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupDiscreteRecoveryPoint model - = new AzureBackupDiscreteRecoveryPoint().withFriendlyName("ldsyuuximerqfob") - .withRecoveryPointDataStoresDetails(Arrays.asList( - new RecoveryPointDataStoreDetails().withCreationTime(OffsetDateTime.parse("2021-04-12T06:30:25Z")) - .withExpiryTime(OffsetDateTime.parse("2021-10-07T08:54:51Z")) - .withId("utwpfhp") - .withMetadata("m") - .withState("skdsnfdsdoakg") - .withType("lmkk") - .withVisible(true), - new RecoveryPointDataStoreDetails().withCreationTime(OffsetDateTime.parse("2021-05-16T03:51:54Z")) - .withExpiryTime(OffsetDateTime.parse("2021-07-06T21:17:30Z")) - .withId("sttwvogvbbe") - .withMetadata("cngqqmoakufgmjz") - .withState("rdgrtw") - .withType("nuuzkopbm") - .withVisible(false), - new RecoveryPointDataStoreDetails().withCreationTime(OffsetDateTime.parse("2021-07-25T01:07:20Z")) - .withExpiryTime(OffsetDateTime.parse("2021-12-03T00:28:31Z")) - .withId("iuiefozbhdmsm") - .withMetadata("zqhof") - .withState("maequiahxicslfa") - .withType("z") - .withVisible(true), - new RecoveryPointDataStoreDetails().withCreationTime(OffsetDateTime.parse("2021-10-10T06:29:17Z")) - .withExpiryTime(OffsetDateTime.parse("2021-01-11T10:09:18Z")) - .withId("ccsphkaivwi") - .withMetadata("scywuggwoluhc") - .withState("wem") - .withType("i") - .withVisible(false))) - .withRecoveryPointTime(OffsetDateTime.parse("2021-02-08T08:17:57Z")) - .withPolicyName("swe") - .withPolicyVersion("qwdxggicc") - .withRecoveryPointId("xqhuexm") - .withRecoveryPointType("tlstvlzywem") - .withRetentionTagName("rncsdtclu") - .withRetentionTagVersion("ypbsfgytguslfead") - .withRecoveryPointState(RecoveryPointCompletionState.PARTIAL); - model = BinaryData.fromObject(model).toObject(AzureBackupDiscreteRecoveryPoint.class); - Assertions.assertEquals("ldsyuuximerqfob", model.friendlyName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-12T06:30:25Z"), - model.recoveryPointDataStoresDetails().get(0).creationTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-07T08:54:51Z"), - model.recoveryPointDataStoresDetails().get(0).expiryTime()); - Assertions.assertEquals("utwpfhp", model.recoveryPointDataStoresDetails().get(0).id()); - Assertions.assertEquals("m", model.recoveryPointDataStoresDetails().get(0).metadata()); - Assertions.assertEquals("skdsnfdsdoakg", model.recoveryPointDataStoresDetails().get(0).state()); - Assertions.assertEquals("lmkk", model.recoveryPointDataStoresDetails().get(0).type()); - Assertions.assertEquals(true, model.recoveryPointDataStoresDetails().get(0).visible()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-08T08:17:57Z"), model.recoveryPointTime()); - Assertions.assertEquals("swe", model.policyName()); - Assertions.assertEquals("qwdxggicc", model.policyVersion()); - Assertions.assertEquals("xqhuexm", model.recoveryPointId()); - Assertions.assertEquals("tlstvlzywem", model.recoveryPointType()); - Assertions.assertEquals("rncsdtclu", model.retentionTagName()); - Assertions.assertEquals("ypbsfgytguslfead", model.retentionTagVersion()); - Assertions.assertEquals(RecoveryPointCompletionState.PARTIAL, model.recoveryPointState()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestResourceTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestResourceTests.java deleted file mode 100644 index b4796ba9c8dce..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestResourceTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest; -import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequestResource; -import com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupFindRestorableTimeRangesRequestResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupFindRestorableTimeRangesRequestResource model = BinaryData.fromString( - "{\"content\":{\"sourceDataStoreType\":\"OperationalStore\",\"startTime\":\"ehtwdwrft\",\"endTime\":\"iby\"},\"subscriptionId\":\"dl\",\"uri\":\"shfwpracstwity\",\"headers\":{\"ltiugcxnavv\":[\"xccedcpnmdyodn\",\"zxltjcvn\"],\"unyowxwl\":[\"qiby\"],\"rwkq\":[\"jrkvfgbvfvpdbo\",\"acizsjqlhkrr\",\"bdeibqipqk\",\"hvxndzwmkrefajpj\"]},\"supportedGroupVersions\":[\"gbijtjivfx\",\"sjabibs\"],\"cultureInfo\":\"tawfsdjpvkvp\",\"parameters\":{\"ncj\":\"bkzbzkd\",\"zhjjklffhmouwq\":\"budurgkakmo\",\"eeyebi\":\"gzrf\"},\"httpMethod\":\"kayuhqlbjbs\"}") - .toObject(AzureBackupFindRestorableTimeRangesRequestResource.class); - Assertions.assertEquals("dl", model.subscriptionId()); - Assertions.assertEquals("shfwpracstwity", model.uri()); - Assertions.assertEquals("xccedcpnmdyodn", model.headers().get("ltiugcxnavv").get(0)); - Assertions.assertEquals("gbijtjivfx", model.supportedGroupVersions().get(0)); - Assertions.assertEquals("tawfsdjpvkvp", model.cultureInfo()); - Assertions.assertEquals("bkzbzkd", model.parameters().get("ncj")); - Assertions.assertEquals("kayuhqlbjbs", model.httpMethod()); - Assertions.assertEquals(RestoreSourceDataStoreType.OPERATIONAL_STORE, model.content().sourceDataStoreType()); - Assertions.assertEquals("ehtwdwrft", model.content().startTime()); - Assertions.assertEquals("iby", model.content().endTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupFindRestorableTimeRangesRequestResource model - = new AzureBackupFindRestorableTimeRangesRequestResource().withSubscriptionId("dl") - .withUri("shfwpracstwity") - .withHeaders( - mapOf("ltiugcxnavv", Arrays.asList("xccedcpnmdyodn", "zxltjcvn"), "unyowxwl", Arrays.asList("qiby"), - "rwkq", Arrays.asList("jrkvfgbvfvpdbo", "acizsjqlhkrr", "bdeibqipqk", "hvxndzwmkrefajpj"))) - .withSupportedGroupVersions(Arrays.asList("gbijtjivfx", "sjabibs")) - .withCultureInfo("tawfsdjpvkvp") - .withParameters(mapOf("ncj", "bkzbzkd", "zhjjklffhmouwq", "budurgkakmo", "eeyebi", "gzrf")) - .withHttpMethod("kayuhqlbjbs") - .withContent(new AzureBackupFindRestorableTimeRangesRequest() - .withSourceDataStoreType(RestoreSourceDataStoreType.OPERATIONAL_STORE) - .withStartTime("ehtwdwrft") - .withEndTime("iby")); - model = BinaryData.fromObject(model).toObject(AzureBackupFindRestorableTimeRangesRequestResource.class); - Assertions.assertEquals("dl", model.subscriptionId()); - Assertions.assertEquals("shfwpracstwity", model.uri()); - Assertions.assertEquals("xccedcpnmdyodn", model.headers().get("ltiugcxnavv").get(0)); - Assertions.assertEquals("gbijtjivfx", model.supportedGroupVersions().get(0)); - Assertions.assertEquals("tawfsdjpvkvp", model.cultureInfo()); - Assertions.assertEquals("bkzbzkd", model.parameters().get("ncj")); - Assertions.assertEquals("kayuhqlbjbs", model.httpMethod()); - Assertions.assertEquals(RestoreSourceDataStoreType.OPERATIONAL_STORE, model.content().sourceDataStoreType()); - Assertions.assertEquals("ehtwdwrft", model.content().startTime()); - Assertions.assertEquals("iby", model.content().endTime()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} 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 deleted file mode 100644 index 93c3c1dca6405..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesRequestTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesRequest; -import com.azure.resourcemanager.dataprotection.models.RestoreSourceDataStoreType; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupFindRestorableTimeRangesRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupFindRestorableTimeRangesRequest model = BinaryData - .fromString( - "{\"sourceDataStoreType\":\"VaultStore\",\"startTime\":\"ylgqgitxmedjvcsl\",\"endTime\":\"qwwncw\"}") - .toObject(AzureBackupFindRestorableTimeRangesRequest.class); - Assertions.assertEquals(RestoreSourceDataStoreType.VAULT_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("ylgqgitxmedjvcsl", model.startTime()); - Assertions.assertEquals("qwwncw", model.endTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupFindRestorableTimeRangesRequest model = new AzureBackupFindRestorableTimeRangesRequest() - .withSourceDataStoreType(RestoreSourceDataStoreType.VAULT_STORE) - .withStartTime("ylgqgitxmedjvcsl") - .withEndTime("qwwncw"); - model = BinaryData.fromObject(model).toObject(AzureBackupFindRestorableTimeRangesRequest.class); - Assertions.assertEquals(RestoreSourceDataStoreType.VAULT_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("ylgqgitxmedjvcsl", model.startTime()); - Assertions.assertEquals("qwwncw", 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 deleted file mode 100644 index 19dfd5408229b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseResourceInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupFindRestorableTimeRangesResponseResourceInner; -import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesResponse; -import com.azure.resourcemanager.dataprotection.models.RestorableTimeRange; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupFindRestorableTimeRangesResponseResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupFindRestorableTimeRangesResponseResourceInner model = BinaryData.fromString( - "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"gktrmgucnapkte\",\"endTime\":\"ellwptfdy\",\"objectType\":\"fqbuaceopzf\"}],\"objectType\":\"hhuao\"},\"id\":\"pcqeqx\",\"name\":\"lzdahzxctobgbkdm\",\"type\":\"izpost\"}") - .toObject(AzureBackupFindRestorableTimeRangesResponseResourceInner.class); - Assertions.assertEquals("gktrmgucnapkte", model.properties().restorableTimeRanges().get(0).startTime()); - Assertions.assertEquals("ellwptfdy", model.properties().restorableTimeRanges().get(0).endTime()); - Assertions.assertEquals("fqbuaceopzf", model.properties().restorableTimeRanges().get(0).objectType()); - Assertions.assertEquals("hhuao", model.properties().objectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupFindRestorableTimeRangesResponseResourceInner model - = new AzureBackupFindRestorableTimeRangesResponseResourceInner() - .withProperties(new AzureBackupFindRestorableTimeRangesResponse() - .withRestorableTimeRanges(Arrays.asList(new RestorableTimeRange().withStartTime("gktrmgucnapkte") - .withEndTime("ellwptfdy") - .withObjectType("fqbuaceopzf"))) - .withObjectType("hhuao")); - model = BinaryData.fromObject(model).toObject(AzureBackupFindRestorableTimeRangesResponseResourceInner.class); - Assertions.assertEquals("gktrmgucnapkte", model.properties().restorableTimeRanges().get(0).startTime()); - Assertions.assertEquals("ellwptfdy", model.properties().restorableTimeRanges().get(0).endTime()); - Assertions.assertEquals("fqbuaceopzf", model.properties().restorableTimeRanges().get(0).objectType()); - Assertions.assertEquals("hhuao", 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 deleted file mode 100644 index e2cb3f65c3b7e..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupFindRestorableTimeRangesResponseTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupFindRestorableTimeRangesResponse; -import com.azure.resourcemanager.dataprotection.models.RestorableTimeRange; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupFindRestorableTimeRangesResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupFindRestorableTimeRangesResponse model = BinaryData.fromString( - "{\"restorableTimeRanges\":[{\"startTime\":\"cfbu\",\"endTime\":\"rmfqjhhkxbpvj\",\"objectType\":\"jhxxjyn\"},{\"startTime\":\"u\",\"endTime\":\"ivkrtsw\",\"objectType\":\"qzvszjf\"}],\"objectType\":\"vjfdx\"}") - .toObject(AzureBackupFindRestorableTimeRangesResponse.class); - Assertions.assertEquals("cfbu", model.restorableTimeRanges().get(0).startTime()); - Assertions.assertEquals("rmfqjhhkxbpvj", model.restorableTimeRanges().get(0).endTime()); - Assertions.assertEquals("jhxxjyn", model.restorableTimeRanges().get(0).objectType()); - Assertions.assertEquals("vjfdx", model.objectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupFindRestorableTimeRangesResponse model = new AzureBackupFindRestorableTimeRangesResponse() - .withRestorableTimeRanges(Arrays.asList( - new RestorableTimeRange().withStartTime("cfbu").withEndTime("rmfqjhhkxbpvj").withObjectType("jhxxjyn"), - new RestorableTimeRange().withStartTime("u").withEndTime("ivkrtsw").withObjectType("qzvszjf"))) - .withObjectType("vjfdx"); - model = BinaryData.fromObject(model).toObject(AzureBackupFindRestorableTimeRangesResponse.class); - Assertions.assertEquals("cfbu", model.restorableTimeRanges().get(0).startTime()); - Assertions.assertEquals("rmfqjhhkxbpvj", model.restorableTimeRanges().get(0).endTime()); - Assertions.assertEquals("jhxxjyn", model.restorableTimeRanges().get(0).objectType()); - Assertions.assertEquals("vjfdx", 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 deleted file mode 100644 index 01615888569b3..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupParamsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupParams; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupParamsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupParams model - = BinaryData.fromString("{\"objectType\":\"AzureBackupParams\",\"backupType\":\"dxdigr\"}") - .toObject(AzureBackupParams.class); - Assertions.assertEquals("dxdigr", model.backupType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupParams model = new AzureBackupParams().withBackupType("dxdigr"); - model = BinaryData.fromObject(model).toObject(AzureBackupParams.class); - Assertions.assertEquals("dxdigr", model.backupType()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointBasedRestoreRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointBasedRestoreRequestTests.java deleted file mode 100644 index 7b42c61c66957..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointBasedRestoreRequestTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointBasedRestoreRequest; -import com.azure.resourcemanager.dataprotection.models.IdentityDetails; -import com.azure.resourcemanager.dataprotection.models.RecoveryOption; -import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase; -import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupRecoveryPointBasedRestoreRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupRecoveryPointBasedRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureBackupRecoveryPointBasedRestoreRequest\",\"recoveryPointId\":\"guufzd\",\"restoreTargetInfo\":{\"objectType\":\"RestoreTargetInfoBase\",\"recoveryOption\":\"FailIfExists\",\"restoreLocation\":\"qtfihwhbotzinga\"},\"sourceDataStoreType\":\"SnapshotStore\",\"sourceResourceId\":\"phoszqz\",\"resourceGuardOperationRequests\":[\"hqamvdkf\",\"ynwcvtbv\",\"ayhmtnvyqiatkz\",\"pcnp\"],\"identityDetails\":{\"useSystemAssignedIdentity\":true,\"userAssignedIdentityArmUrl\":\"esgvvsccyaj\"}}") - .toObject(AzureBackupRecoveryPointBasedRestoreRequest.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("qtfihwhbotzinga", model.restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.SNAPSHOT_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("phoszqz", model.sourceResourceId()); - Assertions.assertEquals("hqamvdkf", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(true, model.identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("esgvvsccyaj", model.identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("guufzd", model.recoveryPointId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupRecoveryPointBasedRestoreRequest model = new AzureBackupRecoveryPointBasedRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("qtfihwhbotzinga")) - .withSourceDataStoreType(SourceDataStoreType.SNAPSHOT_STORE) - .withSourceResourceId("phoszqz") - .withResourceGuardOperationRequests(Arrays.asList("hqamvdkf", "ynwcvtbv", "ayhmtnvyqiatkz", "pcnp")) - .withIdentityDetails( - new IdentityDetails().withUseSystemAssignedIdentity(true).withUserAssignedIdentityArmUrl("esgvvsccyaj")) - .withRecoveryPointId("guufzd"); - model = BinaryData.fromObject(model).toObject(AzureBackupRecoveryPointBasedRestoreRequest.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("qtfihwhbotzinga", model.restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.SNAPSHOT_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("phoszqz", model.sourceResourceId()); - Assertions.assertEquals("hqamvdkf", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(true, model.identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("esgvvsccyaj", model.identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("guufzd", model.recoveryPointId()); - } -} 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 deleted file mode 100644 index b3546fc9d4daa..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPoint; - -public final class AzureBackupRecoveryPointResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupRecoveryPointResourceInner model = BinaryData.fromString( - "{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"myskpbhenbtkcxy\",\"name\":\"ny\",\"type\":\"nrs\"}") - .toObject(AzureBackupRecoveryPointResourceInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupRecoveryPointResourceInner model - = new AzureBackupRecoveryPointResourceInner().withProperties(new AzureBackupRecoveryPoint()); - model = BinaryData.fromObject(model).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 deleted file mode 100644 index 95f96b8b401d6..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointResourceListTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.AzureBackupRecoveryPointResourceInner; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPoint; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointResourceList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupRecoveryPointResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupRecoveryPointResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"ebf\",\"name\":\"iarbutrcvpna\",\"type\":\"zmhjrunmp\"}],\"nextLink\":\"tdbhrbnla\"}") - .toObject(AzureBackupRecoveryPointResourceList.class); - Assertions.assertEquals("tdbhrbnla", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupRecoveryPointResourceList model - = new AzureBackupRecoveryPointResourceList().withNextLink("tdbhrbnla") - .withValue(Arrays.asList( - new AzureBackupRecoveryPointResourceInner().withProperties(new AzureBackupRecoveryPoint()))); - model = BinaryData.fromObject(model).toObject(AzureBackupRecoveryPointResourceList.class); - Assertions.assertEquals("tdbhrbnla", model.nextLink()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointTests.java deleted file mode 100644 index 2e4e79220b1ef..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryPointTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPoint; - -public final class AzureBackupRecoveryPointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupRecoveryPoint model = BinaryData.fromString("{\"objectType\":\"AzureBackupRecoveryPoint\"}") - .toObject(AzureBackupRecoveryPoint.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupRecoveryPoint model = new AzureBackupRecoveryPoint(); - model = BinaryData.fromObject(model).toObject(AzureBackupRecoveryPoint.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryTimeBasedRestoreRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryTimeBasedRestoreRequestTests.java deleted file mode 100644 index 7604e9401373b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRecoveryTimeBasedRestoreRequestTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryTimeBasedRestoreRequest; -import com.azure.resourcemanager.dataprotection.models.IdentityDetails; -import com.azure.resourcemanager.dataprotection.models.RecoveryOption; -import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase; -import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupRecoveryTimeBasedRestoreRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupRecoveryTimeBasedRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureBackupRecoveryTimeBasedRestoreRequest\",\"recoveryPointTime\":\"wccsnjvcdwxlpqek\",\"restoreTargetInfo\":{\"objectType\":\"RestoreTargetInfoBase\",\"recoveryOption\":\"FailIfExists\",\"restoreLocation\":\"khtj\"},\"sourceDataStoreType\":\"ArchiveStore\",\"sourceResourceId\":\"ngwfqatm\",\"resourceGuardOperationRequests\":[\"tmdvypgikdgs\",\"ywkbirryuzhlhkjo\"],\"identityDetails\":{\"useSystemAssignedIdentity\":true,\"userAssignedIdentityArmUrl\":\"aatjinrvgoupmfi\"}}") - .toObject(AzureBackupRecoveryTimeBasedRestoreRequest.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("khtj", model.restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.ARCHIVE_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("ngwfqatm", model.sourceResourceId()); - Assertions.assertEquals("tmdvypgikdgs", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(true, model.identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("aatjinrvgoupmfi", model.identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("wccsnjvcdwxlpqek", model.recoveryPointTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupRecoveryTimeBasedRestoreRequest model = new AzureBackupRecoveryTimeBasedRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("khtj")) - .withSourceDataStoreType(SourceDataStoreType.ARCHIVE_STORE) - .withSourceResourceId("ngwfqatm") - .withResourceGuardOperationRequests(Arrays.asList("tmdvypgikdgs", "ywkbirryuzhlhkjo")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(true) - .withUserAssignedIdentityArmUrl("aatjinrvgoupmfi")) - .withRecoveryPointTime("wccsnjvcdwxlpqek"); - model = BinaryData.fromObject(model).toObject(AzureBackupRecoveryTimeBasedRestoreRequest.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("khtj", model.restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.ARCHIVE_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("ngwfqatm", model.sourceResourceId()); - Assertions.assertEquals("tmdvypgikdgs", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(true, model.identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("aatjinrvgoupmfi", model.identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("wccsnjvcdwxlpqek", model.recoveryPointTime()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRehydrationRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRehydrationRequestTests.java deleted file mode 100644 index 67fd7fe79055b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRehydrationRequestTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRehydrationRequest; -import com.azure.resourcemanager.dataprotection.models.RehydrationPriority; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupRehydrationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupRehydrationRequest model = BinaryData.fromString( - "{\"recoveryPointId\":\"xl\",\"rehydrationPriority\":\"Invalid\",\"rehydrationRetentionDuration\":\"dttouwaboekqvkel\"}") - .toObject(AzureBackupRehydrationRequest.class); - Assertions.assertEquals("xl", model.recoveryPointId()); - Assertions.assertEquals(RehydrationPriority.INVALID, model.rehydrationPriority()); - Assertions.assertEquals("dttouwaboekqvkel", model.rehydrationRetentionDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupRehydrationRequest model = new AzureBackupRehydrationRequest().withRecoveryPointId("xl") - .withRehydrationPriority(RehydrationPriority.INVALID) - .withRehydrationRetentionDuration("dttouwaboekqvkel"); - model = BinaryData.fromObject(model).toObject(AzureBackupRehydrationRequest.class); - Assertions.assertEquals("xl", model.recoveryPointId()); - Assertions.assertEquals(RehydrationPriority.INVALID, model.rehydrationPriority()); - Assertions.assertEquals("dttouwaboekqvkel", model.rehydrationRetentionDuration()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRestoreRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRestoreRequestTests.java deleted file mode 100644 index 1a393ad9b4431..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRestoreRequestTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; -import com.azure.resourcemanager.dataprotection.models.IdentityDetails; -import com.azure.resourcemanager.dataprotection.models.RecoveryOption; -import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase; -import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupRestoreRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureBackupRestoreRequest\",\"restoreTargetInfo\":{\"objectType\":\"RestoreTargetInfoBase\",\"recoveryOption\":\"FailIfExists\",\"restoreLocation\":\"ujwb\"},\"sourceDataStoreType\":\"VaultStore\",\"sourceResourceId\":\"almuzyoxaepdkzja\",\"resourceGuardOperationRequests\":[\"xrhdwbavxbniwdjs\"],\"identityDetails\":{\"useSystemAssignedIdentity\":false,\"userAssignedIdentityArmUrl\":\"bpg\"}}") - .toObject(AzureBackupRestoreRequest.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("ujwb", model.restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.VAULT_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("almuzyoxaepdkzja", model.sourceResourceId()); - Assertions.assertEquals("xrhdwbavxbniwdjs", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(false, model.identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("bpg", model.identityDetails().userAssignedIdentityArmUrl()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupRestoreRequest model = new AzureBackupRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("ujwb")) - .withSourceDataStoreType(SourceDataStoreType.VAULT_STORE) - .withSourceResourceId("almuzyoxaepdkzja") - .withResourceGuardOperationRequests(Arrays.asList("xrhdwbavxbniwdjs")) - .withIdentityDetails( - new IdentityDetails().withUseSystemAssignedIdentity(false).withUserAssignedIdentityArmUrl("bpg")); - model = BinaryData.fromObject(model).toObject(AzureBackupRestoreRequest.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("ujwb", model.restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.VAULT_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("almuzyoxaepdkzja", model.sourceResourceId()); - Assertions.assertEquals("xrhdwbavxbniwdjs", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(false, model.identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("bpg", model.identityDetails().userAssignedIdentityArmUrl()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRestoreWithRehydrationRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRestoreWithRehydrationRequestTests.java deleted file mode 100644 index 04e3f239f3c9f..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRestoreWithRehydrationRequestTests.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreWithRehydrationRequest; -import com.azure.resourcemanager.dataprotection.models.IdentityDetails; -import com.azure.resourcemanager.dataprotection.models.RecoveryOption; -import com.azure.resourcemanager.dataprotection.models.RehydrationPriority; -import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase; -import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AzureBackupRestoreWithRehydrationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureBackupRestoreWithRehydrationRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureBackupRestoreWithRehydrationRequest\",\"rehydrationPriority\":\"Invalid\",\"rehydrationRetentionDuration\":\"qfhwyg\",\"recoveryPointId\":\"lvdnkfx\",\"restoreTargetInfo\":{\"objectType\":\"RestoreTargetInfoBase\",\"recoveryOption\":\"FailIfExists\",\"restoreLocation\":\"mdwzrmuhapfcqdps\"},\"sourceDataStoreType\":\"ArchiveStore\",\"sourceResourceId\":\"vpsvuoymgcce\",\"resourceGuardOperationRequests\":[\"zrypqlmfeokerqw\",\"yhko\"],\"identityDetails\":{\"useSystemAssignedIdentity\":false,\"userAssignedIdentityArmUrl\":\"edkowepbqpcrfk\"}}") - .toObject(AzureBackupRestoreWithRehydrationRequest.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("mdwzrmuhapfcqdps", model.restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.ARCHIVE_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("vpsvuoymgcce", model.sourceResourceId()); - Assertions.assertEquals("zrypqlmfeokerqw", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(false, model.identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("edkowepbqpcrfk", model.identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("lvdnkfx", model.recoveryPointId()); - Assertions.assertEquals(RehydrationPriority.INVALID, model.rehydrationPriority()); - Assertions.assertEquals("qfhwyg", model.rehydrationRetentionDuration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupRestoreWithRehydrationRequest model = new AzureBackupRestoreWithRehydrationRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("mdwzrmuhapfcqdps")) - .withSourceDataStoreType(SourceDataStoreType.ARCHIVE_STORE) - .withSourceResourceId("vpsvuoymgcce") - .withResourceGuardOperationRequests(Arrays.asList("zrypqlmfeokerqw", "yhko")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) - .withUserAssignedIdentityArmUrl("edkowepbqpcrfk")) - .withRecoveryPointId("lvdnkfx") - .withRehydrationPriority(RehydrationPriority.INVALID) - .withRehydrationRetentionDuration("qfhwyg"); - model = BinaryData.fromObject(model).toObject(AzureBackupRestoreWithRehydrationRequest.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("mdwzrmuhapfcqdps", model.restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.ARCHIVE_STORE, model.sourceDataStoreType()); - Assertions.assertEquals("vpsvuoymgcce", model.sourceResourceId()); - Assertions.assertEquals("zrypqlmfeokerqw", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(false, model.identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("edkowepbqpcrfk", model.identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("lvdnkfx", model.recoveryPointId()); - Assertions.assertEquals(RehydrationPriority.INVALID, model.rehydrationPriority()); - Assertions.assertEquals("qfhwyg", model.rehydrationRetentionDuration()); - } -} 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 deleted file mode 100644 index 003fdabf17f65..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureBackupRuleTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRule; -import com.azure.resourcemanager.dataprotection.models.BackupParameters; -import com.azure.resourcemanager.dataprotection.models.DataStoreInfoBase; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; -import com.azure.resourcemanager.dataprotection.models.TriggerContext; -import org.junit.jupiter.api.Assertions; - -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\":\"VaultStore\",\"objectType\":\"ggjioolvr\"},\"trigger\":{\"objectType\":\"TriggerContext\"},\"name\":\"x\"}") - .toObject(AzureBackupRule.class); - Assertions.assertEquals("x", model.name()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.dataStore().dataStoreType()); - Assertions.assertEquals("ggjioolvr", model.dataStore().objectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureBackupRule model = new AzureBackupRule().withName("x") - .withBackupParameters(new BackupParameters()) - .withDataStore( - new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE).withObjectType("ggjioolvr")) - .withTrigger(new TriggerContext()); - model = BinaryData.fromObject(model).toObject(AzureBackupRule.class); - Assertions.assertEquals("x", model.name()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.dataStore().dataStoreType()); - Assertions.assertEquals("ggjioolvr", model.dataStore().objectType()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureMonitorAlertSettingsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureMonitorAlertSettingsTests.java deleted file mode 100644 index 6d942b135a4b9..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureMonitorAlertSettingsTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AlertsState; -import com.azure.resourcemanager.dataprotection.models.AzureMonitorAlertSettings; -import org.junit.jupiter.api.Assertions; - -public final class AzureMonitorAlertSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureMonitorAlertSettings model = BinaryData.fromString("{\"alertsForAllJobFailures\":\"Enabled\"}") - .toObject(AzureMonitorAlertSettings.class); - Assertions.assertEquals(AlertsState.ENABLED, model.alertsForAllJobFailures()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureMonitorAlertSettings model - = new AzureMonitorAlertSettings().withAlertsForAllJobFailures(AlertsState.ENABLED); - model = BinaryData.fromObject(model).toObject(AzureMonitorAlertSettings.class); - Assertions.assertEquals(AlertsState.ENABLED, model.alertsForAllJobFailures()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureOperationalStoreParametersTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureOperationalStoreParametersTests.java deleted file mode 100644 index 29108efb2cb7e..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureOperationalStoreParametersTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureOperationalStoreParameters; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; -import org.junit.jupiter.api.Assertions; - -public final class AzureOperationalStoreParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureOperationalStoreParameters model = BinaryData.fromString( - "{\"objectType\":\"AzureOperationalStoreParameters\",\"resourceGroupId\":\"xvvy\",\"dataStoreType\":\"ArchiveStore\"}") - .toObject(AzureOperationalStoreParameters.class); - Assertions.assertEquals(DataStoreTypes.ARCHIVE_STORE, model.dataStoreType()); - Assertions.assertEquals("xvvy", model.resourceGroupId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureOperationalStoreParameters model - = new AzureOperationalStoreParameters().withDataStoreType(DataStoreTypes.ARCHIVE_STORE) - .withResourceGroupId("xvvy"); - model = BinaryData.fromObject(model).toObject(AzureOperationalStoreParameters.class); - Assertions.assertEquals(DataStoreTypes.ARCHIVE_STORE, model.dataStoreType()); - Assertions.assertEquals("xvvy", model.resourceGroupId()); - } -} 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 deleted file mode 100644 index 15ca68cf0d437..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/AzureRetentionRuleTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureRetentionRule; -import com.azure.resourcemanager.dataprotection.models.CopyOption; -import com.azure.resourcemanager.dataprotection.models.DataStoreInfoBase; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; -import com.azure.resourcemanager.dataprotection.models.DeleteOption; -import com.azure.resourcemanager.dataprotection.models.SourceLifeCycle; -import com.azure.resourcemanager.dataprotection.models.TargetCopySetting; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -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\":\"j\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"wuenvr\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"uaibrebqaaysj\"}}]},{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"ixqtn\"},\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"tezlwff\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"pjpqqmtedltmmji\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"eozphv\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"uyqncygupkvipmd\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"wx\"}}]}],\"name\":\"upev\"}") - .toObject(AzureRetentionRule.class); - Assertions.assertEquals("upev", model.name()); - Assertions.assertEquals(true, model.isDefault()); - Assertions.assertEquals("j", model.lifecycles().get(0).deleteAfter().duration()); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, - model.lifecycles().get(0).sourceDataStore().dataStoreType()); - Assertions.assertEquals("wuenvr", model.lifecycles().get(0).sourceDataStore().objectType()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, - model.lifecycles().get(0).targetDataStoreCopySettings().get(0).dataStore().dataStoreType()); - Assertions.assertEquals("uaibrebqaaysj", - model.lifecycles().get(0).targetDataStoreCopySettings().get(0).dataStore().objectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureRetentionRule model = new AzureRetentionRule().withName("upev") - .withIsDefault(true) - .withLifecycles(Arrays.asList( - new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("j")) - .withSourceDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) - .withObjectType("wuenvr")) - .withTargetDataStoreCopySettings( - Arrays.asList(new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase() - .withDataStoreType(DataStoreTypes.VAULT_STORE) - .withObjectType("uaibrebqaaysj")))), - new SourceLifeCycle().withDeleteAfter(new DeleteOption().withDuration("ixqtn")) - .withSourceDataStore( - new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE).withObjectType("tezlwff")) - .withTargetDataStoreCopySettings(Arrays.asList( - new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) - .withObjectType("pjpqqmtedltmmji")), - new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) - .withObjectType("eozphv")), - new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) - .withObjectType("uyqncygupkvipmd")), - new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE) - .withObjectType("wx")))))); - model = BinaryData.fromObject(model).toObject(AzureRetentionRule.class); - Assertions.assertEquals("upev", model.name()); - Assertions.assertEquals(true, model.isDefault()); - Assertions.assertEquals("j", model.lifecycles().get(0).deleteAfter().duration()); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, - model.lifecycles().get(0).sourceDataStore().dataStoreType()); - Assertions.assertEquals("wuenvr", model.lifecycles().get(0).sourceDataStore().objectType()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, - model.lifecycles().get(0).targetDataStoreCopySettings().get(0).dataStore().dataStoreType()); - Assertions.assertEquals("uaibrebqaaysj", - 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/BackupCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupCriteriaTests.java deleted file mode 100644 index b5d5aa5d8caaa..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupCriteriaTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BackupCriteria; - -public final class BackupCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupCriteria model - = BinaryData.fromString("{\"objectType\":\"BackupCriteria\"}").toObject(BackupCriteria.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupCriteria model = new BackupCriteria(); - model = BinaryData.fromObject(model).toObject(BackupCriteria.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupDatasourceParametersTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupDatasourceParametersTests.java deleted file mode 100644 index 2d689d1ed460c..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupDatasourceParametersTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BackupDatasourceParameters; - -public final class BackupDatasourceParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupDatasourceParameters model = BinaryData.fromString("{\"objectType\":\"BackupDatasourceParameters\"}") - .toObject(BackupDatasourceParameters.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupDatasourceParameters model = new BackupDatasourceParameters(); - model = BinaryData.fromObject(model).toObject(BackupDatasourceParameters.class); - } -} 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 deleted file mode 100644 index 03ede445d4be5..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesAdhocBackupMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.AdHocBackupRuleOptions; -import com.azure.resourcemanager.dataprotection.models.AdhocBackupTriggerOption; -import com.azure.resourcemanager.dataprotection.models.OperationJobExtendedInfo; -import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest; -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 BackupInstancesAdhocBackupMockTests { - @Test - public void testAdhocBackup() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"sjnygqdnfwqzdzgt\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - OperationJobExtendedInfo response = manager.backupInstances() - .adhocBackup("zhhzjhfjmhvvmu", "gpmuneqsxvmhfbuz", "yihsasbhudypohyu", - new TriggerBackupRequest().withBackupRuleOptions(new AdHocBackupRuleOptions().withRuleName("ms") - .withTriggerOption(new AdhocBackupTriggerOption().withRetentionTagOverride("nsqyrpfoobrltt"))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("sjnygqdnfwqzdzgt", 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 deleted file mode 100644 index b2ec0d6e44b19..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesDeleteMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupInstancesDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.backupInstances() - .delete("nwsdtutnwlduyc", "uzhyrmewipmvekdx", "kuqgsjjxundxgket", 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 deleted file mode 100644 index a0b2ff5de29b5..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeBackupsMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupInstancesResumeBackupsMockTests { - @Test - public void testResumeBackups() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.backupInstances().resumeBackups("zaum", "eoohguufuzboyj", "thwtzol", 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 deleted file mode 100644 index 4f6e430e1b76f..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesResumeProtectionMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupInstancesResumeProtectionMockTests { - @Test - public void testResumeProtection() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.backupInstances() - .resumeProtection("a", "mwmdxmebwjscjpa", "lxveabfqx", 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 deleted file mode 100644 index f1468b520fcf7..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesStopProtectionMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.StopProtectionRequest; -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 BackupInstancesStopProtectionMockTests { - @Test - public void testStopProtection() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.backupInstances() - .stopProtection("mwmqtibx", "ijddtvqc", "tad", - new StopProtectionRequest().withResourceGuardOperationRequests(Arrays.asList("eukmr", "ieekpndzaa")), - 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 deleted file mode 100644 index 46a41057ba7aa..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSuspendBackupsMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.SuspendBackupRequest; -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 BackupInstancesSuspendBackupsMockTests { - @Test - public void testSuspendBackups() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.backupInstances() - .suspendBackups("mudqmeq", "igpibud", "wyxebeybpmzz", - new SuspendBackupRequest().withResourceGuardOperationRequests(Arrays.asList("ff", "aqi")), - 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 deleted file mode 100644 index d074696a81eb9..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesSyncBackupInstanceMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest; -import com.azure.resourcemanager.dataprotection.models.SyncType; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupInstancesSyncBackupInstanceMockTests { - @Test - public void testSyncBackupInstance() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.backupInstances() - .syncBackupInstance("mhh", "ioqaqhvs", "ufuqyrx", - 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 deleted file mode 100644 index c48b2439ef443..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerCrossRegionRestoreMockTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.CrossRegionRestoreDetails; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreRequestObject; -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 BackupInstancesTriggerCrossRegionRestoreMockTests { - @Test - public void testTriggerCrossRegionRestore() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"efedxihchrphkm\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - OperationJobExtendedInfo response = manager.backupInstances() - .triggerCrossRegionRestore("nrzvuljraaer", "nok", new CrossRegionRestoreRequestObject() - .withRestoreRequestObject(new AzureBackupRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("kkjqnvbroylaxxu")) - .withSourceDataStoreType(SourceDataStoreType.SNAPSHOT_STORE) - .withSourceResourceId("isdos") - .withResourceGuardOperationRequests(Arrays.asList("jsvg")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) - .withUserAssignedIdentityArmUrl("yvycytdclxgcckn"))) - .withCrossRegionRestoreDetails( - new CrossRegionRestoreDetails().withSourceRegion("nwm").withSourceBackupInstanceId("tmvpdvjdhtt")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("efedxihchrphkm", 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 deleted file mode 100644 index 437ed3bcbdad2..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesTriggerRestoreMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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 BackupInstancesTriggerRestoreMockTests { - @Test - public void testTriggerRestore() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"asylwx\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - OperationJobExtendedInfo response = manager.backupInstances() - .triggerRestore("a", "llibphbqzmizak", "kan", new AzureBackupRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("dnjzh")) - .withSourceDataStoreType(SourceDataStoreType.SNAPSHOT_STORE) - .withSourceResourceId("ylhjlm") - .withResourceGuardOperationRequests(Arrays.asList("xprimrsop")) - .withIdentityDetails( - new IdentityDetails().withUseSystemAssignedIdentity(true).withUserAssignedIdentityArmUrl("meisls")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("asylwx", 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 deleted file mode 100644 index 165dacf7559f8..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateCrossRegionRestoreMockTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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.CrossRegionRestoreDetails; -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.ValidateCrossRegionRestoreRequestObject; -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 BackupInstancesValidateCrossRegionRestoreMockTests { - @Test - public void testValidateCrossRegionRestore() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"mcwsldrizetpwb\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - OperationJobExtendedInfo response = manager.backupInstances() - .validateCrossRegionRestore("rjdqnsdfzp", "gtgkylkdghr", new ValidateCrossRegionRestoreRequestObject() - .withRestoreRequestObject(new AzureBackupRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("utlwxezwzhok")) - .withSourceDataStoreType(SourceDataStoreType.SNAPSHOT_STORE) - .withSourceResourceId("nhhtql") - .withResourceGuardOperationRequests( - Arrays.asList("gppipifh", "f", "oajvgcxtxjcs", "eafidltugsresm")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(true) - .withUserAssignedIdentityArmUrl("oiftxfkfwegprh"))) - .withCrossRegionRestoreDetails( - new CrossRegionRestoreDetails().withSourceRegion("tillucbiqtg").withSourceBackupInstanceId("q")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mcwsldrizetpwb", 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 deleted file mode 100644 index 575c6bcd4632d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupInstancesValidateForRestoreMockTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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 BackupInstancesValidateForRestoreMockTests { - @Test - public void testValidateForRestore() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"e\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - OperationJobExtendedInfo response = manager.backupInstances() - .validateForRestore("cgq", "sismjqfrddga", "quhiosrsjuivf", - new ValidateRestoreRequestObject().withRestoreRequestObject(new AzureBackupRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("syirnx")) - .withSourceDataStoreType(SourceDataStoreType.ARCHIVE_STORE) - .withSourceResourceId("zexrxzbujrt") - .withResourceGuardOperationRequests(Arrays.asList("vwrevkhgnlnzon", "lrpiqywnc")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(true) - .withUserAssignedIdentityArmUrl("cof"))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("e", response.jobId()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupParametersTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupParametersTests.java deleted file mode 100644 index a3eb65938e29b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupParametersTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BackupParameters; - -public final class BackupParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupParameters model - = BinaryData.fromString("{\"objectType\":\"BackupParameters\"}").toObject(BackupParameters.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupParameters model = new BackupParameters(); - model = BinaryData.fromObject(model).toObject(BackupParameters.class); - } -} 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 deleted file mode 100644 index 1315fe7b775a4..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy; -import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicyResource; -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 BackupPoliciesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"nowc\",\"hfgmvecactxm\",\"oteyowc\",\"uqovekqvgqouwif\"]},\"id\":\"pjwyiv\",\"name\":\"ikf\",\"type\":\"cvhrfsp\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - BaseBackupPolicyResource response = manager.backupPolicies() - .define("own") - .withExistingBackupVault("zjvusfzldmo", "uxylfsbtkadpy") - .withProperties(new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("kb", "grjqctojcmi", "of"))) - .create(); - - Assertions.assertEquals("nowc", 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 deleted file mode 100644 index 01cff3208ca8c..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupPoliciesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.backupPolicies() - .deleteWithResponse("knlrariaawiuagy", "wqfbylyrfgiagt", "ojocqwogf", 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 deleted file mode 100644 index ec99fbb5028fc..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicyResource; -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 BackupPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"gnhnzeyq\"]},\"id\":\"jjfzqlqhycavo\",\"name\":\"ggxdb\",\"type\":\"esmi\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - BaseBackupPolicyResource response = manager.backupPolicies() - .getWithResponse("jnaeois", "vhmgorffukis", "vwmzhwplefaxvxil", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gnhnzeyq", 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 deleted file mode 100644 index a4819ee29e043..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPoliciesListMockTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicyResource; -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 BackupPoliciesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"ocxvdfffwafqr\",\"udaspavehh\",\"vkbunzozudh\",\"xg\"]},\"id\":\"oyxcdyuib\",\"name\":\"mfdn\",\"type\":\"zydvfvf\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.backupPolicies().list("suxmpraf", "g", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ocxvdfffwafqr", 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 deleted file mode 100644 index e61441ec4d5bc..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupPolicyTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BackupPolicy; -import com.azure.resourcemanager.dataprotection.models.BasePolicyRule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BackupPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupPolicy model = BinaryData.fromString( - "{\"objectType\":\"BackupPolicy\",\"policyRules\":[{\"objectType\":\"BasePolicyRule\",\"name\":\"curdoiwiitht\"}],\"datasourceTypes\":[\"ubxcbihw\",\"knfd\"]}") - .toObject(BackupPolicy.class); - Assertions.assertEquals("ubxcbihw", model.datasourceTypes().get(0)); - Assertions.assertEquals("curdoiwiitht", model.policyRules().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupPolicy model = new BackupPolicy().withDatasourceTypes(Arrays.asList("ubxcbihw", "knfd")) - .withPolicyRules(Arrays.asList(new BasePolicyRule().withName("curdoiwiitht"))); - model = BinaryData.fromObject(model).toObject(BackupPolicy.class); - Assertions.assertEquals("ubxcbihw", model.datasourceTypes().get(0)); - Assertions.assertEquals("curdoiwiitht", 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 deleted file mode 100644 index 31f2d16362572..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupScheduleTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BackupSchedule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BackupScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BackupSchedule model = BinaryData - .fromString("{\"repeatingTimeIntervals\":[\"wjchrdg\",\"ihxumwctondzj\"],\"timeZone\":\"udfdlwgg\"}") - .toObject(BackupSchedule.class); - Assertions.assertEquals("wjchrdg", model.repeatingTimeIntervals().get(0)); - Assertions.assertEquals("udfdlwgg", model.timeZone()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BackupSchedule model - = new BackupSchedule().withRepeatingTimeIntervals(Arrays.asList("wjchrdg", "ihxumwctondzj")) - .withTimeZone("udfdlwgg"); - model = BinaryData.fromObject(model).toObject(BackupSchedule.class); - Assertions.assertEquals("wjchrdg", model.repeatingTimeIntervals().get(0)); - Assertions.assertEquals("udfdlwgg", 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 deleted file mode 100644 index 33a45a93bbaa6..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequest; -import com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityResult; -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 BackupVaultsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"message\":\"odbzevwrdnhf\",\"nameAvailable\":false,\"reason\":\"sjcswsmystuluqyp\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - CheckNameAvailabilityResult response = manager.backupVaults() - .checkNameAvailabilityWithResponse("nobaiyhddviacegf", "m", - new CheckNameAvailabilityRequest().withName("fpmvmemfnczd").withType("vbalxlllc"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("odbzevwrdnhf", response.message()); - Assertions.assertEquals(false, response.nameAvailable()); - Assertions.assertEquals("sjcswsmystuluqyp", 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 deleted file mode 100644 index 0ef2056bd2c49..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BackupVaultsDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class BackupVaultsDeleteMockTests { - @Test - public void testDelete() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.backupVaults().delete("yohpfkyrkdbdgiog", "jkmnwq", 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 deleted file mode 100644 index b4b2b5a9b5936..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.BaseBackupPolicyResourceInner; -import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BaseBackupPolicyResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BaseBackupPolicyResourceInner model = BinaryData.fromString( - "{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"ojnxqbzvdd\",\"t\",\"ndei\"]},\"id\":\"twnpzaoqvuhrhcf\",\"name\":\"cyddglmjthjqk\",\"type\":\"pyeicxm\"}") - .toObject(BaseBackupPolicyResourceInner.class); - Assertions.assertEquals("ojnxqbzvdd", 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("ojnxqbzvdd", "t", "ndei"))); - model = BinaryData.fromObject(model).toObject(BaseBackupPolicyResourceInner.class); - Assertions.assertEquals("ojnxqbzvdd", 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 deleted file mode 100644 index 319e2338ac935..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyResourceListTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.BaseBackupPolicyResourceInner; -import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy; -import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicyResourceList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BaseBackupPolicyResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BaseBackupPolicyResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"gcpo\"]},\"id\":\"maajrmvdjwzrlo\",\"name\":\"mcl\",\"type\":\"hijco\"},{\"properties\":{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"tbzaqsqsycbkbfk\",\"ukdkexxppofmxa\"]},\"id\":\"fjpgddtocjjxhvp\",\"name\":\"o\",\"type\":\"exhd\"}],\"nextLink\":\"i\"}") - .toObject(BaseBackupPolicyResourceList.class); - Assertions.assertEquals("i", model.nextLink()); - Assertions.assertEquals("gcpo", model.value().get(0).properties().datasourceTypes().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BaseBackupPolicyResourceList model = new BaseBackupPolicyResourceList().withNextLink("i") - .withValue(Arrays.asList( - new BaseBackupPolicyResourceInner() - .withProperties(new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("gcpo"))), - new BaseBackupPolicyResourceInner().withProperties( - new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("tbzaqsqsycbkbfk", "ukdkexxppofmxa"))))); - model = BinaryData.fromObject(model).toObject(BaseBackupPolicyResourceList.class); - Assertions.assertEquals("i", model.nextLink()); - Assertions.assertEquals("gcpo", 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 deleted file mode 100644 index 9d58cdab4d7bd..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseBackupPolicyTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BaseBackupPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BaseBackupPolicy model = BinaryData - .fromString("{\"objectType\":\"BaseBackupPolicy\",\"datasourceTypes\":[\"iwqvhkh\",\"xuigdtopbobj\"]}") - .toObject(BaseBackupPolicy.class); - Assertions.assertEquals("iwqvhkh", model.datasourceTypes().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BaseBackupPolicy model = new BaseBackupPolicy().withDatasourceTypes(Arrays.asList("iwqvhkh", "xuigdtopbobj")); - model = BinaryData.fromObject(model).toObject(BaseBackupPolicy.class); - Assertions.assertEquals("iwqvhkh", 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 deleted file mode 100644 index a0c8fa54cd889..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BasePolicyRuleTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BasePolicyRule; -import org.junit.jupiter.api.Assertions; - -public final class BasePolicyRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BasePolicyRule model = BinaryData.fromString("{\"objectType\":\"BasePolicyRule\",\"name\":\"vjayvblmhvkzu\"}") - .toObject(BasePolicyRule.class); - Assertions.assertEquals("vjayvblmhvkzu", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BasePolicyRule model = new BasePolicyRule().withName("vjayvblmhvkzu"); - model = BinaryData.fromObject(model).toObject(BasePolicyRule.class); - Assertions.assertEquals("vjayvblmhvkzu", model.name()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseResourcePropertiesTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseResourcePropertiesTests.java deleted file mode 100644 index 2a114393dbb2d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BaseResourcePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BaseResourceProperties; - -public final class BaseResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BaseResourceProperties model = BinaryData.fromString("{\"objectType\":\"BaseResourceProperties\"}") - .toObject(BaseResourceProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BaseResourceProperties model = new BaseResourceProperties(); - model = BinaryData.fromObject(model).toObject(BaseResourceProperties.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BlobBackupDatasourceParametersTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BlobBackupDatasourceParametersTests.java deleted file mode 100644 index 9c59ff0ba586b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/BlobBackupDatasourceParametersTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BlobBackupDatasourceParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BlobBackupDatasourceParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BlobBackupDatasourceParameters model = BinaryData.fromString( - "{\"objectType\":\"BlobBackupDatasourceParameters\",\"containersList\":[\"ejjoqkagfhsxtta\",\"gzxnfaazpxdtnk\"]}") - .toObject(BlobBackupDatasourceParameters.class); - Assertions.assertEquals("ejjoqkagfhsxtta", model.containersList().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BlobBackupDatasourceParameters model = new BlobBackupDatasourceParameters() - .withContainersList(Arrays.asList("ejjoqkagfhsxtta", "gzxnfaazpxdtnk")); - model = BinaryData.fromObject(model).toObject(BlobBackupDatasourceParameters.class); - Assertions.assertEquals("ejjoqkagfhsxtta", model.containersList().get(0)); - } -} 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 deleted file mode 100644 index e3c42dadf4386..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityRequestTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CheckNameAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameAvailabilityRequest model - = BinaryData.fromString("{\"name\":\"yhxhu\",\"type\":\"k\"}").toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("yhxhu", model.name()); - Assertions.assertEquals("k", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("yhxhu").withType("k"); - model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("yhxhu", model.name()); - Assertions.assertEquals("k", 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 deleted file mode 100644 index 944bce6a60884..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CheckNameAvailabilityResultInnerTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.CheckNameAvailabilityResultInner; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameAvailabilityResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameAvailabilityResultInner model - = BinaryData.fromString("{\"message\":\"yxolniwp\",\"nameAvailable\":true,\"reason\":\"jfkgiawxk\"}") - .toObject(CheckNameAvailabilityResultInner.class); - Assertions.assertEquals("yxolniwp", model.message()); - Assertions.assertEquals(true, model.nameAvailable()); - Assertions.assertEquals("jfkgiawxk", model.reason()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameAvailabilityResultInner model = new CheckNameAvailabilityResultInner().withMessage("yxolniwp") - .withNameAvailable(true) - .withReason("jfkgiawxk"); - model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityResultInner.class); - Assertions.assertEquals("yxolniwp", model.message()); - Assertions.assertEquals(true, model.nameAvailable()); - Assertions.assertEquals("jfkgiawxk", model.reason()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryDisplayTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryDisplayTests.java deleted file mode 100644 index d71788f273c1e..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryDisplayTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryDisplay; -import org.junit.jupiter.api.Assertions; - -public final class ClientDiscoveryDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClientDiscoveryDisplay model = BinaryData - .fromString( - "{\"description\":\"izgazxu\",\"operation\":\"zuckyfi\",\"provider\":\"fidfvzw\",\"resource\":\"uht\"}") - .toObject(ClientDiscoveryDisplay.class); - Assertions.assertEquals("izgazxu", model.description()); - Assertions.assertEquals("zuckyfi", model.operation()); - Assertions.assertEquals("fidfvzw", model.provider()); - Assertions.assertEquals("uht", model.resource()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClientDiscoveryDisplay model = new ClientDiscoveryDisplay().withDescription("izgazxu") - .withOperation("zuckyfi") - .withProvider("fidfvzw") - .withResource("uht"); - model = BinaryData.fromObject(model).toObject(ClientDiscoveryDisplay.class); - Assertions.assertEquals("izgazxu", model.description()); - Assertions.assertEquals("zuckyfi", model.operation()); - Assertions.assertEquals("fidfvzw", model.provider()); - Assertions.assertEquals("uht", model.resource()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForLogSpecificationTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForLogSpecificationTests.java deleted file mode 100644 index 4836861c7a493..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForLogSpecificationTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForLogSpecification; -import org.junit.jupiter.api.Assertions; - -public final class ClientDiscoveryForLogSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClientDiscoveryForLogSpecification model - = BinaryData.fromString("{\"blobDuration\":\"aodxo\",\"displayName\":\"bdxkqpxokaj\",\"name\":\"npime\"}") - .toObject(ClientDiscoveryForLogSpecification.class); - Assertions.assertEquals("aodxo", model.blobDuration()); - Assertions.assertEquals("bdxkqpxokaj", model.displayName()); - Assertions.assertEquals("npime", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClientDiscoveryForLogSpecification model = new ClientDiscoveryForLogSpecification().withBlobDuration("aodxo") - .withDisplayName("bdxkqpxokaj") - .withName("npime"); - model = BinaryData.fromObject(model).toObject(ClientDiscoveryForLogSpecification.class); - Assertions.assertEquals("aodxo", model.blobDuration()); - Assertions.assertEquals("bdxkqpxokaj", model.displayName()); - Assertions.assertEquals("npime", model.name()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForPropertiesTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForPropertiesTests.java deleted file mode 100644 index 3f0ce0b6b875e..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForPropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForLogSpecification; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForProperties; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClientDiscoveryForPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClientDiscoveryForProperties model = BinaryData.fromString( - "{\"serviceSpecification\":{\"logSpecifications\":[{\"blobDuration\":\"dkfthwxmnt\",\"displayName\":\"waopvkmijcmmxd\",\"name\":\"fufsrpymzi\"},{\"blobDuration\":\"sezcxtb\",\"displayName\":\"gfycc\",\"name\":\"ewmdw\"},{\"blobDuration\":\"eiachboosflnr\",\"displayName\":\"fqpte\",\"name\":\"zzvypyqrimzinp\"},{\"blobDuration\":\"wjdk\",\"displayName\":\"soodqxhcrmnoh\",\"name\":\"ckwhds\"}]}}") - .toObject(ClientDiscoveryForProperties.class); - Assertions.assertEquals("dkfthwxmnt", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("waopvkmijcmmxd", - model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("fufsrpymzi", model.serviceSpecification().logSpecifications().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClientDiscoveryForProperties model = new ClientDiscoveryForProperties() - .withServiceSpecification(new ClientDiscoveryForServiceSpecification().withLogSpecifications(Arrays.asList( - new ClientDiscoveryForLogSpecification().withBlobDuration("dkfthwxmnt") - .withDisplayName("waopvkmijcmmxd") - .withName("fufsrpymzi"), - new ClientDiscoveryForLogSpecification().withBlobDuration("sezcxtb") - .withDisplayName("gfycc") - .withName("ewmdw"), - new ClientDiscoveryForLogSpecification().withBlobDuration("eiachboosflnr") - .withDisplayName("fqpte") - .withName("zzvypyqrimzinp"), - new ClientDiscoveryForLogSpecification().withBlobDuration("wjdk") - .withDisplayName("soodqxhcrmnoh") - .withName("ckwhds")))); - model = BinaryData.fromObject(model).toObject(ClientDiscoveryForProperties.class); - Assertions.assertEquals("dkfthwxmnt", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("waopvkmijcmmxd", - model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("fufsrpymzi", model.serviceSpecification().logSpecifications().get(0).name()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForServiceSpecificationTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForServiceSpecificationTests.java deleted file mode 100644 index eeda1165fc001..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryForServiceSpecificationTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForLogSpecification; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClientDiscoveryForServiceSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClientDiscoveryForServiceSpecification model = BinaryData.fromString( - "{\"logSpecifications\":[{\"blobDuration\":\"yip\",\"displayName\":\"sqwpgrjb\",\"name\":\"orcjxvsnby\"},{\"blobDuration\":\"abnmocpcyshu\",\"displayName\":\"afbljjgpbtoqcjmk\",\"name\":\"a\"},{\"blobDuration\":\"qidtqajzyu\",\"displayName\":\"kudjkrlkhb\",\"name\":\"fepgzgq\"},{\"blobDuration\":\"zloc\",\"displayName\":\"c\",\"name\":\"ierhhbcsglummaj\"}]}") - .toObject(ClientDiscoveryForServiceSpecification.class); - Assertions.assertEquals("yip", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("sqwpgrjb", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("orcjxvsnby", model.logSpecifications().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClientDiscoveryForServiceSpecification model - = new ClientDiscoveryForServiceSpecification().withLogSpecifications(Arrays.asList( - new ClientDiscoveryForLogSpecification().withBlobDuration("yip") - .withDisplayName("sqwpgrjb") - .withName("orcjxvsnby"), - new ClientDiscoveryForLogSpecification().withBlobDuration("abnmocpcyshu") - .withDisplayName("afbljjgpbtoqcjmk") - .withName("a"), - new ClientDiscoveryForLogSpecification().withBlobDuration("qidtqajzyu") - .withDisplayName("kudjkrlkhb") - .withName("fepgzgq"), - new ClientDiscoveryForLogSpecification().withBlobDuration("zloc") - .withDisplayName("c") - .withName("ierhhbcsglummaj"))); - model = BinaryData.fromObject(model).toObject(ClientDiscoveryForServiceSpecification.class); - Assertions.assertEquals("yip", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("sqwpgrjb", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("orcjxvsnby", model.logSpecifications().get(0).name()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryResponseTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryResponseTests.java deleted file mode 100644 index 2c156524bfc29..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryResponseTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.ClientDiscoveryValueForSingleApiInner; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryDisplay; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForLogSpecification; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForProperties; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForServiceSpecification; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryResponse; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClientDiscoveryResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClientDiscoveryResponse model = BinaryData.fromString( - "{\"nextLink\":\"ypl\",\"value\":[{\"display\":{\"description\":\"syyp\",\"operation\":\"dhsgcba\",\"provider\":\"hejkotynqgou\",\"resource\":\"ndlik\"},\"name\":\"qkgfgibma\",\"isDataAction\":false,\"origin\":\"eqsrxybzqqedqyt\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{},{},{}]}}},{\"display\":{\"description\":\"flmmnk\",\"operation\":\"modmglougpb\",\"provider\":\"tmut\",\"resource\":\"qktapspwgcuert\"},\"name\":\"kdosvqw\",\"isDataAction\":true,\"origin\":\"gbbjfddgmbmbe\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{},{},{}]}}}]}") - .toObject(ClientDiscoveryResponse.class); - Assertions.assertEquals("ypl", model.nextLink()); - Assertions.assertEquals("syyp", model.value().get(0).display().description()); - Assertions.assertEquals("dhsgcba", model.value().get(0).display().operation()); - Assertions.assertEquals("hejkotynqgou", model.value().get(0).display().provider()); - Assertions.assertEquals("ndlik", model.value().get(0).display().resource()); - Assertions.assertEquals("qkgfgibma", model.value().get(0).name()); - Assertions.assertEquals(false, model.value().get(0).isDataAction()); - Assertions.assertEquals("eqsrxybzqqedqyt", model.value().get(0).origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClientDiscoveryResponse model = new ClientDiscoveryResponse().withNextLink("ypl") - .withValue(Arrays.asList( - new ClientDiscoveryValueForSingleApiInner() - .withDisplay(new ClientDiscoveryDisplay().withDescription("syyp") - .withOperation("dhsgcba") - .withProvider("hejkotynqgou") - .withResource("ndlik")) - .withName("qkgfgibma") - .withIsDataAction(false) - .withOrigin("eqsrxybzqqedqyt") - .withProperties(new ClientDiscoveryForProperties().withServiceSpecification( - new ClientDiscoveryForServiceSpecification().withLogSpecifications(Arrays.asList( - new ClientDiscoveryForLogSpecification(), new ClientDiscoveryForLogSpecification(), - new ClientDiscoveryForLogSpecification(), new ClientDiscoveryForLogSpecification())))), - new ClientDiscoveryValueForSingleApiInner() - .withDisplay(new ClientDiscoveryDisplay().withDescription("flmmnk") - .withOperation("modmglougpb") - .withProvider("tmut") - .withResource("qktapspwgcuert")) - .withName("kdosvqw") - .withIsDataAction(true) - .withOrigin("gbbjfddgmbmbe") - .withProperties(new ClientDiscoveryForProperties().withServiceSpecification( - new ClientDiscoveryForServiceSpecification().withLogSpecifications(Arrays.asList( - new ClientDiscoveryForLogSpecification(), new ClientDiscoveryForLogSpecification(), - new ClientDiscoveryForLogSpecification())))))); - model = BinaryData.fromObject(model).toObject(ClientDiscoveryResponse.class); - Assertions.assertEquals("ypl", model.nextLink()); - Assertions.assertEquals("syyp", model.value().get(0).display().description()); - Assertions.assertEquals("dhsgcba", model.value().get(0).display().operation()); - Assertions.assertEquals("hejkotynqgou", model.value().get(0).display().provider()); - Assertions.assertEquals("ndlik", model.value().get(0).display().resource()); - Assertions.assertEquals("qkgfgibma", model.value().get(0).name()); - Assertions.assertEquals(false, model.value().get(0).isDataAction()); - Assertions.assertEquals("eqsrxybzqqedqyt", model.value().get(0).origin()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryValueForSingleApiInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryValueForSingleApiInnerTests.java deleted file mode 100644 index 71da82aa36a88..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ClientDiscoveryValueForSingleApiInnerTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.ClientDiscoveryValueForSingleApiInner; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryDisplay; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForLogSpecification; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForProperties; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryForServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClientDiscoveryValueForSingleApiInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClientDiscoveryValueForSingleApiInner model = BinaryData.fromString( - "{\"display\":{\"description\":\"qrolfpf\",\"operation\":\"algbquxigjyjg\",\"provider\":\"aoyfhrtxilnerkuj\",\"resource\":\"vlejuvfqa\"},\"name\":\"lyxwjkcprbnwbx\",\"isDataAction\":false,\"origin\":\"bvpyss\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"blobDuration\":\"qguhmuo\",\"displayName\":\"f\",\"name\":\"wzwbnguitn\"}]}}}") - .toObject(ClientDiscoveryValueForSingleApiInner.class); - Assertions.assertEquals("qrolfpf", model.display().description()); - Assertions.assertEquals("algbquxigjyjg", model.display().operation()); - Assertions.assertEquals("aoyfhrtxilnerkuj", model.display().provider()); - Assertions.assertEquals("vlejuvfqa", model.display().resource()); - Assertions.assertEquals("lyxwjkcprbnwbx", model.name()); - Assertions.assertEquals(false, model.isDataAction()); - Assertions.assertEquals("bvpyss", model.origin()); - Assertions.assertEquals("qguhmuo", - model.properties().serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("f", - model.properties().serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("wzwbnguitn", - model.properties().serviceSpecification().logSpecifications().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClientDiscoveryValueForSingleApiInner model = new ClientDiscoveryValueForSingleApiInner() - .withDisplay(new ClientDiscoveryDisplay().withDescription("qrolfpf") - .withOperation("algbquxigjyjg") - .withProvider("aoyfhrtxilnerkuj") - .withResource("vlejuvfqa")) - .withName("lyxwjkcprbnwbx") - .withIsDataAction(false) - .withOrigin("bvpyss") - .withProperties(new ClientDiscoveryForProperties() - .withServiceSpecification(new ClientDiscoveryForServiceSpecification().withLogSpecifications( - Arrays.asList(new ClientDiscoveryForLogSpecification().withBlobDuration("qguhmuo") - .withDisplayName("f") - .withName("wzwbnguitn"))))); - model = BinaryData.fromObject(model).toObject(ClientDiscoveryValueForSingleApiInner.class); - Assertions.assertEquals("qrolfpf", model.display().description()); - Assertions.assertEquals("algbquxigjyjg", model.display().operation()); - Assertions.assertEquals("aoyfhrtxilnerkuj", model.display().provider()); - Assertions.assertEquals("vlejuvfqa", model.display().resource()); - Assertions.assertEquals("lyxwjkcprbnwbx", model.name()); - Assertions.assertEquals(false, model.isDataAction()); - Assertions.assertEquals("bvpyss", model.origin()); - Assertions.assertEquals("qguhmuo", - model.properties().serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("f", - model.properties().serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("wzwbnguitn", - model.properties().serviceSpecification().logSpecifications().get(0).name()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CmkKekIdentityTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CmkKekIdentityTests.java deleted file mode 100644 index 9b56ff24fa47c..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CmkKekIdentityTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CmkKekIdentity; -import com.azure.resourcemanager.dataprotection.models.IdentityType; -import org.junit.jupiter.api.Assertions; - -public final class CmkKekIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CmkKekIdentity model = BinaryData.fromString("{\"identityType\":\"UserAssigned\",\"identityId\":\"s\"}") - .toObject(CmkKekIdentity.class); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identityType()); - Assertions.assertEquals("s", model.identityId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CmkKekIdentity model = new CmkKekIdentity().withIdentityType(IdentityType.USER_ASSIGNED).withIdentityId("s"); - model = BinaryData.fromObject(model).toObject(CmkKekIdentity.class); - Assertions.assertEquals(IdentityType.USER_ASSIGNED, model.identityType()); - Assertions.assertEquals("s", model.identityId()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CopyOnExpiryOptionTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CopyOnExpiryOptionTests.java deleted file mode 100644 index dc0b043cb3136..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CopyOnExpiryOptionTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CopyOnExpiryOption; - -public final class CopyOnExpiryOptionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyOnExpiryOption model - = BinaryData.fromString("{\"objectType\":\"CopyOnExpiryOption\"}").toObject(CopyOnExpiryOption.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyOnExpiryOption model = new CopyOnExpiryOption(); - model = BinaryData.fromObject(model).toObject(CopyOnExpiryOption.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CopyOptionTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CopyOptionTests.java deleted file mode 100644 index 225d533dee2d3..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CopyOptionTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CopyOption; - -public final class CopyOptionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CopyOption model = BinaryData.fromString("{\"objectType\":\"CopyOption\"}").toObject(CopyOption.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CopyOption model = new CopyOption(); - model = BinaryData.fromObject(model).toObject(CopyOption.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreDetailsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreDetailsTests.java deleted file mode 100644 index dfe9dc7328fd4..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreDetailsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreDetails; -import org.junit.jupiter.api.Assertions; - -public final class CrossRegionRestoreDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CrossRegionRestoreDetails model - = BinaryData.fromString("{\"sourceRegion\":\"xbzpfzab\",\"sourceBackupInstanceId\":\"lcuhxwtctyqiklb\"}") - .toObject(CrossRegionRestoreDetails.class); - Assertions.assertEquals("xbzpfzab", model.sourceRegion()); - Assertions.assertEquals("lcuhxwtctyqiklb", model.sourceBackupInstanceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CrossRegionRestoreDetails model = new CrossRegionRestoreDetails().withSourceRegion("xbzpfzab") - .withSourceBackupInstanceId("lcuhxwtctyqiklb"); - model = BinaryData.fromObject(model).toObject(CrossRegionRestoreDetails.class); - Assertions.assertEquals("xbzpfzab", model.sourceRegion()); - Assertions.assertEquals("lcuhxwtctyqiklb", model.sourceBackupInstanceId()); - } -} 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 deleted file mode 100644 index 03b2882d363a2..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobRequestTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobRequest; -import org.junit.jupiter.api.Assertions; - -public final class CrossRegionRestoreJobRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CrossRegionRestoreJobRequest model = BinaryData - .fromString( - "{\"sourceRegion\":\"ie\",\"sourceBackupVaultId\":\"tfhvpesapskrdqmh\",\"jobId\":\"jdhtldwkyzxu\"}") - .toObject(CrossRegionRestoreJobRequest.class); - Assertions.assertEquals("ie", model.sourceRegion()); - Assertions.assertEquals("tfhvpesapskrdqmh", model.sourceBackupVaultId()); - Assertions.assertEquals("jdhtldwkyzxu", model.jobId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CrossRegionRestoreJobRequest model = new CrossRegionRestoreJobRequest().withSourceRegion("ie") - .withSourceBackupVaultId("tfhvpesapskrdqmh") - .withJobId("jdhtldwkyzxu"); - model = BinaryData.fromObject(model).toObject(CrossRegionRestoreJobRequest.class); - Assertions.assertEquals("ie", model.sourceRegion()); - Assertions.assertEquals("tfhvpesapskrdqmh", model.sourceBackupVaultId()); - Assertions.assertEquals("jdhtldwkyzxu", 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 deleted file mode 100644 index dae99f4948cd8..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreJobsRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreJobsRequest; -import org.junit.jupiter.api.Assertions; - -public final class CrossRegionRestoreJobsRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CrossRegionRestoreJobsRequest model - = BinaryData.fromString("{\"sourceRegion\":\"rwmdyvxqtay\",\"sourceBackupVaultId\":\"iwwroyqbexrmc\"}") - .toObject(CrossRegionRestoreJobsRequest.class); - Assertions.assertEquals("rwmdyvxqtay", model.sourceRegion()); - Assertions.assertEquals("iwwroyqbexrmc", model.sourceBackupVaultId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CrossRegionRestoreJobsRequest model = new CrossRegionRestoreJobsRequest().withSourceRegion("rwmdyvxqtay") - .withSourceBackupVaultId("iwwroyqbexrmc"); - model = BinaryData.fromObject(model).toObject(CrossRegionRestoreJobsRequest.class); - Assertions.assertEquals("rwmdyvxqtay", model.sourceRegion()); - Assertions.assertEquals("iwwroyqbexrmc", model.sourceBackupVaultId()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreRequestObjectTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreRequestObjectTests.java deleted file mode 100644 index b47bd866a0326..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreRequestObjectTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreDetails; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreRequestObject; -import com.azure.resourcemanager.dataprotection.models.IdentityDetails; -import com.azure.resourcemanager.dataprotection.models.RecoveryOption; -import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase; -import com.azure.resourcemanager.dataprotection.models.SourceDataStoreType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CrossRegionRestoreRequestObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CrossRegionRestoreRequestObject model = BinaryData.fromString( - "{\"restoreRequestObject\":{\"objectType\":\"AzureBackupRestoreRequest\",\"restoreTargetInfo\":{\"objectType\":\"RestoreTargetInfoBase\",\"recoveryOption\":\"FailIfExists\",\"restoreLocation\":\"xdbabphlwr\"},\"sourceDataStoreType\":\"SnapshotStore\",\"sourceResourceId\":\"ktsthsucocmny\",\"resourceGuardOperationRequests\":[\"t\"],\"identityDetails\":{\"useSystemAssignedIdentity\":false,\"userAssignedIdentityArmUrl\":\"rq\"}},\"crossRegionRestoreDetails\":{\"sourceRegion\":\"uedck\",\"sourceBackupInstanceId\":\"ywbiexzfeyueax\"}}") - .toObject(CrossRegionRestoreRequestObject.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, - model.restoreRequestObject().restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("xdbabphlwr", model.restoreRequestObject().restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.SNAPSHOT_STORE, model.restoreRequestObject().sourceDataStoreType()); - Assertions.assertEquals("ktsthsucocmny", model.restoreRequestObject().sourceResourceId()); - Assertions.assertEquals("t", model.restoreRequestObject().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(false, model.restoreRequestObject().identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("rq", model.restoreRequestObject().identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("uedck", model.crossRegionRestoreDetails().sourceRegion()); - Assertions.assertEquals("ywbiexzfeyueax", model.crossRegionRestoreDetails().sourceBackupInstanceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CrossRegionRestoreRequestObject model - = new CrossRegionRestoreRequestObject() - .withRestoreRequestObject(new AzureBackupRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("xdbabphlwr")) - .withSourceDataStoreType(SourceDataStoreType.SNAPSHOT_STORE) - .withSourceResourceId("ktsthsucocmny") - .withResourceGuardOperationRequests(Arrays.asList("t")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(false) - .withUserAssignedIdentityArmUrl("rq"))) - .withCrossRegionRestoreDetails(new CrossRegionRestoreDetails().withSourceRegion("uedck") - .withSourceBackupInstanceId("ywbiexzfeyueax")); - model = BinaryData.fromObject(model).toObject(CrossRegionRestoreRequestObject.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, - model.restoreRequestObject().restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("xdbabphlwr", model.restoreRequestObject().restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.SNAPSHOT_STORE, model.restoreRequestObject().sourceDataStoreType()); - Assertions.assertEquals("ktsthsucocmny", model.restoreRequestObject().sourceResourceId()); - Assertions.assertEquals("t", model.restoreRequestObject().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(false, model.restoreRequestObject().identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("rq", model.restoreRequestObject().identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("uedck", model.crossRegionRestoreDetails().sourceRegion()); - Assertions.assertEquals("ywbiexzfeyueax", model.crossRegionRestoreDetails().sourceBackupInstanceId()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreSettingsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreSettingsTests.java deleted file mode 100644 index afd4ec76bde7a..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossRegionRestoreSettingsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreSettings; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreState; -import org.junit.jupiter.api.Assertions; - -public final class CrossRegionRestoreSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CrossRegionRestoreSettings model - = BinaryData.fromString("{\"state\":\"Disabled\"}").toObject(CrossRegionRestoreSettings.class); - Assertions.assertEquals(CrossRegionRestoreState.DISABLED, model.state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CrossRegionRestoreSettings model = new CrossRegionRestoreSettings().withState(CrossRegionRestoreState.DISABLED); - model = BinaryData.fromObject(model).toObject(CrossRegionRestoreSettings.class); - Assertions.assertEquals(CrossRegionRestoreState.DISABLED, model.state()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossSubscriptionRestoreSettingsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossSubscriptionRestoreSettingsTests.java deleted file mode 100644 index edb538913e425..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CrossSubscriptionRestoreSettingsTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CrossSubscriptionRestoreSettings; -import com.azure.resourcemanager.dataprotection.models.CrossSubscriptionRestoreState; -import org.junit.jupiter.api.Assertions; - -public final class CrossSubscriptionRestoreSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CrossSubscriptionRestoreSettings model - = BinaryData.fromString("{\"state\":\"Enabled\"}").toObject(CrossSubscriptionRestoreSettings.class); - Assertions.assertEquals(CrossSubscriptionRestoreState.ENABLED, model.state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CrossSubscriptionRestoreSettings model - = new CrossSubscriptionRestoreSettings().withState(CrossSubscriptionRestoreState.ENABLED); - model = BinaryData.fromObject(model).toObject(CrossSubscriptionRestoreSettings.class); - Assertions.assertEquals(CrossSubscriptionRestoreState.ENABLED, model.state()); - } -} 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 deleted file mode 100644 index f503ae05ff70a..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/CustomCopyOptionTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CustomCopyOption; -import org.junit.jupiter.api.Assertions; - -public final class CustomCopyOptionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomCopyOption model = BinaryData.fromString("{\"objectType\":\"CustomCopyOption\",\"duration\":\"sb\"}") - .toObject(CustomCopyOption.class); - Assertions.assertEquals("sb", model.duration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomCopyOption model = new CustomCopyOption().withDuration("sb"); - model = BinaryData.fromObject(model).toObject(CustomCopyOption.class); - Assertions.assertEquals("sb", 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 deleted file mode 100644 index 39c89d1a2112d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionOperationsListMockTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.ClientDiscoveryValueForSingleApi; -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 DataProtectionOperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"display\":{\"description\":\"zzp\",\"operation\":\"a\",\"provider\":\"sdzhezww\",\"resource\":\"iqyuvvfo\"},\"name\":\"p\",\"isDataAction\":false,\"origin\":\"ikvylauya\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"blobDuration\":\"csttijfybvpoekr\",\"displayName\":\"sgbdhuz\",\"name\":\"njdgkynscliq\"},{\"blobDuration\":\"vhxnk\",\"displayName\":\"tkubotppn\",\"name\":\"xz\"},{\"blobDuration\":\"ihfrbbcevqa\",\"displayName\":\"ltd\",\"name\":\"fkqojpy\"},{\"blobDuration\":\"gtrd\",\"displayName\":\"ifmzzsd\",\"name\":\"brn\"}]}}}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.dataProtectionOperations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("zzp", response.iterator().next().display().description()); - Assertions.assertEquals("a", response.iterator().next().display().operation()); - Assertions.assertEquals("sdzhezww", response.iterator().next().display().provider()); - Assertions.assertEquals("iqyuvvfo", response.iterator().next().display().resource()); - Assertions.assertEquals("p", response.iterator().next().name()); - Assertions.assertEquals(false, response.iterator().next().isDataAction()); - Assertions.assertEquals("ikvylauya", response.iterator().next().origin()); - Assertions.assertEquals("csttijfybvpoekr", - response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("sgbdhuz", - response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("njdgkynscliq", - response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).name()); - } -} 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 deleted file mode 100644 index 6c8841e6beffa..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataProtectionsCheckFeatureSupportWithResponseMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.FeatureValidationRequestBase; -import com.azure.resourcemanager.dataprotection.models.FeatureValidationResponseBase; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DataProtectionsCheckFeatureSupportWithResponseMockTests { - @Test - public void testCheckFeatureSupportWithResponse() throws Exception { - String responseStr = "{\"objectType\":\"FeatureValidationResponseBase\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - FeatureValidationResponseBase response = manager.dataProtections() - .checkFeatureSupportWithResponse("digumbnr", 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 deleted file mode 100644 index 9bcaad3dd305f..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreInfoBaseTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DataStoreInfoBase; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; -import org.junit.jupiter.api.Assertions; - -public final class DataStoreInfoBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataStoreInfoBase model - = BinaryData.fromString("{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"tkkgllqwjy\"}") - .toObject(DataStoreInfoBase.class); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.dataStoreType()); - Assertions.assertEquals("tkkgllqwjy", model.objectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataStoreInfoBase model - = new DataStoreInfoBase().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE).withObjectType("tkkgllqwjy"); - model = BinaryData.fromObject(model).toObject(DataStoreInfoBase.class); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, model.dataStoreType()); - Assertions.assertEquals("tkkgllqwjy", model.objectType()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreParametersTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreParametersTests.java deleted file mode 100644 index 9b86c5d7197dd..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DataStoreParametersTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DataStoreParameters; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; -import org.junit.jupiter.api.Assertions; - -public final class DataStoreParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataStoreParameters model - = BinaryData.fromString("{\"objectType\":\"DataStoreParameters\",\"dataStoreType\":\"VaultStore\"}") - .toObject(DataStoreParameters.class); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.dataStoreType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataStoreParameters model = new DataStoreParameters().withDataStoreType(DataStoreTypes.VAULT_STORE); - model = BinaryData.fromObject(model).toObject(DataStoreParameters.class); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.dataStoreType()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DatasourceSetTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DatasourceSetTests.java deleted file mode 100644 index b7aba41ed1e9f..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DatasourceSetTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BaseResourceProperties; -import com.azure.resourcemanager.dataprotection.models.DatasourceSet; -import org.junit.jupiter.api.Assertions; - -public final class DatasourceSetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatasourceSet model = BinaryData.fromString( - "{\"datasourceType\":\"kevle\",\"objectType\":\"zfbuhf\",\"resourceID\":\"vfaxkffeiith\",\"resourceLocation\":\"m\",\"resourceName\":\"yvshxmz\",\"resourceType\":\"bzoggigrx\",\"resourceUri\":\"ur\",\"resourceProperties\":{\"objectType\":\"BaseResourceProperties\"}}") - .toObject(DatasourceSet.class); - Assertions.assertEquals("kevle", model.datasourceType()); - Assertions.assertEquals("zfbuhf", model.objectType()); - Assertions.assertEquals("vfaxkffeiith", model.resourceId()); - Assertions.assertEquals("m", model.resourceLocation()); - Assertions.assertEquals("yvshxmz", model.resourceName()); - Assertions.assertEquals("bzoggigrx", model.resourceType()); - Assertions.assertEquals("ur", model.resourceUri()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatasourceSet model = new DatasourceSet().withDatasourceType("kevle") - .withObjectType("zfbuhf") - .withResourceId("vfaxkffeiith") - .withResourceLocation("m") - .withResourceName("yvshxmz") - .withResourceType("bzoggigrx") - .withResourceUri("ur") - .withResourceProperties(new BaseResourceProperties()); - model = BinaryData.fromObject(model).toObject(DatasourceSet.class); - Assertions.assertEquals("kevle", model.datasourceType()); - Assertions.assertEquals("zfbuhf", model.objectType()); - Assertions.assertEquals("vfaxkffeiith", model.resourceId()); - Assertions.assertEquals("m", model.resourceLocation()); - Assertions.assertEquals("yvshxmz", model.resourceName()); - Assertions.assertEquals("bzoggigrx", model.resourceType()); - Assertions.assertEquals("ur", model.resourceUri()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DatasourceTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DatasourceTests.java deleted file mode 100644 index 5b015f2f83d9e..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DatasourceTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BaseResourceProperties; -import com.azure.resourcemanager.dataprotection.models.Datasource; -import org.junit.jupiter.api.Assertions; - -public final class DatasourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Datasource model = BinaryData.fromString( - "{\"datasourceType\":\"vnchrkcci\",\"objectType\":\"zjuqkhrsaj\",\"resourceID\":\"wkuofoskghsauu\",\"resourceLocation\":\"jmvxie\",\"resourceName\":\"ugidyjrr\",\"resourceType\":\"y\",\"resourceUri\":\"svexcsonpclhoco\",\"resourceProperties\":{\"objectType\":\"BaseResourceProperties\"}}") - .toObject(Datasource.class); - Assertions.assertEquals("vnchrkcci", model.datasourceType()); - Assertions.assertEquals("zjuqkhrsaj", model.objectType()); - Assertions.assertEquals("wkuofoskghsauu", model.resourceId()); - Assertions.assertEquals("jmvxie", model.resourceLocation()); - Assertions.assertEquals("ugidyjrr", model.resourceName()); - Assertions.assertEquals("y", model.resourceType()); - Assertions.assertEquals("svexcsonpclhoco", model.resourceUri()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Datasource model = new Datasource().withDatasourceType("vnchrkcci") - .withObjectType("zjuqkhrsaj") - .withResourceId("wkuofoskghsauu") - .withResourceLocation("jmvxie") - .withResourceName("ugidyjrr") - .withResourceType("y") - .withResourceUri("svexcsonpclhoco") - .withResourceProperties(new BaseResourceProperties()); - model = BinaryData.fromObject(model).toObject(Datasource.class); - Assertions.assertEquals("vnchrkcci", model.datasourceType()); - Assertions.assertEquals("zjuqkhrsaj", model.objectType()); - Assertions.assertEquals("wkuofoskghsauu", model.resourceId()); - Assertions.assertEquals("jmvxie", model.resourceLocation()); - Assertions.assertEquals("ugidyjrr", model.resourceName()); - Assertions.assertEquals("y", model.resourceType()); - Assertions.assertEquals("svexcsonpclhoco", model.resourceUri()); - } -} 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 deleted file mode 100644 index 05a6b454f0240..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DayTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.Day; -import org.junit.jupiter.api.Assertions; - -public final class DayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Day model = BinaryData.fromString("{\"date\":1284513946,\"isLast\":false}").toObject(Day.class); - Assertions.assertEquals(1284513946, model.date()); - Assertions.assertEquals(false, model.isLast()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Day model = new Day().withDate(1284513946).withIsLast(false); - model = BinaryData.fromObject(model).toObject(Day.class); - Assertions.assertEquals(1284513946, model.date()); - Assertions.assertEquals(false, model.isLast()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DefaultResourcePropertiesTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DefaultResourcePropertiesTests.java deleted file mode 100644 index b23ddd682193e..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DefaultResourcePropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DefaultResourceProperties; - -public final class DefaultResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DefaultResourceProperties model = BinaryData.fromString("{\"objectType\":\"DefaultResourceProperties\"}") - .toObject(DefaultResourceProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DefaultResourceProperties model = new DefaultResourceProperties(); - model = BinaryData.fromObject(model).toObject(DefaultResourceProperties.class); - } -} 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 deleted file mode 100644 index 3658eb4ad8d40..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeleteOptionTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DeleteOption; -import org.junit.jupiter.api.Assertions; - -public final class DeleteOptionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeleteOption model = BinaryData.fromString("{\"objectType\":\"DeleteOption\",\"duration\":\"ongbjcnt\"}") - .toObject(DeleteOption.class); - Assertions.assertEquals("ongbjcnt", model.duration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeleteOption model = new DeleteOption().withDuration("ongbjcnt"); - model = BinaryData.fromObject(model).toObject(DeleteOption.class); - Assertions.assertEquals("ongbjcnt", 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 deleted file mode 100644 index effb42ccd950a..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletedBackupInstancesUndeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DeletedBackupInstancesUndeleteMockTests { - @Test - public void testUndelete() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.deletedBackupInstances().undelete("twk", "aosrxuz", "oamktcq", 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 deleted file mode 100644 index 9984efc28682d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DeletionInfoTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DeletionInfo; - -public final class DeletionInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DeletionInfo model = BinaryData.fromString( - "{\"deletionTime\":\"xsdqrhzoymibmrqy\",\"billingEndDate\":\"ahwfluszdtmhrk\",\"scheduledPurgeTime\":\"fyyvoq\",\"deleteActivityID\":\"piexpbtgiw\"}") - .toObject(DeletionInfo.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DeletionInfo model = new DeletionInfo(); - model = BinaryData.fromObject(model).toObject(DeletionInfo.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseResourceInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseResourceInnerTests.java deleted file mode 100644 index 1f9fadf7dde1b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseResourceInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.DppBaseResourceInner; - -public final class DppBaseResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppBaseResourceInner model - = BinaryData.fromString("{\"id\":\"dgssofwqmzqal\",\"name\":\"mnjijpxacqqudf\",\"type\":\"yxbaaabjyvayf\"}") - .toObject(DppBaseResourceInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppBaseResourceInner model = new DppBaseResourceInner(); - model = BinaryData.fromObject(model).toObject(DppBaseResourceInner.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseResourceListTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseResourceListTests.java deleted file mode 100644 index d56568f957cb5..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseResourceListTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.DppBaseResourceInner; -import com.azure.resourcemanager.dataprotection.models.DppBaseResourceList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DppBaseResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppBaseResourceList model = BinaryData - .fromString( - "{\"value\":[{\"id\":\"duhpk\",\"name\":\"gymare\",\"type\":\"ajxq\"}],\"nextLink\":\"jhkycub\"}") - .toObject(DppBaseResourceList.class); - Assertions.assertEquals("jhkycub", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppBaseResourceList model - = new DppBaseResourceList().withValue(Arrays.asList(new DppBaseResourceInner())).withNextLink("jhkycub"); - model = BinaryData.fromObject(model).toObject(DppBaseResourceList.class); - Assertions.assertEquals("jhkycub", model.nextLink()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseTrackedResourceTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseTrackedResourceTests.java deleted file mode 100644 index d933b1ae4f097..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppBaseTrackedResourceTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DppBaseTrackedResource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DppBaseTrackedResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppBaseTrackedResource model = BinaryData.fromString( - "{\"eTag\":\"huyb\",\"location\":\"podepoo\",\"tags\":{\"eotusivyevc\":\"uvamiheognarxzxt\",\"un\":\"iqihn\",\"fygxgispemvtzfk\":\"bwjzr\"},\"id\":\"fublj\",\"name\":\"fxqeof\",\"type\":\"aeqjhqjbasvms\"}") - .toObject(DppBaseTrackedResource.class); - Assertions.assertEquals("podepoo", model.location()); - Assertions.assertEquals("uvamiheognarxzxt", model.tags().get("eotusivyevc")); - Assertions.assertEquals("huyb", model.etag()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppBaseTrackedResource model = new DppBaseTrackedResource().withLocation("podepoo") - .withTags(mapOf("eotusivyevc", "uvamiheognarxzxt", "un", "iqihn", "fygxgispemvtzfk", "bwjzr")) - .withEtag("huyb"); - model = BinaryData.fromObject(model).toObject(DppBaseTrackedResource.class); - Assertions.assertEquals("podepoo", model.location()); - Assertions.assertEquals("uvamiheognarxzxt", model.tags().get("eotusivyevc")); - Assertions.assertEquals("huyb", model.etag()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppIdentityDetailsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppIdentityDetailsTests.java deleted file mode 100644 index 2d967e6232dd4..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppIdentityDetailsTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DppIdentityDetails; -import com.azure.resourcemanager.dataprotection.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DppIdentityDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppIdentityDetails model = BinaryData.fromString( - "{\"principalId\":\"s\",\"tenantId\":\"zgvfcjrwz\",\"type\":\"xjtfelluwfzit\",\"userAssignedIdentities\":{\"fpjkjlxofp\":{\"principalId\":\"a5595328-c851-42a7-8364-f7fcfe736d42\",\"clientId\":\"6cf410a6-6afd-43f4-96f9-f388eb421f51\"},\"pfxxy\":{\"principalId\":\"52ec4462-df47-41cf-bfdb-3e287d3ab6a6\",\"clientId\":\"ca7e3a46-8992-416c-a7d1-ee88f864f555\"},\"i\":{\"principalId\":\"bf3c27d0-22cf-4ef5-8f58-656935c9baf9\",\"clientId\":\"da9cfb28-23ea-417f-ab03-e5e708da9d00\"}}}") - .toObject(DppIdentityDetails.class); - Assertions.assertEquals("xjtfelluwfzit", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppIdentityDetails model = new DppIdentityDetails().withType("xjtfelluwfzit") - .withUserAssignedIdentities(mapOf("fpjkjlxofp", new UserAssignedIdentity(), "pfxxy", - new UserAssignedIdentity(), "i", new UserAssignedIdentity())); - model = BinaryData.fromObject(model).toObject(DppIdentityDetails.class); - Assertions.assertEquals("xjtfelluwfzit", model.type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppProxyResourceTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppProxyResourceTests.java deleted file mode 100644 index e959884b5601d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppProxyResourceTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DppProxyResource; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DppProxyResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppProxyResource model = BinaryData.fromString( - "{\"tags\":{\"kix\":\"kgshwa\",\"eputtmrywnuzoqf\":\"bin\"},\"id\":\"yqzrnkcqvyxlw\",\"name\":\"zlsico\",\"type\":\"oqqnwvlryav\"}") - .toObject(DppProxyResource.class); - Assertions.assertEquals("kgshwa", model.tags().get("kix")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppProxyResource model = new DppProxyResource().withTags(mapOf("kix", "kgshwa", "eputtmrywnuzoqf", "bin")); - model = BinaryData.fromObject(model).toObject(DppProxyResource.class); - Assertions.assertEquals("kgshwa", model.tags().get("kix")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} 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 deleted file mode 100644 index b2da7045719a2..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardOperationDetail; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBaseResource; -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 DppResourceGuardProxiesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"resourceGuardResourceId\":\"mcp\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"hqepvufhbzehewh\",\"defaultResourceRequest\":\"hnl\"},{\"vaultCriticalOperation\":\"nbldxeaclgschori\",\"defaultResourceRequest\":\"rsrrmoucsofldp\"},{\"vaultCriticalOperation\":\"iyfc\",\"defaultResourceRequest\":\"beolh\"}],\"lastUpdatedTime\":\"lvbmxuqibsxtkcu\",\"description\":\"b\"},\"id\":\"arfsi\",\"name\":\"wlkjxn\",\"type\":\"pvwgfstmhqykizmd\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - ResourceGuardProxyBaseResource response = manager.dppResourceGuardProxies() - .define("d") - .withExistingBackupVault("bd", "bwwg") - .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("idmhmwf") - .withResourceGuardOperationDetails( - Arrays.asList(new ResourceGuardOperationDetail().withVaultCriticalOperation("muvapc") - .withDefaultResourceRequest("crrvweyo"))) - .withLastUpdatedTime("yyukphaimmo") - .withDescription("oqboshbragapyyr")) - .create(); - - Assertions.assertEquals("mcp", response.properties().resourceGuardResourceId()); - Assertions.assertEquals("hqepvufhbzehewh", - response.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("hnl", - response.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("lvbmxuqibsxtkcu", response.properties().lastUpdatedTime()); - Assertions.assertEquals("b", 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 deleted file mode 100644 index 47c2d3a3ebe41..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DppResourceGuardProxiesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.dppResourceGuardProxies() - .deleteWithResponse("bcrymodizrx", "lobdxna", "pmkmlmvevfx", 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 deleted file mode 100644 index 7449f4160c33d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesGetWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBaseResource; -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 DppResourceGuardProxiesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"resourceGuardResourceId\":\"gn\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"ewuninvud\",\"defaultResourceRequest\":\"h\"},{\"vaultCriticalOperation\":\"dtvqe\",\"defaultResourceRequest\":\"qct\"}],\"lastUpdatedTime\":\"xdtddmflhuytxzv\",\"description\":\"napxbannovv\"},\"id\":\"czytprwn\",\"name\":\"vroevytlyo\",\"type\":\"rrrouuxvnsa\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - ResourceGuardProxyBaseResource response = manager.dppResourceGuardProxies() - .getWithResponse("bo", "lcqxypokk", "minqcym", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gn", response.properties().resourceGuardResourceId()); - Assertions.assertEquals("ewuninvud", - response.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("h", - response.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("xdtddmflhuytxzv", response.properties().lastUpdatedTime()); - Assertions.assertEquals("napxbannovv", 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 deleted file mode 100644 index 160f6364a0fd7..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesListMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBaseResource; -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 DppResourceGuardProxiesListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"vqtanarfdlpuk\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"neizjcpe\",\"defaultResourceRequest\":\"khnmgbrou\"},{\"vaultCriticalOperation\":\"dbhfhp\",\"defaultResourceRequest\":\"azjzo\"},{\"vaultCriticalOperation\":\"jxhpdulontacn\",\"defaultResourceRequest\":\"w\"}],\"lastUpdatedTime\":\"htuevrhrljy\",\"description\":\"gwxhnsduugwbsreu\"},\"id\":\"q\",\"name\":\"fuarenlvhht\",\"type\":\"lnvnafvvkyfedev\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.dppResourceGuardProxies().list("axmqeqal", "hjnhgwydyynfsvk", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("vqtanarfdlpuk", response.iterator().next().properties().resourceGuardResourceId()); - Assertions.assertEquals("neizjcpe", - response.iterator().next().properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("khnmgbrou", - response.iterator().next().properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("htuevrhrljy", response.iterator().next().properties().lastUpdatedTime()); - Assertions.assertEquals("gwxhnsduugwbsreu", 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 deleted file mode 100644 index 2a5d397d869fe..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceGuardProxiesUnlockDeleteWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteResponse; -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 DppResourceGuardProxiesUnlockDeleteWithResponseMockTests { - @Test - public void testUnlockDeleteWithResponse() throws Exception { - String responseStr = "{\"unlockDeleteExpiryTime\":\"fyuicdh\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - UnlockDeleteResponse response = manager.dppResourceGuardProxies() - .unlockDeleteWithResponse("op", "hbzxli", "hrdd", - new UnlockDeleteRequest().withResourceGuardOperationRequests(Arrays.asList("gxqbawpcb")) - .withResourceToBeDeleted("zqcyknap"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("fyuicdh", response.unlockDeleteExpiryTime()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceListTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceListTests.java deleted file mode 100644 index 2cc25248488ef..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceListTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DppResourceList; -import org.junit.jupiter.api.Assertions; - -public final class DppResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppResourceList model - = BinaryData.fromString("{\"nextLink\":\"qulngsntnbybkzgc\"}").toObject(DppResourceList.class); - Assertions.assertEquals("qulngsntnbybkzgc", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppResourceList model = new DppResourceList().withNextLink("qulngsntnbybkzgc"); - model = BinaryData.fromObject(model).toObject(DppResourceList.class); - Assertions.assertEquals("qulngsntnbybkzgc", model.nextLink()); - } -} 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 deleted file mode 100644 index f6a6ae24ffe3b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppResourceTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DppResource; - -public final class DppResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppResource model - = BinaryData.fromString("{\"id\":\"hm\",\"name\":\"w\",\"type\":\"a\"}").toObject(DppResource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppResource model = new DppResource(); - model = BinaryData.fromObject(model).toObject(DppResource.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppTrackedResourceListTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppTrackedResourceListTests.java deleted file mode 100644 index db24958c8357f..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppTrackedResourceListTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DppTrackedResourceList; -import org.junit.jupiter.api.Assertions; - -public final class DppTrackedResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppTrackedResourceList model - = BinaryData.fromString("{\"nextLink\":\"fjhdg\"}").toObject(DppTrackedResourceList.class); - Assertions.assertEquals("fjhdg", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppTrackedResourceList model = new DppTrackedResourceList().withNextLink("fjhdg"); - model = BinaryData.fromObject(model).toObject(DppTrackedResourceList.class); - Assertions.assertEquals("fjhdg", model.nextLink()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppTrackedResourceTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppTrackedResourceTests.java deleted file mode 100644 index 51357845f390e..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppTrackedResourceTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DppIdentityDetails; -import com.azure.resourcemanager.dataprotection.models.DppTrackedResource; -import com.azure.resourcemanager.dataprotection.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DppTrackedResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppTrackedResource model = BinaryData.fromString( - "{\"identity\":{\"principalId\":\"wlokjyem\",\"tenantId\":\"vnipjox\",\"type\":\"nchgej\",\"userAssignedIdentities\":{\"ailzydehojwyahu\":{\"principalId\":\"23dde3d6-297b-499b-a6d1-f338e8a69c88\",\"clientId\":\"d456f9b1-edce-4908-8336-6a6720d3ed45\"},\"pmqnja\":{\"principalId\":\"13e4241c-ca6b-4717-968d-a60f7903e22b\",\"clientId\":\"892c985a-9f6e-403f-8d5d-be936a847ef8\"},\"xj\":{\"principalId\":\"de9096cb-2e06-4455-81de-4bb95f983840\",\"clientId\":\"410d9903-943d-4945-8830-91a38585a794\"}}},\"eTag\":\"r\",\"location\":\"vcputegj\",\"tags\":{\"dvpjhulsuuvmk\":\"fdatsc\",\"jdpvwryo\":\"ozkrwfndiodjpslw\",\"hbcryffdfdosyge\":\"psoacctazakljl\"},\"id\":\"paojakhmsbzjh\",\"name\":\"rzevdphlxaol\",\"type\":\"hqtrgqjbpf\"}") - .toObject(DppTrackedResource.class); - Assertions.assertEquals("vcputegj", model.location()); - Assertions.assertEquals("fdatsc", model.tags().get("dvpjhulsuuvmk")); - Assertions.assertEquals("r", model.etag()); - Assertions.assertEquals("nchgej", model.identity().type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppTrackedResource model = new DppTrackedResource().withLocation("vcputegj") - .withTags( - mapOf("dvpjhulsuuvmk", "fdatsc", "jdpvwryo", "ozkrwfndiodjpslw", "hbcryffdfdosyge", "psoacctazakljl")) - .withEtag("r") - .withIdentity(new DppIdentityDetails().withType("nchgej") - .withUserAssignedIdentities(mapOf("ailzydehojwyahu", new UserAssignedIdentity(), "pmqnja", - new UserAssignedIdentity(), "xj", new UserAssignedIdentity()))); - model = BinaryData.fromObject(model).toObject(DppTrackedResource.class); - Assertions.assertEquals("vcputegj", model.location()); - Assertions.assertEquals("fdatsc", model.tags().get("dvpjhulsuuvmk")); - Assertions.assertEquals("r", model.etag()); - Assertions.assertEquals("nchgej", model.identity().type()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppWorkerRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppWorkerRequestTests.java deleted file mode 100644 index 86941f94dafc5..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/DppWorkerRequestTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.DppWorkerRequest; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class DppWorkerRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DppWorkerRequest model = BinaryData.fromString( - "{\"subscriptionId\":\"bqwrvtldgm\",\"uri\":\"gvmpipaslthaqfx\",\"headers\":{\"owqkdwytisi\":[\"u\",\"wbdsr\",\"zpdrhneu\"],\"iavrm\":[\"rcgp\",\"kpzi\",\"ejzanlfz\"],\"pj\":[\"onok\",\"xrjqcirgzpfrlazs\",\"rnwoiindfp\"]},\"supportedGroupVersions\":[\"bt\",\"h\",\"lsj\"],\"cultureInfo\":\"hszfjvfb\",\"parameters\":{\"qmqhldvriii\":\"eljag\",\"vtvsexsowueluq\":\"jnalghf\",\"wws\":\"hahhxvrhmzkwpj\"},\"httpMethod\":\"ghftqsxhqxujxuk\"}") - .toObject(DppWorkerRequest.class); - Assertions.assertEquals("bqwrvtldgm", model.subscriptionId()); - Assertions.assertEquals("gvmpipaslthaqfx", model.uri()); - Assertions.assertEquals("u", model.headers().get("owqkdwytisi").get(0)); - Assertions.assertEquals("bt", model.supportedGroupVersions().get(0)); - Assertions.assertEquals("hszfjvfb", model.cultureInfo()); - Assertions.assertEquals("eljag", model.parameters().get("qmqhldvriii")); - Assertions.assertEquals("ghftqsxhqxujxuk", model.httpMethod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DppWorkerRequest model = new DppWorkerRequest().withSubscriptionId("bqwrvtldgm") - .withUri("gvmpipaslthaqfx") - .withHeaders(mapOf("owqkdwytisi", Arrays.asList("u", "wbdsr", "zpdrhneu"), "iavrm", - Arrays.asList("rcgp", "kpzi", "ejzanlfz"), "pj", - Arrays.asList("onok", "xrjqcirgzpfrlazs", "rnwoiindfp"))) - .withSupportedGroupVersions(Arrays.asList("bt", "h", "lsj")) - .withCultureInfo("hszfjvfb") - .withParameters(mapOf("qmqhldvriii", "eljag", "vtvsexsowueluq", "jnalghf", "wws", "hahhxvrhmzkwpj")) - .withHttpMethod("ghftqsxhqxujxuk"); - model = BinaryData.fromObject(model).toObject(DppWorkerRequest.class); - Assertions.assertEquals("bqwrvtldgm", model.subscriptionId()); - Assertions.assertEquals("gvmpipaslthaqfx", model.uri()); - Assertions.assertEquals("u", model.headers().get("owqkdwytisi").get(0)); - Assertions.assertEquals("bt", model.supportedGroupVersions().get(0)); - Assertions.assertEquals("hszfjvfb", model.cultureInfo()); - Assertions.assertEquals("eljag", model.parameters().get("qmqhldvriii")); - Assertions.assertEquals("ghftqsxhqxujxuk", model.httpMethod()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureSettingsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureSettingsTests.java deleted file mode 100644 index 90d11a9e7cea3..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureSettingsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreSettings; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreState; -import com.azure.resourcemanager.dataprotection.models.CrossSubscriptionRestoreSettings; -import com.azure.resourcemanager.dataprotection.models.CrossSubscriptionRestoreState; -import com.azure.resourcemanager.dataprotection.models.FeatureSettings; -import org.junit.jupiter.api.Assertions; - -public final class FeatureSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FeatureSettings model = BinaryData.fromString( - "{\"crossSubscriptionRestoreSettings\":{\"state\":\"Enabled\"},\"crossRegionRestoreSettings\":{\"state\":\"Enabled\"}}") - .toObject(FeatureSettings.class); - Assertions.assertEquals(CrossSubscriptionRestoreState.ENABLED, - model.crossSubscriptionRestoreSettings().state()); - Assertions.assertEquals(CrossRegionRestoreState.ENABLED, model.crossRegionRestoreSettings().state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FeatureSettings model = new FeatureSettings() - .withCrossSubscriptionRestoreSettings( - new CrossSubscriptionRestoreSettings().withState(CrossSubscriptionRestoreState.ENABLED)) - .withCrossRegionRestoreSettings( - new CrossRegionRestoreSettings().withState(CrossRegionRestoreState.ENABLED)); - model = BinaryData.fromObject(model).toObject(FeatureSettings.class); - Assertions.assertEquals(CrossSubscriptionRestoreState.ENABLED, - model.crossSubscriptionRestoreSettings().state()); - Assertions.assertEquals(CrossRegionRestoreState.ENABLED, model.crossRegionRestoreSettings().state()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestBaseTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestBaseTests.java deleted file mode 100644 index 5bc3d6ee89704..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestBaseTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.FeatureValidationRequestBase; - -public final class FeatureValidationRequestBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FeatureValidationRequestBase model = BinaryData.fromString("{\"objectType\":\"FeatureValidationRequestBase\"}") - .toObject(FeatureValidationRequestBase.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FeatureValidationRequestBase model = new FeatureValidationRequestBase(); - model = BinaryData.fromObject(model).toObject(FeatureValidationRequestBase.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 deleted file mode 100644 index c6d9b134e0879..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationRequestTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.FeatureType; -import com.azure.resourcemanager.dataprotection.models.FeatureValidationRequest; -import org.junit.jupiter.api.Assertions; - -public final class FeatureValidationRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FeatureValidationRequest model = BinaryData - .fromString( - "{\"objectType\":\"FeatureValidationRequest\",\"featureType\":\"Invalid\",\"featureName\":\"einqf\"}") - .toObject(FeatureValidationRequest.class); - Assertions.assertEquals(FeatureType.INVALID, model.featureType()); - Assertions.assertEquals("einqf", model.featureName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FeatureValidationRequest model - = new FeatureValidationRequest().withFeatureType(FeatureType.INVALID).withFeatureName("einqf"); - model = BinaryData.fromObject(model).toObject(FeatureValidationRequest.class); - Assertions.assertEquals(FeatureType.INVALID, model.featureType()); - Assertions.assertEquals("einqf", model.featureName()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseBaseInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseBaseInnerTests.java deleted file mode 100644 index 44100ad0500e0..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseBaseInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.FeatureValidationResponseBaseInner; - -public final class FeatureValidationResponseBaseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FeatureValidationResponseBaseInner model - = BinaryData.fromString("{\"objectType\":\"FeatureValidationResponseBase\"}") - .toObject(FeatureValidationResponseBaseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FeatureValidationResponseBaseInner model = new FeatureValidationResponseBaseInner(); - model = BinaryData.fromObject(model).toObject(FeatureValidationResponseBaseInner.class); - } -} 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 deleted file mode 100644 index aff972df1a991..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FeatureValidationResponseTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.FeatureSupportStatus; -import com.azure.resourcemanager.dataprotection.models.FeatureType; -import com.azure.resourcemanager.dataprotection.models.FeatureValidationResponse; -import com.azure.resourcemanager.dataprotection.models.SupportedFeature; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class FeatureValidationResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FeatureValidationResponse model = BinaryData.fromString( - "{\"objectType\":\"FeatureValidationResponse\",\"featureType\":\"DataSourceType\",\"features\":[{\"featureName\":\"npirgnepttw\",\"supportStatus\":\"PublicPreview\",\"exposureControlledFeatures\":[\"ffcdmqnrojl\",\"ijnkrxfrdd\",\"c\",\"atiz\"]}]}") - .toObject(FeatureValidationResponse.class); - Assertions.assertEquals(FeatureType.DATA_SOURCE_TYPE, model.featureType()); - Assertions.assertEquals("npirgnepttw", model.features().get(0).featureName()); - Assertions.assertEquals(FeatureSupportStatus.PUBLIC_PREVIEW, model.features().get(0).supportStatus()); - Assertions.assertEquals("ffcdmqnrojl", model.features().get(0).exposureControlledFeatures().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FeatureValidationResponse model = new FeatureValidationResponse().withFeatureType(FeatureType.DATA_SOURCE_TYPE) - .withFeatures(Arrays.asList(new SupportedFeature().withFeatureName("npirgnepttw") - .withSupportStatus(FeatureSupportStatus.PUBLIC_PREVIEW) - .withExposureControlledFeatures(Arrays.asList("ffcdmqnrojl", "ijnkrxfrdd", "c", "atiz")))); - model = BinaryData.fromObject(model).toObject(FeatureValidationResponse.class); - Assertions.assertEquals(FeatureType.DATA_SOURCE_TYPE, model.featureType()); - Assertions.assertEquals("npirgnepttw", model.features().get(0).featureName()); - Assertions.assertEquals(FeatureSupportStatus.PUBLIC_PREVIEW, model.features().get(0).supportStatus()); - Assertions.assertEquals("ffcdmqnrojl", 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 deleted file mode 100644 index 0d5f63346429b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRPsRequestParametersTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.FetchSecondaryRPsRequestParameters; -import org.junit.jupiter.api.Assertions; - -public final class FetchSecondaryRPsRequestParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FetchSecondaryRPsRequestParameters model - = BinaryData.fromString("{\"sourceRegion\":\"lqidyby\",\"sourceBackupInstanceId\":\"zfcl\"}") - .toObject(FetchSecondaryRPsRequestParameters.class); - Assertions.assertEquals("lqidyby", model.sourceRegion()); - Assertions.assertEquals("zfcl", model.sourceBackupInstanceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FetchSecondaryRPsRequestParameters model - = new FetchSecondaryRPsRequestParameters().withSourceRegion("lqidyby").withSourceBackupInstanceId("zfcl"); - model = BinaryData.fromObject(model).toObject(FetchSecondaryRPsRequestParameters.class); - Assertions.assertEquals("lqidyby", model.sourceRegion()); - Assertions.assertEquals("zfcl", 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 deleted file mode 100644 index 0e4a07bc7026b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/FetchSecondaryRecoveryPointsListMockTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRecoveryPointResource; -import com.azure.resourcemanager.dataprotection.models.FetchSecondaryRPsRequestParameters; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class FetchSecondaryRecoveryPointsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"nkrrf\",\"name\":\"eeebtijvacv\",\"type\":\"mq\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.fetchSecondaryRecoveryPoints() - .list("yui", "absnmfpp", - new FetchSecondaryRPsRequestParameters().withSourceRegion("jee") - .withSourceBackupInstanceId("hyhsgzfczbg"), - "mfg", "eglqgleohibetn", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/IdentityDetailsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/IdentityDetailsTests.java deleted file mode 100644 index 835ec1ec50793..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/IdentityDetailsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.IdentityDetails; -import org.junit.jupiter.api.Assertions; - -public final class IdentityDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IdentityDetails model - = BinaryData.fromString("{\"useSystemAssignedIdentity\":true,\"userAssignedIdentityArmUrl\":\"uxwgipwho\"}") - .toObject(IdentityDetails.class); - Assertions.assertEquals(true, model.useSystemAssignedIdentity()); - Assertions.assertEquals("uxwgipwho", model.userAssignedIdentityArmUrl()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IdentityDetails model - = new IdentityDetails().withUseSystemAssignedIdentity(true).withUserAssignedIdentityArmUrl("uxwgipwho"); - model = BinaryData.fromObject(model).toObject(IdentityDetails.class); - Assertions.assertEquals(true, model.useSystemAssignedIdentity()); - Assertions.assertEquals("uxwgipwho", model.userAssignedIdentityArmUrl()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ImmediateCopyOptionTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ImmediateCopyOptionTests.java deleted file mode 100644 index ddbd0bd2e8ac5..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ImmediateCopyOptionTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ImmediateCopyOption; - -public final class ImmediateCopyOptionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImmediateCopyOption model - = BinaryData.fromString("{\"objectType\":\"ImmediateCopyOption\"}").toObject(ImmediateCopyOption.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImmediateCopyOption model = new ImmediateCopyOption(); - model = BinaryData.fromObject(model).toObject(ImmediateCopyOption.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ImmutabilitySettingsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ImmutabilitySettingsTests.java deleted file mode 100644 index 21b6d86087817..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ImmutabilitySettingsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ImmutabilitySettings; -import com.azure.resourcemanager.dataprotection.models.ImmutabilityState; -import org.junit.jupiter.api.Assertions; - -public final class ImmutabilitySettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ImmutabilitySettings model - = BinaryData.fromString("{\"state\":\"Disabled\"}").toObject(ImmutabilitySettings.class); - Assertions.assertEquals(ImmutabilityState.DISABLED, model.state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ImmutabilitySettings model = new ImmutabilitySettings().withState(ImmutabilityState.DISABLED); - model = BinaryData.fromObject(model).toObject(ImmutabilitySettings.class); - Assertions.assertEquals(ImmutabilityState.DISABLED, model.state()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ItemLevelRestoreCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ItemLevelRestoreCriteriaTests.java deleted file mode 100644 index 227b0b19e7bff..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ItemLevelRestoreCriteriaTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreCriteria; - -public final class ItemLevelRestoreCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ItemLevelRestoreCriteria model = BinaryData.fromString("{\"objectType\":\"ItemLevelRestoreCriteria\"}") - .toObject(ItemLevelRestoreCriteria.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ItemLevelRestoreCriteria model = new ItemLevelRestoreCriteria(); - model = BinaryData.fromObject(model).toObject(ItemLevelRestoreCriteria.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ItemPathBasedRestoreCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ItemPathBasedRestoreCriteriaTests.java deleted file mode 100644 index d7bc3d4b4d56b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ItemPathBasedRestoreCriteriaTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ItemPathBasedRestoreCriteria; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ItemPathBasedRestoreCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ItemPathBasedRestoreCriteria model = BinaryData.fromString( - "{\"objectType\":\"ItemPathBasedRestoreCriteria\",\"itemPath\":\"avgrvkffovjz\",\"isPathRelativeToBackupItem\":false,\"subItemPathPrefix\":[\"ibgjmfxumvfcl\",\"yo\",\"wxnb\"]}") - .toObject(ItemPathBasedRestoreCriteria.class); - Assertions.assertEquals("avgrvkffovjz", model.itemPath()); - Assertions.assertEquals(false, model.isPathRelativeToBackupItem()); - Assertions.assertEquals("ibgjmfxumvfcl", model.subItemPathPrefix().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ItemPathBasedRestoreCriteria model = new ItemPathBasedRestoreCriteria().withItemPath("avgrvkffovjz") - .withIsPathRelativeToBackupItem(false) - .withSubItemPathPrefix(Arrays.asList("ibgjmfxumvfcl", "yo", "wxnb")); - model = BinaryData.fromObject(model).toObject(ItemPathBasedRestoreCriteria.class); - Assertions.assertEquals("avgrvkffovjz", model.itemPath()); - Assertions.assertEquals(false, model.isPathRelativeToBackupItem()); - Assertions.assertEquals("ibgjmfxumvfcl", model.subItemPathPrefix().get(0)); - } -} 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 deleted file mode 100644 index 60fb342fb81c4..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/JobSubTaskTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.JobSubTask; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class JobSubTaskTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - JobSubTask model = BinaryData.fromString( - "{\"additionalDetails\":{\"lrbpbewtghfgbl\":\"cswsrtjri\",\"zvlvqhjkbegib\":\"gw\"},\"taskId\":1806292295,\"taskName\":\"mxiebw\",\"taskProgress\":\"loayqcgw\",\"taskStatus\":\"tzjuzgwyzmhtxo\"}") - .toObject(JobSubTask.class); - Assertions.assertEquals("cswsrtjri", model.additionalDetails().get("lrbpbewtghfgbl")); - Assertions.assertEquals(1806292295, model.taskId()); - Assertions.assertEquals("mxiebw", model.taskName()); - Assertions.assertEquals("tzjuzgwyzmhtxo", model.taskStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - JobSubTask model - = new JobSubTask().withAdditionalDetails(mapOf("lrbpbewtghfgbl", "cswsrtjri", "zvlvqhjkbegib", "gw")) - .withTaskId(1806292295) - .withTaskName("mxiebw") - .withTaskStatus("tzjuzgwyzmhtxo"); - model = BinaryData.fromObject(model).toObject(JobSubTask.class); - Assertions.assertEquals("cswsrtjri", model.additionalDetails().get("lrbpbewtghfgbl")); - Assertions.assertEquals(1806292295, model.taskId()); - Assertions.assertEquals("mxiebw", model.taskName()); - Assertions.assertEquals("tzjuzgwyzmhtxo", model.taskStatus()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterBackupDatasourceParametersTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterBackupDatasourceParametersTests.java deleted file mode 100644 index bc22423dcf5ff..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterBackupDatasourceParametersTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.KubernetesClusterBackupDatasourceParameters; -import com.azure.resourcemanager.dataprotection.models.NamespacedNameResource; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class KubernetesClusterBackupDatasourceParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KubernetesClusterBackupDatasourceParameters model = BinaryData.fromString( - "{\"objectType\":\"KubernetesClusterBackupDatasourceParameters\",\"snapshotVolumes\":false,\"includeClusterScopeResources\":true,\"includedNamespaces\":[\"yrqufegxuvwz\",\"bnhlmc\"],\"excludedNamespaces\":[\"dn\"],\"includedResourceTypes\":[\"vgbmhr\",\"xkw\",\"yijejvegrhbpnaix\",\"xccbdreaxhcex\"],\"excludedResourceTypes\":[\"vqahqkghtpwi\",\"nhyjsv\",\"ycxzbfvoo\",\"vrvmtgjqppyost\"],\"labelSelectors\":[\"zm\"],\"backupHookReferences\":[{\"name\":\"ipn\",\"namespace\":\"kmcwaekrrjreafx\"},{\"name\":\"gumhjglikkxws\",\"namespace\":\"lbqpvuzlmvfelf\"}]}") - .toObject(KubernetesClusterBackupDatasourceParameters.class); - Assertions.assertEquals(false, model.snapshotVolumes()); - Assertions.assertEquals(true, model.includeClusterScopeResources()); - Assertions.assertEquals("yrqufegxuvwz", model.includedNamespaces().get(0)); - Assertions.assertEquals("dn", model.excludedNamespaces().get(0)); - Assertions.assertEquals("vgbmhr", model.includedResourceTypes().get(0)); - Assertions.assertEquals("vqahqkghtpwi", model.excludedResourceTypes().get(0)); - Assertions.assertEquals("zm", model.labelSelectors().get(0)); - Assertions.assertEquals("ipn", model.backupHookReferences().get(0).name()); - Assertions.assertEquals("kmcwaekrrjreafx", model.backupHookReferences().get(0).namespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KubernetesClusterBackupDatasourceParameters model - = new KubernetesClusterBackupDatasourceParameters().withSnapshotVolumes(false) - .withIncludeClusterScopeResources(true) - .withIncludedNamespaces(Arrays.asList("yrqufegxuvwz", "bnhlmc")) - .withExcludedNamespaces(Arrays.asList("dn")) - .withIncludedResourceTypes(Arrays.asList("vgbmhr", "xkw", "yijejvegrhbpnaix", "xccbdreaxhcex")) - .withExcludedResourceTypes(Arrays.asList("vqahqkghtpwi", "nhyjsv", "ycxzbfvoo", "vrvmtgjqppyost")) - .withLabelSelectors(Arrays.asList("zm")) - .withBackupHookReferences( - Arrays.asList(new NamespacedNameResource().withName("ipn").withNamespace("kmcwaekrrjreafx"), - new NamespacedNameResource().withName("gumhjglikkxws").withNamespace("lbqpvuzlmvfelf"))); - model = BinaryData.fromObject(model).toObject(KubernetesClusterBackupDatasourceParameters.class); - Assertions.assertEquals(false, model.snapshotVolumes()); - Assertions.assertEquals(true, model.includeClusterScopeResources()); - Assertions.assertEquals("yrqufegxuvwz", model.includedNamespaces().get(0)); - Assertions.assertEquals("dn", model.excludedNamespaces().get(0)); - Assertions.assertEquals("vgbmhr", model.includedResourceTypes().get(0)); - Assertions.assertEquals("vqahqkghtpwi", model.excludedResourceTypes().get(0)); - Assertions.assertEquals("zm", model.labelSelectors().get(0)); - Assertions.assertEquals("ipn", model.backupHookReferences().get(0).name()); - Assertions.assertEquals("kmcwaekrrjreafx", model.backupHookReferences().get(0).namespace()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterRestoreCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterRestoreCriteriaTests.java deleted file mode 100644 index 9122f7daf7877..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterRestoreCriteriaTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ExistingResourcePolicy; -import com.azure.resourcemanager.dataprotection.models.KubernetesClusterRestoreCriteria; -import com.azure.resourcemanager.dataprotection.models.NamespacedNameResource; -import com.azure.resourcemanager.dataprotection.models.PersistentVolumeRestoreMode; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class KubernetesClusterRestoreCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KubernetesClusterRestoreCriteria model = BinaryData.fromString( - "{\"objectType\":\"KubernetesClusterRestoreCriteria\",\"includeClusterScopeResources\":false,\"includedNamespaces\":[\"fhir\"],\"excludedNamespaces\":[\"moxoftpi\",\"iwyczuh\",\"a\",\"pqjlihhyusps\"],\"includedResourceTypes\":[\"dvlmfwdgzxul\",\"cvpa\",\"rsre\",\"zvxurisjnhny\"],\"excludedResourceTypes\":[\"fq\",\"zgxmr\"],\"labelSelectors\":[\"lw\",\"cesutrgjupauut\",\"woqhihe\"],\"persistentVolumeRestoreMode\":\"RestoreWithVolumeData\",\"conflictPolicy\":\"Patch\",\"namespaceMappings\":{\"xjvfoimwksl\":\"fqntcyp\"},\"restoreHookReferences\":[{\"name\":\"zjxvydfcea\",\"namespace\":\"lhvygdyftu\"},{\"name\":\"twnawjslbiwkojgc\",\"namespace\":\"tsf\"},{\"name\":\"nbaeqphchqn\",\"namespace\":\"rpxeh\"},{\"name\":\"rykqgaifmvikl\",\"namespace\":\"dvk\"}],\"resourceModifierReference\":{\"name\":\"jdz\",\"namespace\":\"cvdsrhnj\"}}") - .toObject(KubernetesClusterRestoreCriteria.class); - Assertions.assertEquals(false, model.includeClusterScopeResources()); - Assertions.assertEquals("fhir", model.includedNamespaces().get(0)); - Assertions.assertEquals("moxoftpi", model.excludedNamespaces().get(0)); - Assertions.assertEquals("dvlmfwdgzxul", model.includedResourceTypes().get(0)); - Assertions.assertEquals("fq", model.excludedResourceTypes().get(0)); - Assertions.assertEquals("lw", model.labelSelectors().get(0)); - Assertions.assertEquals(PersistentVolumeRestoreMode.RESTORE_WITH_VOLUME_DATA, - model.persistentVolumeRestoreMode()); - Assertions.assertEquals(ExistingResourcePolicy.PATCH, model.conflictPolicy()); - Assertions.assertEquals("fqntcyp", model.namespaceMappings().get("xjvfoimwksl")); - Assertions.assertEquals("zjxvydfcea", model.restoreHookReferences().get(0).name()); - Assertions.assertEquals("lhvygdyftu", model.restoreHookReferences().get(0).namespace()); - Assertions.assertEquals("jdz", model.resourceModifierReference().name()); - Assertions.assertEquals("cvdsrhnj", model.resourceModifierReference().namespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KubernetesClusterRestoreCriteria model - = new KubernetesClusterRestoreCriteria().withIncludeClusterScopeResources(false) - .withIncludedNamespaces(Arrays.asList("fhir")) - .withExcludedNamespaces(Arrays.asList("moxoftpi", "iwyczuh", "a", "pqjlihhyusps")) - .withIncludedResourceTypes(Arrays.asList("dvlmfwdgzxul", "cvpa", "rsre", "zvxurisjnhny")) - .withExcludedResourceTypes(Arrays.asList("fq", "zgxmr")) - .withLabelSelectors(Arrays.asList("lw", "cesutrgjupauut", "woqhihe")) - .withPersistentVolumeRestoreMode(PersistentVolumeRestoreMode.RESTORE_WITH_VOLUME_DATA) - .withConflictPolicy(ExistingResourcePolicy.PATCH) - .withNamespaceMappings(mapOf("xjvfoimwksl", "fqntcyp")) - .withRestoreHookReferences( - Arrays.asList(new NamespacedNameResource().withName("zjxvydfcea").withNamespace("lhvygdyftu"), - new NamespacedNameResource().withName("twnawjslbiwkojgc").withNamespace("tsf"), - new NamespacedNameResource().withName("nbaeqphchqn").withNamespace("rpxeh"), - new NamespacedNameResource().withName("rykqgaifmvikl").withNamespace("dvk"))) - .withResourceModifierReference(new NamespacedNameResource().withName("jdz").withNamespace("cvdsrhnj")); - model = BinaryData.fromObject(model).toObject(KubernetesClusterRestoreCriteria.class); - Assertions.assertEquals(false, model.includeClusterScopeResources()); - Assertions.assertEquals("fhir", model.includedNamespaces().get(0)); - Assertions.assertEquals("moxoftpi", model.excludedNamespaces().get(0)); - Assertions.assertEquals("dvlmfwdgzxul", model.includedResourceTypes().get(0)); - Assertions.assertEquals("fq", model.excludedResourceTypes().get(0)); - Assertions.assertEquals("lw", model.labelSelectors().get(0)); - Assertions.assertEquals(PersistentVolumeRestoreMode.RESTORE_WITH_VOLUME_DATA, - model.persistentVolumeRestoreMode()); - Assertions.assertEquals(ExistingResourcePolicy.PATCH, model.conflictPolicy()); - Assertions.assertEquals("fqntcyp", model.namespaceMappings().get("xjvfoimwksl")); - Assertions.assertEquals("zjxvydfcea", model.restoreHookReferences().get(0).name()); - Assertions.assertEquals("lhvygdyftu", model.restoreHookReferences().get(0).namespace()); - Assertions.assertEquals("jdz", model.resourceModifierReference().name()); - Assertions.assertEquals("cvdsrhnj", model.resourceModifierReference().namespace()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterVaultTierRestoreCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterVaultTierRestoreCriteriaTests.java deleted file mode 100644 index 816e7009bfcb0..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesClusterVaultTierRestoreCriteriaTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ExistingResourcePolicy; -import com.azure.resourcemanager.dataprotection.models.KubernetesClusterVaultTierRestoreCriteria; -import com.azure.resourcemanager.dataprotection.models.NamespacedNameResource; -import com.azure.resourcemanager.dataprotection.models.PersistentVolumeRestoreMode; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class KubernetesClusterVaultTierRestoreCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KubernetesClusterVaultTierRestoreCriteria model = BinaryData.fromString( - "{\"objectType\":\"KubernetesClusterVaultTierRestoreCriteria\",\"includeClusterScopeResources\":false,\"includedNamespaces\":[\"v\",\"novqfzge\"],\"excludedNamespaces\":[\"ftul\",\"ltducea\",\"tmczuomejwcwwqi\"],\"includedResourceTypes\":[\"ssxmojms\",\"p\",\"jpr\"],\"excludedResourceTypes\":[\"cfzq\",\"jyxgtczh\",\"ydbsd\"],\"labelSelectors\":[\"kx\"],\"persistentVolumeRestoreMode\":\"RestoreWithoutVolumeData\",\"conflictPolicy\":\"Patch\",\"namespaceMappings\":{\"iplt\":\"xu\",\"tbaxk\":\"n\"},\"restoreHookReferences\":[{\"name\":\"rc\",\"namespace\":\"yklyhpluodpvruud\"},{\"name\":\"zibt\",\"namespace\":\"stgktst\"}],\"stagingResourceGroupId\":\"xeclzedqbcvhzlhp\",\"stagingStorageAccountId\":\"dqkdlwwqfbu\",\"resourceModifierReference\":{\"name\":\"xtrqjfs\",\"namespace\":\"mbtxhwgf\"}}") - .toObject(KubernetesClusterVaultTierRestoreCriteria.class); - Assertions.assertEquals(false, model.includeClusterScopeResources()); - Assertions.assertEquals("v", model.includedNamespaces().get(0)); - Assertions.assertEquals("ftul", model.excludedNamespaces().get(0)); - Assertions.assertEquals("ssxmojms", model.includedResourceTypes().get(0)); - Assertions.assertEquals("cfzq", model.excludedResourceTypes().get(0)); - Assertions.assertEquals("kx", model.labelSelectors().get(0)); - Assertions.assertEquals(PersistentVolumeRestoreMode.RESTORE_WITHOUT_VOLUME_DATA, - model.persistentVolumeRestoreMode()); - Assertions.assertEquals(ExistingResourcePolicy.PATCH, model.conflictPolicy()); - Assertions.assertEquals("xu", model.namespaceMappings().get("iplt")); - Assertions.assertEquals("rc", model.restoreHookReferences().get(0).name()); - Assertions.assertEquals("yklyhpluodpvruud", model.restoreHookReferences().get(0).namespace()); - Assertions.assertEquals("xeclzedqbcvhzlhp", model.stagingResourceGroupId()); - Assertions.assertEquals("dqkdlwwqfbu", model.stagingStorageAccountId()); - Assertions.assertEquals("xtrqjfs", model.resourceModifierReference().name()); - Assertions.assertEquals("mbtxhwgf", model.resourceModifierReference().namespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KubernetesClusterVaultTierRestoreCriteria model = new KubernetesClusterVaultTierRestoreCriteria() - .withIncludeClusterScopeResources(false) - .withIncludedNamespaces(Arrays.asList("v", "novqfzge")) - .withExcludedNamespaces(Arrays.asList("ftul", "ltducea", "tmczuomejwcwwqi")) - .withIncludedResourceTypes(Arrays.asList("ssxmojms", "p", "jpr")) - .withExcludedResourceTypes(Arrays.asList("cfzq", "jyxgtczh", "ydbsd")) - .withLabelSelectors(Arrays.asList("kx")) - .withPersistentVolumeRestoreMode(PersistentVolumeRestoreMode.RESTORE_WITHOUT_VOLUME_DATA) - .withConflictPolicy(ExistingResourcePolicy.PATCH) - .withNamespaceMappings(mapOf("iplt", "xu", "tbaxk", "n")) - .withRestoreHookReferences( - Arrays.asList(new NamespacedNameResource().withName("rc").withNamespace("yklyhpluodpvruud"), - new NamespacedNameResource().withName("zibt").withNamespace("stgktst"))) - .withStagingResourceGroupId("xeclzedqbcvhzlhp") - .withStagingStorageAccountId("dqkdlwwqfbu") - .withResourceModifierReference(new NamespacedNameResource().withName("xtrqjfs").withNamespace("mbtxhwgf")); - model = BinaryData.fromObject(model).toObject(KubernetesClusterVaultTierRestoreCriteria.class); - Assertions.assertEquals(false, model.includeClusterScopeResources()); - Assertions.assertEquals("v", model.includedNamespaces().get(0)); - Assertions.assertEquals("ftul", model.excludedNamespaces().get(0)); - Assertions.assertEquals("ssxmojms", model.includedResourceTypes().get(0)); - Assertions.assertEquals("cfzq", model.excludedResourceTypes().get(0)); - Assertions.assertEquals("kx", model.labelSelectors().get(0)); - Assertions.assertEquals(PersistentVolumeRestoreMode.RESTORE_WITHOUT_VOLUME_DATA, - model.persistentVolumeRestoreMode()); - Assertions.assertEquals(ExistingResourcePolicy.PATCH, model.conflictPolicy()); - Assertions.assertEquals("xu", model.namespaceMappings().get("iplt")); - Assertions.assertEquals("rc", model.restoreHookReferences().get(0).name()); - Assertions.assertEquals("yklyhpluodpvruud", model.restoreHookReferences().get(0).namespace()); - Assertions.assertEquals("xeclzedqbcvhzlhp", model.stagingResourceGroupId()); - Assertions.assertEquals("dqkdlwwqfbu", model.stagingStorageAccountId()); - Assertions.assertEquals("xtrqjfs", model.resourceModifierReference().name()); - Assertions.assertEquals("mbtxhwgf", model.resourceModifierReference().namespace()); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesPVRestoreCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesPVRestoreCriteriaTests.java deleted file mode 100644 index 9b5cb431248e8..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesPVRestoreCriteriaTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.KubernetesPVRestoreCriteria; -import org.junit.jupiter.api.Assertions; - -public final class KubernetesPVRestoreCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KubernetesPVRestoreCriteria model = BinaryData - .fromString( - "{\"objectType\":\"KubernetesPVRestoreCriteria\",\"name\":\"gaojf\",\"storageClassName\":\"nc\"}") - .toObject(KubernetesPVRestoreCriteria.class); - Assertions.assertEquals("gaojf", model.name()); - Assertions.assertEquals("nc", model.storageClassName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KubernetesPVRestoreCriteria model - = new KubernetesPVRestoreCriteria().withName("gaojf").withStorageClassName("nc"); - model = BinaryData.fromObject(model).toObject(KubernetesPVRestoreCriteria.class); - Assertions.assertEquals("gaojf", model.name()); - Assertions.assertEquals("nc", model.storageClassName()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesStorageClassRestoreCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesStorageClassRestoreCriteriaTests.java deleted file mode 100644 index 17f6ab3bb9f73..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/KubernetesStorageClassRestoreCriteriaTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.KubernetesStorageClassRestoreCriteria; -import org.junit.jupiter.api.Assertions; - -public final class KubernetesStorageClassRestoreCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KubernetesStorageClassRestoreCriteria model = BinaryData.fromString( - "{\"objectType\":\"KubernetesStorageClassRestoreCriteria\",\"selectedStorageClassName\":\"iyujviylwdshfs\",\"provisioner\":\"rbgyefry\"}") - .toObject(KubernetesStorageClassRestoreCriteria.class); - Assertions.assertEquals("iyujviylwdshfs", model.selectedStorageClassName()); - Assertions.assertEquals("rbgyefry", model.provisioner()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KubernetesStorageClassRestoreCriteria model - = new KubernetesStorageClassRestoreCriteria().withSelectedStorageClassName("iyujviylwdshfs") - .withProvisioner("rbgyefry"); - model = BinaryData.fromObject(model).toObject(KubernetesStorageClassRestoreCriteria.class); - Assertions.assertEquals("iyujviylwdshfs", model.selectedStorageClassName()); - Assertions.assertEquals("rbgyefry", model.provisioner()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/MonitoringSettingsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/MonitoringSettingsTests.java deleted file mode 100644 index b3adffb860e82..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/MonitoringSettingsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AlertsState; -import com.azure.resourcemanager.dataprotection.models.AzureMonitorAlertSettings; -import com.azure.resourcemanager.dataprotection.models.MonitoringSettings; -import org.junit.jupiter.api.Assertions; - -public final class MonitoringSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MonitoringSettings model - = BinaryData.fromString("{\"azureMonitorAlertSettings\":{\"alertsForAllJobFailures\":\"Enabled\"}}") - .toObject(MonitoringSettings.class); - Assertions.assertEquals(AlertsState.ENABLED, model.azureMonitorAlertSettings().alertsForAllJobFailures()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MonitoringSettings model = new MonitoringSettings().withAzureMonitorAlertSettings( - new AzureMonitorAlertSettings().withAlertsForAllJobFailures(AlertsState.ENABLED)); - model = BinaryData.fromObject(model).toObject(MonitoringSettings.class); - Assertions.assertEquals(AlertsState.ENABLED, model.azureMonitorAlertSettings().alertsForAllJobFailures()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/NamespacedNameResourceTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/NamespacedNameResourceTests.java deleted file mode 100644 index 9d0928da82398..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/NamespacedNameResourceTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.NamespacedNameResource; -import org.junit.jupiter.api.Assertions; - -public final class NamespacedNameResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NamespacedNameResource model - = BinaryData.fromString("{\"name\":\"gplcrpwjxeznoigb\",\"namespace\":\"jwmwkpnbs\"}") - .toObject(NamespacedNameResource.class); - Assertions.assertEquals("gplcrpwjxeznoigb", model.name()); - Assertions.assertEquals("jwmwkpnbs", model.namespace()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NamespacedNameResource model - = new NamespacedNameResource().withName("gplcrpwjxeznoigb").withNamespace("jwmwkpnbs"); - model = BinaryData.fromObject(model).toObject(NamespacedNameResource.class); - Assertions.assertEquals("gplcrpwjxeznoigb", model.name()); - Assertions.assertEquals("jwmwkpnbs", model.namespace()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationExtendedInfoTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationExtendedInfoTests.java deleted file mode 100644 index e62233037ffa5..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationExtendedInfoTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.OperationExtendedInfo; - -public final class OperationExtendedInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationExtendedInfo model - = BinaryData.fromString("{\"objectType\":\"OperationExtendedInfo\"}").toObject(OperationExtendedInfo.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationExtendedInfo model = new OperationExtendedInfo(); - model = BinaryData.fromObject(model).toObject(OperationExtendedInfo.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationJobExtendedInfoInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationJobExtendedInfoInnerTests.java deleted file mode 100644 index 96dc0ac377e32..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationJobExtendedInfoInnerTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.OperationJobExtendedInfoInner; -import org.junit.jupiter.api.Assertions; - -public final class OperationJobExtendedInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationJobExtendedInfoInner model - = BinaryData.fromString("{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"wclxxwrl\"}") - .toObject(OperationJobExtendedInfoInner.class); - Assertions.assertEquals("wclxxwrl", model.jobId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationJobExtendedInfoInner model = new OperationJobExtendedInfoInner().withJobId("wclxxwrl"); - model = BinaryData.fromObject(model).toObject(OperationJobExtendedInfoInner.class); - Assertions.assertEquals("wclxxwrl", model.jobId()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResourceInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResourceInnerTests.java deleted file mode 100644 index f2bf2f3064e21..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResourceInnerTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner; -import com.azure.resourcemanager.dataprotection.models.OperationExtendedInfo; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class OperationResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationResourceInner model = BinaryData.fromString( - "{\"endTime\":\"2021-04-08T16:53:01Z\",\"id\":\"kcqvkocrc\",\"name\":\"kwt\",\"properties\":{\"objectType\":\"OperationExtendedInfo\"},\"startTime\":\"2021-08-17T00:59:03Z\",\"status\":\"jbiksqrglssai\"}") - .toObject(OperationResourceInner.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-08T16:53:01Z"), model.endTime()); - Assertions.assertEquals("kcqvkocrc", model.id()); - Assertions.assertEquals("kwt", model.name()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-17T00:59:03Z"), model.startTime()); - Assertions.assertEquals("jbiksqrglssai", model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationResourceInner model - = new OperationResourceInner().withEndTime(OffsetDateTime.parse("2021-04-08T16:53:01Z")) - .withId("kcqvkocrc") - .withName("kwt") - .withProperties(new OperationExtendedInfo()) - .withStartTime(OffsetDateTime.parse("2021-08-17T00:59:03Z")) - .withStatus("jbiksqrglssai"); - model = BinaryData.fromObject(model).toObject(OperationResourceInner.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-08T16:53:01Z"), model.endTime()); - Assertions.assertEquals("kcqvkocrc", model.id()); - Assertions.assertEquals("kwt", model.name()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-17T00:59:03Z"), model.startTime()); - Assertions.assertEquals("jbiksqrglssai", model.status()); - } -} 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 deleted file mode 100644 index d6831e368e9b9..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationResultsGetWithResponseMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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 OperationResultsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr = "{\"objectType\":\"OperationJobExtendedInfo\",\"jobId\":\"gogtqxepnylbf\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - OperationJobExtendedInfo response = manager.operationResults() - .getWithResponse("zoggculapz", "y", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gogtqxepnylbf", response.jobId()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusBackupVaultContextsGetWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusBackupVaultContextsGetWithResponseMockTests.java deleted file mode 100644 index f31a41441ad8a..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusBackupVaultContextsGetWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.OperationResource; -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 OperationStatusBackupVaultContextsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"endTime\":\"2021-09-21T01:20:37Z\",\"id\":\"stmjlxrri\",\"name\":\"zapeewchpx\",\"properties\":{\"objectType\":\"OperationExtendedInfo\"},\"startTime\":\"2021-02-02T07:23:35Z\",\"status\":\"uziycsl\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - OperationResource response = manager.operationStatusBackupVaultContexts() - .getWithResponse("jrkambtrnegvmnv", "q", "qvldspastjbkkd", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(OffsetDateTime.parse("2021-09-21T01:20:37Z"), response.endTime()); - Assertions.assertEquals("stmjlxrri", response.id()); - Assertions.assertEquals("zapeewchpx", response.name()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-02T07:23:35Z"), response.startTime()); - Assertions.assertEquals("uziycsl", response.status()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusGetWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusGetWithResponseMockTests.java deleted file mode 100644 index 17b68a219e6c2..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusGetWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.OperationResource; -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 OperationStatusGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"endTime\":\"2021-11-02T17:47:35Z\",\"id\":\"uxrkjp\",\"name\":\"w\",\"properties\":{\"objectType\":\"OperationExtendedInfo\"},\"startTime\":\"2021-11-26T03:34:39Z\",\"status\":\"ivwzjbhyzs\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - OperationResource response = manager.operationStatus() - .getWithResponse("ajlyjtlvofqzhv", "cib", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T17:47:35Z"), response.endTime()); - Assertions.assertEquals("uxrkjp", response.id()); - Assertions.assertEquals("w", response.name()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-26T03:34:39Z"), response.startTime()); - Assertions.assertEquals("ivwzjbhyzs", response.status()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusResourceGroupContextsGetByResourceGroupWithResponseMockTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusResourceGroupContextsGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 3ad0be6f30eb5..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/OperationStatusResourceGroupContextsGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.OperationResource; -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 OperationStatusResourceGroupContextsGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"endTime\":\"2020-12-20T03:18:20Z\",\"id\":\"wmmrq\",\"name\":\"rr\",\"properties\":{\"objectType\":\"OperationExtendedInfo\"},\"startTime\":\"2021-06-19T06:11:37Z\",\"status\":\"ydzgkrvqeevtoe\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - OperationResource response = manager.operationStatusResourceGroupContexts() - .getByResourceGroupWithResponse("vu", "uztcktyhjtqed", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(OffsetDateTime.parse("2020-12-20T03:18:20Z"), response.endTime()); - Assertions.assertEquals("wmmrq", response.id()); - Assertions.assertEquals("rr", response.name()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T06:11:37Z"), response.startTime()); - Assertions.assertEquals("ydzgkrvqeevtoe", response.status()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PatchResourceGuardInputTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PatchResourceGuardInputTests.java deleted file mode 100644 index bc0eee2b332a4..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PatchResourceGuardInputTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.PatchResourceGuardInput; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PatchResourceGuardInputTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PatchResourceGuardInput model = BinaryData - .fromString("{\"tags\":{\"eqidbqfatpx\":\"ebdunyg\",\"cyjmoadsuvarmy\":\"lr\",\"hhyxxrw\":\"dmjsjqb\"}}") - .toObject(PatchResourceGuardInput.class); - Assertions.assertEquals("ebdunyg", model.tags().get("eqidbqfatpx")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PatchResourceGuardInput model = new PatchResourceGuardInput() - .withTags(mapOf("eqidbqfatpx", "ebdunyg", "cyjmoadsuvarmy", "lr", "hhyxxrw", "dmjsjqb")); - model = BinaryData.fromObject(model).toObject(PatchResourceGuardInput.class); - Assertions.assertEquals("ebdunyg", model.tags().get("eqidbqfatpx")); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PolicyInfoTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PolicyInfoTests.java deleted file mode 100644 index 2dd403f364c26..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PolicyInfoTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BackupDatasourceParameters; -import com.azure.resourcemanager.dataprotection.models.DataStoreParameters; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; -import com.azure.resourcemanager.dataprotection.models.PolicyInfo; -import com.azure.resourcemanager.dataprotection.models.PolicyParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PolicyInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolicyInfo model = BinaryData.fromString( - "{\"policyId\":\"xxjnspydptk\",\"policyVersion\":\"nkoukn\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"DataStoreParameters\",\"dataStoreType\":\"OperationalStore\"},{\"objectType\":\"DataStoreParameters\",\"dataStoreType\":\"OperationalStore\"},{\"objectType\":\"DataStoreParameters\",\"dataStoreType\":\"OperationalStore\"}],\"backupDatasourceParametersList\":[{\"objectType\":\"BackupDatasourceParameters\"},{\"objectType\":\"BackupDatasourceParameters\"},{\"objectType\":\"BackupDatasourceParameters\"}]}}") - .toObject(PolicyInfo.class); - Assertions.assertEquals("xxjnspydptk", model.policyId()); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, - model.policyParameters().dataStoreParametersList().get(0).dataStoreType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolicyInfo model = new PolicyInfo().withPolicyId("xxjnspydptk") - .withPolicyParameters(new PolicyParameters() - .withDataStoreParametersList( - Arrays.asList(new DataStoreParameters().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE), - new DataStoreParameters().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE), - new DataStoreParameters().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE))) - .withBackupDatasourceParametersList(Arrays.asList(new BackupDatasourceParameters(), - new BackupDatasourceParameters(), new BackupDatasourceParameters()))); - model = BinaryData.fromObject(model).toObject(PolicyInfo.class); - Assertions.assertEquals("xxjnspydptk", model.policyId()); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, - model.policyParameters().dataStoreParametersList().get(0).dataStoreType()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PolicyParametersTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PolicyParametersTests.java deleted file mode 100644 index aa21e7c319c89..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/PolicyParametersTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BackupDatasourceParameters; -import com.azure.resourcemanager.dataprotection.models.DataStoreParameters; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; -import com.azure.resourcemanager.dataprotection.models.PolicyParameters; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PolicyParametersTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PolicyParameters model = BinaryData.fromString( - "{\"dataStoreParametersList\":[{\"objectType\":\"DataStoreParameters\",\"dataStoreType\":\"OperationalStore\"}],\"backupDatasourceParametersList\":[{\"objectType\":\"BackupDatasourceParameters\"}]}") - .toObject(PolicyParameters.class); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, - model.dataStoreParametersList().get(0).dataStoreType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PolicyParameters model = new PolicyParameters() - .withDataStoreParametersList( - Arrays.asList(new DataStoreParameters().withDataStoreType(DataStoreTypes.OPERATIONAL_STORE))) - .withBackupDatasourceParametersList(Arrays.asList(new BackupDatasourceParameters())); - model = BinaryData.fromObject(model).toObject(PolicyParameters.class); - Assertions.assertEquals(DataStoreTypes.OPERATIONAL_STORE, - model.dataStoreParametersList().get(0).dataStoreType()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RangeBasedItemLevelRestoreCriteriaTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RangeBasedItemLevelRestoreCriteriaTests.java deleted file mode 100644 index 742bf35d77795..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RangeBasedItemLevelRestoreCriteriaTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.RangeBasedItemLevelRestoreCriteria; -import org.junit.jupiter.api.Assertions; - -public final class RangeBasedItemLevelRestoreCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RangeBasedItemLevelRestoreCriteria model = BinaryData.fromString( - "{\"objectType\":\"RangeBasedItemLevelRestoreCriteria\",\"minMatchingValue\":\"ezzxscyhwzdgiruj\",\"maxMatchingValue\":\"bomvzzbtdcqv\"}") - .toObject(RangeBasedItemLevelRestoreCriteria.class); - Assertions.assertEquals("ezzxscyhwzdgiruj", model.minMatchingValue()); - Assertions.assertEquals("bomvzzbtdcqv", model.maxMatchingValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RangeBasedItemLevelRestoreCriteria model - = new RangeBasedItemLevelRestoreCriteria().withMinMatchingValue("ezzxscyhwzdgiruj") - .withMaxMatchingValue("bomvzzbtdcqv"); - model = BinaryData.fromObject(model).toObject(RangeBasedItemLevelRestoreCriteria.class); - Assertions.assertEquals("ezzxscyhwzdgiruj", model.minMatchingValue()); - Assertions.assertEquals("bomvzzbtdcqv", model.maxMatchingValue()); - } -} 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 deleted file mode 100644 index 28fd591f65709..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointDataStoreDetailsTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.RecoveryPointDataStoreDetails; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class RecoveryPointDataStoreDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoveryPointDataStoreDetails model = BinaryData.fromString( - "{\"creationTime\":\"2021-11-04T08:30:12Z\",\"expiryTime\":\"2021-01-09T07:06:25Z\",\"id\":\"h\",\"metaData\":\"sx\",\"state\":\"pelol\",\"type\":\"vk\",\"visible\":true,\"rehydrationExpiryTime\":\"2021-02-05T20:48:24Z\",\"rehydrationStatus\":\"CREATE_IN_PROGRESS\"}") - .toObject(RecoveryPointDataStoreDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-04T08:30:12Z"), model.creationTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-09T07:06:25Z"), model.expiryTime()); - Assertions.assertEquals("h", model.id()); - Assertions.assertEquals("sx", model.metadata()); - Assertions.assertEquals("pelol", model.state()); - Assertions.assertEquals("vk", model.type()); - Assertions.assertEquals(true, model.visible()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoveryPointDataStoreDetails model - = new RecoveryPointDataStoreDetails().withCreationTime(OffsetDateTime.parse("2021-11-04T08:30:12Z")) - .withExpiryTime(OffsetDateTime.parse("2021-01-09T07:06:25Z")) - .withId("h") - .withMetadata("sx") - .withState("pelol") - .withType("vk") - .withVisible(true); - model = BinaryData.fromObject(model).toObject(RecoveryPointDataStoreDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-04T08:30:12Z"), model.creationTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-09T07:06:25Z"), model.expiryTime()); - Assertions.assertEquals("h", model.id()); - Assertions.assertEquals("sx", model.metadata()); - Assertions.assertEquals("pelol", model.state()); - Assertions.assertEquals("vk", model.type()); - Assertions.assertEquals(true, model.visible()); - } -} 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 deleted file mode 100644 index ec4f5d9b90a28..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsGetWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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 RecoveryPointsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"ojhp\",\"name\":\"tfnmdx\",\"type\":\"tngfdgugeyzihgr\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - AzureBackupRecoveryPointResource response = manager.recoveryPoints() - .getWithResponse("fuojrngif", "rzpasccbiuimzdly", "dfqwmkyoq", "fdvruz", 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 deleted file mode 100644 index 197e49445ebdc..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RecoveryPointsListMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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 RecoveryPointsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupRecoveryPoint\"},\"id\":\"cgegydcwbo\",\"name\":\"jumvqqolihrraio\",\"type\":\"aubrjtloq\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.recoveryPoints() - .list("ijpstte", "oqq", "wcyyufmhruncu", "mqspkcdqzhlctdd", "nqndyfpchrqbn", - 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 deleted file mode 100644 index 461a828d8b93b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationDetailTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardOperationDetail; -import org.junit.jupiter.api.Assertions; - -public final class ResourceGuardOperationDetailTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceGuardOperationDetail model = BinaryData - .fromString("{\"vaultCriticalOperation\":\"znqntoru\",\"defaultResourceRequest\":\"gsahmkycgrauw\"}") - .toObject(ResourceGuardOperationDetail.class); - Assertions.assertEquals("znqntoru", model.vaultCriticalOperation()); - Assertions.assertEquals("gsahmkycgrauw", model.defaultResourceRequest()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceGuardOperationDetail model = new ResourceGuardOperationDetail().withVaultCriticalOperation("znqntoru") - .withDefaultResourceRequest("gsahmkycgrauw"); - model = BinaryData.fromObject(model).toObject(ResourceGuardOperationDetail.class); - Assertions.assertEquals("znqntoru", model.vaultCriticalOperation()); - Assertions.assertEquals("gsahmkycgrauw", model.defaultResourceRequest()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationTests.java deleted file mode 100644 index 015c6dfe59e11..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardOperationTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardOperation; - -public final class ResourceGuardOperationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceGuardOperation model - = BinaryData.fromString("{\"vaultCriticalOperation\":\"fcktqumiekke\",\"requestResourceType\":\"ikh\"}") - .toObject(ResourceGuardOperation.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceGuardOperation model = new ResourceGuardOperation(); - model = BinaryData.fromObject(model).toObject(ResourceGuardOperation.class); - } -} 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 deleted file mode 100644 index 435a8ee26d075..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceInnerTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardOperationDetail; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResourceGuardProxyBaseResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceGuardProxyBaseResourceInner model = BinaryData.fromString( - "{\"properties\":{\"resourceGuardResourceId\":\"wnujhemmsbvdk\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"tjinf\",\"defaultResourceRequest\":\"lfltka\"},{\"vaultCriticalOperation\":\"vefkdlfoakggk\",\"defaultResourceRequest\":\"agaowpulpqblylsy\"}],\"lastUpdatedTime\":\"qjnsjervtia\",\"description\":\"sdszue\"},\"id\":\"sbzkf\",\"name\":\"beyvpnqicvinvkjj\",\"type\":\"dxrbuukzcle\"}") - .toObject(ResourceGuardProxyBaseResourceInner.class); - Assertions.assertEquals("wnujhemmsbvdk", model.properties().resourceGuardResourceId()); - Assertions.assertEquals("tjinf", - model.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("lfltka", - model.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("qjnsjervtia", model.properties().lastUpdatedTime()); - Assertions.assertEquals("sdszue", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceGuardProxyBaseResourceInner model = new ResourceGuardProxyBaseResourceInner() - .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("wnujhemmsbvdk") - .withResourceGuardOperationDetails(Arrays.asList( - new ResourceGuardOperationDetail().withVaultCriticalOperation("tjinf") - .withDefaultResourceRequest("lfltka"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("vefkdlfoakggk") - .withDefaultResourceRequest("agaowpulpqblylsy"))) - .withLastUpdatedTime("qjnsjervtia") - .withDescription("sdszue")); - model = BinaryData.fromObject(model).toObject(ResourceGuardProxyBaseResourceInner.class); - Assertions.assertEquals("wnujhemmsbvdk", model.properties().resourceGuardResourceId()); - Assertions.assertEquals("tjinf", - model.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("lfltka", - model.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("qjnsjervtia", model.properties().lastUpdatedTime()); - Assertions.assertEquals("sdszue", 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 deleted file mode 100644 index 5e553fc4cef65..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseResourceListTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardOperationDetail; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBaseResourceList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResourceGuardProxyBaseResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceGuardProxyBaseResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"rtuzqogs\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"vfdnwnwmewzsyyce\",\"defaultResourceRequest\":\"soibjudpfrx\"},{\"vaultCriticalOperation\":\"thzvaytdwkqbrqu\",\"defaultResourceRequest\":\"axhexiilivp\"}],\"lastUpdatedTime\":\"iirqtd\",\"description\":\"axoruzfgsquy\"},\"id\":\"rxxle\",\"name\":\"tramxjez\",\"type\":\"lwnwxuqlcvydyp\"}],\"nextLink\":\"dooaojkniodko\"}") - .toObject(ResourceGuardProxyBaseResourceList.class); - Assertions.assertEquals("dooaojkniodko", model.nextLink()); - Assertions.assertEquals("rtuzqogs", model.value().get(0).properties().resourceGuardResourceId()); - Assertions.assertEquals("vfdnwnwmewzsyyce", - model.value().get(0).properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("soibjudpfrx", - model.value().get(0).properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("iirqtd", model.value().get(0).properties().lastUpdatedTime()); - Assertions.assertEquals("axoruzfgsquy", model.value().get(0).properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceGuardProxyBaseResourceList model - = new ResourceGuardProxyBaseResourceList().withNextLink("dooaojkniodko") - .withValue(Arrays.asList(new ResourceGuardProxyBaseResourceInner() - .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("rtuzqogs") - .withResourceGuardOperationDetails(Arrays.asList( - new ResourceGuardOperationDetail().withVaultCriticalOperation("vfdnwnwmewzsyyce") - .withDefaultResourceRequest("soibjudpfrx"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("thzvaytdwkqbrqu") - .withDefaultResourceRequest("axhexiilivp"))) - .withLastUpdatedTime("iirqtd") - .withDescription("axoruzfgsquy")))); - model = BinaryData.fromObject(model).toObject(ResourceGuardProxyBaseResourceList.class); - Assertions.assertEquals("dooaojkniodko", model.nextLink()); - Assertions.assertEquals("rtuzqogs", model.value().get(0).properties().resourceGuardResourceId()); - Assertions.assertEquals("vfdnwnwmewzsyyce", - model.value().get(0).properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("soibjudpfrx", - model.value().get(0).properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("iirqtd", model.value().get(0).properties().lastUpdatedTime()); - Assertions.assertEquals("axoruzfgsquy", 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 deleted file mode 100644 index e6430e266a9d9..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardProxyBaseTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardOperationDetail; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResourceGuardProxyBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceGuardProxyBase model = BinaryData.fromString( - "{\"resourceGuardResourceId\":\"hmlwpaztzpo\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"kwyfzqwhxxbuyqax\",\"defaultResourceRequest\":\"eqz\"},{\"vaultCriticalOperation\":\"priolx\",\"defaultResourceRequest\":\"jaltolmnc\"},{\"vaultCriticalOperation\":\"obqwcsdbnwdcfh\",\"defaultResourceRequest\":\"qdpfuvglsbjjca\"},{\"vaultCriticalOperation\":\"xbvtvudu\",\"defaultResourceRequest\":\"cormr\"}],\"lastUpdatedTime\":\"qtvcofudflvkgj\",\"description\":\"gdknnqv\"}") - .toObject(ResourceGuardProxyBase.class); - Assertions.assertEquals("hmlwpaztzpo", model.resourceGuardResourceId()); - Assertions.assertEquals("kwyfzqwhxxbuyqax", - model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("eqz", model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("qtvcofudflvkgj", model.lastUpdatedTime()); - Assertions.assertEquals("gdknnqv", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceGuardProxyBase model = new ResourceGuardProxyBase().withResourceGuardResourceId("hmlwpaztzpo") - .withResourceGuardOperationDetails(Arrays.asList( - new ResourceGuardOperationDetail().withVaultCriticalOperation("kwyfzqwhxxbuyqax") - .withDefaultResourceRequest("eqz"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("priolx") - .withDefaultResourceRequest("jaltolmnc"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("obqwcsdbnwdcfh") - .withDefaultResourceRequest("qdpfuvglsbjjca"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("xbvtvudu") - .withDefaultResourceRequest("cormr"))) - .withLastUpdatedTime("qtvcofudflvkgj") - .withDescription("gdknnqv"); - model = BinaryData.fromObject(model).toObject(ResourceGuardProxyBase.class); - Assertions.assertEquals("hmlwpaztzpo", model.resourceGuardResourceId()); - Assertions.assertEquals("kwyfzqwhxxbuyqax", - model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("eqz", model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("qtvcofudflvkgj", model.lastUpdatedTime()); - Assertions.assertEquals("gdknnqv", model.description()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardResourceInnerTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardResourceInnerTests.java deleted file mode 100644 index bc78efcd2556a..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardResourceInnerTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardResourceInner; -import com.azure.resourcemanager.dataprotection.models.ResourceGuard; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ResourceGuardResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceGuardResourceInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Updating\",\"allowAutoApprovals\":false,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"khnvpam\",\"requestResourceType\":\"x\"},{\"vaultCriticalOperation\":\"u\",\"requestResourceType\":\"ik\"}],\"vaultCriticalOperationExclusionList\":[\"gxk\",\"lla\",\"melwuipiccjz\",\"z\"],\"description\":\"gvvcnayrhyr\"},\"eTag\":\"xmueed\",\"location\":\"rdvstkwqqtch\",\"tags\":{\"gpiohgwxrtfudxe\":\"mfmtdaaygdvw\",\"qagvrvm\":\"xg\",\"dblx\":\"pkukghi\"},\"id\":\"wi\",\"name\":\"fnjhfjxwmszkkfo\",\"type\":\"rey\"}") - .toObject(ResourceGuardResourceInner.class); - Assertions.assertEquals("rdvstkwqqtch", model.location()); - Assertions.assertEquals("mfmtdaaygdvw", model.tags().get("gpiohgwxrtfudxe")); - Assertions.assertEquals("xmueed", model.etag()); - Assertions.assertEquals("gxk", model.properties().vaultCriticalOperationExclusionList().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceGuardResourceInner model = new ResourceGuardResourceInner().withLocation("rdvstkwqqtch") - .withTags(mapOf("gpiohgwxrtfudxe", "mfmtdaaygdvw", "qagvrvm", "xg", "dblx", "pkukghi")) - .withEtag("xmueed") - .withProperties(new ResourceGuard() - .withVaultCriticalOperationExclusionList(Arrays.asList("gxk", "lla", "melwuipiccjz", "z"))); - model = BinaryData.fromObject(model).toObject(ResourceGuardResourceInner.class); - Assertions.assertEquals("rdvstkwqqtch", model.location()); - Assertions.assertEquals("mfmtdaaygdvw", model.tags().get("gpiohgwxrtfudxe")); - Assertions.assertEquals("xmueed", model.etag()); - Assertions.assertEquals("gxk", model.properties().vaultCriticalOperationExclusionList().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardResourceListTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardResourceListTests.java deleted file mode 100644 index cb75da80cd08c..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardResourceListTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardResourceInner; -import com.azure.resourcemanager.dataprotection.models.ResourceGuard; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardResourceList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ResourceGuardResourceListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceGuardResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"allowAutoApprovals\":true,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"dtkcnqxwbpokulp\",\"requestResourceType\":\"jwaa\"},{\"vaultCriticalOperation\":\"pqiiobyuqe\",\"requestResourceType\":\"qlpqwcciuq\"},{\"vaultCriticalOperation\":\"dbutauvfbtkuwhh\",\"requestResourceType\":\"ykojoxafnndlpic\"}],\"vaultCriticalOperationExclusionList\":[\"ymkcdyhb\"],\"description\":\"kpw\"},\"eTag\":\"eqnovvqfovl\",\"location\":\"ywsuwsy\",\"tags\":{\"ea\":\"dsytgadgvr\",\"arrwlquu\":\"neqn\",\"e\":\"jfqka\"},\"id\":\"iipfpubj\",\"name\":\"bwwift\",\"type\":\"hqkvpuvksgplsak\"},{\"properties\":{\"provisioningState\":\"Failed\",\"allowAutoApprovals\":false,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"ph\",\"requestResourceType\":\"pxodlqiyntorzih\"},{\"vaultCriticalOperation\":\"osjswsr\",\"requestResourceType\":\"lyzrpzbchckqqzqi\"},{\"vaultCriticalOperation\":\"iysui\",\"requestResourceType\":\"ynkedyatrwyhqmib\"}],\"vaultCriticalOperationExclusionList\":[\"wit\"],\"description\":\"ypyynpcdpumnzg\"},\"eTag\":\"z\",\"location\":\"abikns\",\"tags\":{\"lwwrl\":\"jhxbld\"},\"id\":\"dmtnc\",\"name\":\"ok\",\"type\":\"tllxdyhgsyocogj\"}],\"nextLink\":\"dtbnnha\"}") - .toObject(ResourceGuardResourceList.class); - Assertions.assertEquals("dtbnnha", model.nextLink()); - Assertions.assertEquals("ywsuwsy", model.value().get(0).location()); - Assertions.assertEquals("dsytgadgvr", model.value().get(0).tags().get("ea")); - Assertions.assertEquals("eqnovvqfovl", model.value().get(0).etag()); - Assertions.assertEquals("ymkcdyhb", - model.value().get(0).properties().vaultCriticalOperationExclusionList().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceGuardResourceList model = new ResourceGuardResourceList().withNextLink("dtbnnha") - .withValue(Arrays.asList(new ResourceGuardResourceInner().withLocation("ywsuwsy") - .withTags(mapOf("ea", "dsytgadgvr", "arrwlquu", "neqn", "e", "jfqka")) - .withEtag("eqnovvqfovl") - .withProperties(new ResourceGuard().withVaultCriticalOperationExclusionList(Arrays.asList("ymkcdyhb"))), - new ResourceGuardResourceInner().withLocation("abikns") - .withTags(mapOf("lwwrl", "jhxbld")) - .withEtag("z") - .withProperties( - new ResourceGuard().withVaultCriticalOperationExclusionList(Arrays.asList("wit"))))); - model = BinaryData.fromObject(model).toObject(ResourceGuardResourceList.class); - Assertions.assertEquals("dtbnnha", model.nextLink()); - Assertions.assertEquals("ywsuwsy", model.value().get(0).location()); - Assertions.assertEquals("dsytgadgvr", model.value().get(0).tags().get("ea")); - Assertions.assertEquals("eqnovvqfovl", model.value().get(0).etag()); - Assertions.assertEquals("ymkcdyhb", - model.value().get(0).properties().vaultCriticalOperationExclusionList().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardTests.java deleted file mode 100644 index 3e344cf14155e..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ResourceGuard; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ResourceGuardTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceGuard model = BinaryData.fromString( - "{\"provisioningState\":\"Failed\",\"allowAutoApprovals\":false,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"wneaiv\",\"requestResourceType\":\"czelpcirel\"},{\"vaultCriticalOperation\":\"eae\",\"requestResourceType\":\"abfatkl\"}],\"vaultCriticalOperationExclusionList\":[\"bjhwuaan\",\"zjosp\",\"youlp\",\"rvxaglrvimjwosy\"],\"description\":\"itc\"}") - .toObject(ResourceGuard.class); - Assertions.assertEquals("bjhwuaan", model.vaultCriticalOperationExclusionList().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceGuard model = new ResourceGuard() - .withVaultCriticalOperationExclusionList(Arrays.asList("bjhwuaan", "zjosp", "youlp", "rvxaglrvimjwosy")); - model = BinaryData.fromObject(model).toObject(ResourceGuard.class); - Assertions.assertEquals("bjhwuaan", model.vaultCriticalOperationExclusionList().get(0)); - } -} 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 deleted file mode 100644 index 429a72e5c0d53..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsDeleteByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsDeleteByResourceGroupWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - 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("", "", AzureEnvironment.AZURE)); - - manager.resourceGuards() - .deleteByResourceGroupWithResponse("kzsz", "wiwtglxxhl", 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 deleted file mode 100644 index f827fae2d2a67..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetBackupSecurityPinRequestsObjectsMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetBackupSecurityPinRequestsObjectsMockTests { - @Test - public void testGetBackupSecurityPinRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"ibiattg\",\"name\":\"ucfotangcf\",\"type\":\"ykzcugswvxwl\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.resourceGuards() - .getBackupSecurityPinRequestsObjects("pz", "ekov", 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 deleted file mode 100644 index b9a587deaf3c1..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardResource; -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 ResourceGuardsGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Provisioning\",\"allowAutoApprovals\":true,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"tmaaj\",\"requestResourceType\":\"huxy\"},{\"vaultCriticalOperation\":\"jvmtygjbmz\",\"requestResourceType\":\"spsp\"},{\"vaultCriticalOperation\":\"c\",\"requestResourceType\":\"kyjpmspbps\"},{\"vaultCriticalOperation\":\"fppyogtieyujtvcz\",\"requestResourceType\":\"n\"}],\"vaultCriticalOperationExclusionList\":[\"x\",\"unjdx\",\"glnkvxlxpagl\"],\"description\":\"vbgkcvkhpzv\"},\"eTag\":\"d\",\"location\":\"voniypfp\",\"tags\":{\"nidibgqjxg\":\"pzgpxtivhj\",\"hgovfgp\":\"n\",\"zvuporqzdfuydz\":\"kqmhhaowjr\"},\"id\":\"kfvxcnq\",\"name\":\"xqpswok\",\"type\":\"vkhlggdhbemz\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - ResourceGuardResource response = manager.resourceGuards() - .getByResourceGroupWithResponse("rpddouifamo", "aziynknlqwzdv", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("voniypfp", response.location()); - Assertions.assertEquals("pzgpxtivhj", response.tags().get("nidibgqjxg")); - Assertions.assertEquals("d", response.etag()); - Assertions.assertEquals("x", response.properties().vaultCriticalOperationExclusionList().get(0)); - } -} 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 deleted file mode 100644 index ee09afa0ac3f7..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectWithResponseMockTests { - @Test - public void testGetDefaultBackupSecurityPinRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"jvzuy\",\"name\":\"rmlmuowo\",\"type\":\"au\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - DppBaseResource response = manager.resourceGuards() - .getDefaultBackupSecurityPinRequestsObjectWithResponse("lwkojpllndnpdw", "pqafgfugsnnfhy", - "tefypococtfjgti", 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 deleted file mode 100644 index a51d52dd9c695..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectWithResponseMockTests { - @Test - public void testGetDefaultDeleteProtectedItemRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"ccxlzhcoxovnek\",\"name\":\"nlusfnrd\",\"type\":\"xtxrdcqtjvidt\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - DppBaseResource response = manager.resourceGuards() - .getDefaultDeleteProtectedItemRequestsObjectWithResponse("ropions", "onwpnga", "innixjawrtmjfj", - 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 deleted file mode 100644 index 7b63a47cff4e5..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponseMockTests { - @Test - public void testGetDefaultDeleteResourceGuardProxyRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"tdherngbtcjuahok\",\"name\":\"obkauxofsh\",\"type\":\"hwpnulaiywzejywh\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - DppBaseResource response = manager.resourceGuards() - .getDefaultDeleteResourceGuardProxyRequestsObjectWithResponse("qmamhsycxhxzga", "ttaboidvmfqh", - "pubowsepdfg", 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 deleted file mode 100644 index 58015f4399cea..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectWithResponseMockTests { - @Test - public void testGetDefaultDisableSoftDeleteRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"jqirwrw\",\"name\":\"oxffif\",\"type\":\"wrsnewmozqvbu\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - DppBaseResource response = manager.resourceGuards() - .getDefaultDisableSoftDeleteRequestsObjectWithResponse("filkmkkholv", "ndviauogphuartvt", - "ukyefchnmnahmnxh", 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 deleted file mode 100644 index 3789e3f26a24f..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectWithResponseMockTests { - @Test - public void testGetDefaultUpdateProtectedItemRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"e\",\"name\":\"ncnwfepbnwgf\",\"type\":\"jgcgbjbgdlfgtdys\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - DppBaseResource response = manager.resourceGuards() - .getDefaultUpdateProtectedItemRequestsObjectWithResponse("dohzjq", "tu", "o", - 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 deleted file mode 100644 index c7c654cd86c5d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectWithResponseMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectWithResponseMockTests { - @Test - public void testGetDefaultUpdateProtectionPolicyRequestsObjectWithResponse() throws Exception { - String responseStr = "{\"id\":\"fecjxeygtuhx\",\"name\":\"cbuewmrswnjlxuz\",\"type\":\"wpusxjbaqehg\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - DppBaseResource response = manager.resourceGuards() - .getDefaultUpdateProtectionPolicyRequestsObjectWithResponse("gepuslvyjtc", "uwkasiz", "esfuught", - 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 deleted file mode 100644 index de84e8ace1a7c..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteProtectedItemRequestsObjectsMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetDeleteProtectedItemRequestsObjectsMockTests { - @Test - public void testGetDeleteProtectedItemRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"npdkv\",\"name\":\"abuiy\",\"type\":\"buzphdugn\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.resourceGuards() - .getDeleteProtectedItemRequestsObjects("zqwmvt", "njmxmcuqudtcvcl", 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 deleted file mode 100644 index bcfdbdfaea498..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsMockTests { - @Test - public void testGetDeleteResourceGuardProxyRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"sgmwoh\",\"name\":\"zizvuxmmk\",\"type\":\"vthn\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.resourceGuards() - .getDeleteResourceGuardProxyRequestsObjects("fr", "xousxauzl", 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 deleted file mode 100644 index f386bba04ebb8..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetDisableSoftDeleteRequestsObjectsMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetDisableSoftDeleteRequestsObjectsMockTests { - @Test - public void testGetDisableSoftDeleteRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"cbfrm\",\"name\":\"dths\",\"type\":\"gvriibakclac\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.resourceGuards() - .getDisableSoftDeleteRequestsObjects("fpgpicrmnzhrgm", "gjsxv", 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 deleted file mode 100644 index 04808d44c1214..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectedItemRequestsObjectsMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetUpdateProtectedItemRequestsObjectsMockTests { - @Test - public void testGetUpdateProtectedItemRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"injipnwjf\",\"name\":\"qlafcbahhpzpofoi\",\"type\":\"w\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.resourceGuards() - .getUpdateProtectedItemRequestsObjects("lfbcgwgcl", "xoe", 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 deleted file mode 100644 index abe3739c04b1b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsMockTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.DppBaseResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsMockTests { - @Test - public void testGetUpdateProtectionPolicyRequestsObjects() throws Exception { - String responseStr = "{\"value\":[{\"id\":\"ipq\",\"name\":\"edmurrxxge\",\"type\":\"ktvqylkmqpzoy\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.resourceGuards() - .getUpdateProtectionPolicyRequestsObjects("iknp", "oxgjiuqhibt", 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 deleted file mode 100644 index 54fb0af24150a..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListByResourceGroupMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.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.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardResource; -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 ResourceGuardsListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Updating\",\"allowAutoApprovals\":true,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"uwnpqxpxiwfcng\",\"requestResourceType\":\"aas\"},{\"vaultCriticalOperation\":\"xtmkzjvkviir\",\"requestResourceType\":\"fgrwsdpgratzvz\"}],\"vaultCriticalOperationExclusionList\":[\"byvi\",\"tctbrxkjzwrgxffm\",\"hkwfbkgozxwop\",\"bydpizqaclnapxb\"],\"description\":\"gn\"},\"eTag\":\"j\",\"location\":\"fsmfcttuxuuyi\",\"tags\":{\"ujztcz\":\"qoiquvrehmrnjhv\"},\"id\":\"tqjtwhauu\",\"name\":\"fprnjl\",\"type\":\"tlxs\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.resourceGuards().listByResourceGroup("hlisngw", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("fsmfcttuxuuyi", response.iterator().next().location()); - Assertions.assertEquals("qoiquvrehmrnjhv", response.iterator().next().tags().get("ujztcz")); - Assertions.assertEquals("j", response.iterator().next().etag()); - Assertions.assertEquals("byvi", - response.iterator().next().properties().vaultCriticalOperationExclusionList().get(0)); - } -} 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 deleted file mode 100644 index 9a67e09184f5f..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsListMockTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardResource; -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 ResourceGuardsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"allowAutoApprovals\":false,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"gxq\",\"requestResourceType\":\"yrtltlaprltzkat\"}],\"vaultCriticalOperationExclusionList\":[\"mznnbsoqeqalarvl\"],\"description\":\"un\"},\"eTag\":\"gfebwlnb\",\"location\":\"yreeudz\",\"tags\":{\"glgou\":\"bpdqmjxlyy\",\"yuojqtobaxk\":\"tlmj\",\"lbfjkwr\":\"eytu\",\"hsyrqunj\":\"snkq\"},\"id\":\"hdenxaulk\",\"name\":\"akdkifmjnnawtqab\",\"type\":\"xuckpggqoweyir\"}]}"; - - 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("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.resourceGuards().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("yreeudz", response.iterator().next().location()); - Assertions.assertEquals("bpdqmjxlyy", response.iterator().next().tags().get("glgou")); - Assertions.assertEquals("gfebwlnb", response.iterator().next().etag()); - Assertions.assertEquals("mznnbsoqeqalarvl", - response.iterator().next().properties().vaultCriticalOperationExclusionList().get(0)); - } -} 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 deleted file mode 100644 index ad4bbdfb29942..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceGuardsPutWithResponseMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.dataprotection.DataProtectionManager; -import com.azure.resourcemanager.dataprotection.models.ResourceGuard; -import com.azure.resourcemanager.dataprotection.models.ResourceGuardResource; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ResourceGuardsPutWithResponseMockTests { - @Test - public void testPutWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Provisioning\",\"allowAutoApprovals\":true,\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"jwnlax\",\"requestResourceType\":\"njqikcz\"}],\"vaultCriticalOperationExclusionList\":[\"tacgxmfc\",\"serxht\",\"soxhlwntsjgqr\",\"xypruuuy\"],\"description\":\"chrszi\"},\"eTag\":\"yuel\",\"location\":\"tn\",\"tags\":{\"ahzjmucftb\":\"fqyggagflnlgmtr\"},\"id\":\"r\",\"name\":\"lrohkpig\",\"type\":\"fusuckzmkwklsno\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - ResourceGuardResource response = manager.resourceGuards() - .define("zjrwdkqze") - .withRegion("cjkgdirazftxej") - .withExistingResourceGroup("aquflqbctqha") - .withTags(mapOf("urbuhhlkyqltq", "mdujtmvcopexcm", "djk", "rogtuwkf", "ijtk", "sysidfvclglxnf", "sharujtj", - "usqogsfikayia")) - .withEtag("cslmotoebnfxo") - .withProperties( - new ResourceGuard().withVaultCriticalOperationExclusionList(Arrays.asList("qjagmditgueiook"))) - .create(); - - Assertions.assertEquals("tn", response.location()); - Assertions.assertEquals("fqyggagflnlgmtr", response.tags().get("ahzjmucftb")); - Assertions.assertEquals("yuel", response.etag()); - Assertions.assertEquals("tacgxmfc", response.properties().vaultCriticalOperationExclusionList().get(0)); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceMoveDetailsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceMoveDetailsTests.java deleted file mode 100644 index baa5b8c6c2d93..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ResourceMoveDetailsTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.ResourceMoveDetails; -import org.junit.jupiter.api.Assertions; - -public final class ResourceMoveDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceMoveDetails model = BinaryData.fromString( - "{\"operationId\":\"anzwuxzdxta\",\"startTimeUtc\":\"lhmwhfpmrqobm\",\"completionTimeUtc\":\"kknryrtihf\",\"sourceResourcePath\":\"ijbpzvgnwzsymgl\",\"targetResourcePath\":\"fcyzkohdbihanufh\"}") - .toObject(ResourceMoveDetails.class); - Assertions.assertEquals("anzwuxzdxta", model.operationId()); - Assertions.assertEquals("lhmwhfpmrqobm", model.startTimeUtc()); - Assertions.assertEquals("kknryrtihf", model.completionTimeUtc()); - Assertions.assertEquals("ijbpzvgnwzsymgl", model.sourceResourcePath()); - Assertions.assertEquals("fcyzkohdbihanufh", model.targetResourcePath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceMoveDetails model = new ResourceMoveDetails().withOperationId("anzwuxzdxta") - .withStartTimeUtc("lhmwhfpmrqobm") - .withCompletionTimeUtc("kknryrtihf") - .withSourceResourcePath("ijbpzvgnwzsymgl") - .withTargetResourcePath("fcyzkohdbihanufh"); - model = BinaryData.fromObject(model).toObject(ResourceMoveDetails.class); - Assertions.assertEquals("anzwuxzdxta", model.operationId()); - Assertions.assertEquals("lhmwhfpmrqobm", model.startTimeUtc()); - Assertions.assertEquals("kknryrtihf", model.completionTimeUtc()); - Assertions.assertEquals("ijbpzvgnwzsymgl", model.sourceResourcePath()); - Assertions.assertEquals("fcyzkohdbihanufh", model.targetResourcePath()); - } -} 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 deleted file mode 100644 index 3ab32a357ceb6..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangeTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.RestorableTimeRange; -import org.junit.jupiter.api.Assertions; - -public final class RestorableTimeRangeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestorableTimeRange model = BinaryData - .fromString("{\"startTime\":\"ivetvtcq\",\"endTime\":\"qtdo\",\"objectType\":\"cbxvwvxyslqbh\"}") - .toObject(RestorableTimeRange.class); - Assertions.assertEquals("ivetvtcq", model.startTime()); - Assertions.assertEquals("qtdo", model.endTime()); - Assertions.assertEquals("cbxvwvxyslqbh", model.objectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestorableTimeRange model - = new RestorableTimeRange().withStartTime("ivetvtcq").withEndTime("qtdo").withObjectType("cbxvwvxyslqbh"); - model = BinaryData.fromObject(model).toObject(RestorableTimeRange.class); - Assertions.assertEquals("ivetvtcq", model.startTime()); - Assertions.assertEquals("qtdo", model.endTime()); - Assertions.assertEquals("cbxvwvxyslqbh", 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 deleted file mode 100644 index d2140a73883e4..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestorableTimeRangesFindWithResponseMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -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 RestorableTimeRangesFindWithResponseMockTests { - @Test - public void testFindWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"lnymzotqy\",\"endTime\":\"yuzcbmqqvxmvw\",\"objectType\":\"tayx\"},{\"startTime\":\"nsup\",\"endTime\":\"ujlzqnhcvsqltn\",\"objectType\":\"ibg\"},{\"startTime\":\"xgnxfyqonmpqoxwd\",\"endTime\":\"fdbxiqxeiiqbim\",\"objectType\":\"mwwinhehfqpofv\"}],\"objectType\":\"cblembnkbwv\"},\"id\":\"xk\",\"name\":\"ivqiheb\",\"type\":\"tswbzuwfmd\"}"; - - 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("", "", AzureEnvironment.AZURE)); - - AzureBackupFindRestorableTimeRangesResponseResource response = manager.restorableTimeRanges() - .findWithResponse("uamwabzxrvxc", "s", "sphaivmxyasflvg", - new AzureBackupFindRestorableTimeRangesRequest() - .withSourceDataStoreType(RestoreSourceDataStoreType.VAULT_STORE) - .withStartTime("wywa") - .withEndTime("ihknsmjbl"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("lnymzotqy", response.properties().restorableTimeRanges().get(0).startTime()); - Assertions.assertEquals("yuzcbmqqvxmvw", response.properties().restorableTimeRanges().get(0).endTime()); - Assertions.assertEquals("tayx", response.properties().restorableTimeRanges().get(0).objectType()); - Assertions.assertEquals("cblembnkbwv", response.properties().objectType()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreFilesTargetInfoTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreFilesTargetInfoTests.java deleted file mode 100644 index c71af00803f7c..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreFilesTargetInfoTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.RecoveryOption; -import com.azure.resourcemanager.dataprotection.models.RestoreFilesTargetInfo; -import com.azure.resourcemanager.dataprotection.models.RestoreTargetLocationType; -import com.azure.resourcemanager.dataprotection.models.TargetDetails; -import org.junit.jupiter.api.Assertions; - -public final class RestoreFilesTargetInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestoreFilesTargetInfo model = BinaryData.fromString( - "{\"objectType\":\"RestoreFilesTargetInfo\",\"targetDetails\":{\"filePrefix\":\"srtawcoezbr\",\"restoreTargetLocationType\":\"AzureFiles\",\"url\":\"bskhudygoookkqfq\",\"targetResourceArmId\":\"vleo\"},\"recoveryOption\":\"FailIfExists\",\"restoreLocation\":\"luiqtqzfavyvnqq\"}") - .toObject(RestoreFilesTargetInfo.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.recoveryOption()); - Assertions.assertEquals("luiqtqzfavyvnqq", model.restoreLocation()); - Assertions.assertEquals("srtawcoezbr", model.targetDetails().filePrefix()); - Assertions.assertEquals(RestoreTargetLocationType.AZURE_FILES, - model.targetDetails().restoreTargetLocationType()); - Assertions.assertEquals("bskhudygoookkqfq", model.targetDetails().url()); - Assertions.assertEquals("vleo", model.targetDetails().targetResourceArmId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestoreFilesTargetInfo model = new RestoreFilesTargetInfo().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("luiqtqzfavyvnqq") - .withTargetDetails(new TargetDetails().withFilePrefix("srtawcoezbr") - .withRestoreTargetLocationType(RestoreTargetLocationType.AZURE_FILES) - .withUrl("bskhudygoookkqfq") - .withTargetResourceArmId("vleo")); - model = BinaryData.fromObject(model).toObject(RestoreFilesTargetInfo.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.recoveryOption()); - Assertions.assertEquals("luiqtqzfavyvnqq", model.restoreLocation()); - Assertions.assertEquals("srtawcoezbr", model.targetDetails().filePrefix()); - Assertions.assertEquals(RestoreTargetLocationType.AZURE_FILES, - model.targetDetails().restoreTargetLocationType()); - Assertions.assertEquals("bskhudygoookkqfq", model.targetDetails().url()); - Assertions.assertEquals("vleo", model.targetDetails().targetResourceArmId()); - } -} 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 deleted file mode 100644 index 7e9f7b31bbe09..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreJobRecoveryPointDetailsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.RestoreJobRecoveryPointDetails; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class RestoreJobRecoveryPointDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestoreJobRecoveryPointDetails model = BinaryData - .fromString("{\"recoveryPointID\":\"qlveualupjmkh\",\"recoveryPointTime\":\"2021-08-19T13:39:55Z\"}") - .toObject(RestoreJobRecoveryPointDetails.class); - Assertions.assertEquals("qlveualupjmkh", model.recoveryPointId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-19T13:39:55Z"), model.recoveryPointTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestoreJobRecoveryPointDetails model = new RestoreJobRecoveryPointDetails().withRecoveryPointId("qlveualupjmkh") - .withRecoveryPointTime(OffsetDateTime.parse("2021-08-19T13:39:55Z")); - model = BinaryData.fromObject(model).toObject(RestoreJobRecoveryPointDetails.class); - Assertions.assertEquals("qlveualupjmkh", model.recoveryPointId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-19T13:39:55Z"), model.recoveryPointTime()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreTargetInfoBaseTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreTargetInfoBaseTests.java deleted file mode 100644 index 952cb99369851..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RestoreTargetInfoBaseTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.RecoveryOption; -import com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase; -import org.junit.jupiter.api.Assertions; - -public final class RestoreTargetInfoBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestoreTargetInfoBase model = BinaryData.fromString( - "{\"objectType\":\"RestoreTargetInfoBase\",\"recoveryOption\":\"FailIfExists\",\"restoreLocation\":\"txhp\"}") - .toObject(RestoreTargetInfoBase.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.recoveryOption()); - Assertions.assertEquals("txhp", model.restoreLocation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestoreTargetInfoBase model - = new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS).withRestoreLocation("txhp"); - model = BinaryData.fromObject(model).toObject(RestoreTargetInfoBase.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, model.recoveryOption()); - Assertions.assertEquals("txhp", model.restoreLocation()); - } -} 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 deleted file mode 100644 index ec41622e62e01..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/RetentionTagTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.RetentionTag; -import org.junit.jupiter.api.Assertions; - -public final class RetentionTagTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RetentionTag model = BinaryData - .fromString("{\"eTag\":\"oxciqopidoamcio\",\"id\":\"khazxkhnzbonlwn\",\"tagName\":\"oegokdwbwh\"}") - .toObject(RetentionTag.class); - Assertions.assertEquals("oegokdwbwh", model.tagName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RetentionTag model = new RetentionTag().withTagName("oegokdwbwh"); - model = BinaryData.fromObject(model).toObject(RetentionTag.class); - Assertions.assertEquals("oegokdwbwh", 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 deleted file mode 100644 index c084c3aed1fd1..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedBackupCriteriaTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AbsoluteMarker; -import com.azure.resourcemanager.dataprotection.models.Day; -import com.azure.resourcemanager.dataprotection.models.DayOfWeek; -import com.azure.resourcemanager.dataprotection.models.Month; -import com.azure.resourcemanager.dataprotection.models.ScheduleBasedBackupCriteria; -import com.azure.resourcemanager.dataprotection.models.WeekNumber; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ScheduleBasedBackupCriteriaTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduleBasedBackupCriteria model = BinaryData.fromString( - "{\"objectType\":\"ScheduleBasedBackupCriteria\",\"absoluteCriteria\":[\"FirstOfMonth\",\"AllBackup\",\"FirstOfDay\",\"FirstOfWeek\"],\"daysOfMonth\":[{\"date\":198761981,\"isLast\":true},{\"date\":1097085357,\"isLast\":true},{\"date\":1572022243,\"isLast\":false},{\"date\":1272205160,\"isLast\":true}],\"daysOfTheWeek\":[\"Sunday\",\"Sunday\"],\"monthsOfYear\":[\"February\",\"July\"],\"scheduleTimes\":[\"2021-05-16T15:58:14Z\",\"2021-01-18T09:11:28Z\",\"2021-06-19T17:26:37Z\"],\"weeksOfTheMonth\":[\"Second\",\"Last\"]}") - .toObject(ScheduleBasedBackupCriteria.class); - Assertions.assertEquals(AbsoluteMarker.FIRST_OF_MONTH, model.absoluteCriteria().get(0)); - Assertions.assertEquals(198761981, model.daysOfMonth().get(0).date()); - Assertions.assertEquals(true, model.daysOfMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.daysOfTheWeek().get(0)); - Assertions.assertEquals(Month.FEBRUARY, model.monthsOfYear().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-16T15:58:14Z"), model.scheduleTimes().get(0)); - Assertions.assertEquals(WeekNumber.SECOND, model.weeksOfTheMonth().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduleBasedBackupCriteria model = new ScheduleBasedBackupCriteria() - .withAbsoluteCriteria(Arrays.asList(AbsoluteMarker.FIRST_OF_MONTH, AbsoluteMarker.ALL_BACKUP, - AbsoluteMarker.FIRST_OF_DAY, AbsoluteMarker.FIRST_OF_WEEK)) - .withDaysOfMonth(Arrays.asList(new Day().withDate(198761981).withIsLast(true), - new Day().withDate(1097085357).withIsLast(true), new Day().withDate(1572022243).withIsLast(false), - new Day().withDate(1272205160).withIsLast(true))) - .withDaysOfTheWeek(Arrays.asList(DayOfWeek.SUNDAY, DayOfWeek.SUNDAY)) - .withMonthsOfYear(Arrays.asList(Month.FEBRUARY, Month.JULY)) - .withScheduleTimes(Arrays.asList(OffsetDateTime.parse("2021-05-16T15:58:14Z"), - OffsetDateTime.parse("2021-01-18T09:11:28Z"), OffsetDateTime.parse("2021-06-19T17:26:37Z"))) - .withWeeksOfTheMonth(Arrays.asList(WeekNumber.SECOND, WeekNumber.LAST)); - model = BinaryData.fromObject(model).toObject(ScheduleBasedBackupCriteria.class); - Assertions.assertEquals(AbsoluteMarker.FIRST_OF_MONTH, model.absoluteCriteria().get(0)); - Assertions.assertEquals(198761981, model.daysOfMonth().get(0).date()); - Assertions.assertEquals(true, model.daysOfMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.daysOfTheWeek().get(0)); - Assertions.assertEquals(Month.FEBRUARY, model.monthsOfYear().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-16T15:58:14Z"), model.scheduleTimes().get(0)); - Assertions.assertEquals(WeekNumber.SECOND, 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 deleted file mode 100644 index 57f3147deed56..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ScheduleBasedTriggerContextTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BackupCriteria; -import com.azure.resourcemanager.dataprotection.models.BackupSchedule; -import com.azure.resourcemanager.dataprotection.models.RetentionTag; -import com.azure.resourcemanager.dataprotection.models.ScheduleBasedTriggerContext; -import com.azure.resourcemanager.dataprotection.models.TaggingCriteria; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ScheduleBasedTriggerContextTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduleBasedTriggerContext model = BinaryData.fromString( - "{\"objectType\":\"ScheduleBasedTriggerContext\",\"schedule\":{\"repeatingTimeIntervals\":[\"hiszepnnbjcrxgib\",\"daxconfozauorsuk\"],\"timeZone\":\"wbqpl\"},\"taggingCriteria\":[{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":true,\"taggingPriority\":5310678963156682213,\"tagInfo\":{\"eTag\":\"zlrphwzs\",\"id\":\"dweyuqdunv\",\"tagName\":\"nnrwrbiork\"}},{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":true,\"taggingPriority\":5891677616533541408,\"tagInfo\":{\"eTag\":\"hgdnhxmsivfo\",\"id\":\"loxggdufiqn\",\"tagName\":\"ieuzaofjchvcyyy\"}},{\"criteria\":[{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"},{\"objectType\":\"BackupCriteria\"}],\"isDefault\":true,\"taggingPriority\":5917251343624011044,\"tagInfo\":{\"eTag\":\"ubiipuipwoqonma\",\"id\":\"ekni\",\"tagName\":\"shqvcimpev\"}}]}") - .toObject(ScheduleBasedTriggerContext.class); - Assertions.assertEquals("hiszepnnbjcrxgib", model.schedule().repeatingTimeIntervals().get(0)); - Assertions.assertEquals("wbqpl", model.schedule().timeZone()); - Assertions.assertEquals(true, model.taggingCriteria().get(0).isDefault()); - Assertions.assertEquals(5310678963156682213L, model.taggingCriteria().get(0).taggingPriority()); - Assertions.assertEquals("nnrwrbiork", 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("hiszepnnbjcrxgib", "daxconfozauorsuk")) - .withTimeZone("wbqpl")) - .withTaggingCriteria( - Arrays - .asList( - new TaggingCriteria() - .withCriteria( - Arrays.asList(new BackupCriteria(), new BackupCriteria(), new BackupCriteria())) - .withIsDefault(true) - .withTaggingPriority(5310678963156682213L) - .withTagInfo(new RetentionTag().withTagName("nnrwrbiork")), - new TaggingCriteria().withCriteria(Arrays.asList(new BackupCriteria(), new BackupCriteria())) - .withIsDefault(true) - .withTaggingPriority(5891677616533541408L) - .withTagInfo(new RetentionTag().withTagName("ieuzaofjchvcyyy")), - new TaggingCriteria() - .withCriteria(Arrays.asList(new BackupCriteria(), new BackupCriteria(), - new BackupCriteria(), new BackupCriteria())) - .withIsDefault(true) - .withTaggingPriority(5917251343624011044L) - .withTagInfo(new RetentionTag().withTagName("shqvcimpev")))); - model = BinaryData.fromObject(model).toObject(ScheduleBasedTriggerContext.class); - Assertions.assertEquals("hiszepnnbjcrxgib", model.schedule().repeatingTimeIntervals().get(0)); - Assertions.assertEquals("wbqpl", model.schedule().timeZone()); - Assertions.assertEquals(true, model.taggingCriteria().get(0).isDefault()); - Assertions.assertEquals(5310678963156682213L, model.taggingCriteria().get(0).taggingPriority()); - Assertions.assertEquals("nnrwrbiork", model.taggingCriteria().get(0).tagInfo().tagName()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SoftDeleteSettingsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SoftDeleteSettingsTests.java deleted file mode 100644 index 2ce3084bf4110..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SoftDeleteSettingsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.SoftDeleteSettings; -import com.azure.resourcemanager.dataprotection.models.SoftDeleteState; -import org.junit.jupiter.api.Assertions; - -public final class SoftDeleteSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SoftDeleteSettings model - = BinaryData.fromString("{\"state\":\"AlwaysOn\",\"retentionDurationInDays\":18.82969445833549}") - .toObject(SoftDeleteSettings.class); - Assertions.assertEquals(SoftDeleteState.ALWAYS_ON, model.state()); - Assertions.assertEquals(18.82969445833549D, model.retentionDurationInDays()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SoftDeleteSettings model = new SoftDeleteSettings().withState(SoftDeleteState.ALWAYS_ON) - .withRetentionDurationInDays(18.82969445833549D); - model = BinaryData.fromObject(model).toObject(SoftDeleteSettings.class); - Assertions.assertEquals(SoftDeleteState.ALWAYS_ON, model.state()); - Assertions.assertEquals(18.82969445833549D, model.retentionDurationInDays()); - } -} 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 deleted file mode 100644 index c1c9c2699b16c..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SourceLifeCycleTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CopyOption; -import com.azure.resourcemanager.dataprotection.models.DataStoreInfoBase; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; -import com.azure.resourcemanager.dataprotection.models.DeleteOption; -import com.azure.resourcemanager.dataprotection.models.SourceLifeCycle; -import com.azure.resourcemanager.dataprotection.models.TargetCopySetting; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SourceLifeCycleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SourceLifeCycle model = BinaryData.fromString( - "{\"deleteAfter\":{\"objectType\":\"DeleteOption\",\"duration\":\"hfstotxhojujbyp\"},\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"mc\"},\"targetDataStoreCopySettings\":[{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"xbjxyfwnylrcools\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"p\"}},{\"copyAfter\":{\"objectType\":\"CopyOption\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"w\"}}]}") - .toObject(SourceLifeCycle.class); - Assertions.assertEquals("hfstotxhojujbyp", model.deleteAfter().duration()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.sourceDataStore().dataStoreType()); - Assertions.assertEquals("mc", model.sourceDataStore().objectType()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, - model.targetDataStoreCopySettings().get(0).dataStore().dataStoreType()); - Assertions.assertEquals("xbjxyfwnylrcools", - model.targetDataStoreCopySettings().get(0).dataStore().objectType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SourceLifeCycle model = new SourceLifeCycle() - .withDeleteAfter(new DeleteOption().withDuration("hfstotxhojujbyp")) - .withSourceDataStore( - new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE).withObjectType("mc")) - .withTargetDataStoreCopySettings(Arrays.asList( - new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore(new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE) - .withObjectType("xbjxyfwnylrcools")), - new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore( - new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE).withObjectType("p")), - new TargetCopySetting().withCopyAfter(new CopyOption()) - .withDataStore( - new DataStoreInfoBase().withDataStoreType(DataStoreTypes.VAULT_STORE).withObjectType("w")))); - model = BinaryData.fromObject(model).toObject(SourceLifeCycle.class); - Assertions.assertEquals("hfstotxhojujbyp", model.deleteAfter().duration()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.sourceDataStore().dataStoreType()); - Assertions.assertEquals("mc", model.sourceDataStore().objectType()); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, - model.targetDataStoreCopySettings().get(0).dataStore().dataStoreType()); - Assertions.assertEquals("xbjxyfwnylrcools", - model.targetDataStoreCopySettings().get(0).dataStore().objectType()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/StopProtectionRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/StopProtectionRequestTests.java deleted file mode 100644 index dd1a9fec398ee..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/StopProtectionRequestTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.StopProtectionRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class StopProtectionRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StopProtectionRequest model = BinaryData.fromString("{\"resourceGuardOperationRequests\":[\"vbxwyjsflhh\"]}") - .toObject(StopProtectionRequest.class); - Assertions.assertEquals("vbxwyjsflhh", model.resourceGuardOperationRequests().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StopProtectionRequest model - = new StopProtectionRequest().withResourceGuardOperationRequests(Arrays.asList("vbxwyjsflhh")); - model = BinaryData.fromObject(model).toObject(StopProtectionRequest.class); - Assertions.assertEquals("vbxwyjsflhh", model.resourceGuardOperationRequests().get(0)); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/StorageSettingTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/StorageSettingTests.java deleted file mode 100644 index bbb5c5d2da0f8..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/StorageSettingTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.StorageSetting; -import com.azure.resourcemanager.dataprotection.models.StorageSettingStoreTypes; -import com.azure.resourcemanager.dataprotection.models.StorageSettingTypes; -import org.junit.jupiter.api.Assertions; - -public final class StorageSettingTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - StorageSetting model = BinaryData.fromString("{\"datastoreType\":\"ArchiveStore\",\"type\":\"GeoRedundant\"}") - .toObject(StorageSetting.class); - Assertions.assertEquals(StorageSettingStoreTypes.ARCHIVE_STORE, model.datastoreType()); - Assertions.assertEquals(StorageSettingTypes.GEO_REDUNDANT, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - StorageSetting model = new StorageSetting().withDatastoreType(StorageSettingStoreTypes.ARCHIVE_STORE) - .withType(StorageSettingTypes.GEO_REDUNDANT); - model = BinaryData.fromObject(model).toObject(StorageSetting.class); - Assertions.assertEquals(StorageSettingStoreTypes.ARCHIVE_STORE, model.datastoreType()); - Assertions.assertEquals(StorageSettingTypes.GEO_REDUNDANT, model.type()); - } -} 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 deleted file mode 100644 index d189cf18bb457..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SupportedFeatureTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.FeatureSupportStatus; -import com.azure.resourcemanager.dataprotection.models.SupportedFeature; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SupportedFeatureTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SupportedFeature model = BinaryData.fromString( - "{\"featureName\":\"onasxifto\",\"supportStatus\":\"PublicPreview\",\"exposureControlledFeatures\":[\"f\",\"wesgogczh\",\"nnxk\"]}") - .toObject(SupportedFeature.class); - Assertions.assertEquals("onasxifto", model.featureName()); - Assertions.assertEquals(FeatureSupportStatus.PUBLIC_PREVIEW, model.supportStatus()); - Assertions.assertEquals("f", model.exposureControlledFeatures().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SupportedFeature model = new SupportedFeature().withFeatureName("onasxifto") - .withSupportStatus(FeatureSupportStatus.PUBLIC_PREVIEW) - .withExposureControlledFeatures(Arrays.asList("f", "wesgogczh", "nnxk")); - model = BinaryData.fromObject(model).toObject(SupportedFeature.class); - Assertions.assertEquals("onasxifto", model.featureName()); - Assertions.assertEquals(FeatureSupportStatus.PUBLIC_PREVIEW, model.supportStatus()); - Assertions.assertEquals("f", model.exposureControlledFeatures().get(0)); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SuspendBackupRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SuspendBackupRequestTests.java deleted file mode 100644 index b9832aced4302..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SuspendBackupRequestTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.SuspendBackupRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SuspendBackupRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SuspendBackupRequest model = BinaryData.fromString("{\"resourceGuardOperationRequests\":[\"lnjixisxya\"]}") - .toObject(SuspendBackupRequest.class); - Assertions.assertEquals("lnjixisxya", model.resourceGuardOperationRequests().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SuspendBackupRequest model - = new SuspendBackupRequest().withResourceGuardOperationRequests(Arrays.asList("lnjixisxya")); - model = BinaryData.fromObject(model).toObject(SuspendBackupRequest.class); - Assertions.assertEquals("lnjixisxya", model.resourceGuardOperationRequests().get(0)); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SyncBackupInstanceRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SyncBackupInstanceRequestTests.java deleted file mode 100644 index 34fb0a712c5ac..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/SyncBackupInstanceRequestTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.SyncBackupInstanceRequest; -import com.azure.resourcemanager.dataprotection.models.SyncType; -import org.junit.jupiter.api.Assertions; - -public final class SyncBackupInstanceRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SyncBackupInstanceRequest model - = BinaryData.fromString("{\"syncType\":\"ForceResync\"}").toObject(SyncBackupInstanceRequest.class); - Assertions.assertEquals(SyncType.FORCE_RESYNC, model.syncType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SyncBackupInstanceRequest model = new SyncBackupInstanceRequest().withSyncType(SyncType.FORCE_RESYNC); - model = BinaryData.fromObject(model).toObject(SyncBackupInstanceRequest.class); - Assertions.assertEquals(SyncType.FORCE_RESYNC, model.syncType()); - } -} 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 deleted file mode 100644 index e1be17edde3e5..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TaggingCriteriaTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.BackupCriteria; -import com.azure.resourcemanager.dataprotection.models.RetentionTag; -import com.azure.resourcemanager.dataprotection.models.TaggingCriteria; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -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\"}],\"isDefault\":false,\"taggingPriority\":3911214432429494755,\"tagInfo\":{\"eTag\":\"ilbywdxsm\",\"id\":\"cwrwfs\",\"tagName\":\"jfnynszqujizdvoq\"}}") - .toObject(TaggingCriteria.class); - Assertions.assertEquals(false, model.isDefault()); - Assertions.assertEquals(3911214432429494755L, model.taggingPriority()); - Assertions.assertEquals("jfnynszqujizdvoq", 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())) - .withIsDefault(false) - .withTaggingPriority(3911214432429494755L) - .withTagInfo(new RetentionTag().withTagName("jfnynszqujizdvoq")); - model = BinaryData.fromObject(model).toObject(TaggingCriteria.class); - Assertions.assertEquals(false, model.isDefault()); - Assertions.assertEquals(3911214432429494755L, model.taggingPriority()); - Assertions.assertEquals("jfnynszqujizdvoq", 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 deleted file mode 100644 index 1fbbd9de32c6b..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetCopySettingTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.CopyOption; -import com.azure.resourcemanager.dataprotection.models.DataStoreInfoBase; -import com.azure.resourcemanager.dataprotection.models.DataStoreTypes; -import com.azure.resourcemanager.dataprotection.models.TargetCopySetting; -import org.junit.jupiter.api.Assertions; - -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\":\"bnujrywvtylbf\"}}") - .toObject(TargetCopySetting.class); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.dataStore().dataStoreType()); - Assertions.assertEquals("bnujrywvtylbf", 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("bnujrywvtylbf")); - model = BinaryData.fromObject(model).toObject(TargetCopySetting.class); - Assertions.assertEquals(DataStoreTypes.VAULT_STORE, model.dataStore().dataStoreType()); - Assertions.assertEquals("bnujrywvtylbf", model.dataStore().objectType()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetDetailsTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetDetailsTests.java deleted file mode 100644 index f7c995c5f0e0d..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TargetDetailsTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.RestoreTargetLocationType; -import com.azure.resourcemanager.dataprotection.models.TargetDetails; -import org.junit.jupiter.api.Assertions; - -public final class TargetDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TargetDetails model = BinaryData.fromString( - "{\"filePrefix\":\"bar\",\"restoreTargetLocationType\":\"Invalid\",\"url\":\"uayjkqa\",\"targetResourceArmId\":\"gzslesjcbhernnti\"}") - .toObject(TargetDetails.class); - Assertions.assertEquals("bar", model.filePrefix()); - Assertions.assertEquals(RestoreTargetLocationType.INVALID, model.restoreTargetLocationType()); - Assertions.assertEquals("uayjkqa", model.url()); - Assertions.assertEquals("gzslesjcbhernnti", model.targetResourceArmId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TargetDetails model = new TargetDetails().withFilePrefix("bar") - .withRestoreTargetLocationType(RestoreTargetLocationType.INVALID) - .withUrl("uayjkqa") - .withTargetResourceArmId("gzslesjcbhernnti"); - model = BinaryData.fromObject(model).toObject(TargetDetails.class); - Assertions.assertEquals("bar", model.filePrefix()); - Assertions.assertEquals(RestoreTargetLocationType.INVALID, model.restoreTargetLocationType()); - Assertions.assertEquals("uayjkqa", model.url()); - Assertions.assertEquals("gzslesjcbhernnti", model.targetResourceArmId()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TriggerBackupRequestTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TriggerBackupRequestTests.java deleted file mode 100644 index 02dff9893bb7f..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TriggerBackupRequestTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AdHocBackupRuleOptions; -import com.azure.resourcemanager.dataprotection.models.AdhocBackupTriggerOption; -import com.azure.resourcemanager.dataprotection.models.TriggerBackupRequest; -import org.junit.jupiter.api.Assertions; - -public final class TriggerBackupRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerBackupRequest model = BinaryData.fromString( - "{\"backupRuleOptions\":{\"ruleName\":\"hheunmmqhgyx\",\"triggerOption\":{\"retentionTagOverride\":\"onocukok\"}}}") - .toObject(TriggerBackupRequest.class); - Assertions.assertEquals("hheunmmqhgyx", model.backupRuleOptions().ruleName()); - Assertions.assertEquals("onocukok", model.backupRuleOptions().triggerOption().retentionTagOverride()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerBackupRequest model - = new TriggerBackupRequest().withBackupRuleOptions(new AdHocBackupRuleOptions().withRuleName("hheunmmqhgyx") - .withTriggerOption(new AdhocBackupTriggerOption().withRetentionTagOverride("onocukok"))); - model = BinaryData.fromObject(model).toObject(TriggerBackupRequest.class); - Assertions.assertEquals("hheunmmqhgyx", model.backupRuleOptions().ruleName()); - Assertions.assertEquals("onocukok", model.backupRuleOptions().triggerOption().retentionTagOverride()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TriggerContextTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TriggerContextTests.java deleted file mode 100644 index cfef5853a8ace..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/TriggerContextTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.TriggerContext; - -public final class TriggerContextTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TriggerContext model - = BinaryData.fromString("{\"objectType\":\"TriggerContext\"}").toObject(TriggerContext.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TriggerContext model = new TriggerContext(); - model = BinaryData.fromObject(model).toObject(TriggerContext.class); - } -} 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 deleted file mode 100644 index 032b56a3042ab..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteRequestTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class UnlockDeleteRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UnlockDeleteRequest model = BinaryData - .fromString( - "{\"resourceGuardOperationRequests\":[\"taeburuvdm\",\"vsmzlxwab\"],\"resourceToBeDeleted\":\"oefki\"}") - .toObject(UnlockDeleteRequest.class); - Assertions.assertEquals("taeburuvdm", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("oefki", model.resourceToBeDeleted()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UnlockDeleteRequest model - = new UnlockDeleteRequest().withResourceGuardOperationRequests(Arrays.asList("taeburuvdm", "vsmzlxwab")) - .withResourceToBeDeleted("oefki"); - model = BinaryData.fromObject(model).toObject(UnlockDeleteRequest.class); - Assertions.assertEquals("taeburuvdm", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("oefki", 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 deleted file mode 100644 index ff23f56c534f6..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UnlockDeleteResponseInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class UnlockDeleteResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UnlockDeleteResponseInner model = BinaryData.fromString("{\"unlockDeleteExpiryTime\":\"vtpuqujmqlgk\"}") - .toObject(UnlockDeleteResponseInner.class); - Assertions.assertEquals("vtpuqujmqlgk", model.unlockDeleteExpiryTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UnlockDeleteResponseInner model = new UnlockDeleteResponseInner().withUnlockDeleteExpiryTime("vtpuqujmqlgk"); - model = BinaryData.fromObject(model).toObject(UnlockDeleteResponseInner.class); - Assertions.assertEquals("vtpuqujmqlgk", model.unlockDeleteExpiryTime()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UserAssignedIdentityTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UserAssignedIdentityTests.java deleted file mode 100644 index dd45958cbe516..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/UserAssignedIdentityTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.UserAssignedIdentity; - -public final class UserAssignedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"625a77d1-dc13-4cf8-9450-1138724473e8\",\"clientId\":\"132a72d4-3759-4ee8-9077-0d63a20ff7b2\"}") - .toObject(UserAssignedIdentity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedIdentity model = new UserAssignedIdentity(); - model = BinaryData.fromObject(model).toObject(UserAssignedIdentity.class); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateCrossRegionRestoreRequestObjectTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateCrossRegionRestoreRequestObjectTests.java deleted file mode 100644 index e7758c231d389..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateCrossRegionRestoreRequestObjectTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; -import com.azure.resourcemanager.dataprotection.models.CrossRegionRestoreDetails; -import com.azure.resourcemanager.dataprotection.models.IdentityDetails; -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.ValidateCrossRegionRestoreRequestObject; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ValidateCrossRegionRestoreRequestObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ValidateCrossRegionRestoreRequestObject model = BinaryData.fromString( - "{\"restoreRequestObject\":{\"objectType\":\"AzureBackupRestoreRequest\",\"restoreTargetInfo\":{\"objectType\":\"RestoreTargetInfoBase\",\"recoveryOption\":\"FailIfExists\",\"restoreLocation\":\"plwzbhvgyugu\"},\"sourceDataStoreType\":\"OperationalStore\",\"sourceResourceId\":\"mkfssxqukkfplgm\",\"resourceGuardOperationRequests\":[\"nkjzkdeslpvlop\",\"i\",\"ighxpk\"],\"identityDetails\":{\"useSystemAssignedIdentity\":true,\"userAssignedIdentityArmUrl\":\"iuebbaumny\"}},\"crossRegionRestoreDetails\":{\"sourceRegion\":\"upedeojnabckhs\",\"sourceBackupInstanceId\":\"txp\"}}") - .toObject(ValidateCrossRegionRestoreRequestObject.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, - model.restoreRequestObject().restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("plwzbhvgyugu", model.restoreRequestObject().restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.OPERATIONAL_STORE, - model.restoreRequestObject().sourceDataStoreType()); - Assertions.assertEquals("mkfssxqukkfplgm", model.restoreRequestObject().sourceResourceId()); - Assertions.assertEquals("nkjzkdeslpvlop", model.restoreRequestObject().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(true, model.restoreRequestObject().identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("iuebbaumny", - model.restoreRequestObject().identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("upedeojnabckhs", model.crossRegionRestoreDetails().sourceRegion()); - Assertions.assertEquals("txp", model.crossRegionRestoreDetails().sourceBackupInstanceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidateCrossRegionRestoreRequestObject model - = new ValidateCrossRegionRestoreRequestObject() - .withRestoreRequestObject(new AzureBackupRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("plwzbhvgyugu")) - .withSourceDataStoreType(SourceDataStoreType.OPERATIONAL_STORE) - .withSourceResourceId("mkfssxqukkfplgm") - .withResourceGuardOperationRequests(Arrays.asList("nkjzkdeslpvlop", "i", "ighxpk")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(true) - .withUserAssignedIdentityArmUrl("iuebbaumny"))) - .withCrossRegionRestoreDetails(new CrossRegionRestoreDetails().withSourceRegion("upedeojnabckhs") - .withSourceBackupInstanceId("txp")); - model = BinaryData.fromObject(model).toObject(ValidateCrossRegionRestoreRequestObject.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, - model.restoreRequestObject().restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("plwzbhvgyugu", model.restoreRequestObject().restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.OPERATIONAL_STORE, - model.restoreRequestObject().sourceDataStoreType()); - Assertions.assertEquals("mkfssxqukkfplgm", model.restoreRequestObject().sourceResourceId()); - Assertions.assertEquals("nkjzkdeslpvlop", model.restoreRequestObject().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(true, model.restoreRequestObject().identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("iuebbaumny", - model.restoreRequestObject().identityDetails().userAssignedIdentityArmUrl()); - Assertions.assertEquals("upedeojnabckhs", model.crossRegionRestoreDetails().sourceRegion()); - Assertions.assertEquals("txp", model.crossRegionRestoreDetails().sourceBackupInstanceId()); - } -} diff --git a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreRequestObjectTests.java b/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreRequestObjectTests.java deleted file mode 100644 index c7cec5fd5fc89..0000000000000 --- a/sdk/dataprotection/azure-resourcemanager-dataprotection/src/test/java/com/azure/resourcemanager/dataprotection/generated/ValidateRestoreRequestObjectTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.dataprotection.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.dataprotection.models.AzureBackupRestoreRequest; -import com.azure.resourcemanager.dataprotection.models.IdentityDetails; -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.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ValidateRestoreRequestObjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ValidateRestoreRequestObject model = BinaryData.fromString( - "{\"restoreRequestObject\":{\"objectType\":\"AzureBackupRestoreRequest\",\"restoreTargetInfo\":{\"objectType\":\"RestoreTargetInfoBase\",\"recoveryOption\":\"FailIfExists\",\"restoreLocation\":\"qcslyjpkiid\"},\"sourceDataStoreType\":\"ArchiveStore\",\"sourceResourceId\":\"xznelixhnrztf\",\"resourceGuardOperationRequests\":[\"bnxknalaulppg\"],\"identityDetails\":{\"useSystemAssignedIdentity\":true,\"userAssignedIdentityArmUrl\":\"apnyiropuhpig\"}}}") - .toObject(ValidateRestoreRequestObject.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, - model.restoreRequestObject().restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("qcslyjpkiid", model.restoreRequestObject().restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.ARCHIVE_STORE, model.restoreRequestObject().sourceDataStoreType()); - Assertions.assertEquals("xznelixhnrztf", model.restoreRequestObject().sourceResourceId()); - Assertions.assertEquals("bnxknalaulppg", model.restoreRequestObject().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(true, model.restoreRequestObject().identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("apnyiropuhpig", - model.restoreRequestObject().identityDetails().userAssignedIdentityArmUrl()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ValidateRestoreRequestObject model - = new ValidateRestoreRequestObject().withRestoreRequestObject(new AzureBackupRestoreRequest() - .withRestoreTargetInfo(new RestoreTargetInfoBase().withRecoveryOption(RecoveryOption.FAIL_IF_EXISTS) - .withRestoreLocation("qcslyjpkiid")) - .withSourceDataStoreType(SourceDataStoreType.ARCHIVE_STORE) - .withSourceResourceId("xznelixhnrztf") - .withResourceGuardOperationRequests(Arrays.asList("bnxknalaulppg")) - .withIdentityDetails(new IdentityDetails().withUseSystemAssignedIdentity(true) - .withUserAssignedIdentityArmUrl("apnyiropuhpig"))); - model = BinaryData.fromObject(model).toObject(ValidateRestoreRequestObject.class); - Assertions.assertEquals(RecoveryOption.FAIL_IF_EXISTS, - model.restoreRequestObject().restoreTargetInfo().recoveryOption()); - Assertions.assertEquals("qcslyjpkiid", model.restoreRequestObject().restoreTargetInfo().restoreLocation()); - Assertions.assertEquals(SourceDataStoreType.ARCHIVE_STORE, model.restoreRequestObject().sourceDataStoreType()); - Assertions.assertEquals("xznelixhnrztf", model.restoreRequestObject().sourceResourceId()); - Assertions.assertEquals("bnxknalaulppg", model.restoreRequestObject().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(true, model.restoreRequestObject().identityDetails().useSystemAssignedIdentity()); - Assertions.assertEquals("apnyiropuhpig", - model.restoreRequestObject().identityDetails().userAssignedIdentityArmUrl()); - } -}