diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/CHANGELOG.md b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/CHANGELOG.md index a06f079f8052d..458a465be9cdb 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/CHANGELOG.md +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/CHANGELOG.md @@ -1,14 +1,31 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2024-08-26) -### Features Added +- Azure Resource Manager OracleDatabase client library for Java. This package contains Microsoft Azure SDK for OracleDatabase Management SDK. Package tag package-2024-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `OracleDatabaseManager` was modified + +* `fluent.OracleDatabaseResourceManager serviceClient()` -> `fluent.OracleDatabaseResourceManagerForTesting serviceClient()` + +### Features Added + +* `models.AzureSubscriptions` was added + +* `models.AddSubscriptionOperationState` was added + +#### `models.OracleSubscriptions` was modified + +* `addAzureSubscriptions(models.AzureSubscriptions)` was added +* `addAzureSubscriptions(models.AzureSubscriptions,com.azure.core.util.Context)` was added + +#### `models.OracleSubscriptionProperties` was modified -### Other Changes +* `lastOperationStatusDetail()` was added +* `azureSubscriptionIds()` was added +* `addSubscriptionOperationState()` was added ## 1.0.0 (2024-07-04) diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/README.md b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/README.md index bf32bc4cc4d4f..839ebf75894a7 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/README.md +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/README.md @@ -2,7 +2,7 @@ Azure Resource Manager OracleDatabase client library for Java. -This package contains Microsoft Azure SDK for OracleDatabase Management SDK. Package tag package-2023-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for OracleDatabase Management SDK. Package tag package-2024-06-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-oracledatabase - 1.0.0 + 1.1.0-beta.1 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md index aaab69e3b7905..3daea58d0a902 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md @@ -97,6 +97,7 @@ ## OracleSubscriptions +- [AddAzureSubscriptions](#oraclesubscriptions_addazuresubscriptions) - [CreateOrUpdate](#oraclesubscriptions_createorupdate) - [Delete](#oraclesubscriptions_delete) - [Get](#oraclesubscriptions_get) @@ -128,7 +129,7 @@ import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupP public final class AutonomousDatabaseBackupsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseBackup_create. * json */ /** @@ -148,7 +149,7 @@ public final class AutonomousDatabaseBackupsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseBackup_create. * json */ /** @@ -177,7 +178,7 @@ public final class AutonomousDatabaseBackupsCreateOrUpdateSamples { public final class AutonomousDatabaseBackupsDeleteSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseBackup_delete. * json */ /** @@ -193,7 +194,7 @@ public final class AutonomousDatabaseBackupsDeleteSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseBackup_delete. * json */ /** @@ -218,7 +219,7 @@ public final class AutonomousDatabaseBackupsDeleteSamples { public final class AutonomousDatabaseBackupsGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseBackup_get. * json */ /** @@ -234,7 +235,7 @@ public final class AutonomousDatabaseBackupsGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseBackup_get. * json */ /** @@ -258,7 +259,7 @@ public final class AutonomousDatabaseBackupsGetSamples { */ public final class AutonomousDatabaseBackupsListByAutonomousDatabaseSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabaseBackup_listByParent.json */ /** @@ -273,7 +274,7 @@ public final class AutonomousDatabaseBackupsListByAutonomousDatabaseSamples { } /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabaseBackup_listByParent.json */ /** @@ -300,7 +301,7 @@ import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackup; public final class AutonomousDatabaseBackupsUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseBackup_patch. * json */ /** @@ -318,7 +319,7 @@ public final class AutonomousDatabaseBackupsUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseBackup_patch. * json */ /** @@ -344,7 +345,7 @@ public final class AutonomousDatabaseBackupsUpdateSamples { */ public final class AutonomousDatabaseCharacterSetsGetSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabaseCharacterSet_get.json */ /** @@ -368,7 +369,7 @@ public final class AutonomousDatabaseCharacterSetsGetSamples { */ public final class AutonomousDatabaseCharacterSetsListByLocationSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabaseCharacterSet_listByLocation.json */ /** @@ -391,7 +392,7 @@ public final class AutonomousDatabaseCharacterSetsListByLocationSamples { */ public final class AutonomousDatabaseNationalCharacterSetsGetSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabaseNationalCharacterSet_get.json */ /** @@ -415,7 +416,7 @@ public final class AutonomousDatabaseNationalCharacterSetsGetSamples { */ public final class AutonomousDatabaseNationalCharacterSetsListByLocationSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabaseNationalCharacterSet_listByLocation.json */ /** @@ -439,7 +440,7 @@ public final class AutonomousDatabaseNationalCharacterSetsListByLocationSamples public final class AutonomousDatabaseVersionsGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_get. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseVersion_get. * json */ /** @@ -461,7 +462,7 @@ public final class AutonomousDatabaseVersionsGetSamples { */ public final class AutonomousDatabaseVersionsListByLocationSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabaseVersion_listByLocation.json */ /** @@ -492,7 +493,7 @@ import java.util.Map; public final class AutonomousDatabasesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_create.json */ /** * Sample code: AutonomousDatabases_CreateOrUpdate. @@ -523,7 +524,7 @@ public final class AutonomousDatabasesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_create.json */ /** * Sample code: Create Autonomous Database. @@ -554,7 +555,7 @@ public final class AutonomousDatabasesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseClone_create. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseClone_create. * json */ /** @@ -588,7 +589,7 @@ public final class AutonomousDatabasesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseClone_create. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabaseClone_create. * json */ /** @@ -643,7 +644,7 @@ public final class AutonomousDatabasesCreateOrUpdateSamples { public final class AutonomousDatabasesDeleteSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_delete.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_delete.json */ /** * Sample code: Delete Autonomous Database. @@ -668,7 +669,7 @@ import com.azure.resourcemanager.oracledatabase.models.PeerDbDetails; public final class AutonomousDatabasesFailoverSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_failover.json */ /** * Sample code: AutonomousDatabases_Failover. @@ -684,7 +685,7 @@ public final class AutonomousDatabasesFailoverSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_failover.json */ /** * Sample code: Perform failover action on Autonomous Database. @@ -711,7 +712,7 @@ import com.azure.resourcemanager.oracledatabase.models.GenerateType; */ public final class AutonomousDatabasesGenerateWalletSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabase_generateWallet.json */ /** @@ -740,7 +741,7 @@ public final class AutonomousDatabasesGenerateWalletSamples { public final class AutonomousDatabasesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_get.json */ /** * Sample code: Get Autonomous Database. @@ -754,7 +755,7 @@ public final class AutonomousDatabasesGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_get.json */ /** * Sample code: AutonomousDatabases_Get. @@ -776,7 +777,7 @@ public final class AutonomousDatabasesGetByResourceGroupSamples { */ public final class AutonomousDatabasesListSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabase_listBySubscription.json */ /** @@ -799,7 +800,7 @@ public final class AutonomousDatabasesListSamples { */ public final class AutonomousDatabasesListByResourceGroupSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * autonomousDatabase_listByResourceGroup.json */ /** @@ -826,7 +827,7 @@ import java.time.OffsetDateTime; public final class AutonomousDatabasesRestoreSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_restore.json */ /** * Sample code: AutonomousDatabases_Restore. @@ -843,7 +844,7 @@ public final class AutonomousDatabasesRestoreSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_restore.json */ /** * Sample code: Perform restore action on Autonomous Database. @@ -869,7 +870,7 @@ public final class AutonomousDatabasesRestoreSamples { public final class AutonomousDatabasesShrinkSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_shrink.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_shrink.json */ /** * Sample code: Perform shrink action on Autonomous Database. @@ -894,7 +895,7 @@ import com.azure.resourcemanager.oracledatabase.models.PeerDbDetails; public final class AutonomousDatabasesSwitchoverSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_switchover. * json */ /** @@ -911,7 +912,7 @@ public final class AutonomousDatabasesSwitchoverSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_switchover. * json */ /** @@ -939,7 +940,7 @@ import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabase; public final class AutonomousDatabasesUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_patch.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/autonomousDatabase_patch.json */ /** * Sample code: Patch Autonomous Database. @@ -964,7 +965,7 @@ public final class AutonomousDatabasesUpdateSamples { public final class CloudExadataInfrastructuresAddStorageCapacitySamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_addStorageCapacity.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/exaInfra_addStorageCapacity.json */ /** * Sample code: Perform add storage capacity on exadata infra. @@ -992,7 +993,7 @@ import java.util.Map; public final class CloudExadataInfrastructuresCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_create.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/exaInfra_create.json */ /** * Sample code: Create Exadata Infrastructure. @@ -1037,7 +1038,7 @@ public final class CloudExadataInfrastructuresCreateOrUpdateSamples { public final class CloudExadataInfrastructuresDeleteSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_delete.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/exaInfra_delete.json */ /** * Sample code: Delete Exadata Infrastructure. @@ -1060,7 +1061,7 @@ public final class CloudExadataInfrastructuresDeleteSamples { public final class CloudExadataInfrastructuresGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/exaInfra_get.json */ /** * Sample code: Get Exadata Infrastructure. @@ -1084,7 +1085,7 @@ public final class CloudExadataInfrastructuresGetByResourceGroupSamples { public final class CloudExadataInfrastructuresListSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listBySubscription.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/exaInfra_listBySubscription.json */ /** * Sample code: List Exadata Infrastructure by subscription. @@ -1107,7 +1108,7 @@ public final class CloudExadataInfrastructuresListSamples { public final class CloudExadataInfrastructuresListByResourceGroupSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listByResourceGroup. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/exaInfra_listByResourceGroup. * json */ /** @@ -1133,7 +1134,7 @@ import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructur public final class CloudExadataInfrastructuresUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_patch.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/exaInfra_patch.json */ /** * Sample code: Patch Exadata Infrastructure. @@ -1162,7 +1163,7 @@ import java.util.Arrays; public final class CloudVmClustersAddVmsSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_addVms.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/vmClusters_addVms.json */ /** * Sample code: Add VMs to VM Cluster. @@ -1196,7 +1197,7 @@ import java.util.Map; public final class CloudVmClustersCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_create.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/vmClusters_create.json */ /** * Sample code: Create VM Cluster. @@ -1268,7 +1269,7 @@ public final class CloudVmClustersCreateOrUpdateSamples { public final class CloudVmClustersDeleteSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_delete.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/vmClusters_delete.json */ /** * Sample code: Delete VM Cluster. @@ -1290,7 +1291,7 @@ public final class CloudVmClustersDeleteSamples { public final class CloudVmClustersGetByResourceGroupSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/vmClusters_get.json */ /** * Sample code: Get VM Cluster. @@ -1312,7 +1313,7 @@ public final class CloudVmClustersGetByResourceGroupSamples { public final class CloudVmClustersListSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listBySubscription. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/vmClusters_listBySubscription. * json */ /** @@ -1336,7 +1337,7 @@ public final class CloudVmClustersListSamples { public final class CloudVmClustersListByResourceGroupSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listByResourceGroup. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/vmClusters_listByResourceGroup. * json */ /** @@ -1361,7 +1362,7 @@ import com.azure.resourcemanager.oracledatabase.models.PrivateIpAddressesFilter; */ public final class CloudVmClustersListPrivateIpAddressesSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * vmClusters_listPrivateIpAddresses.json */ /** @@ -1391,7 +1392,7 @@ import java.util.Arrays; public final class CloudVmClustersRemoveVmsSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_removeVms.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/vmClusters_removeVms.json */ /** * Sample code: Remove VMs from VM Cluster. @@ -1417,7 +1418,7 @@ import com.azure.resourcemanager.oracledatabase.models.CloudVmCluster; public final class CloudVmClustersUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_patch.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/vmClusters_patch.json */ /** * Sample code: Patch VM Cluster. @@ -1445,7 +1446,7 @@ import com.azure.resourcemanager.oracledatabase.models.DbNodeActionEnum; public final class DbNodesActionSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dbNodes_action.json */ /** * Sample code: DbNodes_Action. @@ -1460,7 +1461,7 @@ public final class DbNodesActionSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dbNodes_action.json */ /** * Sample code: VM actions on DbNodes of VM Cluster. @@ -1485,7 +1486,7 @@ public final class DbNodesActionSamples { public final class DbNodesGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dbNodes_get.json */ /** * Sample code: Get DbNode. @@ -1507,7 +1508,7 @@ public final class DbNodesGetSamples { public final class DbNodesListByCloudVmClusterSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_listByParent.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dbNodes_listByParent.json */ /** * Sample code: List DbNodes by VM Cluster. @@ -1529,7 +1530,7 @@ public final class DbNodesListByCloudVmClusterSamples { public final class DbServersGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dbServers_get.json */ /** * Sample code: Get DbServer by parent. @@ -1551,7 +1552,7 @@ public final class DbServersGetSamples { public final class DbServersListByCloudExadataInfrastructureSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_listByParent.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dbServers_listByParent.json */ /** * Sample code: List DbServers by Exadata Infrastructure. @@ -1574,7 +1575,7 @@ public final class DbServersListByCloudExadataInfrastructureSamples { public final class DbSystemShapesGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dbSystemShapes_get.json */ /** * Sample code: Get a DbSystemShape by name. @@ -1596,7 +1597,7 @@ public final class DbSystemShapesGetSamples { public final class DbSystemShapesListByLocationSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_listByLocation. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dbSystemShapes_listByLocation. * json */ /** @@ -1620,7 +1621,7 @@ public final class DbSystemShapesListByLocationSamples { public final class DnsPrivateViewsGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dnsPrivateViews_get.json */ /** * Sample code: Get a DnsPrivateView by name. @@ -1643,7 +1644,7 @@ public final class DnsPrivateViewsGetSamples { public final class DnsPrivateViewsListByLocationSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_listByLocation. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dnsPrivateViews_listByLocation. * json */ /** @@ -1667,7 +1668,7 @@ public final class DnsPrivateViewsListByLocationSamples { public final class DnsPrivateZonesGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dnsPrivateZones_get.json */ /** * Sample code: Get a DnsPrivateZone by name. @@ -1691,7 +1692,7 @@ public final class DnsPrivateZonesGetSamples { public final class DnsPrivateZonesListByLocationSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_listByLocation. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/dnsPrivateZones_listByLocation. * json */ /** @@ -1715,7 +1716,7 @@ public final class DnsPrivateZonesListByLocationSamples { public final class GiVersionsGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/giVersions_get.json */ /** * Sample code: Get a GiVersion by name. @@ -1737,7 +1738,7 @@ public final class GiVersionsGetSamples { public final class GiVersionsListByLocationSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_listByLocation.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/giVersions_listByLocation.json */ /** * Sample code: List GiVersions by location. @@ -1760,7 +1761,7 @@ public final class GiVersionsListByLocationSamples { public final class OperationsListSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/operations_list.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/operations_list.json */ /** * Sample code: List Operations. @@ -1773,6 +1774,34 @@ public final class OperationsListSamples { } ``` +### OracleSubscriptions_AddAzureSubscriptions + +```java +import com.azure.resourcemanager.oracledatabase.models.AzureSubscriptions; +import java.util.Arrays; + +/** + * Samples for OracleSubscriptions AddAzureSubscriptions. + */ +public final class OracleSubscriptionsAddAzureSubscriptionsSamples { + /* + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ + * oracleSubscriptions_addAzureSubscriptions.json + */ + /** + * Sample code: Add Azure Subscriptions to the OracleSubscription. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void addAzureSubscriptionsToTheOracleSubscription( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions() + .addAzureSubscriptions(new AzureSubscriptions().withAzureSubscriptionIds( + Arrays.asList("00000000-0000-0000-0000-000000000001")), com.azure.core.util.Context.NONE); + } +} +``` + ### OracleSubscriptions_CreateOrUpdate ```java @@ -1786,7 +1815,7 @@ import com.azure.resourcemanager.oracledatabase.models.Plan; public final class OracleSubscriptionsCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_create.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/oracleSubscriptions_create.json */ /** * Sample code: Create or Update Oracle Subscription. @@ -1816,7 +1845,7 @@ public final class OracleSubscriptionsCreateOrUpdateSamples { public final class OracleSubscriptionsDeleteSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_delete.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/oracleSubscriptions_delete.json */ /** * Sample code: Delete Oracle Subscription. @@ -1839,7 +1868,7 @@ public final class OracleSubscriptionsDeleteSamples { public final class OracleSubscriptionsGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/oracleSubscriptions_get.json */ /** * Sample code: Get Oracle Subscription. @@ -1860,7 +1889,7 @@ public final class OracleSubscriptionsGetSamples { */ public final class OracleSubscriptionsListSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * oracleSubscriptions_listBySubscription.json */ /** @@ -1883,7 +1912,7 @@ public final class OracleSubscriptionsListSamples { */ public final class OracleSubscriptionsListActivationLinksSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * oracleSubscriptions_listActivationLinks.json */ /** @@ -1906,7 +1935,7 @@ public final class OracleSubscriptionsListActivationLinksSamples { */ public final class OracleSubscriptionsListCloudAccountDetailsSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * oracleSubscriptions_listCloudAccountDetails.json */ /** @@ -1929,7 +1958,7 @@ public final class OracleSubscriptionsListCloudAccountDetailsSamples { */ public final class OracleSubscriptionsListSaasSubscriptionDetailsSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * oracleSubscriptions_listSaasSubscriptionDetails.json */ /** @@ -1955,7 +1984,7 @@ import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdate; public final class OracleSubscriptionsUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_patch.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/oracleSubscriptions_patch.json */ /** * Sample code: Patch Oracle Subscription. @@ -1977,7 +2006,7 @@ public final class OracleSubscriptionsUpdateSamples { public final class SystemVersionsGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/systemVersions_get.json */ /** * Sample code: systemVersions_listSystemVersions. @@ -1991,7 +2020,7 @@ public final class SystemVersionsGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/systemVersions_get.json */ /** * Sample code: Get Exadata System Version. @@ -2013,7 +2042,7 @@ public final class SystemVersionsGetSamples { public final class SystemVersionsListByLocationSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/systemVersions_listByLocation. * json */ /** @@ -2028,7 +2057,7 @@ public final class SystemVersionsListByLocationSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/systemVersions_listByLocation. * json */ /** @@ -2054,7 +2083,7 @@ import com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddressProp public final class VirtualNetworkAddressesCreateOrUpdateSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_create. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/virtualNetworkAddresses_create. * json */ /** @@ -2083,7 +2112,7 @@ public final class VirtualNetworkAddressesCreateOrUpdateSamples { public final class VirtualNetworkAddressesDeleteSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_delete. + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/virtualNetworkAddresses_delete. * json */ /** @@ -2107,7 +2136,7 @@ public final class VirtualNetworkAddressesDeleteSamples { public final class VirtualNetworkAddressesGetSamples { /* * x-ms-original-file: - * specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_get.json + * specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/virtualNetworkAddresses_get.json */ /** * Sample code: Get Virtual Network Address. @@ -2130,7 +2159,7 @@ public final class VirtualNetworkAddressesGetSamples { */ public final class VirtualNetworkAddressesListByCloudVmClusterSamples { /* - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/ + * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2024-06-01/examples/ * virtualNetworkAddresses_listByParent.json */ /** diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/pom.xml b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/pom.xml index d3b5a2da726f3..1d644699c4b8a 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/pom.xml +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for OracleDatabase Management - This package contains Microsoft Azure SDK for OracleDatabase Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-09-01. + This package contains Microsoft Azure SDK for OracleDatabase Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-06-01. https://github.com/Azure/azure-sdk-for-java @@ -45,6 +45,7 @@ UTF-8 0 0 + true diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/OracleDatabaseManager.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/OracleDatabaseManager.java index 18d1874303e13..897efe7ccb2af 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/OracleDatabaseManager.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/OracleDatabaseManager.java @@ -23,7 +23,7 @@ import com.azure.core.management.profile.AzureProfile; import com.azure.core.util.Configuration; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseResourceManager; +import com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseResourceManagerForTesting; import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseBackupsImpl; import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseCharacterSetsImpl; import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseNationalCharacterSetsImpl; @@ -38,7 +38,7 @@ import com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateZonesImpl; import com.azure.resourcemanager.oracledatabase.implementation.GiVersionsImpl; import com.azure.resourcemanager.oracledatabase.implementation.OperationsImpl; -import com.azure.resourcemanager.oracledatabase.implementation.OracleDatabaseResourceManagerBuilder; +import com.azure.resourcemanager.oracledatabase.implementation.OracleDatabaseResourceManagerForTestingBuilder; import com.azure.resourcemanager.oracledatabase.implementation.OracleSubscriptionsImpl; import com.azure.resourcemanager.oracledatabase.implementation.SystemVersionsImpl; import com.azure.resourcemanager.oracledatabase.implementation.VirtualNetworkAddressesImpl; @@ -104,12 +104,12 @@ public final class OracleDatabaseManager { private VirtualNetworkAddresses virtualNetworkAddresses; - private final OracleDatabaseResourceManager clientObject; + private final OracleDatabaseResourceManagerForTesting clientObject; private OracleDatabaseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = new OracleDatabaseResourceManagerBuilder().pipeline(httpPipeline) + this.clientObject = new OracleDatabaseResourceManagerForTestingBuilder().pipeline(httpPipeline) .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) .subscriptionId(profile.getSubscriptionId()) .defaultPollInterval(defaultPollInterval) @@ -268,7 +268,7 @@ public OracleDatabaseManager authenticate(TokenCredential credential, AzureProfi .append("-") .append("com.azure.resourcemanager.oracledatabase") .append("/") - .append("1.0.0"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder.append(" (") .append(Configuration.getGlobalConfiguration().get("java.version")) @@ -525,12 +525,12 @@ public VirtualNetworkAddresses virtualNetworkAddresses() { } /** - * Gets wrapped service client OracleDatabaseResourceManager providing direct access to the underlying + * Gets wrapped service client OracleDatabaseResourceManagerForTesting providing direct access to the underlying * auto-generated API implementation, based on Azure REST API. * - * @return Wrapped service client OracleDatabaseResourceManager. + * @return Wrapped service client OracleDatabaseResourceManagerForTesting. */ - public OracleDatabaseResourceManager serviceClient() { + public OracleDatabaseResourceManagerForTesting serviceClient() { return this.clientObject; } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseResourceManager.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseResourceManagerForTesting.java similarity index 97% rename from sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseResourceManager.java rename to sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseResourceManagerForTesting.java index 09cc41dda2cbf..e1d85ab2de80a 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseResourceManager.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseResourceManagerForTesting.java @@ -8,9 +8,9 @@ import java.time.Duration; /** - * The interface for OracleDatabaseResourceManager class. + * The interface for OracleDatabaseResourceManagerForTesting class. */ -public interface OracleDatabaseResourceManager { +public interface OracleDatabaseResourceManagerForTesting { /** * Gets The ID of the target subscription. The value must be an UUID. * diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleSubscriptionsClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleSubscriptionsClient.java index a6802e7fc8892..baa667745ca38 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleSubscriptionsClient.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleSubscriptionsClient.java @@ -15,6 +15,7 @@ import com.azure.resourcemanager.oracledatabase.fluent.models.CloudAccountDetailsInner; import com.azure.resourcemanager.oracledatabase.fluent.models.OracleSubscriptionInner; import com.azure.resourcemanager.oracledatabase.fluent.models.SaasSubscriptionDetailsInner; +import com.azure.resourcemanager.oracledatabase.models.AzureSubscriptions; import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdate; /** @@ -211,6 +212,54 @@ public interface OracleSubscriptionsClient { @ServiceMethod(returns = ReturnType.SINGLE) void delete(Context context); + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginAddAzureSubscriptions(AzureSubscriptions body); + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginAddAzureSubscriptions(AzureSubscriptions body, Context context); + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void addAzureSubscriptions(AzureSubscriptions body); + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void addAzureSubscriptions(AzureSubscriptions body, Context context); + /** * List Activation Links. * diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/package-info.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/package-info.java index 369217dc39703..1f89d27fe0bef 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/package-info.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the inner data models for OracleDatabaseResourceManager. + * Package containing the inner data models for OracleDatabaseResourceManagerForTesting. * null. */ package com.azure.resourcemanager.oracledatabase.fluent.models; diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/package-info.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/package-info.java index 4b2933553e231..040ed94b850ac 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/package-info.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the service clients for OracleDatabaseResourceManager. + * Package containing the service clients for OracleDatabaseResourceManagerForTesting. * null. */ package com.azure.resourcemanager.oracledatabase.fluent; diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupsClientImpl.java index 78cea68fe887d..6bb690bcbac4d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupsClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupsClientImpl.java @@ -52,22 +52,22 @@ public final class AutonomousDatabaseBackupsClientImpl implements AutonomousData /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of AutonomousDatabaseBackupsClientImpl. * * @param client the instance of the service client containing this operation class. */ - AutonomousDatabaseBackupsClientImpl(OracleDatabaseResourceManagerImpl client) { + AutonomousDatabaseBackupsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(AutonomousDatabaseBackupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabaseBackups to be used by - * the proxy service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingAutonomousDatabaseBackups to + * be used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetsClientImpl.java index f03d2e52ea5f9..2a5b1d09e6617 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetsClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetsClientImpl.java @@ -42,22 +42,23 @@ public final class AutonomousDatabaseCharacterSetsClientImpl implements Autonomo /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of AutonomousDatabaseCharacterSetsClientImpl. * * @param client the instance of the service client containing this operation class. */ - AutonomousDatabaseCharacterSetsClientImpl(OracleDatabaseResourceManagerImpl client) { + AutonomousDatabaseCharacterSetsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(AutonomousDatabaseCharacterSetsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabaseCharacterSets to be - * used by the proxy service to perform REST calls. + * The interface defining all the services for + * OracleDatabaseResourceManagerForTestingAutonomousDatabaseCharacterSets to be used by the proxy service to perform + * REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetsClientImpl.java index 423c8167dfc5a..550bb80f048bf 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetsClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetsClientImpl.java @@ -44,22 +44,23 @@ public final class AutonomousDatabaseNationalCharacterSetsClientImpl /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of AutonomousDatabaseNationalCharacterSetsClientImpl. * * @param client the instance of the service client containing this operation class. */ - AutonomousDatabaseNationalCharacterSetsClientImpl(OracleDatabaseResourceManagerImpl client) { + AutonomousDatabaseNationalCharacterSetsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(AutonomousDatabaseNationalCharacterSetsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabaseNationalCharacterSets - * to be used by the proxy service to perform REST calls. + * The interface defining all the services for + * OracleDatabaseResourceManagerForTestingAutonomousDatabaseNationalCharacterSets to be used by the proxy service to + * perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseVersionsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseVersionsClientImpl.java index 94103c3ddc138..b70b97de60ee9 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseVersionsClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseVersionsClientImpl.java @@ -42,22 +42,22 @@ public final class AutonomousDatabaseVersionsClientImpl implements AutonomousDat /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of AutonomousDatabaseVersionsClientImpl. * * @param client the instance of the service client containing this operation class. */ - AutonomousDatabaseVersionsClientImpl(OracleDatabaseResourceManagerImpl client) { + AutonomousDatabaseVersionsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(AutonomousDatabaseVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabaseVersions to be used by - * the proxy service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingAutonomousDatabaseVersions to + * be used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesClientImpl.java index 907f763205447..f9e1ba9eaeff2 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesClientImpl.java @@ -57,22 +57,22 @@ public final class AutonomousDatabasesClientImpl implements AutonomousDatabasesC /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of AutonomousDatabasesClientImpl. * * @param client the instance of the service client containing this operation class. */ - AutonomousDatabasesClientImpl(OracleDatabaseResourceManagerImpl client) { + AutonomousDatabasesClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(AutonomousDatabasesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabases to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingAutonomousDatabases to be used + * by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresClientImpl.java index a7f4613cac6de..a3972c30cf3d9 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresClientImpl.java @@ -53,22 +53,22 @@ public final class CloudExadataInfrastructuresClientImpl implements CloudExadata /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of CloudExadataInfrastructuresClientImpl. * * @param client the instance of the service client containing this operation class. */ - CloudExadataInfrastructuresClientImpl(OracleDatabaseResourceManagerImpl client) { + CloudExadataInfrastructuresClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(CloudExadataInfrastructuresService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerCloudExadataInfrastructures to be used - * by the proxy service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingCloudExadataInfrastructures to + * be used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClustersClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClustersClientImpl.java index d22b8c59b7d4b..9e9468725c31b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClustersClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClustersClientImpl.java @@ -57,22 +57,22 @@ public final class CloudVmClustersClientImpl implements CloudVmClustersClient { /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of CloudVmClustersClientImpl. * * @param client the instance of the service client containing this operation class. */ - CloudVmClustersClientImpl(OracleDatabaseResourceManagerImpl client) { + CloudVmClustersClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(CloudVmClustersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerCloudVmClusters to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingCloudVmClusters to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodesClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodesClientImpl.java index 2fb33bc67f2ca..ca9606981ca00 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodesClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodesClientImpl.java @@ -50,21 +50,21 @@ public final class DbNodesClientImpl implements DbNodesClient { /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of DbNodesClientImpl. * * @param client the instance of the service client containing this operation class. */ - DbNodesClientImpl(OracleDatabaseResourceManagerImpl client) { + DbNodesClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(DbNodesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerDbNodes to be used by the proxy service - * to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingDbNodes to be used by the + * proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServersClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServersClientImpl.java index daa832f3f89d6..d5f22c63692fa 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServersClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServersClientImpl.java @@ -42,22 +42,22 @@ public final class DbServersClientImpl implements DbServersClient { /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of DbServersClientImpl. * * @param client the instance of the service client containing this operation class. */ - DbServersClientImpl(OracleDatabaseResourceManagerImpl client) { + DbServersClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(DbServersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerDbServers to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingDbServers to be used by the + * proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesClientImpl.java index b03d88ff76791..21e404cec947a 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesClientImpl.java @@ -42,22 +42,22 @@ public final class DbSystemShapesClientImpl implements DbSystemShapesClient { /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of DbSystemShapesClientImpl. * * @param client the instance of the service client containing this operation class. */ - DbSystemShapesClientImpl(OracleDatabaseResourceManagerImpl client) { + DbSystemShapesClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(DbSystemShapesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerDbSystemShapes to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingDbSystemShapes to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewsClientImpl.java index b8465d111b6d2..f81674f76022f 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewsClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewsClientImpl.java @@ -42,22 +42,22 @@ public final class DnsPrivateViewsClientImpl implements DnsPrivateViewsClient { /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of DnsPrivateViewsClientImpl. * * @param client the instance of the service client containing this operation class. */ - DnsPrivateViewsClientImpl(OracleDatabaseResourceManagerImpl client) { + DnsPrivateViewsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(DnsPrivateViewsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerDnsPrivateViews to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingDnsPrivateViews to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZonesClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZonesClientImpl.java index 932761cbd0c4f..9edceb9cdc40d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZonesClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZonesClientImpl.java @@ -42,22 +42,22 @@ public final class DnsPrivateZonesClientImpl implements DnsPrivateZonesClient { /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of DnsPrivateZonesClientImpl. * * @param client the instance of the service client containing this operation class. */ - DnsPrivateZonesClientImpl(OracleDatabaseResourceManagerImpl client) { + DnsPrivateZonesClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(DnsPrivateZonesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerDnsPrivateZones to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingDnsPrivateZones to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsClientImpl.java index 97bd9c373b72c..d4fa6b8c06ff6 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsClientImpl.java @@ -42,22 +42,22 @@ public final class GiVersionsClientImpl implements GiVersionsClient { /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of GiVersionsClientImpl. * * @param client the instance of the service client containing this operation class. */ - GiVersionsClientImpl(OracleDatabaseResourceManagerImpl client) { + GiVersionsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(GiVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerGiVersions to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingGiVersions to be used by the + * proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationsClientImpl.java index b8113a106401e..a225c335d7e10 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationsClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationsClientImpl.java @@ -42,22 +42,22 @@ public final class OperationsClientImpl implements OperationsClient { /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of OperationsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OperationsClientImpl(OracleDatabaseResourceManagerImpl client) { + OperationsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerOperations to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingOperations to be used by the + * proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerBuilder.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerForTestingBuilder.java similarity index 67% rename from sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerBuilder.java rename to sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerForTestingBuilder.java index b45b3cefa7491..b8d5093a3e672 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerBuilder.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerForTestingBuilder.java @@ -15,10 +15,10 @@ import java.time.Duration; /** - * A builder for creating a new instance of the OracleDatabaseResourceManagerImpl type. + * A builder for creating a new instance of the OracleDatabaseResourceManagerForTestingImpl type. */ -@ServiceClientBuilder(serviceClients = { OracleDatabaseResourceManagerImpl.class }) -public final class OracleDatabaseResourceManagerBuilder { +@ServiceClientBuilder(serviceClients = { OracleDatabaseResourceManagerForTestingImpl.class }) +public final class OracleDatabaseResourceManagerForTestingBuilder { /* * The ID of the target subscription. The value must be an UUID. */ @@ -28,9 +28,9 @@ public final class OracleDatabaseResourceManagerBuilder { * Sets The ID of the target subscription. The value must be an UUID. * * @param subscriptionId the subscriptionId value. - * @return the OracleDatabaseResourceManagerBuilder. + * @return the OracleDatabaseResourceManagerForTestingBuilder. */ - public OracleDatabaseResourceManagerBuilder subscriptionId(String subscriptionId) { + public OracleDatabaseResourceManagerForTestingBuilder subscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; return this; } @@ -44,9 +44,9 @@ public OracleDatabaseResourceManagerBuilder subscriptionId(String subscriptionId * Sets server parameter. * * @param endpoint the endpoint value. - * @return the OracleDatabaseResourceManagerBuilder. + * @return the OracleDatabaseResourceManagerForTestingBuilder. */ - public OracleDatabaseResourceManagerBuilder endpoint(String endpoint) { + public OracleDatabaseResourceManagerForTestingBuilder endpoint(String endpoint) { this.endpoint = endpoint; return this; } @@ -60,9 +60,9 @@ public OracleDatabaseResourceManagerBuilder endpoint(String endpoint) { * Sets The environment to connect to. * * @param environment the environment value. - * @return the OracleDatabaseResourceManagerBuilder. + * @return the OracleDatabaseResourceManagerForTestingBuilder. */ - public OracleDatabaseResourceManagerBuilder environment(AzureEnvironment environment) { + public OracleDatabaseResourceManagerForTestingBuilder environment(AzureEnvironment environment) { this.environment = environment; return this; } @@ -76,9 +76,9 @@ public OracleDatabaseResourceManagerBuilder environment(AzureEnvironment environ * Sets The HTTP pipeline to send requests through. * * @param pipeline the pipeline value. - * @return the OracleDatabaseResourceManagerBuilder. + * @return the OracleDatabaseResourceManagerForTestingBuilder. */ - public OracleDatabaseResourceManagerBuilder pipeline(HttpPipeline pipeline) { + public OracleDatabaseResourceManagerForTestingBuilder pipeline(HttpPipeline pipeline) { this.pipeline = pipeline; return this; } @@ -92,9 +92,9 @@ public OracleDatabaseResourceManagerBuilder pipeline(HttpPipeline pipeline) { * Sets The default poll interval for long-running operation. * * @param defaultPollInterval the defaultPollInterval value. - * @return the OracleDatabaseResourceManagerBuilder. + * @return the OracleDatabaseResourceManagerForTestingBuilder. */ - public OracleDatabaseResourceManagerBuilder defaultPollInterval(Duration defaultPollInterval) { + public OracleDatabaseResourceManagerForTestingBuilder defaultPollInterval(Duration defaultPollInterval) { this.defaultPollInterval = defaultPollInterval; return this; } @@ -108,19 +108,19 @@ public OracleDatabaseResourceManagerBuilder defaultPollInterval(Duration default * Sets The serializer to serialize an object into a string. * * @param serializerAdapter the serializerAdapter value. - * @return the OracleDatabaseResourceManagerBuilder. + * @return the OracleDatabaseResourceManagerForTestingBuilder. */ - public OracleDatabaseResourceManagerBuilder serializerAdapter(SerializerAdapter serializerAdapter) { + public OracleDatabaseResourceManagerForTestingBuilder serializerAdapter(SerializerAdapter serializerAdapter) { this.serializerAdapter = serializerAdapter; return this; } /** - * Builds an instance of OracleDatabaseResourceManagerImpl with the provided parameters. + * Builds an instance of OracleDatabaseResourceManagerForTestingImpl with the provided parameters. * - * @return an instance of OracleDatabaseResourceManagerImpl. + * @return an instance of OracleDatabaseResourceManagerForTestingImpl. */ - public OracleDatabaseResourceManagerImpl buildClient() { + public OracleDatabaseResourceManagerForTestingImpl buildClient() { String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; HttpPipeline localPipeline = (pipeline != null) @@ -131,8 +131,9 @@ public OracleDatabaseResourceManagerImpl buildClient() { SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); - OracleDatabaseResourceManagerImpl client = new OracleDatabaseResourceManagerImpl(localPipeline, - localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); + OracleDatabaseResourceManagerForTestingImpl client + = new OracleDatabaseResourceManagerForTestingImpl(localPipeline, localSerializerAdapter, + localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); return client; } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerForTestingImpl.java similarity index 97% rename from sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerImpl.java rename to sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerForTestingImpl.java index 996a112cf0852..90db0f48daae9 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseResourceManagerForTestingImpl.java @@ -37,7 +37,7 @@ import com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient; import com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient; import com.azure.resourcemanager.oracledatabase.fluent.OperationsClient; -import com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseResourceManager; +import com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseResourceManagerForTesting; import com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient; import com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient; import com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient; @@ -51,10 +51,10 @@ import reactor.core.publisher.Mono; /** - * Initializes a new instance of the OracleDatabaseResourceManagerImpl type. + * Initializes a new instance of the OracleDatabaseResourceManagerForTestingImpl type. */ -@ServiceClient(builder = OracleDatabaseResourceManagerBuilder.class) -public final class OracleDatabaseResourceManagerImpl implements OracleDatabaseResourceManager { +@ServiceClient(builder = OracleDatabaseResourceManagerForTestingBuilder.class) +public final class OracleDatabaseResourceManagerForTestingImpl implements OracleDatabaseResourceManagerForTesting { /** * The ID of the target subscription. The value must be an UUID. */ @@ -378,7 +378,7 @@ public VirtualNetworkAddressesClient getVirtualNetworkAddresses() { } /** - * Initializes an instance of OracleDatabaseResourceManager client. + * Initializes an instance of OracleDatabaseResourceManagerForTesting client. * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. @@ -387,14 +387,14 @@ public VirtualNetworkAddressesClient getVirtualNetworkAddresses() { * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param endpoint server parameter. */ - OracleDatabaseResourceManagerImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + OracleDatabaseResourceManagerForTestingImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2023-09-01"; + this.apiVersion = "2024-06-01"; this.operations = new OperationsClientImpl(this); this.autonomousDatabases = new AutonomousDatabasesClientImpl(this); this.cloudExadataInfrastructures = new CloudExadataInfrastructuresClientImpl(this); @@ -540,5 +540,5 @@ public Mono getBodyAsString(Charset charset) { } } - private static final ClientLogger LOGGER = new ClientLogger(OracleDatabaseResourceManagerImpl.class); + private static final ClientLogger LOGGER = new ClientLogger(OracleDatabaseResourceManagerForTestingImpl.class); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsClientImpl.java index 60475db20a663..e2f1a90425163 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsClientImpl.java @@ -38,6 +38,7 @@ import com.azure.resourcemanager.oracledatabase.fluent.models.CloudAccountDetailsInner; import com.azure.resourcemanager.oracledatabase.fluent.models.OracleSubscriptionInner; import com.azure.resourcemanager.oracledatabase.fluent.models.SaasSubscriptionDetailsInner; +import com.azure.resourcemanager.oracledatabase.models.AzureSubscriptions; import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionListResult; import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdate; import java.nio.ByteBuffer; @@ -56,22 +57,22 @@ public final class OracleSubscriptionsClientImpl implements OracleSubscriptionsC /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of OracleSubscriptionsClientImpl. * * @param client the instance of the service client containing this operation class. */ - OracleSubscriptionsClientImpl(OracleDatabaseResourceManagerImpl client) { + OracleSubscriptionsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(OracleSubscriptionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerOracleSubscriptions to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingOracleSubscriptions to be used + * by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") @@ -118,6 +119,15 @@ Mono>> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default/addAzureSubscriptions") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> addAzureSubscriptions(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") AzureSubscriptions body, @HeaderParam("Accept") String accept, + Context context); + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default/listActivationLinks") @ExpectedResponses({ 200, 202 }) @@ -886,6 +896,189 @@ public void delete(Context context) { deleteAsync(context).block(); } + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> addAzureSubscriptionsWithResponseAsync(AzureSubscriptions body) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.addAzureSubscriptions(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), body, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> addAzureSubscriptionsWithResponseAsync(AzureSubscriptions body, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.addAzureSubscriptions(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), body, accept, context); + } + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginAddAzureSubscriptionsAsync(AzureSubscriptions body) { + Mono>> mono = addAzureSubscriptionsWithResponseAsync(body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginAddAzureSubscriptionsAsync(AzureSubscriptions body, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = addAzureSubscriptionsWithResponseAsync(body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginAddAzureSubscriptions(AzureSubscriptions body) { + return this.beginAddAzureSubscriptionsAsync(body).getSyncPoller(); + } + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginAddAzureSubscriptions(AzureSubscriptions body, Context context) { + return this.beginAddAzureSubscriptionsAsync(body, context).getSyncPoller(); + } + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono addAzureSubscriptionsAsync(AzureSubscriptions body) { + return beginAddAzureSubscriptionsAsync(body).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono addAzureSubscriptionsAsync(AzureSubscriptions body, Context context) { + return beginAddAzureSubscriptionsAsync(body, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void addAzureSubscriptions(AzureSubscriptions body) { + addAzureSubscriptionsAsync(body).block(); + } + + /** + * Add Azure Subscriptions. + * + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void addAzureSubscriptions(AzureSubscriptions body, Context context) { + addAzureSubscriptionsAsync(body, context).block(); + } + /** * List Activation Links. * diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsImpl.java index a7d1afc4f147c..60e28e22faff8 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsImpl.java @@ -15,6 +15,7 @@ import com.azure.resourcemanager.oracledatabase.fluent.models.OracleSubscriptionInner; import com.azure.resourcemanager.oracledatabase.fluent.models.SaasSubscriptionDetailsInner; import com.azure.resourcemanager.oracledatabase.models.ActivationLinks; +import com.azure.resourcemanager.oracledatabase.models.AzureSubscriptions; import com.azure.resourcemanager.oracledatabase.models.CloudAccountDetails; import com.azure.resourcemanager.oracledatabase.models.OracleSubscription; import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptions; @@ -107,6 +108,14 @@ public void delete(Context context) { this.serviceClient().delete(context); } + public void addAzureSubscriptions(AzureSubscriptions body) { + this.serviceClient().addAzureSubscriptions(body); + } + + public void addAzureSubscriptions(AzureSubscriptions body, Context context) { + this.serviceClient().addAzureSubscriptions(body, context); + } + public ActivationLinks listActivationLinks() { ActivationLinksInner inner = this.serviceClient().listActivationLinks(); if (inner != null) { diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionsClientImpl.java index a22ea5599467c..e3672ea97ca99 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionsClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionsClientImpl.java @@ -42,22 +42,22 @@ public final class SystemVersionsClientImpl implements SystemVersionsClient { /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of SystemVersionsClientImpl. * * @param client the instance of the service client containing this operation class. */ - SystemVersionsClientImpl(OracleDatabaseResourceManagerImpl client) { + SystemVersionsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(SystemVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerSystemVersions to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingSystemVersions to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressesClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressesClientImpl.java index fab7014f689ce..1a904d7ae7fd7 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressesClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressesClientImpl.java @@ -50,22 +50,22 @@ public final class VirtualNetworkAddressesClientImpl implements VirtualNetworkAd /** * The service client containing this operation class. */ - private final OracleDatabaseResourceManagerImpl client; + private final OracleDatabaseResourceManagerForTestingImpl client; /** * Initializes an instance of VirtualNetworkAddressesClientImpl. * * @param client the instance of the service client containing this operation class. */ - VirtualNetworkAddressesClientImpl(OracleDatabaseResourceManagerImpl client) { + VirtualNetworkAddressesClientImpl(OracleDatabaseResourceManagerForTestingImpl client) { this.service = RestProxy.create(VirtualNetworkAddressesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for OracleDatabaseResourceManagerVirtualNetworkAddresses to be used by - * the proxy service to perform REST calls. + * The interface defining all the services for OracleDatabaseResourceManagerForTestingVirtualNetworkAddresses to be + * used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "OracleDatabaseResour") diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/package-info.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/package-info.java index 34ec7a4c8f53a..4976baef02530 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/package-info.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the implementations for OracleDatabaseResourceManager. + * Package containing the implementations for OracleDatabaseResourceManagerForTesting. * null. */ package com.azure.resourcemanager.oracledatabase.implementation; diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AddSubscriptionOperationState.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AddSubscriptionOperationState.java new file mode 100644 index 0000000000000..422cb3389601f --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AddSubscriptionOperationState.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Add Subscription Operation state enum. + */ +public final class AddSubscriptionOperationState extends ExpandableStringEnum { + /** + * Static value Succeeded for AddSubscriptionOperationState. + */ + public static final AddSubscriptionOperationState SUCCEEDED = fromString("Succeeded"); + + /** + * Static value Updating for AddSubscriptionOperationState. + */ + public static final AddSubscriptionOperationState UPDATING = fromString("Updating"); + + /** + * Static value Failed for AddSubscriptionOperationState. + */ + public static final AddSubscriptionOperationState FAILED = fromString("Failed"); + + /** + * Creates a new instance of AddSubscriptionOperationState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AddSubscriptionOperationState() { + } + + /** + * Creates or finds a AddSubscriptionOperationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding AddSubscriptionOperationState. + */ + public static AddSubscriptionOperationState fromString(String name) { + return fromString(name, AddSubscriptionOperationState.class); + } + + /** + * Gets known AddSubscriptionOperationState values. + * + * @return known AddSubscriptionOperationState values. + */ + public static Collection values() { + return values(AddSubscriptionOperationState.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabase.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabase.java index b13a73ffb9ddf..33805f1d2dee1 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabase.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabase.java @@ -240,9 +240,9 @@ interface WithTags { */ interface WithProperties { /** - * Specifies the properties property: The updatable properties of the AutonomousDatabase.. + * Specifies the properties property: The resource-specific properties for this resource.. * - * @param properties The updatable properties of the AutonomousDatabase. + * @param properties The resource-specific properties for this resource. * @return the next definition stage. */ Update withProperties(AutonomousDatabaseUpdateProperties properties); diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackup.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackup.java index c1fd352b7cfb7..9de4cc141d67b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackup.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackup.java @@ -163,9 +163,9 @@ interface UpdateStages { */ interface WithProperties { /** - * Specifies the properties property: The updatable properties of the AutonomousDatabaseBackup.. + * Specifies the properties property: The resource-specific properties for this resource.. * - * @param properties The updatable properties of the AutonomousDatabaseBackup. + * @param properties The resource-specific properties for this resource. * @return the next definition stage. */ Update withProperties(AutonomousDatabaseBackupUpdateProperties properties); diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupUpdate.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupUpdate.java index 683199e820066..15d0aa795d93a 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupUpdate.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupUpdate.java @@ -17,7 +17,7 @@ @Fluent public final class AutonomousDatabaseBackupUpdate implements JsonSerializable { /* - * The updatable properties of the AutonomousDatabaseBackup. + * The resource-specific properties for this resource. */ private AutonomousDatabaseBackupUpdateProperties properties; @@ -28,7 +28,7 @@ public AutonomousDatabaseBackupUpdate() { } /** - * Get the properties property: The updatable properties of the AutonomousDatabaseBackup. + * Get the properties property: The resource-specific properties for this resource. * * @return the properties value. */ @@ -37,7 +37,7 @@ public AutonomousDatabaseBackupUpdateProperties properties() { } /** - * Set the properties property: The updatable properties of the AutonomousDatabaseBackup. + * Set the properties property: The resource-specific properties for this resource. * * @param properties the properties value to set. * @return the AutonomousDatabaseBackupUpdate object itself. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdate.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdate.java index 9fed493d73229..97c4a6f35e7a6 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdate.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdate.java @@ -23,7 +23,7 @@ public final class AutonomousDatabaseUpdate implements JsonSerializable tags; /* - * The updatable properties of the AutonomousDatabase. + * The resource-specific properties for this resource. */ private AutonomousDatabaseUpdateProperties properties; @@ -54,7 +54,7 @@ public AutonomousDatabaseUpdate withTags(Map tags) { } /** - * Get the properties property: The updatable properties of the AutonomousDatabase. + * Get the properties property: The resource-specific properties for this resource. * * @return the properties value. */ @@ -63,7 +63,7 @@ public AutonomousDatabaseUpdateProperties properties() { } /** - * Set the properties property: The updatable properties of the AutonomousDatabase. + * Set the properties property: The resource-specific properties for this resource. * * @param properties the properties value to set. * @return the AutonomousDatabaseUpdate object itself. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AzureSubscriptions.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AzureSubscriptions.java new file mode 100644 index 0000000000000..e6a8f15dda04b --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AzureSubscriptions.java @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Azure Subscriptions model. + */ +@Fluent +public final class AzureSubscriptions implements JsonSerializable { + /* + * Azure Subscription Ids to be updated + */ + private List azureSubscriptionIds; + + /** + * Creates an instance of AzureSubscriptions class. + */ + public AzureSubscriptions() { + } + + /** + * Get the azureSubscriptionIds property: Azure Subscription Ids to be updated. + * + * @return the azureSubscriptionIds value. + */ + public List azureSubscriptionIds() { + return this.azureSubscriptionIds; + } + + /** + * Set the azureSubscriptionIds property: Azure Subscription Ids to be updated. + * + * @param azureSubscriptionIds the azureSubscriptionIds value to set. + * @return the AzureSubscriptions object itself. + */ + public AzureSubscriptions withAzureSubscriptionIds(List azureSubscriptionIds) { + this.azureSubscriptionIds = azureSubscriptionIds; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (azureSubscriptionIds() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property azureSubscriptionIds in model AzureSubscriptions")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AzureSubscriptions.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("azureSubscriptionIds", this.azureSubscriptionIds, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AzureSubscriptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AzureSubscriptions if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the AzureSubscriptions. + */ + public static AzureSubscriptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AzureSubscriptions deserializedAzureSubscriptions = new AzureSubscriptions(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("azureSubscriptionIds".equals(fieldName)) { + List azureSubscriptionIds = reader.readArray(reader1 -> reader1.getString()); + deserializedAzureSubscriptions.azureSubscriptionIds = azureSubscriptionIds; + } else { + reader.skipChildren(); + } + } + + return deserializedAzureSubscriptions; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructure.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructure.java index 6680e051ff69e..2bb1bb92e1f46 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructure.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructure.java @@ -273,9 +273,9 @@ interface WithZones { */ interface WithProperties { /** - * Specifies the properties property: The updatable properties of the CloudExadataInfrastructure.. + * Specifies the properties property: The resource-specific properties for this resource.. * - * @param properties The updatable properties of the CloudExadataInfrastructure. + * @param properties The resource-specific properties for this resource. * @return the next definition stage. */ Update withProperties(CloudExadataInfrastructureUpdateProperties properties); diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureUpdate.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureUpdate.java index 8eb22d8a043cb..700c0a579c8d9 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureUpdate.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureUpdate.java @@ -29,7 +29,7 @@ public final class CloudExadataInfrastructureUpdate implements JsonSerializable< private Map tags; /* - * The updatable properties of the CloudExadataInfrastructure. + * The resource-specific properties for this resource. */ private CloudExadataInfrastructureUpdateProperties properties; @@ -80,7 +80,7 @@ public CloudExadataInfrastructureUpdate withTags(Map tags) { } /** - * Get the properties property: The updatable properties of the CloudExadataInfrastructure. + * Get the properties property: The resource-specific properties for this resource. * * @return the properties value. */ @@ -89,7 +89,7 @@ public CloudExadataInfrastructureUpdateProperties properties() { } /** - * Set the properties property: The updatable properties of the CloudExadataInfrastructure. + * Set the properties property: The resource-specific properties for this resource. * * @param properties the properties value to set. * @return the CloudExadataInfrastructureUpdate object itself. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmCluster.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmCluster.java index 3b616fbd494e7..db13555cdc803 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmCluster.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmCluster.java @@ -241,9 +241,9 @@ interface WithTags { */ interface WithProperties { /** - * Specifies the properties property: The updatable properties of the CloudVmCluster.. + * Specifies the properties property: The resource-specific properties for this resource.. * - * @param properties The updatable properties of the CloudVmCluster. + * @param properties The resource-specific properties for this resource. * @return the next definition stage. */ Update withProperties(CloudVmClusterUpdateProperties properties); diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterUpdate.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterUpdate.java index 88ffc4f7073d5..9c6b18b7ef293 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterUpdate.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterUpdate.java @@ -23,7 +23,7 @@ public final class CloudVmClusterUpdate implements JsonSerializable tags; /* - * The updatable properties of the CloudVmCluster. + * The resource-specific properties for this resource. */ private CloudVmClusterUpdateProperties properties; @@ -54,7 +54,7 @@ public CloudVmClusterUpdate withTags(Map tags) { } /** - * Get the properties property: The updatable properties of the CloudVmCluster. + * Get the properties property: The resource-specific properties for this resource. * * @return the properties value. */ @@ -63,7 +63,7 @@ public CloudVmClusterUpdateProperties properties() { } /** - * Set the properties property: The updatable properties of the CloudVmCluster. + * Set the properties property: The resource-specific properties for this resource. * * @param properties the properties value to set. * @return the CloudVmClusterUpdate object itself. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionProperties.java index 6f8c63c789b01..53be73bb4e7ea 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionProperties.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * Oracle Subscription resource model. @@ -51,6 +52,21 @@ public final class OracleSubscriptionProperties implements JsonSerializable azureSubscriptionIds; + + /* + * State of the add Azure subscription operation on Oracle subscription + */ + private AddSubscriptionOperationState addSubscriptionOperationState; + + /* + * Status details of the last operation on Oracle subscription + */ + private String lastOperationStatusDetail; + /** * Creates an instance of OracleSubscriptionProperties class. */ @@ -153,6 +169,34 @@ public OracleSubscriptionProperties withIntent(Intent intent) { return this; } + /** + * Get the azureSubscriptionIds property: Azure subscriptions associated with this OracleSubscription. + * + * @return the azureSubscriptionIds value. + */ + public List azureSubscriptionIds() { + return this.azureSubscriptionIds; + } + + /** + * Get the addSubscriptionOperationState property: State of the add Azure subscription operation on Oracle + * subscription. + * + * @return the addSubscriptionOperationState value. + */ + public AddSubscriptionOperationState addSubscriptionOperationState() { + return this.addSubscriptionOperationState; + } + + /** + * Get the lastOperationStatusDetail property: Status details of the last operation on Oracle subscription. + * + * @return the lastOperationStatusDetail value. + */ + public String lastOperationStatusDetail() { + return this.lastOperationStatusDetail; + } + /** * Validates the instance. * @@ -204,6 +248,14 @@ public static OracleSubscriptionProperties fromJson(JsonReader jsonReader) throw deserializedOracleSubscriptionProperties.productCode = reader.getString(); } else if ("intent".equals(fieldName)) { deserializedOracleSubscriptionProperties.intent = Intent.fromString(reader.getString()); + } else if ("azureSubscriptionIds".equals(fieldName)) { + List azureSubscriptionIds = reader.readArray(reader1 -> reader1.getString()); + deserializedOracleSubscriptionProperties.azureSubscriptionIds = azureSubscriptionIds; + } else if ("addSubscriptionOperationState".equals(fieldName)) { + deserializedOracleSubscriptionProperties.addSubscriptionOperationState + = AddSubscriptionOperationState.fromString(reader.getString()); + } else if ("lastOperationStatusDetail".equals(fieldName)) { + deserializedOracleSubscriptionProperties.lastOperationStatusDetail = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionUpdate.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionUpdate.java index f2325b9f35a5c..6cb248c8ed885 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionUpdate.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionUpdate.java @@ -22,7 +22,7 @@ public final class OracleSubscriptionUpdate implements JsonSerializable Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AutonomousDatabaseBackup response = manager.autonomousDatabaseBackups() - .define("knidib") - .withExistingAutonomousDatabase("iypfp", "bcpzgpxtivh") - .withProperties(new AutonomousDatabaseBackupProperties().withDisplayName("owjrmzvuporqz") - .withRetentionPeriodInDays(441640337)) - .create(); - - Assertions.assertEquals("vux", response.properties().displayName()); - Assertions.assertEquals(373452418, response.properties().retentionPeriodInDays()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsGetWithResponseMockTests.java deleted file mode 100644 index 07b88732dafc6..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackup; -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 AutonomousDatabaseBackupsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"autonomousDatabaseOcid\":\"owa\",\"databaseSizeInTbs\":9.333705435745854,\"dbVersion\":\"nlqwzdvpiwhx\",\"displayName\":\"zdtmaajquhuxylrj\",\"ocid\":\"ty\",\"isAutomatic\":true,\"isRestorable\":false,\"lifecycleDetails\":\"ospspshckf\",\"lifecycleState\":\"Failed\",\"retentionPeriodInDays\":796493990,\"sizeInTbs\":53.373425291790454,\"timeAvailableTil\":\"2021-10-11T20:55:17Z\",\"timeStarted\":\"df\",\"timeEnded\":\"yogtieyujtvczkcn\",\"backupType\":\"Full\",\"provisioningState\":\"Provisioning\"},\"id\":\"njdxvglnkvxl\",\"name\":\"paglqivbgk\",\"type\":\"vkhpzvuqdflvo\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AutonomousDatabaseBackup response = manager.autonomousDatabaseBackups() - .getWithResponse("auunfprnjletlx", "mr", "ddoui", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("zdtmaajquhuxylrj", response.properties().displayName()); - Assertions.assertEquals(796493990, response.properties().retentionPeriodInDays()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsListByAutonomousDatabaseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsListByAutonomousDatabaseMockTests.java deleted file mode 100644 index a1fdc71ef6000..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsListByAutonomousDatabaseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackup; -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 AutonomousDatabaseBackupsListByAutonomousDatabaseMockTests { - @Test - public void testListByAutonomousDatabase() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"autonomousDatabaseOcid\":\"t\",\"databaseSizeInTbs\":9.306459908294428,\"dbVersion\":\"lbyvictctbrxkjzw\",\"displayName\":\"xff\",\"ocid\":\"hkwfbkgozxwop\",\"isAutomatic\":false,\"isRestorable\":false,\"lifecycleDetails\":\"zqaclna\",\"lifecycleState\":\"Updating\",\"retentionPeriodInDays\":357864069,\"sizeInTbs\":21.508443835195067,\"timeAvailableTil\":\"2021-03-20T14:50:38Z\",\"timeStarted\":\"nfsm\",\"timeEnded\":\"ttuxuuyilflqoiqu\",\"backupType\":\"LongTerm\",\"provisioningState\":\"Failed\"},\"id\":\"njhvsujztc\",\"name\":\"ytqj\",\"type\":\"w\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.autonomousDatabaseBackups() - .listByAutonomousDatabase("tmkzjvkviirhgfgr", "sdp", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xff", response.iterator().next().properties().displayName()); - Assertions.assertEquals(357864069, response.iterator().next().properties().retentionPeriodInDays()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetInnerTests.java deleted file mode 100644 index b509a6e4b25f8..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetInnerTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseCharacterSetInner; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCharacterSetProperties; - -public final class AutonomousDatabaseCharacterSetInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDatabaseCharacterSetInner model = BinaryData.fromString( - "{\"properties\":{\"characterSet\":\"ujidsuyono\"},\"id\":\"laocqxtccmg\",\"name\":\"udxytlmoyrx\",\"type\":\"wfudwpzntxhdzhl\"}") - .toObject(AutonomousDatabaseCharacterSetInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutonomousDatabaseCharacterSetInner model - = new AutonomousDatabaseCharacterSetInner().withProperties(new AutonomousDatabaseCharacterSetProperties()); - model = BinaryData.fromObject(model).toObject(AutonomousDatabaseCharacterSetInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetListResultTests.java deleted file mode 100644 index 3e4834be463ec..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCharacterSetListResult; -import org.junit.jupiter.api.Assertions; - -public final class AutonomousDatabaseCharacterSetListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDatabaseCharacterSetListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"characterSet\":\"ebb\"},\"id\":\"m\",\"name\":\"yqupedeojnabckh\",\"type\":\"mtxpsiebtfh\"},{\"properties\":{\"characterSet\":\"sapskr\"},\"id\":\"mhjjdhtldwkyzx\",\"name\":\"utknc\",\"type\":\"scwsv\"},{\"properties\":{\"characterSet\":\"togt\"},\"id\":\"upqsx\",\"name\":\"nmic\",\"type\":\"kvceoveilovnotyf\"},{\"properties\":{\"characterSet\":\"njbkcnxdhbttkph\"},\"id\":\"pnvjtoqnermclf\",\"name\":\"lphox\",\"type\":\"scrpabgyepsbjt\"}],\"nextLink\":\"qugxywpmueefjzwf\"}") - .toObject(AutonomousDatabaseCharacterSetListResult.class); - Assertions.assertEquals("qugxywpmueefjzwf", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetPropertiesTests.java deleted file mode 100644 index 525f8fe3dad32..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetPropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCharacterSetProperties; - -public final class AutonomousDatabaseCharacterSetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDatabaseCharacterSetProperties model = BinaryData.fromString("{\"characterSet\":\"jbhckfrlhr\"}") - .toObject(AutonomousDatabaseCharacterSetProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutonomousDatabaseCharacterSetProperties model = new AutonomousDatabaseCharacterSetProperties(); - model = BinaryData.fromObject(model).toObject(AutonomousDatabaseCharacterSetProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsGetWithResponseMockTests.java deleted file mode 100644 index 832bd73f9988f..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCharacterSet; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AutonomousDatabaseCharacterSetsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"characterSet\":\"lewjwiuubwef\"},\"id\":\"fapaqtfer\",\"name\":\"q\",\"type\":\"ex\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AutonomousDatabaseCharacterSet response = manager.autonomousDatabaseCharacterSets() - .getWithResponse("pcpil", "hahzvechndbnwi", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsListByLocationMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsListByLocationMockTests.java deleted file mode 100644 index e80053947a89d..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsListByLocationMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCharacterSet; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AutonomousDatabaseCharacterSetsListByLocationMockTests { - @Test - public void testListByLocation() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"characterSet\":\"cwwyyur\"},\"id\":\"chpp\",\"name\":\"prsnmokayzejn\",\"type\":\"lbkpb\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.autonomousDatabaseCharacterSets().listByLocation("pn", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetInnerTests.java deleted file mode 100644 index 1d1e3faa560a6..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetInnerTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseNationalCharacterSetInner; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseNationalCharacterSetProperties; - -public final class AutonomousDatabaseNationalCharacterSetInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDatabaseNationalCharacterSetInner model = BinaryData.fromString( - "{\"properties\":{\"characterSet\":\"vo\"},\"id\":\"vmeueci\",\"name\":\"yhz\",\"type\":\"euojgjrwju\"}") - .toObject(AutonomousDatabaseNationalCharacterSetInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutonomousDatabaseNationalCharacterSetInner model = new AutonomousDatabaseNationalCharacterSetInner() - .withProperties(new AutonomousDatabaseNationalCharacterSetProperties()); - model = BinaryData.fromObject(model).toObject(AutonomousDatabaseNationalCharacterSetInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetListResultTests.java deleted file mode 100644 index 794f05a1e5747..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseNationalCharacterSetListResult; -import org.junit.jupiter.api.Assertions; - -public final class AutonomousDatabaseNationalCharacterSetListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDatabaseNationalCharacterSetListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"characterSet\":\"yvpycanuzbpzk\"},\"id\":\"kuwbcrnwb\",\"name\":\"ehhseyvjusrts\",\"type\":\"hspkdeemao\"},{\"properties\":{\"characterSet\":\"ag\"},\"id\":\"t\",\"name\":\"elmqk\",\"type\":\"hahvljuahaq\"},{\"properties\":{\"characterSet\":\"dhmdua\"},\"id\":\"exq\",\"name\":\"vfadmws\",\"type\":\"crgvxpvgom\"},{\"properties\":{\"characterSet\":\"misgwbnb\"},\"id\":\"ldawkzbaliourqha\",\"name\":\"auhashsfwx\",\"type\":\"sowzxcugi\"}],\"nextLink\":\"ooxdjebwpuc\"}") - .toObject(AutonomousDatabaseNationalCharacterSetListResult.class); - Assertions.assertEquals("ooxdjebwpuc", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetPropertiesTests.java deleted file mode 100644 index 5dd8c39b93270..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetPropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseNationalCharacterSetProperties; - -public final class AutonomousDatabaseNationalCharacterSetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDatabaseNationalCharacterSetProperties model - = BinaryData.fromString("{\"characterSet\":\"otwmcdyt\"}") - .toObject(AutonomousDatabaseNationalCharacterSetProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutonomousDatabaseNationalCharacterSetProperties model = new AutonomousDatabaseNationalCharacterSetProperties(); - model = BinaryData.fromObject(model).toObject(AutonomousDatabaseNationalCharacterSetProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsGetWithResponseMockTests.java deleted file mode 100644 index 38eeb24dae70d..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseNationalCharacterSet; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AutonomousDatabaseNationalCharacterSetsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"characterSet\":\"sdaultxij\"},\"id\":\"mfqwa\",\"name\":\"lnqnmcjn\",\"type\":\"zqdqxt\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AutonomousDatabaseNationalCharacterSet response = manager.autonomousDatabaseNationalCharacterSets() - .getWithResponse("yexaoguy", "i", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsListByLocationMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsListByLocationMockTests.java deleted file mode 100644 index 4a412e1fddd41..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsListByLocationMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseNationalCharacterSet; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AutonomousDatabaseNationalCharacterSetsListByLocationMockTests { - @Test - public void testListByLocation() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"characterSet\":\"wogqqnobpudcdab\"},\"id\":\"wpwyawbz\",\"name\":\"sqbuc\",\"type\":\"jg\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.autonomousDatabaseNationalCharacterSets() - .listByLocation("kmfx", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseStandbySummaryTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseStandbySummaryTests.java deleted file mode 100644 index 31ef01b49a4e1..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseStandbySummaryTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleState; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseStandbySummary; -import org.junit.jupiter.api.Assertions; - -public final class AutonomousDatabaseStandbySummaryTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDatabaseStandbySummary model = BinaryData.fromString( - "{\"lagTimeInSeconds\":355535904,\"lifecycleState\":\"Inaccessible\",\"lifecycleDetails\":\"vd\",\"timeDataGuardRoleChanged\":\"jgrtfwvukxga\",\"timeDisasterRecoveryRoleChanged\":\"ccsnhsjc\"}") - .toObject(AutonomousDatabaseStandbySummary.class); - Assertions.assertEquals(355535904, model.lagTimeInSeconds()); - Assertions.assertEquals(AutonomousDatabaseLifecycleState.INACCESSIBLE, model.lifecycleState()); - Assertions.assertEquals("vd", model.lifecycleDetails()); - Assertions.assertEquals("jgrtfwvukxga", model.timeDataGuardRoleChanged()); - Assertions.assertEquals("ccsnhsjc", model.timeDisasterRecoveryRoleChanged()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutonomousDatabaseStandbySummary model = new AutonomousDatabaseStandbySummary().withLagTimeInSeconds(355535904) - .withLifecycleState(AutonomousDatabaseLifecycleState.INACCESSIBLE) - .withLifecycleDetails("vd") - .withTimeDataGuardRoleChanged("jgrtfwvukxga") - .withTimeDisasterRecoveryRoleChanged("ccsnhsjc"); - model = BinaryData.fromObject(model).toObject(AutonomousDatabaseStandbySummary.class); - Assertions.assertEquals(355535904, model.lagTimeInSeconds()); - Assertions.assertEquals(AutonomousDatabaseLifecycleState.INACCESSIBLE, model.lifecycleState()); - Assertions.assertEquals("vd", model.lifecycleDetails()); - Assertions.assertEquals("jgrtfwvukxga", model.timeDataGuardRoleChanged()); - Assertions.assertEquals("ccsnhsjc", model.timeDisasterRecoveryRoleChanged()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsGetWithResponseMockTests.java deleted file mode 100644 index 3577c220319d6..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDbVersion; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AutonomousDatabaseVersionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"version\":\"zid\",\"dbWorkload\":\"APEX\",\"isDefaultForFree\":true,\"isDefaultForPaid\":false,\"isFreeTierEnabled\":false,\"isPaidEnabled\":true},\"id\":\"gznmmaxrizkzob\",\"name\":\"opxlhslnelxieixy\",\"type\":\"llxecwc\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AutonomousDbVersion response = manager.autonomousDatabaseVersions() - .getWithResponse("abpfhvfs", "kvntjlrigjkskyri", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsListByLocationMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsListByLocationMockTests.java deleted file mode 100644 index 5151bed117ea8..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsListByLocationMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDbVersion; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class AutonomousDatabaseVersionsListByLocationMockTests { - @Test - public void testListByLocation() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"version\":\"fusfzsvtuikzhajq\",\"dbWorkload\":\"AJD\",\"isDefaultForFree\":false,\"isDefaultForPaid\":false,\"isFreeTierEnabled\":false,\"isPaidEnabled\":false},\"id\":\"y\",\"name\":\"qnzrd\",\"type\":\"sovwxznptgoeiyb\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.autonomousDatabaseVersions().listByLocation("jw", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseWalletFileInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseWalletFileInnerTests.java deleted file mode 100644 index 4ebc065b70ee3..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseWalletFileInnerTests.java +++ /dev/null @@ -1,18 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseWalletFileInner; -import org.junit.jupiter.api.Assertions; - -public final class AutonomousDatabaseWalletFileInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDatabaseWalletFileInner model - = BinaryData.fromString("{\"walletFiles\":\"uqlcvydy\"}").toObject(AutonomousDatabaseWalletFileInner.class); - Assertions.assertEquals("uqlcvydy", model.walletFiles()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDbVersionInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDbVersionInnerTests.java deleted file mode 100644 index 41c20e94a73a5..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDbVersionInnerTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDbVersionInner; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDbVersionProperties; - -public final class AutonomousDbVersionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDbVersionInner model = BinaryData.fromString( - "{\"properties\":{\"version\":\"uwprzql\",\"dbWorkload\":\"AJD\",\"isDefaultForFree\":false,\"isDefaultForPaid\":true,\"isFreeTierEnabled\":false,\"isPaidEnabled\":true},\"id\":\"xobbcswsrt\",\"name\":\"riplrbpbewtg\",\"type\":\"fgb\"}") - .toObject(AutonomousDbVersionInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutonomousDbVersionInner model - = new AutonomousDbVersionInner().withProperties(new AutonomousDbVersionProperties()); - model = BinaryData.fromObject(model).toObject(AutonomousDbVersionInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDbVersionListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDbVersionListResultTests.java deleted file mode 100644 index 758f1fd00a318..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDbVersionListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDbVersionListResult; -import org.junit.jupiter.api.Assertions; - -public final class AutonomousDbVersionListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDbVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"version\":\"txnrjaw\",\"dbWorkload\":\"DW\",\"isDefaultForFree\":true,\"isDefaultForPaid\":false,\"isFreeTierEnabled\":false,\"isPaidEnabled\":false},\"id\":\"bkpyc\",\"name\":\"klwndnhjdauwhv\",\"type\":\"l\"}],\"nextLink\":\"btdhxujznbm\"}") - .toObject(AutonomousDbVersionListResult.class); - Assertions.assertEquals("btdhxujznbm", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDbVersionPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDbVersionPropertiesTests.java deleted file mode 100644 index ee208aa645c68..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDbVersionPropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDbVersionProperties; - -public final class AutonomousDbVersionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutonomousDbVersionProperties model = BinaryData.fromString( - "{\"version\":\"gw\",\"dbWorkload\":\"AJD\",\"isDefaultForFree\":false,\"isDefaultForPaid\":true,\"isFreeTierEnabled\":false,\"isPaidEnabled\":true}") - .toObject(AutonomousDbVersionProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutonomousDbVersionProperties model = new AutonomousDbVersionProperties(); - model = BinaryData.fromObject(model).toObject(AutonomousDbVersionProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudAccountDetailsInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudAccountDetailsInnerTests.java deleted file mode 100644 index 5ea00d611794f..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudAccountDetailsInnerTests.java +++ /dev/null @@ -1,17 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.CloudAccountDetailsInner; - -public final class CloudAccountDetailsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudAccountDetailsInner model - = BinaryData.fromString("{\"cloudAccountName\":\"ypyynpcdpumnzg\",\"cloudAccountHomeRegion\":\"z\"}") - .toObject(CloudAccountDetailsInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureInnerTests.java deleted file mode 100644 index f707ca1c3807c..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureInnerTests.java +++ /dev/null @@ -1,108 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.CloudExadataInfrastructureInner; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureProperties; -import com.azure.resourcemanager.oracledatabase.models.CustomerContact; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeek; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MaintenanceWindow; -import com.azure.resourcemanager.oracledatabase.models.Month; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CloudExadataInfrastructureInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudExadataInfrastructureInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"oaeupfhyhltrpmo\",\"computeCount\":1593902435,\"storageCount\":1490971149,\"totalStorageSizeInGbs\":557848148,\"availableStorageSizeInGbs\":860799201,\"timeCreated\":\"thfuiuaodsfcpkvx\",\"lifecycleDetails\":\"puozmyzydag\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"September\"},{\"name\":\"June\"},{\"name\":\"July\"},{\"name\":\"May\"}],\"weeksOfMonth\":[962649448,1285068717,1627689194],\"daysOfWeek\":[{\"name\":\"Friday\"},{\"name\":\"Sunday\"},{\"name\":\"Friday\"}],\"hoursOfDay\":[2101673805,180468800,512563876,436585772],\"leadTimeInWeeks\":1170430043,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":760240945,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1027022233,\"estimatedNetworkSwitchesPatchingTime\":1162722818,\"estimatedStorageServerPatchingTime\":1075133602,\"totalEstimatedPatchingTime\":1510965337},\"customerContacts\":[{\"email\":\"dystkiiuxhqyud\"},{\"email\":\"o\"},{\"email\":\"rq\"},{\"email\":\"b\"}],\"provisioningState\":\"Failed\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"yifqrvkdvjsllrmv\",\"ociUrl\":\"f\",\"cpuCount\":122021588,\"maxCpuCount\":1825333220,\"memorySizeInGbs\":500448783,\"maxMemoryInGbs\":608072417,\"dbNodeStorageSizeInGbs\":1948903121,\"maxDbNodeStorageSizeInGbs\":825397815,\"dataStorageSizeInTbs\":99.91485616589475,\"maxDataStorageInTbs\":80.49183536969151,\"dbServerVersion\":\"iqzbq\",\"storageServerVersion\":\"sovmyokacspkwl\",\"activatedStorageCount\":1196709774,\"additionalStorageCount\":1687920757,\"displayName\":\"pxjmflbvvnchr\",\"lastMaintenanceRunId\":\"ciwwzjuqkhr\",\"nextMaintenanceRunId\":\"jiwkuofoskghsau\",\"monthlyDbServerVersion\":\"mjmvxieduugidyjr\",\"monthlyStorageServerVersion\":\"byao\"},\"zones\":[\"e\"],\"location\":\"sonpclhocohs\",\"tags\":{\"ffeii\":\"vleggzfbuhfmvfax\"},\"id\":\"hl\",\"name\":\"m\",\"type\":\"zy\"}") - .toObject(CloudExadataInfrastructureInner.class); - Assertions.assertEquals("sonpclhocohs", model.location()); - Assertions.assertEquals("vleggzfbuhfmvfax", model.tags().get("ffeii")); - Assertions.assertEquals(1593902435, model.properties().computeCount()); - Assertions.assertEquals(1490971149, model.properties().storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.SEPTEMBER, model.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(962649448, model.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.FRIDAY, - model.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(2101673805, model.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1170430043, model.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(760240945, model.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(true, model.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("dystkiiuxhqyud", model.properties().customerContacts().get(0).email()); - Assertions.assertEquals("yifqrvkdvjsllrmv", model.properties().shape()); - Assertions.assertEquals("pxjmflbvvnchr", model.properties().displayName()); - Assertions.assertEquals("e", model.zones().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudExadataInfrastructureInner model = new CloudExadataInfrastructureInner().withLocation("sonpclhocohs") - .withTags(mapOf("ffeii", "vleggzfbuhfmvfax")) - .withProperties(new CloudExadataInfrastructureProperties().withComputeCount(1593902435) - .withStorageCount(1490971149) - .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.CUSTOM_PREFERENCE) - .withMonths( - Arrays.asList(new Month().withName(MonthName.SEPTEMBER), new Month().withName(MonthName.JUNE), - new Month().withName(MonthName.JULY), new Month().withName(MonthName.MAY))) - .withWeeksOfMonth(Arrays.asList(962649448, 1285068717, 1627689194)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.FRIDAY), - new DayOfWeek().withName(DayOfWeekName.SUNDAY), new DayOfWeek().withName(DayOfWeekName.FRIDAY))) - .withHoursOfDay(Arrays.asList(2101673805, 180468800, 512563876, 436585772)) - .withLeadTimeInWeeks(1170430043) - .withPatchingMode(PatchingMode.NON_ROLLING) - .withCustomActionTimeoutInMins(760240945) - .withIsCustomActionTimeoutEnabled(true) - .withIsMonthlyPatchingEnabled(true)) - .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("dystkiiuxhqyud"), - new CustomerContact().withEmail("o"), new CustomerContact().withEmail("rq"), - new CustomerContact().withEmail("b"))) - .withShape("yifqrvkdvjsllrmv") - .withDisplayName("pxjmflbvvnchr")) - .withZones(Arrays.asList("e")); - model = BinaryData.fromObject(model).toObject(CloudExadataInfrastructureInner.class); - Assertions.assertEquals("sonpclhocohs", model.location()); - Assertions.assertEquals("vleggzfbuhfmvfax", model.tags().get("ffeii")); - Assertions.assertEquals(1593902435, model.properties().computeCount()); - Assertions.assertEquals(1490971149, model.properties().storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.SEPTEMBER, model.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(962649448, model.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.FRIDAY, - model.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(2101673805, model.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1170430043, model.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(760240945, model.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(true, model.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("dystkiiuxhqyud", model.properties().customerContacts().get(0).email()); - Assertions.assertEquals("yifqrvkdvjsllrmv", model.properties().shape()); - Assertions.assertEquals("pxjmflbvvnchr", model.properties().displayName()); - Assertions.assertEquals("e", model.zones().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/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureListResultTests.java deleted file mode 100644 index 0e16a385108d8..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureListResultTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureListResult; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -import org.junit.jupiter.api.Assertions; - -public final class CloudExadataInfrastructureListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudExadataInfrastructureListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"vtz\",\"computeCount\":1277339929,\"storageCount\":77118274,\"totalStorageSizeInGbs\":1861825815,\"availableStorageSizeInGbs\":698311711,\"timeCreated\":\"xqeofjaeqjhqjba\",\"lifecycleDetails\":\"msmjqulngsntn\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"September\"}],\"weeksOfMonth\":[2115498043,306155012,1161449621],\"daysOfWeek\":[{\"name\":\"Tuesday\"},{\"name\":\"Tuesday\"},{\"name\":\"Sunday\"},{\"name\":\"Monday\"}],\"hoursOfDay\":[947497777,890604952,3133273],\"leadTimeInWeeks\":1214814852,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":422670277,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1343054120,\"estimatedNetworkSwitchesPatchingTime\":1034535063,\"estimatedStorageServerPatchingTime\":2077137838,\"totalEstimatedPatchingTime\":1299495603},\"customerContacts\":[{\"email\":\"ksqrglssai\"},{\"email\":\"qpjwnzlljfm\"}],\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Terminated\",\"shape\":\"vmgxsab\",\"ociUrl\":\"qduujitcjczdz\",\"cpuCount\":1471497811,\"maxCpuCount\":700767866,\"memorySizeInGbs\":2049933545,\"maxMemoryInGbs\":1632911740,\"dbNodeStorageSizeInGbs\":881924894,\"maxDbNodeStorageSizeInGbs\":176871010,\"dataStorageSizeInTbs\":43.592224361707366,\"maxDataStorageInTbs\":55.89189866671263,\"dbServerVersion\":\"rwjfe\",\"storageServerVersion\":\"nhutjeltmrldhugj\",\"activatedStorageCount\":1346954674,\"additionalStorageCount\":797371044,\"displayName\":\"qxhocdgeablgphut\",\"lastMaintenanceRunId\":\"ndv\",\"nextMaintenanceRunId\":\"ozwyiftyhxhuro\",\"monthlyDbServerVersion\":\"tyxolniwpwc\",\"monthlyStorageServerVersion\":\"jfkgiawxk\"},\"zones\":[\"ypl\",\"ckbasyypndd\",\"sgcbac\",\"hejkotynqgou\"],\"location\":\"ndlik\",\"tags\":{\"bmadgak\":\"kgfg\",\"ytb\":\"qsrxybzqqed\",\"modmglougpb\":\"iqfouflmmnkz\"},\"id\":\"wtmutduq\",\"name\":\"ta\",\"type\":\"spwgcuertumkdosv\"},{\"properties\":{\"ocid\":\"bmdg\",\"computeCount\":398280406,\"storageCount\":1089342550,\"totalStorageSizeInGbs\":763703494,\"availableStorageSizeInGbs\":1359237516,\"timeCreated\":\"bexppb\",\"lifecycleDetails\":\"q\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"October\"}],\"weeksOfMonth\":[1189352281],\"daysOfWeek\":[{\"name\":\"Wednesday\"},{\"name\":\"Wednesday\"}],\"hoursOfDay\":[1529578070,1939362977,596871405,2069230951],\"leadTimeInWeeks\":1739804762,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":243879376,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1951867342,\"estimatedNetworkSwitchesPatchingTime\":239046622,\"estimatedStorageServerPatchingTime\":1167970761,\"totalEstimatedPatchingTime\":1846063928},\"customerContacts\":[{\"email\":\"s\"},{\"email\":\"l\"},{\"email\":\"juvf\"}],\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Updating\",\"shape\":\"yxwjkcp\",\"ociUrl\":\"nwbxgjvtbvpyssz\",\"cpuCount\":1214648475,\"maxCpuCount\":308759192,\"memorySizeInGbs\":718700797,\"maxMemoryInGbs\":1493631585,\"dbNodeStorageSizeInGbs\":931696713,\"maxDbNodeStorageSizeInGbs\":2108357605,\"dataStorageSizeInTbs\":2.3996292155411103,\"maxDataStorageInTbs\":57.60858367831252,\"dbServerVersion\":\"bngui\",\"storageServerVersion\":\"wu\",\"activatedStorageCount\":1403075438,\"additionalStorageCount\":1608878856,\"displayName\":\"x\",\"lastMaintenanceRunId\":\"izuckyfihrfidfvz\",\"nextMaintenanceRunId\":\"zuhtymwisdkfthwx\",\"monthlyDbServerVersion\":\"t\",\"monthlyStorageServerVersion\":\"waopvkmijcmmxd\"},\"zones\":[\"fufsrpymzi\",\"nsez\"],\"location\":\"tbzsgfyccs\",\"tags\":{\"flnrosfqpteehzz\":\"mdwzjeiachboo\",\"swjdkirso\":\"ypyqrimzinp\",\"soifiyipjxsqw\":\"dqxhcrmnohjtckwh\",\"bznorcjxvsnby\":\"gr\"},\"id\":\"qabnmoc\",\"name\":\"cyshurzafbljjgp\",\"type\":\"toqcjmklja\"},{\"properties\":{\"ocid\":\"idtqajzyu\",\"computeCount\":331087178,\"storageCount\":377543492,\"totalStorageSizeInGbs\":963090330,\"availableStorageSizeInGbs\":1185115759,\"timeCreated\":\"hbzhfepg\",\"lifecycleDetails\":\"qex\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"September\"},{\"name\":\"November\"}],\"weeksOfMonth\":[812550328,1450066184,2010275395,1382197714],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Wednesday\"}],\"hoursOfDay\":[411376072,1936652093,187934940],\"leadTimeInWeeks\":269185067,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":865429737,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1399700283,\"estimatedNetworkSwitchesPatchingTime\":515992017,\"estimatedStorageServerPatchingTime\":397818750,\"totalEstimatedPatchingTime\":54322845},\"customerContacts\":[{\"email\":\"ionpimexg\"},{\"email\":\"txgcpodgmaajr\"},{\"email\":\"vdjwzrlovm\"},{\"email\":\"lwhijcoejctbzaq\"}],\"provisioningState\":\"Failed\",\"lifecycleState\":\"Terminating\",\"shape\":\"bkbfkgukdkex\",\"ociUrl\":\"pofm\",\"cpuCount\":159547648,\"maxCpuCount\":1757077121,\"memorySizeInGbs\":396023335,\"maxMemoryInGbs\":584739156,\"dbNodeStorageSizeInGbs\":681879854,\"maxDbNodeStorageSizeInGbs\":263932996,\"dataStorageSizeInTbs\":5.0590045107127395,\"maxDataStorageInTbs\":80.35546922641568,\"dbServerVersion\":\"o\",\"storageServerVersion\":\"xhdzxibqeojnx\",\"activatedStorageCount\":2010157167,\"additionalStorageCount\":119552386,\"displayName\":\"dntwndeicbtw\",\"lastMaintenanceRunId\":\"zao\",\"nextMaintenanceRunId\":\"uhrhcffcyddgl\",\"monthlyDbServerVersion\":\"t\",\"monthlyStorageServerVersion\":\"qkwpyeicxmqc\"},\"zones\":[\"q\",\"hkh\",\"xuigdtopbobj\",\"ghmewuam\"],\"location\":\"hrzayvvtpgvdf\",\"tags\":{\"efgugnxk\":\"tkftutqxlngx\",\"hjybigehoqfbo\":\"xdqmidtthzrvqdra\",\"zlcuiywgqywgndrv\":\"skanyk\",\"ocpecfvmmco\":\"nhzgpphrcgyn\"},\"id\":\"fsxlzevgbmqjqa\",\"name\":\"c\",\"type\":\"pmivkwlzu\"},{\"properties\":{\"ocid\":\"fwnfnb\",\"computeCount\":1187016173,\"storageCount\":2055969856,\"totalStorageSizeInGbs\":198217735,\"availableStorageSizeInGbs\":1067067753,\"timeCreated\":\"etqgtzxdpnq\",\"lifecycleDetails\":\"qwxrjfeallnw\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"April\"},{\"name\":\"February\"}],\"weeksOfMonth\":[572259851],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Tuesday\"},{\"name\":\"Sunday\"}],\"hoursOfDay\":[611724458,431293436,903748281,1019249185],\"leadTimeInWeeks\":2024300309,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":804356907,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1222004699,\"estimatedNetworkSwitchesPatchingTime\":678653750,\"estimatedStorageServerPatchingTime\":1098577091,\"totalEstimatedPatchingTime\":635672501},\"customerContacts\":[{\"email\":\"ipheoflokeyyien\"},{\"email\":\"bdlwtgrhpdjpj\"},{\"email\":\"masxazjpqyegu\"},{\"email\":\"lhbxxhejjzzvdud\"}],\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Provisioning\",\"shape\":\"fhotw\",\"ociUrl\":\"ynpwlbj\",\"cpuCount\":34788734,\"maxCpuCount\":1690822953,\"memorySizeInGbs\":1625524147,\"maxMemoryInGbs\":1405360141,\"dbNodeStorageSizeInGbs\":55863349,\"maxDbNodeStorageSizeInGbs\":2035779275,\"dataStorageSizeInTbs\":77.80900806799353,\"maxDataStorageInTbs\":14.723744499152136,\"dbServerVersion\":\"pusuesn\",\"storageServerVersion\":\"dejbavo\",\"activatedStorageCount\":669466066,\"additionalStorageCount\":1432436623,\"displayName\":\"ohctbqvudwx\",\"lastMaintenanceRunId\":\"dnvowg\",\"nextMaintenanceRunId\":\"jugwdkcglhsl\",\"monthlyDbServerVersion\":\"jdyggdtji\",\"monthlyStorageServerVersion\":\"b\"},\"zones\":[\"ofqweykhmenevfye\",\"fwhybcibvy\"],\"location\":\"c\",\"tags\":{\"ectehf\":\"ynnaam\",\"eypvhezrkg\":\"qsc\",\"sle\":\"hcjrefovgmk\",\"cattpngjcrcczsq\":\"yvxyqjp\"},\"id\":\"jh\",\"name\":\"mdajv\",\"type\":\"ysou\"}],\"nextLink\":\"e\"}") - .toObject(CloudExadataInfrastructureListResult.class); - Assertions.assertEquals("ndlik", model.value().get(0).location()); - Assertions.assertEquals("kgfg", model.value().get(0).tags().get("bmadgak")); - Assertions.assertEquals(1277339929, model.value().get(0).properties().computeCount()); - Assertions.assertEquals(77118274, model.value().get(0).properties().storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, - model.value().get(0).properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.SEPTEMBER, - model.value().get(0).properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(2115498043, - model.value().get(0).properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.TUESDAY, - model.value().get(0).properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(947497777, model.value().get(0).properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1214814852, model.value().get(0).properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, - model.value().get(0).properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(422670277, - model.value().get(0).properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, - model.value().get(0).properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(false, - model.value().get(0).properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("ksqrglssai", model.value().get(0).properties().customerContacts().get(0).email()); - Assertions.assertEquals("vmgxsab", model.value().get(0).properties().shape()); - Assertions.assertEquals("qxhocdgeablgphut", model.value().get(0).properties().displayName()); - Assertions.assertEquals("ypl", model.value().get(0).zones().get(0)); - Assertions.assertEquals("e", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructurePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructurePropertiesTests.java deleted file mode 100644 index d65ceefacc401..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructurePropertiesTests.java +++ /dev/null @@ -1,82 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureProperties; -import com.azure.resourcemanager.oracledatabase.models.CustomerContact; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeek; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MaintenanceWindow; -import com.azure.resourcemanager.oracledatabase.models.Month; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CloudExadataInfrastructurePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudExadataInfrastructureProperties model = BinaryData.fromString( - "{\"ocid\":\"hxmzsbbzoggig\",\"computeCount\":2011180934,\"storageCount\":285101547,\"totalStorageSizeInGbs\":2000842411,\"availableStorageSizeInGbs\":714524610,\"timeCreated\":\"jnspydp\",\"lifecycleDetails\":\"oenkouknvudwti\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"April\"},{\"name\":\"March\"},{\"name\":\"November\"}],\"weeksOfMonth\":[1997522468,655680628,523665642,198508752],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Sunday\"},{\"name\":\"Wednesday\"},{\"name\":\"Saturday\"}],\"hoursOfDay\":[157234884],\"leadTimeInWeeks\":642461794,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1142457061,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1696472102,\"estimatedNetworkSwitchesPatchingTime\":278176639,\"estimatedStorageServerPatchingTime\":599264802,\"totalEstimatedPatchingTime\":1785806943},\"customerContacts\":[{\"email\":\"zcdrqjsdpydnfyhx\"},{\"email\":\"eoejzic\"},{\"email\":\"ifsjttgzfbishcb\"}],\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"eyeam\",\"ociUrl\":\"hagalpbuxwgipwh\",\"cpuCount\":390798331,\"maxCpuCount\":1456647445,\"memorySizeInGbs\":1568542705,\"maxMemoryInGbs\":69341003,\"dbNodeStorageSizeInGbs\":248274393,\"maxDbNodeStorageSizeInGbs\":2111638773,\"dataStorageSizeInTbs\":63.584757120224076,\"maxDataStorageInTbs\":69.283939369701,\"dbServerVersion\":\"pu\",\"storageServerVersion\":\"mryw\",\"activatedStorageCount\":2134987728,\"additionalStorageCount\":1117331465,\"displayName\":\"ftiyqzrnkcq\",\"lastMaintenanceRunId\":\"xlwhzlsicoh\",\"nextMaintenanceRunId\":\"qnwvlrya\",\"monthlyDbServerVersion\":\"hheunmmqhgyx\",\"monthlyStorageServerVersion\":\"onocukok\"}") - .toObject(CloudExadataInfrastructureProperties.class); - Assertions.assertEquals(2011180934, model.computeCount()); - Assertions.assertEquals(285101547, model.storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.APRIL, model.maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1997522468, model.maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SUNDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(157234884, model.maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(642461794, model.maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.maintenanceWindow().patchingMode()); - Assertions.assertEquals(1142457061, model.maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(false, model.maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(true, model.maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("zcdrqjsdpydnfyhx", model.customerContacts().get(0).email()); - Assertions.assertEquals("eyeam", model.shape()); - Assertions.assertEquals("ftiyqzrnkcq", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudExadataInfrastructureProperties model = new CloudExadataInfrastructureProperties() - .withComputeCount(2011180934) - .withStorageCount(285101547) - .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.CUSTOM_PREFERENCE) - .withMonths(Arrays.asList(new Month().withName(MonthName.APRIL), new Month().withName(MonthName.MARCH), - new Month().withName(MonthName.NOVEMBER))) - .withWeeksOfMonth(Arrays.asList(1997522468, 655680628, 523665642, 198508752)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.SUNDAY), - new DayOfWeek().withName(DayOfWeekName.SUNDAY), new DayOfWeek().withName(DayOfWeekName.WEDNESDAY), - new DayOfWeek().withName(DayOfWeekName.SATURDAY))) - .withHoursOfDay(Arrays.asList(157234884)) - .withLeadTimeInWeeks(642461794) - .withPatchingMode(PatchingMode.NON_ROLLING) - .withCustomActionTimeoutInMins(1142457061) - .withIsCustomActionTimeoutEnabled(false) - .withIsMonthlyPatchingEnabled(true)) - .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("zcdrqjsdpydnfyhx"), - new CustomerContact().withEmail("eoejzic"), new CustomerContact().withEmail("ifsjttgzfbishcb"))) - .withShape("eyeam") - .withDisplayName("ftiyqzrnkcq"); - model = BinaryData.fromObject(model).toObject(CloudExadataInfrastructureProperties.class); - Assertions.assertEquals(2011180934, model.computeCount()); - Assertions.assertEquals(285101547, model.storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.APRIL, model.maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1997522468, model.maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SUNDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(157234884, model.maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(642461794, model.maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.maintenanceWindow().patchingMode()); - Assertions.assertEquals(1142457061, model.maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(false, model.maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(true, model.maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("zcdrqjsdpydnfyhx", model.customerContacts().get(0).email()); - Assertions.assertEquals("eyeam", model.shape()); - Assertions.assertEquals("ftiyqzrnkcq", model.displayName()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureUpdatePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureUpdatePropertiesTests.java deleted file mode 100644 index f73de897443b8..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureUpdatePropertiesTests.java +++ /dev/null @@ -1,78 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdateProperties; -import com.azure.resourcemanager.oracledatabase.models.CustomerContact; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeek; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MaintenanceWindow; -import com.azure.resourcemanager.oracledatabase.models.Month; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class CloudExadataInfrastructureUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudExadataInfrastructureUpdateProperties model = BinaryData.fromString( - "{\"computeCount\":2069096730,\"storageCount\":407754161,\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"July\"},{\"name\":\"May\"},{\"name\":\"January\"},{\"name\":\"March\"}],\"weeksOfMonth\":[776883338,1280631673,1924816201],\"daysOfWeek\":[{\"name\":\"Saturday\"},{\"name\":\"Tuesday\"}],\"hoursOfDay\":[1872827948],\"leadTimeInWeeks\":411799174,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":295575748,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"customerContacts\":[{\"email\":\"wsobqwcsdbn\"},{\"email\":\"dcfhucqdpf\"},{\"email\":\"vglsbjjca\"}],\"displayName\":\"xbvtvudu\"}") - .toObject(CloudExadataInfrastructureUpdateProperties.class); - Assertions.assertEquals(2069096730, model.computeCount()); - Assertions.assertEquals(407754161, model.storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, model.maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.JULY, model.maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(776883338, model.maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SATURDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(1872827948, model.maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(411799174, model.maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.maintenanceWindow().patchingMode()); - Assertions.assertEquals(295575748, model.maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, model.maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(true, model.maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("wsobqwcsdbn", model.customerContacts().get(0).email()); - Assertions.assertEquals("xbvtvudu", model.displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudExadataInfrastructureUpdateProperties model - = new CloudExadataInfrastructureUpdateProperties().withComputeCount(2069096730) - .withStorageCount(407754161) - .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) - .withMonths(Arrays.asList(new Month().withName(MonthName.JULY), new Month().withName(MonthName.MAY), - new Month().withName(MonthName.JANUARY), new Month().withName(MonthName.MARCH))) - .withWeeksOfMonth(Arrays.asList(776883338, 1280631673, 1924816201)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.SATURDAY), - new DayOfWeek().withName(DayOfWeekName.TUESDAY))) - .withHoursOfDay(Arrays.asList(1872827948)) - .withLeadTimeInWeeks(411799174) - .withPatchingMode(PatchingMode.NON_ROLLING) - .withCustomActionTimeoutInMins(295575748) - .withIsCustomActionTimeoutEnabled(true) - .withIsMonthlyPatchingEnabled(true)) - .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("wsobqwcsdbn"), - new CustomerContact().withEmail("dcfhucqdpf"), new CustomerContact().withEmail("vglsbjjca"))) - .withDisplayName("xbvtvudu"); - model = BinaryData.fromObject(model).toObject(CloudExadataInfrastructureUpdateProperties.class); - Assertions.assertEquals(2069096730, model.computeCount()); - Assertions.assertEquals(407754161, model.storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, model.maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.JULY, model.maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(776883338, model.maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SATURDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(1872827948, model.maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(411799174, model.maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.maintenanceWindow().patchingMode()); - Assertions.assertEquals(295575748, model.maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, model.maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(true, model.maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("wsobqwcsdbn", model.customerContacts().get(0).email()); - Assertions.assertEquals("xbvtvudu", model.displayName()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureUpdateTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureUpdateTests.java deleted file mode 100644 index 27b16d41c0d6f..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructureUpdateTests.java +++ /dev/null @@ -1,99 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdate; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdateProperties; -import com.azure.resourcemanager.oracledatabase.models.CustomerContact; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeek; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MaintenanceWindow; -import com.azure.resourcemanager.oracledatabase.models.Month; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class CloudExadataInfrastructureUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CloudExadataInfrastructureUpdate model = BinaryData.fromString( - "{\"zones\":[\"ooaojkniodkooebw\",\"ujhemmsbvdkcrodt\",\"infwjlfltkacjve\",\"kdlfoa\"],\"tags\":{\"pulpqblylsyxk\":\"kfpagao\",\"zuempsbzkf\":\"jnsjervtiagxsd\"},\"properties\":{\"computeCount\":1586502304,\"storageCount\":946127719,\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"February\"},{\"name\":\"January\"}],\"weeksOfMonth\":[887231612],\"daysOfWeek\":[{\"name\":\"Thursday\"}],\"hoursOfDay\":[1187892327,1127292795,1636536893,2049841705],\"leadTimeInWeeks\":1867961627,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":553106392,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"customerContacts\":[{\"email\":\"ztzp\"}],\"displayName\":\"ncckw\"}}") - .toObject(CloudExadataInfrastructureUpdate.class); - Assertions.assertEquals("ooaojkniodkooebw", model.zones().get(0)); - Assertions.assertEquals("kfpagao", model.tags().get("pulpqblylsyxk")); - Assertions.assertEquals(1586502304, model.properties().computeCount()); - Assertions.assertEquals(946127719, model.properties().storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, model.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.FEBRUARY, model.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(887231612, model.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.THURSDAY, - model.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(1187892327, model.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1867961627, model.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.ROLLING, model.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(553106392, model.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(false, model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(false, model.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("ztzp", model.properties().customerContacts().get(0).email()); - Assertions.assertEquals("ncckw", model.properties().displayName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CloudExadataInfrastructureUpdate model = new CloudExadataInfrastructureUpdate() - .withZones(Arrays.asList("ooaojkniodkooebw", "ujhemmsbvdkcrodt", "infwjlfltkacjve", "kdlfoa")) - .withTags(mapOf("pulpqblylsyxk", "kfpagao", "zuempsbzkf", "jnsjervtiagxsd")) - .withProperties(new CloudExadataInfrastructureUpdateProperties().withComputeCount(1586502304) - .withStorageCount(946127719) - .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) - .withMonths(Arrays.asList(new Month().withName(MonthName.FEBRUARY), - new Month().withName(MonthName.JANUARY))) - .withWeeksOfMonth(Arrays.asList(887231612)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.THURSDAY))) - .withHoursOfDay(Arrays.asList(1187892327, 1127292795, 1636536893, 2049841705)) - .withLeadTimeInWeeks(1867961627) - .withPatchingMode(PatchingMode.ROLLING) - .withCustomActionTimeoutInMins(553106392) - .withIsCustomActionTimeoutEnabled(false) - .withIsMonthlyPatchingEnabled(false)) - .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("ztzp"))) - .withDisplayName("ncckw")); - model = BinaryData.fromObject(model).toObject(CloudExadataInfrastructureUpdate.class); - Assertions.assertEquals("ooaojkniodkooebw", model.zones().get(0)); - Assertions.assertEquals("kfpagao", model.tags().get("pulpqblylsyxk")); - Assertions.assertEquals(1586502304, model.properties().computeCount()); - Assertions.assertEquals(946127719, model.properties().storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, model.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.FEBRUARY, model.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(887231612, model.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.THURSDAY, - model.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(1187892327, model.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1867961627, model.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.ROLLING, model.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(553106392, model.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(false, model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(false, model.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("ztzp", model.properties().customerContacts().get(0).email()); - Assertions.assertEquals("ncckw", model.properties().displayName()); - } - - // 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/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresAddStorageCapacityMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresAddStorageCapacityMockTests.java deleted file mode 100644 index cc54b8311963e..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresAddStorageCapacityMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructure; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -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 CloudExadataInfrastructuresAddStorageCapacityMockTests { - @Test - public void testAddStorageCapacity() throws Exception { - String responseStr - = "{\"properties\":{\"ocid\":\"ethwwnpjhlfz\",\"computeCount\":1188676468,\"storageCount\":286029516,\"totalStorageSizeInGbs\":1831008288,\"availableStorageSizeInGbs\":443480039,\"timeCreated\":\"ousnfepgfewe\",\"lifecycleDetails\":\"l\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"October\"},{\"name\":\"March\"}],\"weeksOfMonth\":[1693425826,1841615082,31870038],\"daysOfWeek\":[{\"name\":\"Saturday\"},{\"name\":\"Monday\"}],\"hoursOfDay\":[122728116,205471182,156651258],\"leadTimeInWeeks\":507931039,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":2111689562,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":2099566654,\"estimatedNetworkSwitchesPatchingTime\":398428257,\"estimatedStorageServerPatchingTime\":1212582847,\"totalEstimatedPatchingTime\":1356255115},\"customerContacts\":[{\"email\":\"qscjavftjuh\"},{\"email\":\"qaz\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"uwpijr\",\"ociUrl\":\"civmmg\",\"cpuCount\":434258979,\"maxCpuCount\":1851539206,\"memorySizeInGbs\":1456716709,\"maxMemoryInGbs\":781484750,\"dbNodeStorageSizeInGbs\":671950548,\"maxDbNodeStorageSizeInGbs\":1596697892,\"dataStorageSizeInTbs\":71.94014292925087,\"maxDataStorageInTbs\":68.88861707633018,\"dbServerVersion\":\"dfvpg\",\"storageServerVersion\":\"oxgsgbpfgzdjtx\",\"activatedStorageCount\":2030623139,\"additionalStorageCount\":1717283486,\"displayName\":\"q\",\"lastMaintenanceRunId\":\"aqvlgafcqusr\",\"nextMaintenanceRunId\":\"etnwsdtutnw\",\"monthlyDbServerVersion\":\"uycvuzhyrmewip\",\"monthlyStorageServerVersion\":\"ekdxuku\"},\"zones\":[\"sjjxundxgketw\"],\"location\":\"hzjhf\",\"tags\":{\"gpmuneqsxvmhfbuz\":\"vvmu\",\"ms\":\"yihsasbhudypohyu\",\"ttymsjny\":\"ynsqyrpfoobr\"},\"id\":\"qdnfwqzdz\",\"name\":\"tilaxh\",\"type\":\"fhqlyvi\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CloudExadataInfrastructure response = manager.cloudExadataInfrastructures() - .addStorageCapacity("oaimlnw", "aaomylweazu", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hzjhf", response.location()); - Assertions.assertEquals("vvmu", response.tags().get("gpmuneqsxvmhfbuz")); - Assertions.assertEquals(1188676468, response.properties().computeCount()); - Assertions.assertEquals(286029516, response.properties().storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, response.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.OCTOBER, response.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1693425826, response.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SATURDAY, - response.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(122728116, response.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(507931039, response.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, response.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(2111689562, response.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, response.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(false, response.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("qscjavftjuh", response.properties().customerContacts().get(0).email()); - Assertions.assertEquals("uwpijr", response.properties().shape()); - Assertions.assertEquals("q", response.properties().displayName()); - Assertions.assertEquals("sjjxundxgketw", response.zones().get(0)); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresCreateOrUpdateMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresCreateOrUpdateMockTests.java deleted file mode 100644 index f357ebd678bfa..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresCreateOrUpdateMockTests.java +++ /dev/null @@ -1,104 +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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructure; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureProperties; -import com.azure.resourcemanager.oracledatabase.models.CustomerContact; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeek; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MaintenanceWindow; -import com.azure.resourcemanager.oracledatabase.models.Month; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -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 CloudExadataInfrastructuresCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"ocid\":\"awddjibab\",\"computeCount\":1620106663,\"storageCount\":631857111,\"totalStorageSizeInGbs\":177247655,\"availableStorageSizeInGbs\":1297733750,\"timeCreated\":\"exavoxt\",\"lifecycleDetails\":\"lecdmdqbw\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"March\"},{\"name\":\"January\"}],\"weeksOfMonth\":[1790951604,266464644,462489227],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Wednesday\"}],\"hoursOfDay\":[641653590],\"leadTimeInWeeks\":1368673691,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":809343874,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1227726974,\"estimatedNetworkSwitchesPatchingTime\":121727162,\"estimatedStorageServerPatchingTime\":274419936,\"totalEstimatedPatchingTime\":1714425112},\"customerContacts\":[{\"email\":\"lpagzrcx\"},{\"email\":\"a\"},{\"email\":\"lc\"},{\"email\":\"xwmdboxd\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Provisioning\",\"shape\":\"ufqobrjlnac\",\"ociUrl\":\"ckknhxkizvy\",\"cpuCount\":1311687390,\"maxCpuCount\":1752930895,\"memorySizeInGbs\":349650849,\"maxMemoryInGbs\":34895139,\"dbNodeStorageSizeInGbs\":2075017284,\"maxDbNodeStorageSizeInGbs\":1023796809,\"dataStorageSizeInTbs\":12.540661628515403,\"maxDataStorageInTbs\":50.97596306427133,\"dbServerVersion\":\"kkjqnvbroylaxxu\",\"storageServerVersion\":\"disdosfjbjsvgj\",\"activatedStorageCount\":1257369093,\"additionalStorageCount\":1647149514,\"displayName\":\"vyc\",\"lastMaintenanceRunId\":\"dclxgc\",\"nextMaintenanceRunId\":\"nfnw\",\"monthlyDbServerVersion\":\"tmvpdvjdhtt\",\"monthlyStorageServerVersion\":\"efedxihchrphkm\"},\"zones\":[\"jdqnsdfzpbgt\",\"kylkdghrj\",\"uutlwxezwzhok\"],\"location\":\"wnhhtqlgehgppip\",\"tags\":{\"afidltugsres\":\"pfeoajvgcxtxjcsh\",\"wegprh\":\"kssjhoiftxfk\",\"q\":\"tillucbiqtg\",\"wsldrizetpwbr\":\"hm\"},\"id\":\"lllibph\",\"name\":\"qzmiza\",\"type\":\"a\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CloudExadataInfrastructure response = manager.cloudExadataInfrastructures() - .define("ti") - .withRegion("zddrt") - .withExistingResourceGroup("ouwivkxoyzunbixx") - .withZones(Arrays.asList("lnsrmffe", "cxcktpi", "merteeammxqiek")) - .withTags(mapOf("vrefdeesv", "ojbmxv")) - .withProperties(new CloudExadataInfrastructureProperties().withComputeCount(2125732011) - .withStorageCount(916087616) - .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) - .withMonths(Arrays.asList(new Month().withName(MonthName.NOVEMBER), - new Month().withName(MonthName.JANUARY), new Month().withName(MonthName.OCTOBER))) - .withWeeksOfMonth(Arrays.asList(483847293)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.MONDAY), - new DayOfWeek().withName(DayOfWeekName.THURSDAY))) - .withHoursOfDay(Arrays.asList(1084640594, 1572923585, 910896257)) - .withLeadTimeInWeeks(1366992874) - .withPatchingMode(PatchingMode.NON_ROLLING) - .withCustomActionTimeoutInMins(743316099) - .withIsCustomActionTimeoutEnabled(false) - .withIsMonthlyPatchingEnabled(false)) - .withCustomerContacts( - Arrays.asList(new CustomerContact().withEmail("xwh"), new CustomerContact().withEmail("ansym"), - new CustomerContact().withEmail("yqhlwigdivbkbx"), new CustomerContact().withEmail("omfaj"))) - .withShape("vdaeyyguxakjsq") - .withDisplayName("jks")) - .create(); - - Assertions.assertEquals("wnhhtqlgehgppip", response.location()); - Assertions.assertEquals("pfeoajvgcxtxjcsh", response.tags().get("afidltugsres")); - Assertions.assertEquals(1620106663, response.properties().computeCount()); - Assertions.assertEquals(631857111, response.properties().storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, response.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.MARCH, response.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1790951604, response.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SUNDAY, - response.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(641653590, response.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1368673691, response.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.ROLLING, response.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(809343874, response.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, response.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(true, response.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("lpagzrcx", response.properties().customerContacts().get(0).email()); - Assertions.assertEquals("ufqobrjlnac", response.properties().shape()); - Assertions.assertEquals("vyc", response.properties().displayName()); - Assertions.assertEquals("jdqnsdfzpbgt", response.zones().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/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresGetByResourceGroupWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 65b61716d59cf..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresGetByResourceGroupWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructure; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -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 CloudExadataInfrastructuresGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"ocid\":\"of\",\"computeCount\":1484675592,\"storageCount\":860547851,\"totalStorageSizeInGbs\":1665622594,\"availableStorageSizeInGbs\":1122373558,\"timeCreated\":\"dh\",\"lifecycleDetails\":\"plcplcwkhi\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"June\"},{\"name\":\"December\"},{\"name\":\"July\"},{\"name\":\"March\"}],\"weeksOfMonth\":[19838939,693588960],\"daysOfWeek\":[{\"name\":\"Tuesday\"}],\"hoursOfDay\":[703007712,994844547,1143830782,741446459],\"leadTimeInWeeks\":1635200760,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":1670061981,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":215808827,\"estimatedNetworkSwitchesPatchingTime\":1777696801,\"estimatedStorageServerPatchingTime\":1089697565,\"totalEstimatedPatchingTime\":1671078862},\"customerContacts\":[{\"email\":\"vekqvgqo\"},{\"email\":\"wifzmp\"},{\"email\":\"wyivqikf\"}],\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Provisioning\",\"shape\":\"fsphuagrttikt\",\"ociUrl\":\"sqczkvyklxubyj\",\"cpuCount\":472498299,\"maxCpuCount\":716445965,\"memorySizeInGbs\":355904338,\"maxMemoryInGbs\":602518095,\"dbNodeStorageSizeInGbs\":1534498660,\"maxDbNodeStorageSizeInGbs\":982758961,\"dataStorageSizeInTbs\":81.51068470647964,\"maxDataStorageInTbs\":19.265644811753823,\"dbServerVersion\":\"a\",\"storageServerVersion\":\"etttwgdslqxihhr\",\"activatedStorageCount\":342501929,\"additionalStorageCount\":4493700,\"displayName\":\"qseypxiutcxa\",\"lastMaintenanceRunId\":\"hyrpetogebjoxs\",\"nextMaintenanceRunId\":\"vnh\",\"monthlyDbServerVersion\":\"brqnkkzjcjb\",\"monthlyStorageServerVersion\":\"gaehvvibrxjjst\"},\"zones\":[\"beitpkx\",\"tmo\",\"bklftidgfcwqmpim\",\"qxzhem\"],\"location\":\"h\",\"tags\":{\"lkb\":\"jswtwkozzwc\"},\"id\":\"wpfaj\",\"name\":\"jwltlwtjjgu\",\"type\":\"talhsnvkcdmxzr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CloudExadataInfrastructure response = manager.cloudExadataInfrastructures() - .getByResourceGroupWithResponse("own", "tgkbugrjqctojc", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("h", response.location()); - Assertions.assertEquals("jswtwkozzwc", response.tags().get("lkb")); - Assertions.assertEquals(1484675592, response.properties().computeCount()); - Assertions.assertEquals(860547851, response.properties().storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, response.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.JUNE, response.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(19838939, response.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.TUESDAY, - response.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(703007712, response.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1635200760, response.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.ROLLING, response.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1670061981, response.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, response.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(false, response.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("vekqvgqo", response.properties().customerContacts().get(0).email()); - Assertions.assertEquals("fsphuagrttikt", response.properties().shape()); - Assertions.assertEquals("qseypxiutcxa", response.properties().displayName()); - Assertions.assertEquals("beitpkx", response.zones().get(0)); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListByResourceGroupMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListByResourceGroupMockTests.java deleted file mode 100644 index c0c17249c14fc..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListByResourceGroupMockTests.java +++ /dev/null @@ -1,69 +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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructure; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -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 CloudExadataInfrastructuresListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"uwmncs\",\"computeCount\":736005906,\"storageCount\":2120109491,\"totalStorageSizeInGbs\":1869546664,\"availableStorageSizeInGbs\":387251402,\"timeCreated\":\"ekrsgs\",\"lifecycleDetails\":\"dhuzqgnjdgk\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"July\"}],\"weeksOfMonth\":[1169693926,252891746],\"daysOfWeek\":[{\"name\":\"Tuesday\"}],\"hoursOfDay\":[144563900],\"leadTimeInWeeks\":7745005,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":1726395306,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1986458631,\"estimatedNetworkSwitchesPatchingTime\":685064266,\"estimatedStorageServerPatchingTime\":1207165403,\"totalEstimatedPatchingTime\":670431250},\"customerContacts\":[{\"email\":\"evqagtl\"}],\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Updating\",\"shape\":\"kqo\",\"ociUrl\":\"ykvgtrdcnifmz\",\"cpuCount\":1867951005,\"maxCpuCount\":212235085,\"memorySizeInGbs\":1569168955,\"maxMemoryInGbs\":1235749271,\"dbNodeStorageSizeInGbs\":44176896,\"maxDbNodeStorageSizeInGbs\":265012274,\"dataStorageSizeInTbs\":83.52714933447804,\"maxDataStorageInTbs\":23.660619597545708,\"dbServerVersion\":\"khocxvdfffwaf\",\"storageServerVersion\":\"oudaspavehhrvk\",\"activatedStorageCount\":50845900,\"additionalStorageCount\":360812763,\"displayName\":\"zudhcxg\",\"lastMaintenanceRunId\":\"oyxcdyuib\",\"nextMaintenanceRunId\":\"fdn\",\"monthlyDbServerVersion\":\"ydvfvfcjnae\",\"monthlyStorageServerVersion\":\"srvhmgorffuki\"},\"zones\":[\"vwmzhwplefaxvxil\",\"btgn\",\"nzeyqxtjj\"],\"location\":\"qlqhycavodg\",\"tags\":{\"iaa\":\"beesmieknlra\",\"agt\":\"iuagydwqfbylyrfg\"},\"id\":\"ojocqwogf\",\"name\":\"zjvusfzldmo\",\"type\":\"uxylfsbtkadpy\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.cloudExadataInfrastructures().listByResourceGroup("auy", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qlqhycavodg", response.iterator().next().location()); - Assertions.assertEquals("beesmieknlra", response.iterator().next().tags().get("iaa")); - Assertions.assertEquals(736005906, response.iterator().next().properties().computeCount()); - Assertions.assertEquals(2120109491, response.iterator().next().properties().storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, - response.iterator().next().properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.JULY, - response.iterator().next().properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1169693926, - response.iterator().next().properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.TUESDAY, - response.iterator().next().properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(144563900, - response.iterator().next().properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(7745005, response.iterator().next().properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.ROLLING, - response.iterator().next().properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1726395306, - response.iterator().next().properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, - response.iterator().next().properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(false, - response.iterator().next().properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("evqagtl", response.iterator().next().properties().customerContacts().get(0).email()); - Assertions.assertEquals("kqo", response.iterator().next().properties().shape()); - Assertions.assertEquals("zudhcxg", response.iterator().next().properties().displayName()); - Assertions.assertEquals("vwmzhwplefaxvxil", response.iterator().next().zones().get(0)); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListMockTests.java deleted file mode 100644 index de044945bb264..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructure; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -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 CloudExadataInfrastructuresListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"kambtrnegvmnvuqe\",\"computeCount\":640120978,\"storageCount\":1032256402,\"totalStorageSizeInGbs\":2031178559,\"availableStorageSizeInGbs\":608775789,\"timeCreated\":\"bkkd\",\"lifecycleDetails\":\"lves\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"February\"},{\"name\":\"August\"}],\"weeksOfMonth\":[444057541,1058689711],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Monday\"},{\"name\":\"Friday\"}],\"hoursOfDay\":[159855339,1353258007,107848050,55990997],\"leadTimeInWeeks\":17628020,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1984241161,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":87625396,\"estimatedNetworkSwitchesPatchingTime\":1693563757,\"estimatedStorageServerPatchingTime\":1143602550,\"totalEstimatedPatchingTime\":743111845},\"customerContacts\":[{\"email\":\"jtqedcgzulwmm\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"rjvpglydzgkrvqee\",\"ociUrl\":\"oepry\",\"cpuCount\":726969242,\"maxCpuCount\":584463560,\"memorySizeInGbs\":989782858,\"maxMemoryInGbs\":20343154,\"dbNodeStorageSizeInGbs\":111539193,\"maxDbNodeStorageSizeInGbs\":2114166955,\"dataStorageSizeInTbs\":43.95224913220894,\"maxDataStorageInTbs\":44.82261422528555,\"dbServerVersion\":\"q\",\"storageServerVersion\":\"f\",\"activatedStorageCount\":97417905,\"additionalStorageCount\":1828408441,\"displayName\":\"iglaecx\",\"lastMaintenanceRunId\":\"t\",\"nextMaintenanceRunId\":\"okpvzm\",\"monthlyDbServerVersion\":\"t\",\"monthlyStorageServerVersion\":\"dgxobfircl\"},\"zones\":[\"kciayzri\"],\"location\":\"hya\",\"tags\":{\"xqvkjlmxhomdyn\":\"jlb\",\"raauzzpt\":\"dwdigumb\",\"ysdzhez\":\"a\"},\"id\":\"wva\",\"name\":\"qyuvvfonkp\",\"type\":\"hqyikvy\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.cloudExadataInfrastructures().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hya", response.iterator().next().location()); - Assertions.assertEquals("jlb", response.iterator().next().tags().get("xqvkjlmxhomdyn")); - Assertions.assertEquals(640120978, response.iterator().next().properties().computeCount()); - Assertions.assertEquals(1032256402, response.iterator().next().properties().storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, - response.iterator().next().properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.FEBRUARY, - response.iterator().next().properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(444057541, - response.iterator().next().properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SUNDAY, - response.iterator().next().properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(159855339, - response.iterator().next().properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(17628020, - response.iterator().next().properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, - response.iterator().next().properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1984241161, - response.iterator().next().properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertEquals(true, - response.iterator().next().properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertEquals(true, - response.iterator().next().properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("jtqedcgzulwmm", - response.iterator().next().properties().customerContacts().get(0).email()); - Assertions.assertEquals("rjvpglydzgkrvqee", response.iterator().next().properties().shape()); - Assertions.assertEquals("iglaecx", response.iterator().next().properties().displayName()); - Assertions.assertEquals("kciayzri", response.iterator().next().zones().get(0)); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListPrivateIpAddressesWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListPrivateIpAddressesWithResponseMockTests.java deleted file mode 100644 index e43febddcecd9..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListPrivateIpAddressesWithResponseMockTests.java +++ /dev/null @@ -1,47 +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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.PrivateIpAddressesFilter; -import com.azure.resourcemanager.oracledatabase.models.PrivateIpAddressProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CloudVmClustersListPrivateIpAddressesWithResponseMockTests { - @Test - public void testListPrivateIpAddressesWithResponse() throws Exception { - String responseStr - = "[{\"displayName\":\"cgegydcwbo\",\"hostnameLabel\":\"jumvqqolihrraio\",\"ocid\":\"aubrjtloq\",\"ipAddress\":\"fuojrngif\",\"subnetId\":\"rzpasccbiuimzdly\"},{\"displayName\":\"dfqwmkyoq\",\"hostnameLabel\":\"fdvruz\",\"ocid\":\"lzo\",\"ipAddress\":\"hpc\",\"subnetId\":\"fnmdxotn\"},{\"displayName\":\"fdgugeyzi\",\"hostnameLabel\":\"grkyuizabsnmfpph\",\"ocid\":\"jee\",\"ipAddress\":\"yhyhsgzfczb\",\"subnetId\":\"omfgbeglqgleohib\"},{\"displayName\":\"tnluankrr\",\"hostnameLabel\":\"xeeebtijvacvbmqz\",\"ocid\":\"qqxlajr\",\"ipAddress\":\"wxacevehj\",\"subnetId\":\"uyxoaf\"}]"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - List response = manager.cloudVmClusters() - .listPrivateIpAddressesWithResponse("kcdqzhlct", "dunqnd", - new PrivateIpAddressesFilter().withSubnetId("fpch").withVnicId("qbnj"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("cgegydcwbo", response.get(0).displayName()); - Assertions.assertEquals("jumvqqolihrraio", response.get(0).hostnameLabel()); - Assertions.assertEquals("aubrjtloq", response.get(0).ocid()); - Assertions.assertEquals("fuojrngif", response.get(0).ipAddress()); - Assertions.assertEquals("rzpasccbiuimzdly", response.get(0).subnetId()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ConnectionStringTypeTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ConnectionStringTypeTests.java deleted file mode 100644 index c07e81e9f14e2..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ConnectionStringTypeTests.java +++ /dev/null @@ -1,90 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.AllConnectionStringType; -import com.azure.resourcemanager.oracledatabase.models.ConnectionStringType; -import com.azure.resourcemanager.oracledatabase.models.ConsumerGroup; -import com.azure.resourcemanager.oracledatabase.models.HostFormatType; -import com.azure.resourcemanager.oracledatabase.models.ProfileType; -import com.azure.resourcemanager.oracledatabase.models.ProtocolType; -import com.azure.resourcemanager.oracledatabase.models.SessionModeType; -import com.azure.resourcemanager.oracledatabase.models.SyntaxFormatType; -import com.azure.resourcemanager.oracledatabase.models.TlsAuthenticationType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ConnectionStringTypeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConnectionStringType model = BinaryData.fromString( - "{\"allConnectionStrings\":{\"high\":\"zyde\",\"low\":\"jwyahuxinpmqnja\",\"medium\":\"ixjsprozvcputeg\"},\"dedicated\":\"wmfdatscmdvpjhul\",\"high\":\"uvm\",\"low\":\"ozkrwfndiodjpslw\",\"medium\":\"dpvwryoqpsoaccta\",\"profiles\":[{\"consumerGroup\":\"Medium\",\"displayName\":\"lahbcryff\",\"hostFormat\":\"Fqdn\",\"isRegional\":false,\"protocol\":\"TCP\",\"sessionMode\":\"Redirect\",\"syntaxFormat\":\"Ezconnect\",\"tlsAuthentication\":\"Mutual\",\"value\":\"paojakhmsbzjh\"},{\"consumerGroup\":\"Medium\",\"displayName\":\"evdphlxaol\",\"hostFormat\":\"Ip\",\"isRegional\":false,\"protocol\":\"TCPS\",\"sessionMode\":\"Redirect\",\"syntaxFormat\":\"Long\",\"tlsAuthentication\":\"Server\",\"value\":\"pfzfsinzgvfc\"}]}") - .toObject(ConnectionStringType.class); - Assertions.assertEquals("zyde", model.allConnectionStrings().high()); - Assertions.assertEquals("jwyahuxinpmqnja", model.allConnectionStrings().low()); - Assertions.assertEquals("ixjsprozvcputeg", model.allConnectionStrings().medium()); - Assertions.assertEquals("wmfdatscmdvpjhul", model.dedicated()); - Assertions.assertEquals("uvm", model.high()); - Assertions.assertEquals("ozkrwfndiodjpslw", model.low()); - Assertions.assertEquals("dpvwryoqpsoaccta", model.medium()); - Assertions.assertEquals(ConsumerGroup.MEDIUM, model.profiles().get(0).consumerGroup()); - Assertions.assertEquals("lahbcryff", model.profiles().get(0).displayName()); - Assertions.assertEquals(HostFormatType.FQDN, model.profiles().get(0).hostFormat()); - Assertions.assertEquals(false, model.profiles().get(0).isRegional()); - Assertions.assertEquals(ProtocolType.TCP, model.profiles().get(0).protocol()); - Assertions.assertEquals(SessionModeType.REDIRECT, model.profiles().get(0).sessionMode()); - Assertions.assertEquals(SyntaxFormatType.EZCONNECT, model.profiles().get(0).syntaxFormat()); - Assertions.assertEquals(TlsAuthenticationType.MUTUAL, model.profiles().get(0).tlsAuthentication()); - Assertions.assertEquals("paojakhmsbzjh", model.profiles().get(0).value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConnectionStringType model = new ConnectionStringType() - .withAllConnectionStrings( - new AllConnectionStringType().withHigh("zyde").withLow("jwyahuxinpmqnja").withMedium("ixjsprozvcputeg")) - .withDedicated("wmfdatscmdvpjhul") - .withHigh("uvm") - .withLow("ozkrwfndiodjpslw") - .withMedium("dpvwryoqpsoaccta") - .withProfiles(Arrays.asList( - new ProfileType().withConsumerGroup(ConsumerGroup.MEDIUM) - .withDisplayName("lahbcryff") - .withHostFormat(HostFormatType.FQDN) - .withIsRegional(false) - .withProtocol(ProtocolType.TCP) - .withSessionMode(SessionModeType.REDIRECT) - .withSyntaxFormat(SyntaxFormatType.EZCONNECT) - .withTlsAuthentication(TlsAuthenticationType.MUTUAL) - .withValue("paojakhmsbzjh"), - new ProfileType().withConsumerGroup(ConsumerGroup.MEDIUM) - .withDisplayName("evdphlxaol") - .withHostFormat(HostFormatType.IP) - .withIsRegional(false) - .withProtocol(ProtocolType.TCPS) - .withSessionMode(SessionModeType.REDIRECT) - .withSyntaxFormat(SyntaxFormatType.LONG) - .withTlsAuthentication(TlsAuthenticationType.SERVER) - .withValue("pfzfsinzgvfc"))); - model = BinaryData.fromObject(model).toObject(ConnectionStringType.class); - Assertions.assertEquals("zyde", model.allConnectionStrings().high()); - Assertions.assertEquals("jwyahuxinpmqnja", model.allConnectionStrings().low()); - Assertions.assertEquals("ixjsprozvcputeg", model.allConnectionStrings().medium()); - Assertions.assertEquals("wmfdatscmdvpjhul", model.dedicated()); - Assertions.assertEquals("uvm", model.high()); - Assertions.assertEquals("ozkrwfndiodjpslw", model.low()); - Assertions.assertEquals("dpvwryoqpsoaccta", model.medium()); - Assertions.assertEquals(ConsumerGroup.MEDIUM, model.profiles().get(0).consumerGroup()); - Assertions.assertEquals("lahbcryff", model.profiles().get(0).displayName()); - Assertions.assertEquals(HostFormatType.FQDN, model.profiles().get(0).hostFormat()); - Assertions.assertEquals(false, model.profiles().get(0).isRegional()); - Assertions.assertEquals(ProtocolType.TCP, model.profiles().get(0).protocol()); - Assertions.assertEquals(SessionModeType.REDIRECT, model.profiles().get(0).sessionMode()); - Assertions.assertEquals(SyntaxFormatType.EZCONNECT, model.profiles().get(0).syntaxFormat()); - Assertions.assertEquals(TlsAuthenticationType.MUTUAL, model.profiles().get(0).tlsAuthentication()); - Assertions.assertEquals("paojakhmsbzjh", model.profiles().get(0).value()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ConnectionUrlTypeTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ConnectionUrlTypeTests.java deleted file mode 100644 index 765d5fce2ab25..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ConnectionUrlTypeTests.java +++ /dev/null @@ -1,44 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.ConnectionUrlType; -import org.junit.jupiter.api.Assertions; - -public final class ConnectionUrlTypeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ConnectionUrlType model = BinaryData.fromString( - "{\"apexUrl\":\"ybb\",\"databaseTransformsUrl\":\"odepoogin\",\"graphStudioUrl\":\"amiheognarxz\",\"machineLearningNotebookUrl\":\"heotusiv\",\"mongoDbUrl\":\"v\",\"ordsUrl\":\"iqihn\",\"sqlDevWebUrl\":\"ngbwjz\"}") - .toObject(ConnectionUrlType.class); - Assertions.assertEquals("ybb", model.apexUrl()); - Assertions.assertEquals("odepoogin", model.databaseTransformsUrl()); - Assertions.assertEquals("amiheognarxz", model.graphStudioUrl()); - Assertions.assertEquals("heotusiv", model.machineLearningNotebookUrl()); - Assertions.assertEquals("v", model.mongoDbUrl()); - Assertions.assertEquals("iqihn", model.ordsUrl()); - Assertions.assertEquals("ngbwjz", model.sqlDevWebUrl()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ConnectionUrlType model = new ConnectionUrlType().withApexUrl("ybb") - .withDatabaseTransformsUrl("odepoogin") - .withGraphStudioUrl("amiheognarxz") - .withMachineLearningNotebookUrl("heotusiv") - .withMongoDbUrl("v") - .withOrdsUrl("iqihn") - .withSqlDevWebUrl("ngbwjz"); - model = BinaryData.fromObject(model).toObject(ConnectionUrlType.class); - Assertions.assertEquals("ybb", model.apexUrl()); - Assertions.assertEquals("odepoogin", model.databaseTransformsUrl()); - Assertions.assertEquals("amiheognarxz", model.graphStudioUrl()); - Assertions.assertEquals("heotusiv", model.machineLearningNotebookUrl()); - Assertions.assertEquals("v", model.mongoDbUrl()); - Assertions.assertEquals("iqihn", model.ordsUrl()); - Assertions.assertEquals("ngbwjz", model.sqlDevWebUrl()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CustomerContactTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CustomerContactTests.java deleted file mode 100644 index ecd77f7f66aad..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CustomerContactTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.CustomerContact; -import org.junit.jupiter.api.Assertions; - -public final class CustomerContactTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomerContact model = BinaryData.fromString("{\"email\":\"uhivyqniw\"}").toObject(CustomerContact.class); - Assertions.assertEquals("uhivyqniw", model.email()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomerContact model = new CustomerContact().withEmail("uhivyqniw"); - model = BinaryData.fromObject(model).toObject(CustomerContact.class); - Assertions.assertEquals("uhivyqniw", model.email()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DataCollectionOptionsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DataCollectionOptionsTests.java deleted file mode 100644 index a9b13fc036854..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DataCollectionOptionsTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DataCollectionOptions; -import org.junit.jupiter.api.Assertions; - -public final class DataCollectionOptionsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataCollectionOptions model = BinaryData.fromString( - "{\"isDiagnosticsEventsEnabled\":true,\"isHealthMonitoringEnabled\":false,\"isIncidentLogsEnabled\":true}") - .toObject(DataCollectionOptions.class); - Assertions.assertEquals(true, model.isDiagnosticsEventsEnabled()); - Assertions.assertEquals(false, model.isHealthMonitoringEnabled()); - Assertions.assertEquals(true, model.isIncidentLogsEnabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataCollectionOptions model = new DataCollectionOptions().withIsDiagnosticsEventsEnabled(true) - .withIsHealthMonitoringEnabled(false) - .withIsIncidentLogsEnabled(true); - model = BinaryData.fromObject(model).toObject(DataCollectionOptions.class); - Assertions.assertEquals(true, model.isDiagnosticsEventsEnabled()); - Assertions.assertEquals(false, model.isHealthMonitoringEnabled()); - Assertions.assertEquals(true, model.isIncidentLogsEnabled()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DayOfWeekTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DayOfWeekTests.java deleted file mode 100644 index f17262b2bee1b..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DayOfWeekTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeek; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import org.junit.jupiter.api.Assertions; - -public final class DayOfWeekTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DayOfWeek model = BinaryData.fromString("{\"name\":\"Thursday\"}").toObject(DayOfWeek.class); - Assertions.assertEquals(DayOfWeekName.THURSDAY, model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DayOfWeek model = new DayOfWeek().withName(DayOfWeekName.THURSDAY); - model = BinaryData.fromObject(model).toObject(DayOfWeek.class); - Assertions.assertEquals(DayOfWeekName.THURSDAY, model.name()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DayOfWeekUpdateTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DayOfWeekUpdateTests.java deleted file mode 100644 index b54bbd91dee79..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DayOfWeekUpdateTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekUpdate; -import org.junit.jupiter.api.Assertions; - -public final class DayOfWeekUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DayOfWeekUpdate model = BinaryData.fromString("{\"name\":\"Friday\"}").toObject(DayOfWeekUpdate.class); - Assertions.assertEquals(DayOfWeekName.FRIDAY, model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DayOfWeekUpdate model = new DayOfWeekUpdate().withName(DayOfWeekName.FRIDAY); - model = BinaryData.fromObject(model).toObject(DayOfWeekUpdate.class); - Assertions.assertEquals(DayOfWeekName.FRIDAY, model.name()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbIormConfigTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbIormConfigTests.java deleted file mode 100644 index f290140e12604..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbIormConfigTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbIormConfig; -import org.junit.jupiter.api.Assertions; - -public final class DbIormConfigTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbIormConfig model - = BinaryData.fromString("{\"dbName\":\"kde\",\"flashCacheLimit\":\"pvlopwiyighxpkd\",\"share\":1060544654}") - .toObject(DbIormConfig.class); - Assertions.assertEquals("kde", model.dbName()); - Assertions.assertEquals("pvlopwiyighxpkd", model.flashCacheLimit()); - Assertions.assertEquals(1060544654, model.share()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DbIormConfig model - = new DbIormConfig().withDbName("kde").withFlashCacheLimit("pvlopwiyighxpkd").withShare(1060544654); - model = BinaryData.fromObject(model).toObject(DbIormConfig.class); - Assertions.assertEquals("kde", model.dbName()); - Assertions.assertEquals("pvlopwiyighxpkd", model.flashCacheLimit()); - Assertions.assertEquals(1060544654, model.share()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeActionTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeActionTests.java deleted file mode 100644 index eb510358d5b77..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeActionTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbNodeAction; -import com.azure.resourcemanager.oracledatabase.models.DbNodeActionEnum; -import org.junit.jupiter.api.Assertions; - -public final class DbNodeActionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbNodeAction model = BinaryData.fromString("{\"action\":\"Stop\"}").toObject(DbNodeAction.class); - Assertions.assertEquals(DbNodeActionEnum.STOP, model.action()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DbNodeAction model = new DbNodeAction().withAction(DbNodeActionEnum.STOP); - model = BinaryData.fromObject(model).toObject(DbNodeAction.class); - Assertions.assertEquals(DbNodeActionEnum.STOP, model.action()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeInnerTests.java deleted file mode 100644 index a675a895b119b..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.DbNodeInner; -import com.azure.resourcemanager.oracledatabase.models.DbNodeProperties; - -public final class DbNodeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbNodeInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"nfqn\",\"additionalDetails\":\"ypsxjvfoim\",\"backupIpId\":\"slirciz\",\"backupVnic2Id\":\"vydfceacvlhvygdy\",\"backupVnicId\":\"umrtwnawjsl\",\"cpuCoreCount\":1538951172,\"dbNodeStorageSizeInGbs\":1632414232,\"dbServerId\":\"gcyztsfmznbae\",\"dbSystemId\":\"hchqnrnrpx\",\"faultDomain\":\"uwrykqgaifmvikl\",\"hostIpId\":\"dvk\",\"hostname\":\"ejd\",\"lifecycleState\":\"Stopping\",\"lifecycleDetails\":\"vdsrhnjiv\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1966018535,\"softwareStorageSizeInGb\":61062537,\"timeCreated\":\"2021-10-03T14:22:02Z\",\"timeMaintenanceWindowEnd\":\"2021-09-22T09:05:45Z\",\"timeMaintenanceWindowStart\":\"2020-12-23T09:28:04Z\",\"vnic2Id\":\"dftuljltduce\",\"vnicId\":\"tmczuomejwcwwqi\",\"provisioningState\":\"Failed\"},\"id\":\"sx\",\"name\":\"ojmsvpkjprvkwc\",\"type\":\"zqljyxgtczh\"}") - .toObject(DbNodeInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DbNodeInner model = new DbNodeInner().withProperties(new DbNodeProperties()); - model = BinaryData.fromObject(model).toObject(DbNodeInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeListResultTests.java deleted file mode 100644 index c8dc9dd588b43..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbNodeListResult; -import org.junit.jupiter.api.Assertions; - -public final class DbNodeListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbNodeListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"pyostronzmyhgfi\",\"additionalDetails\":\"sxkm\",\"backupIpId\":\"a\",\"backupVnic2Id\":\"rrjreafxtsgu\",\"backupVnicId\":\"jglikkxwslolb\",\"cpuCoreCount\":1224144822,\"dbNodeStorageSizeInGbs\":845097361,\"dbServerId\":\"m\",\"dbSystemId\":\"elfk\",\"faultDomain\":\"plcrpwjxeznoig\",\"hostIpId\":\"njwmwkpnbsazejj\",\"hostname\":\"kagfhsxtt\",\"lifecycleState\":\"Stopping\",\"lifecycleDetails\":\"xnfaazpxdtnk\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":190576653,\"softwareStorageSizeInGb\":135595246,\"timeCreated\":\"2020-12-21T21:02:08Z\",\"timeMaintenanceWindowEnd\":\"2021-06-14T14:36:08Z\",\"timeMaintenanceWindowStart\":\"2021-07-12T10:16:15Z\",\"vnic2Id\":\"pyouaibrebqaays\",\"vnicId\":\"ixqtn\",\"provisioningState\":\"Failed\"},\"id\":\"zlwfffiakp\",\"name\":\"pqqmted\",\"type\":\"tmmjihyeozph\"},{\"properties\":{\"ocid\":\"uyqncygupkvipmd\",\"additionalDetails\":\"wx\",\"backupIpId\":\"pevzhfst\",\"backupVnic2Id\":\"xhojuj\",\"backupVnicId\":\"pelmcuvhixbjxyf\",\"cpuCoreCount\":519110670,\"dbNodeStorageSizeInGbs\":156258046,\"dbServerId\":\"ool\",\"dbSystemId\":\"tpkiwkkbnujry\",\"faultDomain\":\"tylbfpncurdoiw\",\"hostIpId\":\"thtywub\",\"hostname\":\"bihwqknfdnt\",\"lifecycleState\":\"Failed\",\"lifecycleDetails\":\"rdgoihxumw\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1097443126,\"softwareStorageSizeInGb\":498677295,\"timeCreated\":\"2021-05-20T02:25:29Z\",\"timeMaintenanceWindowEnd\":\"2021-02-01T20:04:58Z\",\"timeMaintenanceWindowStart\":\"2021-06-25T00:10:43Z\",\"vnic2Id\":\"wggytsbwtovvt\",\"vnicId\":\"einqf\",\"provisioningState\":\"Canceled\"},\"id\":\"qknp\",\"name\":\"rgnepttwqmsniffc\",\"type\":\"mqnrojlpijnkr\"},{\"properties\":{\"ocid\":\"ddhcratizzr\",\"additionalDetails\":\"asxifto\",\"backupIpId\":\"yzhftwesgogczh\",\"backupVnic2Id\":\"nxkrlgnyhmossxkk\",\"backupVnicId\":\"h\",\"cpuCoreCount\":325722678,\"dbNodeStorageSizeInGbs\":712320662,\"dbServerId\":\"bdhqxvcxgf\",\"dbSystemId\":\"dsofbshrns\",\"faultDomain\":\"uswdv\",\"hostIpId\":\"ybycnunvj\",\"hostname\":\"tkfa\",\"lifecycleState\":\"Available\",\"lifecycleDetails\":\"qg\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":828801062,\"softwareStorageSizeInGb\":1775941190,\"timeCreated\":\"2021-02-05T08:12:45Z\",\"timeMaintenanceWindowEnd\":\"2021-09-11T06:06:10Z\",\"timeMaintenanceWindowStart\":\"2021-06-22T14:25:15Z\",\"vnic2Id\":\"jntpsewgioilqu\",\"vnicId\":\"ydxtqm\",\"provisioningState\":\"Canceled\"},\"id\":\"orgguf\",\"name\":\"yaomtb\",\"type\":\"hhavgrvkffovjz\"},{\"properties\":{\"ocid\":\"bibgjmfxumv\",\"additionalDetails\":\"luyovwxnbkfezzx\",\"backupIpId\":\"yhwzdgiruj\",\"backupVnic2Id\":\"bomvzzbtdcqv\",\"backupVnicId\":\"iyujviylwdshfs\",\"cpuCoreCount\":2141139443,\"dbNodeStorageSizeInGbs\":482373530,\"dbServerId\":\"efr\",\"dbSystemId\":\"sgaojfmwncot\",\"faultDomain\":\"fhir\",\"hostIpId\":\"ymoxoftpipiwyczu\",\"hostname\":\"a\",\"lifecycleState\":\"Provisioning\",\"lifecycleDetails\":\"lihhyuspskasdvlm\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1752218041,\"softwareStorageSizeInGb\":1265801831,\"timeCreated\":\"2021-04-20T13:27:45Z\",\"timeMaintenanceWindowEnd\":\"2021-05-28T22:35:34Z\",\"timeMaintenanceWindowStart\":\"2021-04-02T21:01:47Z\",\"vnic2Id\":\"rsre\",\"vnicId\":\"vxurisjnhnytxifq\",\"provisioningState\":\"Failed\"},\"id\":\"mrhublwpc\",\"name\":\"sutrgjup\",\"type\":\"uutpwoqhih\"}],\"nextLink\":\"qg\"}") - .toObject(DbNodeListResult.class); - Assertions.assertEquals("qg", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodePropertiesTests.java deleted file mode 100644 index d803720ab81cb..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodePropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbNodeProperties; - -public final class DbNodePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbNodeProperties model = BinaryData.fromString( - "{\"ocid\":\"dbsdshm\",\"additionalDetails\":\"maehvbbxurip\",\"backupIpId\":\"fnhtbaxkgxyw\",\"backupVnic2Id\":\"kpyklyhp\",\"backupVnicId\":\"odpvruudlgzib\",\"cpuCoreCount\":1621588970,\"dbNodeStorageSizeInGbs\":777690092,\"dbServerId\":\"ktst\",\"dbSystemId\":\"xeclzedqbcvhzlhp\",\"faultDomain\":\"dqkdlwwqfbu\",\"hostIpId\":\"kxtrq\",\"hostname\":\"smlmbtxhwgfwsrta\",\"lifecycleState\":\"Stopped\",\"lifecycleDetails\":\"zbrhubskhudyg\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":2141806180,\"softwareStorageSizeInGb\":2146938073,\"timeCreated\":\"2021-07-05T15:49:24Z\",\"timeMaintenanceWindowEnd\":\"2021-07-12T13:05:01Z\",\"timeMaintenanceWindowStart\":\"2021-03-17T22:00:43Z\",\"vnic2Id\":\"rfmluiqtq\",\"vnicId\":\"avyvnqqyba\",\"provisioningState\":\"Succeeded\"}") - .toObject(DbNodeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DbNodeProperties model = new DbNodeProperties(); - model = BinaryData.fromObject(model).toObject(DbNodeProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesActionMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesActionMockTests.java deleted file mode 100644 index ec81caa408d68..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesActionMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DbNode; -import com.azure.resourcemanager.oracledatabase.models.DbNodeAction; -import com.azure.resourcemanager.oracledatabase.models.DbNodeActionEnum; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DbNodesActionMockTests { - @Test - public void testAction() throws Exception { - String responseStr - = "{\"properties\":{\"ocid\":\"hgwydyynfsv\",\"additionalDetails\":\"gbv\",\"backupIpId\":\"anarfdlpukhpyrne\",\"backupVnic2Id\":\"jcpeogkhnmg\",\"backupVnicId\":\"ouxddbhfhpfpazj\",\"cpuCoreCount\":1207242533,\"dbNodeStorageSizeInGbs\":1156977348,\"dbServerId\":\"hpdulon\",\"dbSystemId\":\"cnpqwteht\",\"faultDomain\":\"vrh\",\"hostIpId\":\"jyoogwxh\",\"hostname\":\"duugwbsre\",\"lifecycleState\":\"Failed\",\"lifecycleDetails\":\"kfuarenlv\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1867886432,\"softwareStorageSizeInGb\":1998431294,\"timeCreated\":\"2021-02-05T00:41:51Z\",\"timeMaintenanceWindowEnd\":\"2021-09-08T16:13:33Z\",\"timeMaintenanceWindowStart\":\"2021-07-03T20:59:21Z\",\"vnic2Id\":\"f\",\"vnicId\":\"ev\",\"provisioningState\":\"Succeeded\"},\"id\":\"lcqxypokk\",\"name\":\"minqcym\",\"type\":\"zng\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DbNode response = manager.dbNodes() - .action("byrplrohkpig", "fusuckzmkwklsno", "axmqeqal", - new DbNodeAction().withAction(DbNodeActionEnum.RESET), com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesGetWithResponseMockTests.java deleted file mode 100644 index 8e3107f7fa3fc..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DbNode; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DbNodesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"ocid\":\"tkbu\",\"additionalDetails\":\"ogsf\",\"backupIpId\":\"ayiansharujtji\",\"backupVnic2Id\":\"fzyjqt\",\"backupVnicId\":\"wkpqhjpenuygbq\",\"cpuCoreCount\":800808953,\"dbNodeStorageSizeInGbs\":1833474976,\"dbServerId\":\"wv\",\"dbSystemId\":\"vcdlg\",\"faultDomain\":\"ucmfdj\",\"hostIpId\":\"laxpunj\",\"hostname\":\"kczvvita\",\"lifecycleState\":\"Stopped\",\"lifecycleDetails\":\"fcsserxhtvsox\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1944109467,\"softwareStorageSizeInGb\":166425776,\"timeCreated\":\"2021-02-27T10:59:18Z\",\"timeMaintenanceWindowEnd\":\"2021-04-26T17:18:37Z\",\"timeMaintenanceWindowStart\":\"2021-09-18T03:06:41Z\",\"vnic2Id\":\"ruuuybnch\",\"vnicId\":\"zizoyuely\",\"provisioningState\":\"Succeeded\"},\"id\":\"nb\",\"name\":\"qyggagfl\",\"type\":\"lgmtrwahzjmucf\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DbNode response = manager.dbNodes() - .getWithResponse("gtuwkff", "jk", "sysidfvclglxnf", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesListByCloudVmClusterMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesListByCloudVmClusterMockTests.java deleted file mode 100644 index c1a3ce93ad627..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesListByCloudVmClusterMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DbNode; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DbNodesListByCloudVmClusterMockTests { - @Test - public void testListByCloudVmCluster() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"wfepbnwgfmx\",\"additionalDetails\":\"cgbjbgdlfgt\",\"backupIpId\":\"snaquf\",\"backupVnic2Id\":\"bctqhamzjrwd\",\"backupVnicId\":\"zeqyjleziun\",\"cpuCoreCount\":822376850,\"dbNodeStorageSizeInGbs\":105350426,\"dbServerId\":\"ntkwcegy\",\"dbSystemId\":\"lbnseqac\",\"faultDomain\":\"vpilg\",\"hostIpId\":\"oq\",\"hostname\":\"gmditgueiookjbs\",\"lifecycleState\":\"Available\",\"lifecycleDetails\":\"dt\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1267925694,\"softwareStorageSizeInGb\":1329198912,\"timeCreated\":\"2021-08-29T23:35:12Z\",\"timeMaintenanceWindowEnd\":\"2021-01-30T09:51:14Z\",\"timeMaintenanceWindowStart\":\"2021-04-06T22:02:45Z\",\"vnic2Id\":\"bnfxofvc\",\"vnicId\":\"gdirazf\",\"provisioningState\":\"Canceled\"},\"id\":\"w\",\"name\":\"bmdujtmvcopexc\",\"type\":\"jurbuhhlkyqltqsr\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.dbNodes().listByCloudVmCluster("o", "gebx", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerInnerTests.java deleted file mode 100644 index ff0178e9542ff..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.DbServerInner; -import com.azure.resourcemanager.oracledatabase.models.DbServerProperties; - -public final class DbServerInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbServerInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"bt\",\"displayName\":\"flsjc\",\"compartmentId\":\"szfjvfbgofelja\",\"exadataInfrastructureId\":\"qmqhldvriii\",\"cpuCoreCount\":1756672367,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":664044730,\"patchingStatus\":\"Scheduled\",\"timePatchingEnded\":\"2021-12-10T23:56:18Z\",\"timePatchingStarted\":\"2021-04-04T08:27:15Z\"},\"maxMemoryInGbs\":477043409,\"dbNodeStorageSizeInGbs\":1376433367,\"vmClusterIds\":[\"ueluqhhahhxvrhmz\",\"wpjgwws\",\"ughftqsx\",\"qxujxukndxd\"],\"dbNodeIds\":[\"jguufzdm\",\"yqtfihwh\",\"otzi\",\"gamv\"],\"lifecycleDetails\":\"ho\",\"lifecycleState\":\"Available\",\"maxCpuCount\":1534302042,\"autonomousVmClusterIds\":[\"hqamvdkf\",\"ynwcvtbv\",\"ayhmtnvyqiatkz\",\"pcnp\"],\"autonomousVirtualMachineIds\":[\"jaesgvvsccya\",\"g\",\"qfhwyg\"],\"maxDbNodeStorageInGbs\":376601626,\"memorySizeInGbs\":307379599,\"shape\":\"fxusemdwzr\",\"timeCreated\":\"2021-04-25T19:47:04Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"cqdpsqxqvpsvuoym\",\"name\":\"ccelve\",\"type\":\"rypqlmfeo\"}") - .toObject(DbServerInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DbServerInner model = new DbServerInner().withProperties(new DbServerProperties()); - model = BinaryData.fromObject(model).toObject(DbServerInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerListResultTests.java deleted file mode 100644 index ca189fbe34636..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbServerListResult; -import org.junit.jupiter.api.Assertions; - -public final class DbServerListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbServerListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"rmrlxqtvcof\",\"displayName\":\"f\",\"compartmentId\":\"kgjubgdknnqvsazn\",\"exadataInfrastructureId\":\"tor\",\"cpuCoreCount\":761865502,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":63235261,\"patchingStatus\":\"MaintenanceInProgress\",\"timePatchingEnded\":\"2021-05-15T08:27:32Z\",\"timePatchingStarted\":\"2021-03-28T14:55:38Z\"},\"maxMemoryInGbs\":698533794,\"dbNodeStorageSizeInGbs\":1064161892,\"vmClusterIds\":[\"etaebu\",\"u\"],\"dbNodeIds\":[\"ovsm\",\"l\",\"wabm\",\"oefki\"],\"lifecycleDetails\":\"vtpuqujmqlgk\",\"lifecycleState\":\"Deleting\",\"maxCpuCount\":1252448159,\"autonomousVmClusterIds\":[\"ongbjcnt\",\"jitcjedftwwaez\"],\"autonomousVirtualMachineIds\":[\"v\",\"c\",\"zfoqouicybxar\",\"gszufoxciqopid\"],\"maxDbNodeStorageInGbs\":1543353321,\"memorySizeInGbs\":1108967269,\"shape\":\"dhkha\",\"timeCreated\":\"2021-06-05T04:56:19Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"bon\",\"name\":\"wntoegokdwbwh\",\"type\":\"szzcmrvexztv\"},{\"properties\":{\"ocid\":\"gsfraoyzkoow\",\"displayName\":\"mnguxawqaldsyu\",\"compartmentId\":\"imerqfobwyznk\",\"exadataInfrastructureId\":\"kutwpf\",\"cpuCoreCount\":237488555,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":71172193,\"patchingStatus\":\"Complete\",\"timePatchingEnded\":\"2021-10-19T10:33:06Z\",\"timePatchingStarted\":\"2021-01-13T07:02:52Z\"},\"maxMemoryInGbs\":1293750730,\"dbNodeStorageSizeInGbs\":2086518628,\"vmClusterIds\":[\"kgtdlmkkze\",\"dlhewp\",\"sdsttwvog\",\"bbejdcngqqm\"],\"dbNodeIds\":[\"ufgmjzrwrdg\",\"twaenuuzko\"],\"lifecycleDetails\":\"minrfdw\",\"lifecycleState\":\"Unavailable\",\"maxCpuCount\":1542145375,\"autonomousVmClusterIds\":[\"u\",\"efozbhdms\",\"l\",\"zqhof\"],\"autonomousVirtualMachineIds\":[\"ae\",\"u\",\"ah\",\"icslfaoq\"],\"maxDbNodeStorageInGbs\":1792279483,\"memorySizeInGbs\":580732645,\"shape\":\"halns\",\"timeCreated\":\"2021-10-08T04:07:45Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"hka\",\"name\":\"vwitqscyw\",\"type\":\"ggwoluhczb\"},{\"properties\":{\"ocid\":\"hairsbrgzdwms\",\"displayName\":\"ypqwdxggiccc\",\"compartmentId\":\"qhuexm\",\"exadataInfrastructureId\":\"tlstvlzywem\",\"cpuCoreCount\":218184123,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":1008650845,\"patchingStatus\":\"Complete\",\"timePatchingEnded\":\"2020-12-26T03:14:52Z\",\"timePatchingStarted\":\"2021-03-10T02:09:12Z\"},\"maxMemoryInGbs\":2121256273,\"dbNodeStorageSizeInGbs\":1137275627,\"vmClusterIds\":[\"gytguslfead\",\"ygqukyhejh\",\"isxgfp\",\"lolp\"],\"dbNodeIds\":[\"srp\",\"vu\"],\"lifecycleDetails\":\"raehtwdwrft\",\"lifecycleState\":\"Unavailable\",\"maxCpuCount\":1720208183,\"autonomousVmClusterIds\":[\"dl\"],\"autonomousVirtualMachineIds\":[\"hfwpracstwit\",\"khevxccedc\",\"nmdyodnwzxl\",\"jc\"],\"maxDbNodeStorageInGbs\":573145067,\"memorySizeInGbs\":139377731,\"shape\":\"ugcxnavvwxq\",\"timeCreated\":\"2021-08-20T03:09:37Z\",\"provisioningState\":\"Failed\"},\"id\":\"y\",\"name\":\"wxwlmdjrkvfgb\",\"type\":\"fvpdbo\"},{\"properties\":{\"ocid\":\"izsjqlhkrr\",\"displayName\":\"deibqip\",\"compartmentId\":\"ghvxndzwmkrefa\",\"exadataInfrastructureId\":\"jorwkqnyhgbij\",\"cpuCoreCount\":1741167059,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":2036493170,\"patchingStatus\":\"MaintenanceInProgress\",\"timePatchingEnded\":\"2021-08-16T20:44:49Z\",\"timePatchingStarted\":\"2021-01-09T22:47:33Z\"},\"maxMemoryInGbs\":804108375,\"dbNodeStorageSizeInGbs\":1037462008,\"vmClusterIds\":[\"wfsdjpvkvpbj\",\"bkzbzkd\",\"ncj\",\"budurgkakmo\"],\"dbNodeIds\":[\"jjklff\",\"mouwqlgzrfzeey\"],\"lifecycleDetails\":\"izikayuhq\",\"lifecycleState\":\"MaintenanceInProgress\",\"maxCpuCount\":1647706635,\"autonomousVmClusterIds\":[\"bqwrvtldgm\",\"pgvmpipaslthaqfx\",\"smwutwbdsrezpd\"],\"autonomousVirtualMachineIds\":[\"euyowqkd\",\"ytisibir\"],\"maxDbNodeStorageInGbs\":1229797985,\"memorySizeInGbs\":1063300853,\"shape\":\"zimejzanlfzx\",\"timeCreated\":\"2021-06-15T11:53:02Z\",\"provisioningState\":\"Canceled\"},\"id\":\"zonokixrjqci\",\"name\":\"gzpfrla\",\"type\":\"szrnwo\"}],\"nextLink\":\"ndfpwpj\"}") - .toObject(DbServerListResult.class); - Assertions.assertEquals("ndfpwpj", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerPatchingDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerPatchingDetailsTests.java deleted file mode 100644 index 250a3a2339994..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerPatchingDetailsTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbServerPatchingDetails; - -public final class DbServerPatchingDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbServerPatchingDetails model = BinaryData.fromString( - "{\"estimatedPatchDuration\":46928565,\"patchingStatus\":\"Complete\",\"timePatchingEnded\":\"2021-03-15T03:06:41Z\",\"timePatchingStarted\":\"2021-06-08T06:14:34Z\"}") - .toObject(DbServerPatchingDetails.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DbServerPatchingDetails model = new DbServerPatchingDetails(); - model = BinaryData.fromObject(model).toObject(DbServerPatchingDetails.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerPropertiesTests.java deleted file mode 100644 index 3214fd46facb0..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServerPropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbServerProperties; - -public final class DbServerPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbServerProperties model = BinaryData.fromString( - "{\"ocid\":\"rqwky\",\"displayName\":\"ob\",\"compartmentId\":\"gxedkow\",\"exadataInfrastructureId\":\"bqpc\",\"cpuCoreCount\":1318988279,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":1217910065,\"patchingStatus\":\"Complete\",\"timePatchingEnded\":\"2021-03-10T23:40:05Z\",\"timePatchingStarted\":\"2021-11-03T02:22:23Z\"},\"maxMemoryInGbs\":922836414,\"dbNodeStorageSizeInGbs\":1444149350,\"vmClusterIds\":[\"ekftnkhtj\"],\"dbNodeIds\":[\"ngwfqatm\"],\"lifecycleDetails\":\"htmdvy\",\"lifecycleState\":\"Creating\",\"maxCpuCount\":1851759881,\"autonomousVmClusterIds\":[\"zywkb\",\"rryuzhlhkjo\",\"rvqqaatj\"],\"autonomousVirtualMachineIds\":[\"vgoup\"],\"maxDbNodeStorageInGbs\":1624473251,\"memorySizeInGbs\":781426249,\"shape\":\"ggjioolvr\",\"timeCreated\":\"2021-01-31T00:57:49Z\",\"provisioningState\":\"Succeeded\"}") - .toObject(DbServerProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DbServerProperties model = new DbServerProperties(); - model = BinaryData.fromObject(model).toObject(DbServerProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServersGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServersGetWithResponseMockTests.java deleted file mode 100644 index 83e402323b249..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServersGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DbServer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DbServersGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"ocid\":\"slwkojpl\",\"displayName\":\"dnpdwrpqaf\",\"compartmentId\":\"ug\",\"exadataInfrastructureId\":\"n\",\"cpuCoreCount\":1704013235,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":726955046,\"patchingStatus\":\"Complete\",\"timePatchingEnded\":\"2021-06-28T06:22:35Z\",\"timePatchingStarted\":\"2021-08-10T19:55:02Z\"},\"maxMemoryInGbs\":1099892409,\"dbNodeStorageSizeInGbs\":1575776706,\"vmClusterIds\":[\"ixr\"],\"dbNodeIds\":[\"uyturml\"],\"lifecycleDetails\":\"owolbaui\",\"lifecycleState\":\"Creating\",\"maxCpuCount\":713536788,\"autonomousVmClusterIds\":[\"zonwpngajinnixj\",\"wrtmjfjmy\",\"cxlzhcoxovnekh\",\"nlusfnrd\"],\"autonomousVirtualMachineIds\":[\"txrdcqtjvi\",\"ttgepuslvyjtcv\",\"wkasiziesf\",\"ughtuqfecjxeygtu\"],\"maxDbNodeStorageInGbs\":643622638,\"memorySizeInGbs\":1670662701,\"shape\":\"uewmrswnjlxuzrhw\",\"timeCreated\":\"2021-07-10T15:20:26Z\",\"provisioningState\":\"Canceled\"},\"id\":\"aqehg\",\"name\":\"dohzjq\",\"type\":\"tu\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DbServer response = manager.dbServers() - .getWithResponse("uahokq", "obkauxofsh", "phwpnulaiywzej", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServersListByCloudExadataInfrastructureMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServersListByCloudExadataInfrastructureMockTests.java deleted file mode 100644 index 9449f03ad17d4..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbServersListByCloudExadataInfrastructureMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DbServer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DbServersListByCloudExadataInfrastructureMockTests { - @Test - public void testListByCloudExadataInfrastructure() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"ozipqwjedmurrxx\",\"displayName\":\"wpktvqylkmqpzoyh\",\"compartmentId\":\"bcg\",\"exadataInfrastructureId\":\"cloxo\",\"cpuCoreCount\":477398510,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":1567586671,\"patchingStatus\":\"MaintenanceInProgress\",\"timePatchingEnded\":\"2021-03-04T16:18:21Z\",\"timePatchingStarted\":\"2021-09-02T19:32:53Z\"},\"maxMemoryInGbs\":1159366069,\"dbNodeStorageSizeInGbs\":2022448357,\"vmClusterIds\":[\"cbahhpzpofoiy\",\"w\"],\"dbNodeIds\":[\"lkmkkholvdndvi\",\"uogphuartvtiuky\"],\"lifecycleDetails\":\"chnmna\",\"lifecycleState\":\"Unavailable\",\"maxCpuCount\":1789997323,\"autonomousVmClusterIds\":[\"jqirwrw\",\"ooxf\",\"i\"],\"autonomousVirtualMachineIds\":[\"wrsnewmozqvbu\",\"qmamhsycxhxzga\"],\"maxDbNodeStorageInGbs\":75419046,\"memorySizeInGbs\":545466012,\"shape\":\"idvmfqhppubo\",\"timeCreated\":\"2021-04-23T03:49:20Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"g\",\"name\":\"mtdherngb\",\"type\":\"c\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.dbServers() - .listByCloudExadataInfrastructure("neiknpg", "xgjiuqh", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapeInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapeInnerTests.java deleted file mode 100644 index ed2239ad95315..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapeInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemShapeInner; -import com.azure.resourcemanager.oracledatabase.models.DbSystemShapeProperties; - -public final class DbSystemShapeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbSystemShapeInner model = BinaryData.fromString( - "{\"properties\":{\"shapeFamily\":\"uaejxdultsk\",\"availableCoreCount\":618241707,\"minimumCoreCount\":31117438,\"runtimeMinimumCoreCount\":1777523774,\"coreCountIncrement\":1391640173,\"minStorageCount\":794147493,\"maxStorageCount\":583849936,\"availableDataStoragePerServerInTbs\":41.73994723431085,\"availableMemoryPerNodeInGbs\":311434030,\"availableDbNodePerNodeInGbs\":1290652027,\"minCoreCountPerNode\":102600378,\"availableMemoryInGbs\":1718146302,\"minMemoryPerNodeInGbs\":820009390,\"availableDbNodeStorageInGbs\":205303620,\"minDbNodeStoragePerNodeInGbs\":373368118,\"availableDataStorageInTbs\":519560547,\"minDataStorageInTbs\":522774709,\"minimumNodeCount\":1856979158,\"maximumNodeCount\":1422945070,\"availableCoreCountPerNode\":1252528512},\"id\":\"boekqvkel\",\"name\":\"smv\",\"type\":\"xwyjsflhhc\"}") - .toObject(DbSystemShapeInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DbSystemShapeInner model = new DbSystemShapeInner().withProperties(new DbSystemShapeProperties()); - model = BinaryData.fromObject(model).toObject(DbSystemShapeInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapeListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapeListResultTests.java deleted file mode 100644 index affa663b98e66..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapeListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbSystemShapeListResult; -import org.junit.jupiter.api.Assertions; - -public final class DbSystemShapeListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbSystemShapeListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"shapeFamily\":\"t\",\"availableCoreCount\":1491290789,\"minimumCoreCount\":777481009,\"runtimeMinimumCoreCount\":1258750458,\"coreCountIncrement\":1397437100,\"minStorageCount\":1232796575,\"maxStorageCount\":1519275761,\"availableDataStoragePerServerInTbs\":54.5079147632145,\"availableMemoryPerNodeInGbs\":1214313613,\"availableDbNodePerNodeInGbs\":1999029226,\"minCoreCountPerNode\":350152394,\"availableMemoryInGbs\":1115460475,\"minMemoryPerNodeInGbs\":580617744,\"availableDbNodeStorageInGbs\":1773507503,\"minDbNodeStoragePerNodeInGbs\":957944639,\"availableDataStorageInTbs\":1672254683,\"minDataStorageInTbs\":2086388671,\"minimumNodeCount\":351214213,\"maximumNodeCount\":2051758056,\"availableCoreCountPerNode\":1378087535},\"id\":\"bp\",\"name\":\"xqpsrknftguv\",\"type\":\"iuhprwmdyvxqta\"},{\"properties\":{\"shapeFamily\":\"ww\",\"availableCoreCount\":1692678524,\"minimumCoreCount\":1731999756,\"runtimeMinimumCoreCount\":1603221085,\"coreCountIncrement\":591654502,\"minStorageCount\":1070859381,\"maxStorageCount\":75631080,\"availableDataStoragePerServerInTbs\":81.21344104639293,\"availableMemoryPerNodeInGbs\":934632065,\"availableDbNodePerNodeInGbs\":988905675,\"minCoreCountPerNode\":2121055666,\"availableMemoryInGbs\":841332893,\"minMemoryPerNodeInGbs\":1391032405,\"availableDbNodeStorageInGbs\":1995543121,\"minDbNodeStoragePerNodeInGbs\":488274582,\"availableDataStorageInTbs\":673503494,\"minDataStorageInTbs\":2048055130,\"minimumNodeCount\":1125430045,\"maximumNodeCount\":1715507551,\"availableCoreCountPerNode\":1436102139},\"id\":\"zcjrvxdjzlmwlx\",\"name\":\"vu\",\"type\":\"fhzovawjvzunluth\"}],\"nextLink\":\"prnxipeil\"}") - .toObject(DbSystemShapeListResult.class); - Assertions.assertEquals("prnxipeil", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapePropertiesTests.java deleted file mode 100644 index 2e0c5736b0c37..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapePropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbSystemShapeProperties; - -public final class DbSystemShapePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DbSystemShapeProperties model = BinaryData.fromString( - "{\"shapeFamily\":\"lnjixisxya\",\"availableCoreCount\":1486510526,\"minimumCoreCount\":347364157,\"runtimeMinimumCoreCount\":1772436776,\"coreCountIncrement\":1260853084,\"minStorageCount\":2113030944,\"maxStorageCount\":2033382031,\"availableDataStoragePerServerInTbs\":91.76297293138525,\"availableMemoryPerNodeInGbs\":983085062,\"availableDbNodePerNodeInGbs\":1211885049,\"minCoreCountPerNode\":1066317539,\"availableMemoryInGbs\":643892740,\"minMemoryPerNodeInGbs\":712721872,\"availableDbNodeStorageInGbs\":462425094,\"minDbNodeStoragePerNodeInGbs\":417791826,\"availableDataStorageInTbs\":644635434,\"minDataStorageInTbs\":1975568377,\"minimumNodeCount\":1201064167,\"maximumNodeCount\":681203122,\"availableCoreCountPerNode\":245214837}") - .toObject(DbSystemShapeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DbSystemShapeProperties model = new DbSystemShapeProperties(); - model = BinaryData.fromObject(model).toObject(DbSystemShapeProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesGetWithResponseMockTests.java deleted file mode 100644 index c9ea936926690..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DbSystemShape; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DbSystemShapesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"shapeFamily\":\"puamwabzxr\",\"availableCoreCount\":833077123,\"minimumCoreCount\":38828648,\"runtimeMinimumCoreCount\":1690394983,\"coreCountIncrement\":1307782506,\"minStorageCount\":35510152,\"maxStorageCount\":1111352078,\"availableDataStoragePerServerInTbs\":70.60563316529131,\"availableMemoryPerNodeInGbs\":666736445,\"availableDbNodePerNodeInGbs\":1805110370,\"minCoreCountPerNode\":1652128908,\"availableMemoryInGbs\":1789512101,\"minMemoryPerNodeInGbs\":2030396621,\"availableDbNodeStorageInGbs\":836787788,\"minDbNodeStoragePerNodeInGbs\":298842617,\"availableDataStorageInTbs\":2041222733,\"minDataStorageInTbs\":1347441076,\"minimumNodeCount\":639113448,\"maximumNodeCount\":1453718102,\"availableCoreCountPerNode\":696339926},\"id\":\"jhlnymzotqyryu\",\"name\":\"cbm\",\"type\":\"qvx\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DbSystemShape response = manager.dbSystemShapes() - .getWithResponse("mlfmkqs", "azuawx", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesListByLocationMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesListByLocationMockTests.java deleted file mode 100644 index 25313ffaf17b5..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesListByLocationMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DbSystemShape; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DbSystemShapesListByLocationMockTests { - @Test - public void testListByLocation() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"shapeFamily\":\"u\",\"availableCoreCount\":1033844337,\"minimumCoreCount\":904578774,\"runtimeMinimumCoreCount\":636393326,\"coreCountIncrement\":1801427646,\"minStorageCount\":599043237,\"maxStorageCount\":342779147,\"availableDataStoragePerServerInTbs\":97.73447564067305,\"availableMemoryPerNodeInGbs\":400681699,\"availableDbNodePerNodeInGbs\":1175106778,\"minCoreCountPerNode\":864075629,\"availableMemoryInGbs\":2001173638,\"minMemoryPerNodeInGbs\":1981328937,\"availableDbNodeStorageInGbs\":1991738571,\"minDbNodeStoragePerNodeInGbs\":1272146098,\"availableDataStorageInTbs\":1776698371,\"minDataStorageInTbs\":1352761194,\"minimumNodeCount\":1513896325,\"maximumNodeCount\":1557012856,\"availableCoreCountPerNode\":1956173646},\"id\":\"p\",\"name\":\"pmxelnwcltyje\",\"type\":\"ex\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.dbSystemShapes().listByLocation("ojphslhc", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewInnerTests.java deleted file mode 100644 index fb4f0646d4eef..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.DnsPrivateViewInner; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateViewProperties; - -public final class DnsPrivateViewInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DnsPrivateViewInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"n\",\"displayName\":\"ewgdrjervn\",\"isProtected\":false,\"lifecycleState\":\"Deleting\",\"self\":\"hin\",\"timeCreated\":\"2021-07-07T21:20Z\",\"timeUpdated\":\"2021-07-26T04:46:18Z\",\"provisioningState\":\"Failed\"},\"id\":\"hnzdndslgnayqi\",\"name\":\"ynduha\",\"type\":\"hqlkthumaqo\"}") - .toObject(DnsPrivateViewInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DnsPrivateViewInner model = new DnsPrivateViewInner().withProperties(new DnsPrivateViewProperties()); - model = BinaryData.fromObject(model).toObject(DnsPrivateViewInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewListResultTests.java deleted file mode 100644 index 64794b19f09a7..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateViewListResult; -import org.junit.jupiter.api.Assertions; - -public final class DnsPrivateViewListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DnsPrivateViewListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"ulppggdtpnapnyir\",\"displayName\":\"uhpigvp\",\"isProtected\":false,\"lifecycleState\":\"Deleted\",\"self\":\"itxmedjvcslynqww\",\"timeCreated\":\"2021-09-17T17:00:46Z\",\"timeUpdated\":\"2021-06-21T03:07:03Z\",\"provisioningState\":\"Failed\"},\"id\":\"ktrmgucnapkt\",\"name\":\"oellwp\",\"type\":\"fdygpfqbuaceopz\"},{\"properties\":{\"ocid\":\"hhuao\",\"displayName\":\"pcqeqx\",\"isProtected\":false,\"lifecycleState\":\"Deleting\",\"self\":\"zxctobgb\",\"timeCreated\":\"2021-08-02T23:16:03Z\",\"timeUpdated\":\"2021-01-09T02:06:20Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"stmgrcfbunrmfqjh\",\"name\":\"kxbpvj\",\"type\":\"mjh\"},{\"properties\":{\"ocid\":\"yngudivk\",\"displayName\":\"swbxqz\",\"isProtected\":false,\"lifecycleState\":\"Deleting\",\"self\":\"uvjfdxxive\",\"timeCreated\":\"2021-08-28T01:45:57Z\",\"timeUpdated\":\"2021-02-03T22:58:32Z\",\"provisioningState\":\"Failed\"},\"id\":\"doqmcbxvwvxys\",\"name\":\"qbhsfxobl\",\"type\":\"tkblmpewww\"},{\"properties\":{\"ocid\":\"rvrnsvshqjohxc\",\"displayName\":\"bfovasrruvwbhsq\",\"isProtected\":true,\"lifecycleState\":\"Deleting\",\"self\":\"jbi\",\"timeCreated\":\"2021-07-08T11:15:33Z\",\"timeUpdated\":\"2021-09-14T01:07:05Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"fbjfdtwssotftpvj\",\"name\":\"bexilzznfqqnv\",\"type\":\"pmqtaru\"}],\"nextLink\":\"jmkcjhwqytj\"}") - .toObject(DnsPrivateViewListResult.class); - Assertions.assertEquals("jmkcjhwqytj", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewPropertiesTests.java deleted file mode 100644 index 0783a67ffbc40..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewPropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateViewProperties; - -public final class DnsPrivateViewPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DnsPrivateViewProperties model = BinaryData.fromString( - "{\"ocid\":\"gycdu\",\"displayName\":\"r\",\"isProtected\":true,\"lifecycleState\":\"Active\",\"self\":\"vaolpsslqlf\",\"timeCreated\":\"2021-06-04T22:42Z\",\"timeUpdated\":\"2021-07-12T23:59:17Z\",\"provisioningState\":\"Canceled\"}") - .toObject(DnsPrivateViewProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DnsPrivateViewProperties model = new DnsPrivateViewProperties(); - model = BinaryData.fromObject(model).toObject(DnsPrivateViewProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsGetWithResponseMockTests.java deleted file mode 100644 index 0cf6f9faedd1b..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateView; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DnsPrivateViewsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"ocid\":\"ihebwtsw\",\"displayName\":\"uwfmduragegizvc\",\"isProtected\":false,\"lifecycleState\":\"Deleted\",\"self\":\"djub\",\"timeCreated\":\"2021-08-20T01:19:46Z\",\"timeUpdated\":\"2021-06-04T17:20:40Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"kbsazgak\",\"name\":\"acy\",\"type\":\"cmjdmspof\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DnsPrivateView response = manager.dnsPrivateViews() - .getWithResponse("pofvwb", "blembnkbwvqvxkd", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsListByLocationMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsListByLocationMockTests.java deleted file mode 100644 index 1af888865c674..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsListByLocationMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateView; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DnsPrivateViewsListByLocationMockTests { - @Test - public void testListByLocation() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"yxonsupe\",\"displayName\":\"lzqnhcvs\",\"isProtected\":true,\"lifecycleState\":\"Deleted\",\"self\":\"ibg\",\"timeCreated\":\"2021-02-11T13:30:21Z\",\"timeUpdated\":\"2021-03-11T11:00:33Z\",\"provisioningState\":\"Canceled\"},\"id\":\"onmpqoxwdof\",\"name\":\"bxiqxeiiqbimht\",\"type\":\"wwinhehf\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.dnsPrivateViews().listByLocation("vwf", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZoneInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZoneInnerTests.java deleted file mode 100644 index 0a638dd8aa33b..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZoneInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.DnsPrivateZoneInner; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateZoneProperties; - -public final class DnsPrivateZoneInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DnsPrivateZoneInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"u\",\"isProtected\":false,\"lifecycleState\":\"Updating\",\"self\":\"ttdumorppxebmnzb\",\"serial\":1717455223,\"version\":\"pglkf\",\"viewId\":\"hdneuelfph\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-11-22T01:42:51Z\",\"provisioningState\":\"Failed\"},\"id\":\"ikdowwquuvx\",\"name\":\"xclvit\",\"type\":\"hqzonosggbhcoh\"}") - .toObject(DnsPrivateZoneInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DnsPrivateZoneInner model = new DnsPrivateZoneInner().withProperties(new DnsPrivateZoneProperties()); - model = BinaryData.fromObject(model).toObject(DnsPrivateZoneInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZoneListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZoneListResultTests.java deleted file mode 100644 index 1daa7ea3f387e..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZoneListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateZoneListResult; -import org.junit.jupiter.api.Assertions; - -public final class DnsPrivateZoneListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DnsPrivateZoneListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"swiydmcwyhzdx\",\"isProtected\":true,\"lifecycleState\":\"Active\",\"self\":\"mnvdfzn\",\"serial\":451636387,\"version\":\"dvxzbncblylpst\",\"viewId\":\"hh\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-04-01T15:36:07Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"erscdntne\",\"name\":\"fiwjmygtdssls\",\"type\":\"tmweriofzpyq\"},{\"properties\":{\"ocid\":\"wab\",\"isProtected\":true,\"lifecycleState\":\"Deleting\",\"self\":\"szhedplvw\",\"serial\":523277944,\"version\":\"mwmbes\",\"viewId\":\"nkww\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-05-13T14:02:05Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"ogaok\",\"name\":\"nzmnsikvm\",\"type\":\"qzeqqkdltfzxm\"},{\"properties\":{\"ocid\":\"hgure\",\"isProtected\":true,\"lifecycleState\":\"Active\",\"self\":\"dagxtibqd\",\"serial\":1020209011,\"version\":\"akbogqxndlkzgxh\",\"viewId\":\"iplbpodxunkbebxm\",\"zoneType\":\"Primary\",\"timeCreated\":\"2021-12-05T13:10:34Z\",\"provisioningState\":\"Canceled\"},\"id\":\"rbqtkoie\",\"name\":\"seotgqrllt\",\"type\":\"u\"}],\"nextLink\":\"auwzizxbmpgc\"}") - .toObject(DnsPrivateZoneListResult.class); - Assertions.assertEquals("auwzizxbmpgc", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonePropertiesTests.java deleted file mode 100644 index 2de9edeb1063c..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonePropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateZoneProperties; - -public final class DnsPrivateZonePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DnsPrivateZoneProperties model = BinaryData.fromString( - "{\"ocid\":\"dsjnka\",\"isProtected\":true,\"lifecycleState\":\"Updating\",\"self\":\"swacffgdkzz\",\"serial\":1258640156,\"version\":\"vhqcrail\",\"viewId\":\"n\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-10-20T12:14:16Z\",\"provisioningState\":\"Canceled\"}") - .toObject(DnsPrivateZoneProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DnsPrivateZoneProperties model = new DnsPrivateZoneProperties(); - model = BinaryData.fromObject(model).toObject(DnsPrivateZoneProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesGetWithResponseMockTests.java deleted file mode 100644 index c85b655545893..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateZone; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DnsPrivateZonesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"ocid\":\"aylp\",\"isProtected\":false,\"lifecycleState\":\"Deleted\",\"self\":\"ztcmwq\",\"serial\":1039431205,\"version\":\"xwaxfewzjkj\",\"viewId\":\"fdeqvhpsyl\",\"zoneType\":\"Primary\",\"timeCreated\":\"2021-03-18T21:28:39Z\",\"provisioningState\":\"Failed\"},\"id\":\"mbmxzjrgywwpgj\",\"name\":\"snptfujgicgaao\",\"type\":\"pttaqutd\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DnsPrivateZone response = manager.dnsPrivateZones() - .getWithResponse("fwyfwlwxjwet", "psihcla", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesListByLocationMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesListByLocationMockTests.java deleted file mode 100644 index 89cce4de5c12b..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesListByLocationMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.DnsPrivateZone; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class DnsPrivateZonesListByLocationMockTests { - @Test - public void testListByLocation() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"ylnio\",\"isProtected\":false,\"lifecycleState\":\"Deleting\",\"self\":\"jed\",\"serial\":1946171356,\"version\":\"vnlvxbcuiiznktwf\",\"viewId\":\"snvpdibmi\",\"zoneType\":\"Primary\",\"timeCreated\":\"2021-01-17T12:38:03Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"iwbuqny\",\"name\":\"phzfylsgcrp\",\"type\":\"bcunezzceze\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.dnsPrivateZones().listByLocation("pv", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/EstimatedPatchingTimeTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/EstimatedPatchingTimeTests.java deleted file mode 100644 index f1506ccba63b5..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/EstimatedPatchingTimeTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.EstimatedPatchingTime; - -public final class EstimatedPatchingTimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EstimatedPatchingTime model = BinaryData.fromString( - "{\"estimatedDbServerPatchingTime\":1492267323,\"estimatedNetworkSwitchesPatchingTime\":920557084,\"estimatedStorageServerPatchingTime\":223779123,\"totalEstimatedPatchingTime\":1058497011}") - .toObject(EstimatedPatchingTime.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EstimatedPatchingTime model = new EstimatedPatchingTime(); - model = BinaryData.fromObject(model).toObject(EstimatedPatchingTime.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadataIormConfigTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadataIormConfigTests.java deleted file mode 100644 index 8a9949b36738e..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadataIormConfigTests.java +++ /dev/null @@ -1,47 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DbIormConfig; -import com.azure.resourcemanager.oracledatabase.models.ExadataIormConfig; -import com.azure.resourcemanager.oracledatabase.models.IormLifecycleState; -import com.azure.resourcemanager.oracledatabase.models.Objective; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ExadataIormConfigTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ExadataIormConfig model = BinaryData.fromString( - "{\"dbPlans\":[{\"dbName\":\"bzpfzab\",\"flashCacheLimit\":\"cuh\",\"share\":1070511980},{\"dbName\":\"tyq\",\"flashCacheLimit\":\"lbbovplw\",\"share\":869574502},{\"dbName\":\"gy\",\"flashCacheLimit\":\"uosvmkfssxqukk\",\"share\":89011603}],\"lifecycleDetails\":\"mg\",\"lifecycleState\":\"Updating\",\"objective\":\"LowLatency\"}") - .toObject(ExadataIormConfig.class); - Assertions.assertEquals("bzpfzab", model.dbPlans().get(0).dbName()); - Assertions.assertEquals("cuh", model.dbPlans().get(0).flashCacheLimit()); - Assertions.assertEquals(1070511980, model.dbPlans().get(0).share()); - Assertions.assertEquals("mg", model.lifecycleDetails()); - Assertions.assertEquals(IormLifecycleState.UPDATING, model.lifecycleState()); - Assertions.assertEquals(Objective.LOW_LATENCY, model.objective()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ExadataIormConfig model = new ExadataIormConfig() - .withDbPlans( - Arrays.asList(new DbIormConfig().withDbName("bzpfzab").withFlashCacheLimit("cuh").withShare(1070511980), - new DbIormConfig().withDbName("tyq").withFlashCacheLimit("lbbovplw").withShare(869574502), - new DbIormConfig().withDbName("gy").withFlashCacheLimit("uosvmkfssxqukk").withShare(89011603))) - .withLifecycleDetails("mg") - .withLifecycleState(IormLifecycleState.UPDATING) - .withObjective(Objective.LOW_LATENCY); - model = BinaryData.fromObject(model).toObject(ExadataIormConfig.class); - Assertions.assertEquals("bzpfzab", model.dbPlans().get(0).dbName()); - Assertions.assertEquals("cuh", model.dbPlans().get(0).flashCacheLimit()); - Assertions.assertEquals(1070511980, model.dbPlans().get(0).share()); - Assertions.assertEquals("mg", model.lifecycleDetails()); - Assertions.assertEquals(IormLifecycleState.UPDATING, model.lifecycleState()); - Assertions.assertEquals(Objective.LOW_LATENCY, model.objective()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionInnerTests.java deleted file mode 100644 index 2b94a669763a4..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.GiVersionInner; -import com.azure.resourcemanager.oracledatabase.models.GiVersionProperties; - -public final class GiVersionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GiVersionInner model = BinaryData.fromString( - "{\"properties\":{\"version\":\"dfvue\"},\"id\":\"wsbpfvm\",\"name\":\"yhrfouyftaakcpw\",\"type\":\"yzvqt\"}") - .toObject(GiVersionInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GiVersionInner model = new GiVersionInner().withProperties(new GiVersionProperties()); - model = BinaryData.fromObject(model).toObject(GiVersionInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionListResultTests.java deleted file mode 100644 index 90d72027dd2c3..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.GiVersionListResult; -import org.junit.jupiter.api.Assertions; - -public final class GiVersionListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GiVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"version\":\"hdlxyjrxsagafcn\"},\"id\":\"gwq\",\"name\":\"pnedgf\",\"type\":\"cvkcvqvpkeqdcv\"},{\"properties\":{\"version\":\"vo\"},\"id\":\"sotbob\",\"name\":\"dopcjwvnh\",\"type\":\"ld\"},{\"properties\":{\"version\":\"xcxrsl\"},\"id\":\"utwu\",\"name\":\"egrpkhj\",\"type\":\"niyqslui\"}],\"nextLink\":\"dggkzzlvmbmpa\"}") - .toObject(GiVersionListResult.class); - Assertions.assertEquals("dggkzzlvmbmpa", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionPropertiesTests.java deleted file mode 100644 index 54da77b30810a..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionPropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.GiVersionProperties; - -public final class GiVersionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GiVersionProperties model = BinaryData.fromString("{\"version\":\"ubex\"}").toObject(GiVersionProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GiVersionProperties model = new GiVersionProperties(); - model = BinaryData.fromObject(model).toObject(GiVersionProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsGetWithResponseMockTests.java deleted file mode 100644 index 9552f4fd6ffe9..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.GiVersion; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GiVersionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"version\":\"wcobie\"},\"id\":\"tmninw\",\"name\":\"izcil\",\"type\":\"ghgshejjtbxqmu\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GiVersion response = manager.giVersions() - .getWithResponse("i", "xgvelfclduccbird", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsListByLocationMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsListByLocationMockTests.java deleted file mode 100644 index fec4b792bf544..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsListByLocationMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.GiVersion; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class GiVersionsListByLocationMockTests { - @Test - public void testListByLocation() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"version\":\"hkfkimrtixokf\"},\"id\":\"yinljqe\",\"name\":\"qwhix\",\"type\":\"onsts\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.giVersions().listByLocation("wemxswvruunzz", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/LongTermBackUpScheduleDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/LongTermBackUpScheduleDetailsTests.java deleted file mode 100644 index e280d1887b3ec..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/LongTermBackUpScheduleDetailsTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.LongTermBackUpScheduleDetails; -import com.azure.resourcemanager.oracledatabase.models.RepeatCadenceType; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class LongTermBackUpScheduleDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LongTermBackUpScheduleDetails model = BinaryData.fromString( - "{\"repeatCadence\":\"Yearly\",\"timeOfBackup\":\"2021-11-04T09:44:48Z\",\"retentionPeriodInDays\":2097936694,\"isDisabled\":true}") - .toObject(LongTermBackUpScheduleDetails.class); - Assertions.assertEquals(RepeatCadenceType.YEARLY, model.repeatCadence()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-04T09:44:48Z"), model.timeOfBackup()); - Assertions.assertEquals(2097936694, model.retentionPeriodInDays()); - Assertions.assertEquals(true, model.isDisabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LongTermBackUpScheduleDetails model - = new LongTermBackUpScheduleDetails().withRepeatCadence(RepeatCadenceType.YEARLY) - .withTimeOfBackup(OffsetDateTime.parse("2021-11-04T09:44:48Z")) - .withRetentionPeriodInDays(2097936694) - .withIsDisabled(true); - model = BinaryData.fromObject(model).toObject(LongTermBackUpScheduleDetails.class); - Assertions.assertEquals(RepeatCadenceType.YEARLY, model.repeatCadence()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-04T09:44:48Z"), model.timeOfBackup()); - Assertions.assertEquals(2097936694, model.retentionPeriodInDays()); - Assertions.assertEquals(true, model.isDisabled()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/MaintenanceWindowTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/MaintenanceWindowTests.java deleted file mode 100644 index 6eb56f5208cd7..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/MaintenanceWindowTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeek; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.MaintenanceWindow; -import com.azure.resourcemanager.oracledatabase.models.Month; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import com.azure.resourcemanager.oracledatabase.models.PatchingMode; -import com.azure.resourcemanager.oracledatabase.models.Preference; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MaintenanceWindowTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MaintenanceWindow model = BinaryData.fromString( - "{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"September\"},{\"name\":\"July\"},{\"name\":\"January\"},{\"name\":\"October\"}],\"weeksOfMonth\":[447504444,1340074682],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Wednesday\"},{\"name\":\"Thursday\"}],\"hoursOfDay\":[1039817033,1004577663,1511983432,1769488182],\"leadTimeInWeeks\":2041289920,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":292038248,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false}") - .toObject(MaintenanceWindow.class); - Assertions.assertEquals(Preference.NO_PREFERENCE, model.preference()); - Assertions.assertEquals(MonthName.SEPTEMBER, model.months().get(0).name()); - Assertions.assertEquals(447504444, model.weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SUNDAY, model.daysOfWeek().get(0).name()); - Assertions.assertEquals(1039817033, model.hoursOfDay().get(0)); - Assertions.assertEquals(2041289920, model.leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.patchingMode()); - Assertions.assertEquals(292038248, model.customActionTimeoutInMins()); - Assertions.assertEquals(true, model.isCustomActionTimeoutEnabled()); - Assertions.assertEquals(false, model.isMonthlyPatchingEnabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MaintenanceWindow model = new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) - .withMonths(Arrays.asList(new Month().withName(MonthName.SEPTEMBER), new Month().withName(MonthName.JULY), - new Month().withName(MonthName.JANUARY), new Month().withName(MonthName.OCTOBER))) - .withWeeksOfMonth(Arrays.asList(447504444, 1340074682)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.SUNDAY), - new DayOfWeek().withName(DayOfWeekName.WEDNESDAY), new DayOfWeek().withName(DayOfWeekName.THURSDAY))) - .withHoursOfDay(Arrays.asList(1039817033, 1004577663, 1511983432, 1769488182)) - .withLeadTimeInWeeks(2041289920) - .withPatchingMode(PatchingMode.NON_ROLLING) - .withCustomActionTimeoutInMins(292038248) - .withIsCustomActionTimeoutEnabled(true) - .withIsMonthlyPatchingEnabled(false); - model = BinaryData.fromObject(model).toObject(MaintenanceWindow.class); - Assertions.assertEquals(Preference.NO_PREFERENCE, model.preference()); - Assertions.assertEquals(MonthName.SEPTEMBER, model.months().get(0).name()); - Assertions.assertEquals(447504444, model.weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SUNDAY, model.daysOfWeek().get(0).name()); - Assertions.assertEquals(1039817033, model.hoursOfDay().get(0)); - Assertions.assertEquals(2041289920, model.leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.patchingMode()); - Assertions.assertEquals(292038248, model.customActionTimeoutInMins()); - Assertions.assertEquals(true, model.isCustomActionTimeoutEnabled()); - Assertions.assertEquals(false, model.isMonthlyPatchingEnabled()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/MonthTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/MonthTests.java deleted file mode 100644 index 428f9eb794063..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/MonthTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.Month; -import com.azure.resourcemanager.oracledatabase.models.MonthName; -import org.junit.jupiter.api.Assertions; - -public final class MonthTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Month model = BinaryData.fromString("{\"name\":\"July\"}").toObject(Month.class); - Assertions.assertEquals(MonthName.JULY, model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Month model = new Month().withName(MonthName.JULY); - model = BinaryData.fromObject(model).toObject(Month.class); - Assertions.assertEquals(MonthName.JULY, model.name()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NsgCidrTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NsgCidrTests.java deleted file mode 100644 index d457a212fdcb2..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NsgCidrTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.NsgCidr; -import com.azure.resourcemanager.oracledatabase.models.PortRange; -import org.junit.jupiter.api.Assertions; - -public final class NsgCidrTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - NsgCidr model = BinaryData - .fromString("{\"source\":\"wz\",\"destinationPortRange\":{\"min\":670634549,\"max\":593552862}}") - .toObject(NsgCidr.class); - Assertions.assertEquals("wz", model.source()); - Assertions.assertEquals(670634549, model.destinationPortRange().min()); - Assertions.assertEquals(593552862, model.destinationPortRange().max()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - NsgCidr model = new NsgCidr().withSource("wz") - .withDestinationPortRange(new PortRange().withMin(670634549).withMax(593552862)); - model = BinaryData.fromObject(model).toObject(NsgCidr.class); - Assertions.assertEquals("wz", model.source()); - Assertions.assertEquals(670634549, model.destinationPortRange().min()); - Assertions.assertEquals(593552862, model.destinationPortRange().max()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationDisplayTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationDisplayTests.java deleted file mode 100644 index f653ac95fa033..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationDisplayTests.java +++ /dev/null @@ -1,17 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.OperationDisplay; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = BinaryData.fromString( - "{\"provider\":\"yrtih\",\"resource\":\"tijbpzvgnwzsymgl\",\"operation\":\"fcyzkohdbihanufh\",\"description\":\"bj\"}") - .toObject(OperationDisplay.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationInnerTests.java deleted file mode 100644 index ccc769bc51f1c..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationInnerTests.java +++ /dev/null @@ -1,17 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.OperationInner; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = BinaryData.fromString( - "{\"name\":\"usarhmofc\",\"isDataAction\":false,\"display\":{\"provider\":\"urkdtmlx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}") - .toObject(OperationInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationListResultTests.java deleted file mode 100644 index fd2b459eef1cc..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationListResultTests.java +++ /dev/null @@ -1,17 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.OperationListResult; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"quvgjxpybczme\",\"isDataAction\":true,\"display\":{\"provider\":\"pbsphrupidgs\",\"resource\":\"bejhphoycmsxa\",\"operation\":\"hdxbmtqio\",\"description\":\"zehtbmu\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"izhwlrxy\",\"isDataAction\":false,\"display\":{\"provider\":\"ijgkdm\",\"resource\":\"azlobcufpdznrbt\",\"operation\":\"qjnqglhqgnufoooj\",\"description\":\"ifsqesaagdfmg\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"},{\"name\":\"rifkwm\",\"isDataAction\":true,\"display\":{\"provider\":\"izntocipao\",\"resource\":\"jpsq\",\"operation\":\"mpoyfd\",\"description\":\"ogknygjofjdd\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}],\"nextLink\":\"upewnwreitjzy\"}") - .toObject(OperationListResult.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationsListMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationsListMockTests.java deleted file mode 100644 index e82e71b117fe0..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OperationsListMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.Operation; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OperationsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"name\":\"udtjuewbc\",\"isDataAction\":false,\"display\":{\"provider\":\"whcjyxcc\",\"resource\":\"vpayakkudzpx\",\"operation\":\"jplmagstcy\",\"description\":\"pfkyrkdbdgiogsj\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListActivationLinksMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListActivationLinksMockTests.java deleted file mode 100644 index 62efec19e8075..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListActivationLinksMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.ActivationLinks; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OracleSubscriptionsListActivationLinksMockTests { - @Test - public void testListActivationLinks() throws Exception { - String responseStr - = "{\"newCloudAccountActivationLink\":\"lgouwtlmjj\",\"existingCloudAccountActivationLink\":\"ojqtobaxk\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ActivationLinks response = manager.oracleSubscriptions().listActivationLinks(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListCloudAccountDetailsMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListCloudAccountDetailsMockTests.java deleted file mode 100644 index 4f3a5f97c9d5e..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListCloudAccountDetailsMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.CloudAccountDetails; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OracleSubscriptionsListCloudAccountDetailsMockTests { - @Test - public void testListCloudAccountDetails() throws Exception { - String responseStr = "{\"cloudAccountName\":\"ytunlbfjkwr\",\"cloudAccountHomeRegion\":\"nkqbhsyrq\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CloudAccountDetails response - = manager.oracleSubscriptions().listCloudAccountDetails(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSaasSubscriptionDetailsMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSaasSubscriptionDetailsMockTests.java deleted file mode 100644 index df12b2983d615..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSaasSubscriptionDetailsMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.SaasSubscriptionDetails; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class OracleSubscriptionsListSaasSubscriptionDetailsMockTests { - @Test - public void testListSaasSubscriptionDetails() throws Exception { - String responseStr - = "{\"id\":\"jqhden\",\"subscriptionName\":\"ulkpakd\",\"timeCreated\":\"2021-06-10T21:14:50Z\",\"offerId\":\"jnnawtqa\",\"planId\":\"xuckpggqoweyir\",\"saasSubscriptionStatus\":\"lisn\",\"publisherId\":\"fl\",\"purchaserEmailId\":\"mpizru\",\"purchaserTenantId\":\"pqxpx\",\"termUnit\":\"fcngjsa\",\"isAutoRenew\":false,\"isFreeTrial\":true}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SaasSubscriptionDetails response - = manager.oracleSubscriptions().listSaasSubscriptionDetails(com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PeerDbDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PeerDbDetailsTests.java deleted file mode 100644 index aa6e6bab121a1..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PeerDbDetailsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.PeerDbDetails; -import org.junit.jupiter.api.Assertions; - -public final class PeerDbDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PeerDbDetails model = BinaryData.fromString("{\"peerDbId\":\"squyfxrxxlep\"}").toObject(PeerDbDetails.class); - Assertions.assertEquals("squyfxrxxlep", model.peerDbId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PeerDbDetails model = new PeerDbDetails().withPeerDbId("squyfxrxxlep"); - model = BinaryData.fromObject(model).toObject(PeerDbDetails.class); - Assertions.assertEquals("squyfxrxxlep", model.peerDbId()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PortRangeTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PortRangeTests.java deleted file mode 100644 index 90e0a811c0734..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PortRangeTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.PortRange; -import org.junit.jupiter.api.Assertions; - -public final class PortRangeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PortRange model = BinaryData.fromString("{\"min\":551724215,\"max\":806707414}").toObject(PortRange.class); - Assertions.assertEquals(551724215, model.min()); - Assertions.assertEquals(806707414, model.max()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PortRange model = new PortRange().withMin(551724215).withMax(806707414); - model = BinaryData.fromObject(model).toObject(PortRange.class); - Assertions.assertEquals(551724215, model.min()); - Assertions.assertEquals(806707414, model.max()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PrivateIpAddressPropertiesInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PrivateIpAddressPropertiesInnerTests.java deleted file mode 100644 index 94637b38a3bdd..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PrivateIpAddressPropertiesInnerTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.PrivateIpAddressPropertiesInner; -import org.junit.jupiter.api.Assertions; - -public final class PrivateIpAddressPropertiesInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateIpAddressPropertiesInner model = BinaryData.fromString( - "{\"displayName\":\"cbhernntiewdj\",\"hostnameLabel\":\"vbquwr\",\"ocid\":\"ehwagoh\",\"ipAddress\":\"uffkmrqemvvh\",\"subnetId\":\"xtdr\"}") - .toObject(PrivateIpAddressPropertiesInner.class); - Assertions.assertEquals("cbhernntiewdj", model.displayName()); - Assertions.assertEquals("vbquwr", model.hostnameLabel()); - Assertions.assertEquals("ehwagoh", model.ocid()); - Assertions.assertEquals("uffkmrqemvvh", model.ipAddress()); - Assertions.assertEquals("xtdr", model.subnetId()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PrivateIpAddressesFilterTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PrivateIpAddressesFilterTests.java deleted file mode 100644 index dcad1f6e5be9f..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/PrivateIpAddressesFilterTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.PrivateIpAddressesFilter; -import org.junit.jupiter.api.Assertions; - -public final class PrivateIpAddressesFilterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateIpAddressesFilter model = BinaryData.fromString("{\"subnetId\":\"ayjkqa\",\"vnicId\":\"qgzsles\"}") - .toObject(PrivateIpAddressesFilter.class); - Assertions.assertEquals("ayjkqa", model.subnetId()); - Assertions.assertEquals("qgzsles", model.vnicId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateIpAddressesFilter model = new PrivateIpAddressesFilter().withSubnetId("ayjkqa").withVnicId("qgzsles"); - model = BinaryData.fromObject(model).toObject(PrivateIpAddressesFilter.class); - Assertions.assertEquals("ayjkqa", model.subnetId()); - Assertions.assertEquals("qgzsles", model.vnicId()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ProfileTypeTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ProfileTypeTests.java deleted file mode 100644 index d3bd232ed2454..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ProfileTypeTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.ConsumerGroup; -import com.azure.resourcemanager.oracledatabase.models.HostFormatType; -import com.azure.resourcemanager.oracledatabase.models.ProfileType; -import com.azure.resourcemanager.oracledatabase.models.ProtocolType; -import com.azure.resourcemanager.oracledatabase.models.SessionModeType; -import com.azure.resourcemanager.oracledatabase.models.SyntaxFormatType; -import com.azure.resourcemanager.oracledatabase.models.TlsAuthenticationType; -import org.junit.jupiter.api.Assertions; - -public final class ProfileTypeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ProfileType model = BinaryData.fromString( - "{\"consumerGroup\":\"Tpurgent\",\"displayName\":\"fpjkjlxofp\",\"hostFormat\":\"Ip\",\"isRegional\":false,\"protocol\":\"TCPS\",\"sessionMode\":\"Redirect\",\"syntaxFormat\":\"Ezconnect\",\"tlsAuthentication\":\"Server\",\"value\":\"ininmay\"}") - .toObject(ProfileType.class); - Assertions.assertEquals(ConsumerGroup.TPURGENT, model.consumerGroup()); - Assertions.assertEquals("fpjkjlxofp", model.displayName()); - Assertions.assertEquals(HostFormatType.IP, model.hostFormat()); - Assertions.assertEquals(false, model.isRegional()); - Assertions.assertEquals(ProtocolType.TCPS, model.protocol()); - Assertions.assertEquals(SessionModeType.REDIRECT, model.sessionMode()); - Assertions.assertEquals(SyntaxFormatType.EZCONNECT, model.syntaxFormat()); - Assertions.assertEquals(TlsAuthenticationType.SERVER, model.tlsAuthentication()); - Assertions.assertEquals("ininmay", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ProfileType model = new ProfileType().withConsumerGroup(ConsumerGroup.TPURGENT) - .withDisplayName("fpjkjlxofp") - .withHostFormat(HostFormatType.IP) - .withIsRegional(false) - .withProtocol(ProtocolType.TCPS) - .withSessionMode(SessionModeType.REDIRECT) - .withSyntaxFormat(SyntaxFormatType.EZCONNECT) - .withTlsAuthentication(TlsAuthenticationType.SERVER) - .withValue("ininmay"); - model = BinaryData.fromObject(model).toObject(ProfileType.class); - Assertions.assertEquals(ConsumerGroup.TPURGENT, model.consumerGroup()); - Assertions.assertEquals("fpjkjlxofp", model.displayName()); - Assertions.assertEquals(HostFormatType.IP, model.hostFormat()); - Assertions.assertEquals(false, model.isRegional()); - Assertions.assertEquals(ProtocolType.TCPS, model.protocol()); - Assertions.assertEquals(SessionModeType.REDIRECT, model.sessionMode()); - Assertions.assertEquals(SyntaxFormatType.EZCONNECT, model.syntaxFormat()); - Assertions.assertEquals(TlsAuthenticationType.SERVER, model.tlsAuthentication()); - Assertions.assertEquals("ininmay", model.value()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/RestoreAutonomousDatabaseDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/RestoreAutonomousDatabaseDetailsTests.java deleted file mode 100644 index 7923e5ce8fd95..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/RestoreAutonomousDatabaseDetailsTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.RestoreAutonomousDatabaseDetails; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class RestoreAutonomousDatabaseDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestoreAutonomousDatabaseDetails model = BinaryData.fromString("{\"timestamp\":\"2021-07-15T02:51:17Z\"}") - .toObject(RestoreAutonomousDatabaseDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-15T02:51:17Z"), model.timestamp()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestoreAutonomousDatabaseDetails model - = new RestoreAutonomousDatabaseDetails().withTimestamp(OffsetDateTime.parse("2021-07-15T02:51:17Z")); - model = BinaryData.fromObject(model).toObject(RestoreAutonomousDatabaseDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-15T02:51:17Z"), model.timestamp()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SaasSubscriptionDetailsInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SaasSubscriptionDetailsInnerTests.java deleted file mode 100644 index 63428e797fa3c..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SaasSubscriptionDetailsInnerTests.java +++ /dev/null @@ -1,17 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.SaasSubscriptionDetailsInner; - -public final class SaasSubscriptionDetailsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SaasSubscriptionDetailsInner model = BinaryData.fromString( - "{\"id\":\"abikns\",\"subscriptionName\":\"gj\",\"timeCreated\":\"2021-10-23T19:23:01Z\",\"offerId\":\"dtlwwrlkd\",\"planId\":\"ncvokotllxdyhg\",\"saasSubscriptionStatus\":\"ocogj\",\"publisherId\":\"dtbnnha\",\"purchaserEmailId\":\"ocrkvcikh\",\"purchaserTenantId\":\"p\",\"termUnit\":\"qgxqquezikyw\",\"isAutoRenew\":false,\"isFreeTrial\":true}") - .toObject(SaasSubscriptionDetailsInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ScheduledOperationsTypeTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ScheduledOperationsTypeTests.java deleted file mode 100644 index cb23f90184681..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ScheduledOperationsTypeTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeek; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsType; -import org.junit.jupiter.api.Assertions; - -public final class ScheduledOperationsTypeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduledOperationsType model = BinaryData.fromString( - "{\"dayOfWeek\":{\"name\":\"Thursday\"},\"scheduledStartTime\":\"j\",\"scheduledStopTime\":\"ryhtnapczwlokjy\"}") - .toObject(ScheduledOperationsType.class); - Assertions.assertEquals(DayOfWeekName.THURSDAY, model.dayOfWeek().name()); - Assertions.assertEquals("j", model.scheduledStartTime()); - Assertions.assertEquals("ryhtnapczwlokjy", model.scheduledStopTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduledOperationsType model - = new ScheduledOperationsType().withDayOfWeek(new DayOfWeek().withName(DayOfWeekName.THURSDAY)) - .withScheduledStartTime("j") - .withScheduledStopTime("ryhtnapczwlokjy"); - model = BinaryData.fromObject(model).toObject(ScheduledOperationsType.class); - Assertions.assertEquals(DayOfWeekName.THURSDAY, model.dayOfWeek().name()); - Assertions.assertEquals("j", model.scheduledStartTime()); - Assertions.assertEquals("ryhtnapczwlokjy", model.scheduledStopTime()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ScheduledOperationsTypeUpdateTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ScheduledOperationsTypeUpdateTests.java deleted file mode 100644 index 58e1d98ed9f14..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ScheduledOperationsTypeUpdateTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; -import com.azure.resourcemanager.oracledatabase.models.DayOfWeekUpdate; -import com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsTypeUpdate; -import org.junit.jupiter.api.Assertions; - -public final class ScheduledOperationsTypeUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ScheduledOperationsTypeUpdate model = BinaryData.fromString( - "{\"dayOfWeek\":{\"name\":\"Saturday\"},\"scheduledStartTime\":\"ealmfmtdaaygdvwv\",\"scheduledStopTime\":\"iohgwxrtfud\"}") - .toObject(ScheduledOperationsTypeUpdate.class); - Assertions.assertEquals(DayOfWeekName.SATURDAY, model.dayOfWeek().name()); - Assertions.assertEquals("ealmfmtdaaygdvwv", model.scheduledStartTime()); - Assertions.assertEquals("iohgwxrtfud", model.scheduledStopTime()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ScheduledOperationsTypeUpdate model - = new ScheduledOperationsTypeUpdate().withDayOfWeek(new DayOfWeekUpdate().withName(DayOfWeekName.SATURDAY)) - .withScheduledStartTime("ealmfmtdaaygdvwv") - .withScheduledStopTime("iohgwxrtfud"); - model = BinaryData.fromObject(model).toObject(ScheduledOperationsTypeUpdate.class); - Assertions.assertEquals(DayOfWeekName.SATURDAY, model.dayOfWeek().name()); - Assertions.assertEquals("ealmfmtdaaygdvwv", model.scheduledStartTime()); - Assertions.assertEquals("iohgwxrtfud", model.scheduledStopTime()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionInnerTests.java deleted file mode 100644 index 2dd1147134f60..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.SystemVersionInner; -import com.azure.resourcemanager.oracledatabase.models.SystemVersionProperties; - -public final class SystemVersionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SystemVersionInner model = BinaryData.fromString( - "{\"properties\":{\"systemVersion\":\"mkcxozapvh\"},\"id\":\"xprglyatddc\",\"name\":\"cbcuejrjxgciqi\",\"type\":\"rhos\"}") - .toObject(SystemVersionInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SystemVersionInner model = new SystemVersionInner().withProperties(new SystemVersionProperties()); - model = BinaryData.fromObject(model).toObject(SystemVersionInner.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionListResultTests.java deleted file mode 100644 index 721e9623d9f69..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionListResultTests.java +++ /dev/null @@ -1,19 +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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.SystemVersionListResult; -import org.junit.jupiter.api.Assertions; - -public final class SystemVersionListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SystemVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"systemVersion\":\"smond\"},\"id\":\"quxvypomgkop\",\"name\":\"whojvp\",\"type\":\"jqg\"}],\"nextLink\":\"smocmbq\"}") - .toObject(SystemVersionListResult.class); - Assertions.assertEquals("smocmbq", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionPropertiesTests.java deleted file mode 100644 index 0aca43eaeae61..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionPropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.SystemVersionProperties; - -public final class SystemVersionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SystemVersionProperties model - = BinaryData.fromString("{\"systemVersion\":\"dqrhzoymib\"}").toObject(SystemVersionProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SystemVersionProperties model = new SystemVersionProperties(); - model = BinaryData.fromObject(model).toObject(SystemVersionProperties.class); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsGetWithResponseMockTests.java deleted file mode 100644 index 8f78bee9f6fe7..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.SystemVersion; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SystemVersionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"systemVersion\":\"hndvnoamldsehao\"},\"id\":\"jhhflzokxcoxpel\",\"name\":\"jetagltsxoatft\",\"type\":\"zpnpbswv\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SystemVersion response = manager.systemVersions() - .getWithResponse("ycjsx", "wwixzvumw", com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsListByLocationMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsListByLocationMockTests.java deleted file mode 100644 index 375d83c78bf78..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsListByLocationMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.SystemVersion; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class SystemVersionsListByLocationMockTests { - @Test - public void testListByLocation() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"systemVersion\":\"ucrwnami\"},\"id\":\"ebrqbsmswziqgfuh\",\"name\":\"kzruswh\",\"type\":\"hczznvf\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.systemVersions().listByLocation("uxlxqzvners", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressInnerTests.java deleted file mode 100644 index 364dd1dde6a19..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressInnerTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.fluent.models.VirtualNetworkAddressInner; -import com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddressProperties; -import org.junit.jupiter.api.Assertions; - -public final class VirtualNetworkAddressInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkAddressInner model = BinaryData.fromString( - "{\"properties\":{\"ipAddress\":\"bpimlqoljxkcgxxl\",\"vmOcid\":\"ffgcvizqz\",\"ocid\":\"l\",\"domain\":\"lyoupfgfbkju\",\"lifecycleDetails\":\"yhgk\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Terminated\",\"timeAssigned\":\"2021-10-13T02:52:40Z\"},\"id\":\"zfttsttktlahb\",\"name\":\"actxtgzukxitm\",\"type\":\"qtgqqqxhrnxr\"}") - .toObject(VirtualNetworkAddressInner.class); - Assertions.assertEquals("bpimlqoljxkcgxxl", model.properties().ipAddress()); - Assertions.assertEquals("ffgcvizqz", model.properties().vmOcid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualNetworkAddressInner model = new VirtualNetworkAddressInner().withProperties( - new VirtualNetworkAddressProperties().withIpAddress("bpimlqoljxkcgxxl").withVmOcid("ffgcvizqz")); - model = BinaryData.fromObject(model).toObject(VirtualNetworkAddressInner.class); - Assertions.assertEquals("bpimlqoljxkcgxxl", model.properties().ipAddress()); - Assertions.assertEquals("ffgcvizqz", model.properties().vmOcid()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressListResultTests.java deleted file mode 100644 index ddaaf406a5e28..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressListResultTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddressListResult; -import org.junit.jupiter.api.Assertions; - -public final class VirtualNetworkAddressListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkAddressListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ipAddress\":\"acoebj\",\"vmOcid\":\"wzcjznmwcpmgua\",\"ocid\":\"raufactkahzova\",\"domain\":\"ziuxxpshnee\",\"lifecycleDetails\":\"lfg\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Terminated\",\"timeAssigned\":\"2021-07-12T23:03:26Z\"},\"id\":\"lenrd\",\"name\":\"utujba\",\"type\":\"pjuohminyfl\"},{\"properties\":{\"ipAddress\":\"wmd\",\"vmOcid\":\"wpklvxw\",\"ocid\":\"gdxpg\",\"domain\":\"chisze\",\"lifecycleDetails\":\"nb\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Provisioning\",\"timeAssigned\":\"2021-06-04T19:59:32Z\"},\"id\":\"daxconfozauorsuk\",\"name\":\"kwbqplhlvnuu\",\"type\":\"pzlrphw\"},{\"properties\":{\"ipAddress\":\"l\",\"vmOcid\":\"eyuqdunvmnnrwr\",\"ocid\":\"ork\",\"domain\":\"lywjhh\",\"lifecycleDetails\":\"nhxmsi\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Provisioning\",\"timeAssigned\":\"2021-11-09T14:46:05Z\"},\"id\":\"ggdufiqndieu\",\"name\":\"ao\",\"type\":\"jchvcyy\"},{\"properties\":{\"ipAddress\":\"gdotcubiipuipwo\",\"vmOcid\":\"nmacj\",\"ocid\":\"nizshqvcim\",\"domain\":\"vfgmblrrilby\",\"lifecycleDetails\":\"xsmiccwrwfscjf\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Failed\",\"timeAssigned\":\"2021-01-29T04:31:10Z\"},\"id\":\"i\",\"name\":\"dvoqyt\",\"type\":\"byowbblgyavutp\"}],\"nextLink\":\"joxoism\"}") - .toObject(VirtualNetworkAddressListResult.class); - Assertions.assertEquals("acoebj", model.value().get(0).properties().ipAddress()); - Assertions.assertEquals("wzcjznmwcpmgua", model.value().get(0).properties().vmOcid()); - Assertions.assertEquals("joxoism", model.nextLink()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressPropertiesTests.java deleted file mode 100644 index 475743aba581a..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressPropertiesTests.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.oracledatabase.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddressProperties; -import org.junit.jupiter.api.Assertions; - -public final class VirtualNetworkAddressPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkAddressProperties model = BinaryData.fromString( - "{\"ipAddress\":\"pjui\",\"vmOcid\":\"vokqdzfv\",\"ocid\":\"ivjlfrqttbajlka\",\"domain\":\"wxyiopidkqq\",\"lifecycleDetails\":\"uvscxkdmligov\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Provisioning\",\"timeAssigned\":\"2021-12-03T21:08:29Z\"}") - .toObject(VirtualNetworkAddressProperties.class); - Assertions.assertEquals("pjui", model.ipAddress()); - Assertions.assertEquals("vokqdzfv", model.vmOcid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualNetworkAddressProperties model - = new VirtualNetworkAddressProperties().withIpAddress("pjui").withVmOcid("vokqdzfv"); - model = BinaryData.fromObject(model).toObject(VirtualNetworkAddressProperties.class); - Assertions.assertEquals("pjui", model.ipAddress()); - Assertions.assertEquals("vokqdzfv", model.vmOcid()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesCreateOrUpdateMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesCreateOrUpdateMockTests.java deleted file mode 100644 index 342a5a496ce2d..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesCreateOrUpdateMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddress; -import com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddressProperties; -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 VirtualNetworkAddressesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"ipAddress\":\"beolh\",\"vmOcid\":\"lvbmxuqibsxtkcu\",\"ocid\":\"b\",\"domain\":\"arfsi\",\"lifecycleDetails\":\"lkjxnqpvwgf\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Failed\",\"timeAssigned\":\"2021-06-25T15:03:20Z\"},\"id\":\"zmdk\",\"name\":\"aoaf\",\"type\":\"luqvoxmycjimryv\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VirtualNetworkAddress response = manager.virtualNetworkAddresses() - .define("fsv") - .withExistingCloudVmCluster("phaimmoi", "oqboshbragapyyr") - .withProperties(new VirtualNetworkAddressProperties().withIpAddress("vbopfppdbwnu").withVmOcid("ahxku")) - .create(); - - Assertions.assertEquals("beolh", response.properties().ipAddress()); - Assertions.assertEquals("lvbmxuqibsxtkcu", response.properties().vmOcid()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesGetWithResponseMockTests.java deleted file mode 100644 index 3ca41772cfd34..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesGetWithResponseMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddress; -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 VirtualNetworkAddressesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"ipAddress\":\"zxlioh\",\"vmOcid\":\"dd\",\"ocid\":\"gxqbawpcb\",\"domain\":\"zqcyknap\",\"lifecycleDetails\":\"fyuicdh\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Terminating\",\"timeAssigned\":\"2021-12-02T18:24:12Z\"},\"id\":\"bdvibidmhmwffpl\",\"name\":\"muvapc\",\"type\":\"ccrrvweyoxoyyu\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VirtualNetworkAddress response = manager.virtualNetworkAddresses() - .getWithResponse("lobdxna", "pmkmlmvevfx", "op", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("zxlioh", response.properties().ipAddress()); - Assertions.assertEquals("dd", response.properties().vmOcid()); - } -} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesListByCloudVmClusterMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesListByCloudVmClusterMockTests.java deleted file mode 100644 index 0b9d19ed9e5e7..0000000000000 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesListByCloudVmClusterMockTests.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.oracledatabase.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.oracledatabase.OracleDatabaseManager; -import com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddress; -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 VirtualNetworkAddressesListByCloudVmClusterMockTests { - @Test - public void testListByCloudVmCluster() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"ipAddress\":\"bchaqd\",\"vmOcid\":\"qecrqctmxx\",\"ocid\":\"ddm\",\"domain\":\"huytxzvtzn\",\"lifecycleDetails\":\"xbannovvoxc\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Provisioning\",\"timeAssigned\":\"2020-12-31T13:23:28Z\"},\"id\":\"vroevytlyo\",\"name\":\"rrrouuxvnsa\",\"type\":\"bcrymodizrx\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - OracleDatabaseManager manager = OracleDatabaseManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response - = manager.virtualNetworkAddresses().listByCloudVmCluster("bdxxe", "unin", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("bchaqd", response.iterator().next().properties().ipAddress()); - Assertions.assertEquals("qecrqctmxx", response.iterator().next().properties().vmOcid()); - } -}