diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index e126ba7d8ffc..f76758c1df88 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -464,7 +464,7 @@ com.azure.resourcemanager:azure-resourcemanager-deviceregistry;1.0.0;1.1.0-beta. com.azure.resourcemanager:azure-resourcemanager-standbypool;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-edgezones;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-devopsinfrastructure;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-oracledatabase;1.1.0;1.2.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-oracledatabase;1.1.0;1.2.0 com.azure.resourcemanager:azure-resourcemanager-informaticadatamanagement;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-mongocluster;1.0.0;1.1.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-computefleet;1.0.0;1.1.0-beta.3 diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/CHANGELOG.md b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/CHANGELOG.md index 04b91919a1d1..f13c8d27728b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/CHANGELOG.md +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/CHANGELOG.md @@ -1,14 +1,514 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.2.0 (2025-09-24) -### Features Added +- Azure Resource Manager Oracle Database client library for Java. This package contains Microsoft Azure SDK for Oracle Database Management SDK. Package api-version 2025-09-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 +#### `models.OracleSubscriptionUpdateProperties` was modified + +* `validate()` was removed + +#### `models.DefinedFileSystemConfiguration` was modified + +* `validate()` was removed + +#### `models.AllConnectionStringType` was modified + +* `validate()` was removed + +#### `models.ExadbVmClusterProperties` was modified + +* `validate()` was removed + +#### `models.DbNodeProperties` was modified + +* `validate()` was removed + +#### `models.CloudVmClusterProperties` was modified + +* `validate()` was removed + +#### `models.DbNodeDetails` was modified + +* `validate()` was removed + +#### `models.DayOfWeek` was modified + +* `validate()` was removed + +#### `models.Month` was modified + +* `validate()` was removed + +#### `models.DbServerProperties` was modified + +* `validate()` was removed + +#### `models.ProfileType` was modified + +* `validate()` was removed + +#### `models.NsgCidr` was modified + +* `validate()` was removed + +#### `models.ExascaleDbStorageDetails` was modified + +* `validate()` was removed + +#### `models.AddRemoveDbNode` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseCrossRegionDisasterRecoveryProperties` was modified + +* `withScheduledOperations(models.ScheduledOperationsType)` was removed +* `validate()` was removed + +#### `models.PlanUpdate` was modified + +* `validate()` was removed + +#### `models.SystemVersionProperties` was modified + +* `validate()` was removed + +#### `models.RemoveVirtualMachineFromExadbVmClusterDetails` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseFromBackupTimestampProperties` was modified + +* `withScheduledOperations(models.ScheduledOperationsType)` was removed +* `validate()` was removed + +#### `models.AzureSubscriptions` was modified + +* `validate()` was removed + +#### `models.ExadbVmClusterUpdate` was modified + +* `validate()` was removed + +#### `models.DisasterRecoveryConfigurationDetails` was modified + +* `validate()` was removed + +#### `models.LongTermBackUpScheduleDetails` was modified + +* `validate()` was removed + +#### `models.PeerDbDetails` was modified + +* `validate()` was removed + +#### `models.DbSystemShapeProperties` was modified + +* `validate()` was removed + +#### `models.ExadbVmClusterUpdateProperties` was modified + +* `validate()` was removed + +#### `models.ApexDetailsType` was modified + +* `validate()` was removed + +#### `models.CloudExadataInfrastructureUpdateProperties` was modified + +* `validate()` was removed + +#### `models.GenerateAutonomousDatabaseWalletDetails` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseBackupUpdate` was modified + +* `validate()` was removed + +#### `models.DbSystemShapes` was modified + +* `listByLocation(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed + +#### `models.VirtualNetworkAddressProperties` was modified + +* `validate()` was removed + +#### `models.CloudVmClusterUpdate` was modified + +* `validate()` was removed + +#### `models.PortRange` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseCloneProperties` was modified + +* `validate()` was removed +* `withScheduledOperations(models.ScheduledOperationsType)` was removed + +#### `models.OracleSubscriptionUpdate` was modified + +* `validate()` was removed + +#### `models.FileSystemConfigurationDetails` was modified + +* `validate()` was removed + +#### `models.ExascaleDbNodeProperties` was modified + +* `validate()` was removed + +#### `models.ExadataIormConfig` was modified + +* `validate()` was removed + +#### `models.FlexComponentProperties` was modified + +* `validate()` was removed + +#### `models.DnsPrivateZoneProperties` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseUpdateProperties` was modified + +* `withScheduledOperations(models.ScheduledOperationsTypeUpdate)` was removed +* `scheduledOperations()` was removed +* `validate()` was removed + +#### `models.AutonomousDatabaseBackupUpdateProperties` was modified + +* `validate()` was removed + +#### `models.EstimatedPatchingTime` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseUpdate` was modified + +* `validate()` was removed + +#### `models.CloudExadataInfrastructureUpdate` was modified + +* `validate()` was removed + +#### `models.GiVersions` was modified + +* `listByLocation(java.lang.String,models.SystemShapes,java.lang.String,com.azure.core.util.Context)` was removed + +#### `models.OperationDisplay` was modified + +* `validate()` was removed + +#### `models.ScheduledOperationsType` was modified + +* `validate()` was removed + +#### `models.GiMinorVersionProperties` was modified + +* `validate()` was removed + +#### `models.DbNodeAction` was modified + +* `validate()` was removed + +#### `models.OracleSubscriptionProperties` was modified + +* `validate()` was removed + +#### `models.CloudExadataInfrastructureProperties` was modified + +* `validate()` was removed + +#### `models.AutonomousDbVersionProperties` was modified + +* `validate()` was removed + +#### `models.ExadbVmClusterStorageDetails` was modified + +* `validate()` was removed + +#### `models.DayOfWeekUpdate` was modified + +* `validate()` was removed + +#### `models.ExascaleDbStorageVaultProperties` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseCharacterSetProperties` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseNationalCharacterSetProperties` was modified + +* `validate()` was removed + +#### `models.ExascaleDbStorageVaultTagsUpdate` was modified + +* `validate()` was removed + +#### `models.Plan` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseBaseProperties` was modified + +* `validate()` was removed +* `withScheduledOperations(models.ScheduledOperationsType)` was removed +* `scheduledOperations()` was removed + +#### `models.DbIormConfig` was modified + +* `validate()` was removed + +#### `models.ConnectionUrlType` was modified + +* `validate()` was removed + +#### `models.DbServerPatchingDetails` was modified + +* `validate()` was removed + +#### `models.CustomerContact` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseProperties` was modified + +* `withScheduledOperations(models.ScheduledOperationsType)` was removed +* `validate()` was removed + +#### `models.ExascaleDbStorageInputDetails` was modified + +* `validate()` was removed + +#### `models.DnsPrivateViewProperties` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseStandbySummary` was modified + +* `validate()` was removed + +#### `models.ConnectionStringType` was modified + +* `validate()` was removed + +#### `models.CloudVmClusterUpdateProperties` was modified + +* `validate()` was removed + +#### `models.PrivateIpAddressesFilter` was modified + +* `validate()` was removed + +#### `models.RestoreAutonomousDatabaseDetails` was modified + +* `validate()` was removed + +#### `models.DataCollectionOptions` was modified + +* `validate()` was removed + +#### `models.MaintenanceWindow` was modified + +* `validate()` was removed + +#### `models.AutonomousDatabaseBackupProperties` was modified + +* `validate()` was removed + +#### `models.ScheduledOperationsTypeUpdate` was modified + +* `validate()` was removed + +#### `models.GiVersionProperties` was modified + +* `validate()` was removed + +### Features Added + +* `models.ResourceAnchor$UpdateStages` was added + +* `models.DbSystem$DefinitionStages` was added + +* `models.NetworkAnchorProperties` was added + +* `models.ResourceAnchor` was added + +* `models.StorageManagementType` was added + +* `models.DbSystemSourceType` was added + +* `models.NetworkAnchor$Update` was added + +* `models.ResourceAnchors` was added + +* `models.DbSystemUpdateProperties` was added + +* `models.DbSystemBaseProperties` was added + +* `models.DbSystemOptions` was added + +* `models.ResourceAnchorUpdate` was added + +* `models.AutonomousDatabaseLifecycleAction` was added + +* `models.DbSystemProperties` was added + +* `models.DbVersions` was added + +* `models.DbSystemUpdate` was added + +* `models.ResourceAnchorProperties` was added + +* `models.ResourceAnchor$Update` was added + +* `models.ExadataVmClusterStorageManagementType` was added + +* `models.ConfigureExascaleCloudExadataInfrastructureDetails` was added + +* `models.DbVersionProperties` was added + +* `models.NetworkAnchorUpdateProperties` was added + +* `models.DiskRedundancyType` was added + +* `models.AutonomousDatabaseLifecycleActionEnum` was added + +* `models.DbSystem` was added + +* `models.NetworkAnchors` was added + +* `models.NetworkAnchor$UpdateStages` was added + +* `models.DbVersion` was added + +* `models.DbSystemDatabaseEditionType` was added + +* `models.NetworkAnchor` was added + +* `models.NetworkAnchor$Definition` was added + +* `models.ShapeFamilyType` was added + +* `models.NetworkAnchor$DefinitionStages` was added + +* `models.ExascaleConfigDetails` was added + +* `models.DbSystem$Update` was added + +* `models.DbSystem$UpdateStages` was added + +* `models.BaseDbSystemShapes` was added + +* `models.DbSystemLifecycleState` was added + +* `models.DbSystem$Definition` was added + +* `models.ShapeAttribute` was added + +* `models.NetworkAnchorUpdate` was added + +* `models.DnsForwardingRule` was added + +* `models.ResourceAnchor$DefinitionStages` was added + +* `models.ResourceAnchor$Definition` was added + +* `models.StorageVolumePerformanceMode` was added + +* `models.DbSystems` was added + +#### `models.ExadbVmClusterProperties` was modified + +* `shapeAttribute()` was added +* `withShapeAttribute(models.ShapeAttribute)` was added + +#### `models.CloudVmClusterProperties` was modified + +* `exascaleDbStorageVaultId()` was added +* `withExascaleDbStorageVaultId(java.lang.String)` was added +* `storageManagementType()` was added + +#### `models.AutonomousDatabaseCrossRegionDisasterRecoveryProperties` was modified + +* `withScheduledOperationsList(java.util.List)` was added + +#### `models.AutonomousDatabaseFromBackupTimestampProperties` was modified + +* `withScheduledOperationsList(java.util.List)` was added + +#### `models.DbSystemShapeProperties` was modified + +* `shapeAttributes()` was added + +#### `models.AutonomousDatabase` was modified + +* `action(models.AutonomousDatabaseLifecycleAction,com.azure.core.util.Context)` was added +* `action(models.AutonomousDatabaseLifecycleAction)` was added + +#### `models.DbSystemShapes` was modified + +* `listByLocation(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added + +#### `models.AutonomousDatabaseCloneProperties` was modified + +* `withScheduledOperationsList(java.util.List)` was added + +#### `models.AutonomousDatabaseUpdateProperties` was modified + +* `withScheduledOperationsList(java.util.List)` was added +* `scheduledOperationsList()` was added + +#### `models.GiVersions` was modified + +* `listByLocation(java.lang.String,models.SystemShapes,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added + +#### `OracleDatabaseManager` was modified + +* `dbVersions()` was added +* `networkAnchors()` was added +* `resourceAnchors()` was added +* `dbSystems()` was added + +#### `models.CloudExadataInfrastructureProperties` was modified + +* `exascaleConfig()` was added + +#### `models.CloudExadataInfrastructure` was modified + +* `configureExascale(models.ConfigureExascaleCloudExadataInfrastructureDetails,com.azure.core.util.Context)` was added +* `configureExascale(models.ConfigureExascaleCloudExadataInfrastructureDetails)` was added + +#### `models.AutonomousDatabases` was modified + +* `action(java.lang.String,java.lang.String,models.AutonomousDatabaseLifecycleAction,com.azure.core.util.Context)` was added +* `action(java.lang.String,java.lang.String,models.AutonomousDatabaseLifecycleAction)` was added + +#### `models.ExascaleDbStorageVaultProperties` was modified + +* `withExadataInfrastructureId(java.lang.String)` was added +* `attachedShapeAttributes()` was added +* `exadataInfrastructureId()` was added + +#### `models.AutonomousDatabaseBaseProperties` was modified + +* `scheduledOperationsList()` was added +* `withScheduledOperationsList(java.util.List)` was added + +#### `models.AutonomousDatabaseProperties` was modified + +* `withScheduledOperationsList(java.util.List)` was added + +#### `models.CloudExadataInfrastructures` was modified -### Other Changes +* `configureExascale(java.lang.String,java.lang.String,models.ConfigureExascaleCloudExadataInfrastructureDetails)` was added +* `configureExascale(java.lang.String,java.lang.String,models.ConfigureExascaleCloudExadataInfrastructureDetails,com.azure.core.util.Context)` was added ## 1.1.0 (2025-06-04) diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/README.md b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/README.md index 5d13be7ec2f6..10d2f0f0e95f 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/README.md +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Oracle Database client library for Java. -This package contains Microsoft Azure SDK for Oracle Database Management SDK. Package api-version 2025-03-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 Oracle Database Management SDK. Package api-version 2025-09-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.1.0 + 1.2.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md index cc48a4f3e65b..f0c26cb7af91 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md @@ -8,17 +8,20 @@ ## AutonomousDatabases +- [Action](#autonomousdatabases_action) - [ChangeDisasterRecoveryConfiguration](#autonomousdatabases_changedisasterrecoveryconfiguration) - [Failover](#autonomousdatabases_failover) - [GenerateWallet](#autonomousdatabases_generatewallet) - [ListByResourceGroup](#autonomousdatabases_listbyresourcegroup) - [Restore](#autonomousdatabases_restore) +- [Shrink](#autonomousdatabases_shrink) - [Switchover](#autonomousdatabases_switchover) - [Update](#autonomousdatabases_update) ## CloudExadataInfrastructures - [AddStorageCapacity](#cloudexadatainfrastructures_addstoragecapacity) +- [ConfigureExascale](#cloudexadatainfrastructures_configureexascale) ## CloudVmClusters @@ -39,6 +42,10 @@ - [ListByLocation](#dbsystemshapes_listbylocation) +## DbVersions + +- [ListByLocation](#dbversions_listbylocation) + ## ExadbVmClusters - [RemoveVms](#exadbvmclusters_removevms) @@ -94,7 +101,7 @@ */ public final class AutonomousDatabaseBackupsListByAutonomousDatabaseSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseBackup_listByParent.json + * x-ms-original-file: 2025-09-01/autonomousDatabaseBackup_listByParent.json */ /** * Sample code: AutonomousDatabaseBackups_ListByAutonomousDatabase. @@ -113,13 +120,32 @@ public final class AutonomousDatabaseBackupsListByAutonomousDatabaseSamples { ```java import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackup; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupUpdateProperties; /** * Samples for AutonomousDatabaseBackups Update. */ public final class AutonomousDatabaseBackupsUpdateSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseBackup_patch.json + * x-ms-original-file: 2025-09-01/AutonomousDatabaseBackups_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Patch Autonomous Database Backup. - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchAutonomousDatabaseBackupGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + AutonomousDatabaseBackup resource = manager.autonomousDatabaseBackups() + .getWithResponse("rgopenapi", "databasedb1", "1711644130", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new AutonomousDatabaseBackupUpdateProperties().withRetentionPeriodInDays(90)) + .apply(); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabaseBackup_patch.json */ /** * Sample code: AutonomousDatabaseBackups_Update. @@ -136,18 +162,67 @@ public final class AutonomousDatabaseBackupsUpdateSamples { } ``` +### AutonomousDatabases_Action + +```java +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleAction; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleActionEnum; + +/** + * Samples for AutonomousDatabases Action. + */ +public final class AutonomousDatabasesActionSamples { + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Action_MaximumSet_Gen.json + */ + /** + * Sample code: AutonomousDatabases_Action_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + autonomousDatabasesActionMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .action("rgopenapi", "databasedb1", + new AutonomousDatabaseLifecycleAction().withAction(AutonomousDatabaseLifecycleActionEnum.START), + com.azure.core.util.Context.NONE); + } +} +``` + ### AutonomousDatabases_ChangeDisasterRecoveryConfiguration ```java import com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryConfigurationDetails; import com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryType; +import java.time.OffsetDateTime; /** * Samples for AutonomousDatabases ChangeDisasterRecoveryConfiguration. */ public final class AutonomousDatabasesChangeDisasterRecoveryConfigurationSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_changeDisasterRecoveryConfiguration.json + * x-ms-original-file: 2025-09-01/AutonomousDatabases_ChangeDisasterRecoveryConfiguration_MaximumSet_Gen.json + */ + /** + * Sample code: Perform ChangeDisasterRecoveryConfiguration action on Autonomous Database - generated by + * [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performChangeDisasterRecoveryConfigurationActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .changeDisasterRecoveryConfiguration("rgopenapi", "databasedb1", + new DisasterRecoveryConfigurationDetails().withDisasterRecoveryType(DisasterRecoveryType.ADG) + .withTimeSnapshotStandbyEnabledTill(OffsetDateTime.parse("2025-08-01T04:32:58.725Z")) + .withIsSnapshotStandby(true) + .withIsReplicateAutomaticBackups(true), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabase_changeDisasterRecoveryConfiguration.json */ /** * Sample code: AutonomousDatabases_ChangeDisasterRecoveryConfiguration. @@ -175,7 +250,7 @@ import com.azure.resourcemanager.oracledatabase.models.PeerDbDetails; */ public final class AutonomousDatabasesFailoverSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_failover.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_failover.json */ /** * Sample code: AutonomousDatabases_Failover. @@ -188,6 +263,24 @@ public final class AutonomousDatabasesFailoverSamples { .failover("rg000", "databasedb1", new PeerDbDetails().withPeerDbId("peerDbId"), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Failover_MaximumSet_Gen.json + */ + /** + * Sample code: Perform failover action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performFailoverActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .failover("rgopenapi", "databasedb1*", + new PeerDbDetails().withPeerDbId("peerDbId") + .withPeerDbOcid("yozpqyefqhirkybmzwgoidyl") + .withPeerDbLocation("cxlzbzbfzi"), + com.azure.core.util.Context.NONE); + } } ``` @@ -202,7 +295,25 @@ import com.azure.resourcemanager.oracledatabase.models.GenerateType; */ public final class AutonomousDatabasesGenerateWalletSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_generateWallet.json + * x-ms-original-file: 2025-09-01/AutonomousDatabases_GenerateWallet_MaximumSet_Gen.json + */ + /** + * Sample code: Generate wallet action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void generateWalletActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .generateWalletWithResponse("rgopenapi", "databasedb1", + new GenerateAutonomousDatabaseWalletDetails().withGenerateType(GenerateType.SINGLE) + .withIsRegional(true) + .withPassword("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabase_generateWallet.json */ /** * Sample code: AutonomousDatabases_generateWallet. @@ -229,7 +340,7 @@ public final class AutonomousDatabasesGenerateWalletSamples { */ public final class AutonomousDatabasesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_listByResourceGroup.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_listByResourceGroup.json */ /** * Sample code: AutonomousDatabases_listByResourceGroup. @@ -240,6 +351,32 @@ public final class AutonomousDatabasesListByResourceGroupSamples { autonomousDatabasesListByResourceGroup(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.autonomousDatabases().listByResourceGroup("rg000", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: List Autonomous Database by resource group - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDatabaseByResourceGroupGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: List Autonomous Database by resource group - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDatabaseByResourceGroupGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } } ``` @@ -254,7 +391,7 @@ import java.time.OffsetDateTime; */ public final class AutonomousDatabasesRestoreSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_restore.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_restore.json */ /** * Sample code: AutonomousDatabases_Restore. @@ -268,6 +405,44 @@ public final class AutonomousDatabasesRestoreSamples { new RestoreAutonomousDatabaseDetails().withTimestamp(OffsetDateTime.parse("2024-04-23T00:00:00.000Z")), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Restore_MaximumSet_Gen.json + */ + /** + * Sample code: Perform restore action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performRestoreActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .restore("rgopenapi", "database1", + new RestoreAutonomousDatabaseDetails().withTimestamp(OffsetDateTime.parse("2024-04-23T00:00:00.000Z")), + com.azure.core.util.Context.NONE); + } +} +``` + +### AutonomousDatabases_Shrink + +```java +/** + * Samples for AutonomousDatabases Shrink. + */ +public final class AutonomousDatabasesShrinkSamples { + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Shrink_MaximumSet_Gen.json + */ + /** + * Sample code: Perform shrink action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performShrinkActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases().shrink("rgopenapi", "database1", com.azure.core.util.Context.NONE); + } } ``` @@ -281,7 +456,25 @@ import com.azure.resourcemanager.oracledatabase.models.PeerDbDetails; */ public final class AutonomousDatabasesSwitchoverSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_switchover.json + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Switchover_MaximumSet_Gen.json + */ + /** + * Sample code: Perform switchover action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performSwitchoverActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .switchover("rgopenapi", "databasedb1", + new PeerDbDetails().withPeerDbId("peerDbId") + .withPeerDbOcid("yozpqyefqhirkybmzwgoidyl") + .withPeerDbLocation("cxlzbzbfzi"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabase_switchover.json */ /** * Sample code: AutonomousDatabases_Switchover. @@ -301,13 +494,30 @@ public final class AutonomousDatabasesSwitchoverSamples { ```java import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabase; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdateProperties; +import com.azure.resourcemanager.oracledatabase.models.AutonomousMaintenanceScheduleType; +import com.azure.resourcemanager.oracledatabase.models.CustomerContact; +import com.azure.resourcemanager.oracledatabase.models.DatabaseEditionType; +import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; +import com.azure.resourcemanager.oracledatabase.models.DayOfWeekUpdate; +import com.azure.resourcemanager.oracledatabase.models.LicenseModel; +import com.azure.resourcemanager.oracledatabase.models.LongTermBackUpScheduleDetails; +import com.azure.resourcemanager.oracledatabase.models.OpenModeType; +import com.azure.resourcemanager.oracledatabase.models.PermissionLevelType; +import com.azure.resourcemanager.oracledatabase.models.RepeatCadenceType; +import com.azure.resourcemanager.oracledatabase.models.RoleType; +import com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsTypeUpdate; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; /** * Samples for AutonomousDatabases Update. */ public final class AutonomousDatabasesUpdateSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_patch.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_patch.json */ /** * Sample code: AutonomousDatabases_update. @@ -321,6 +531,67 @@ public final class AutonomousDatabasesUpdateSamples { .getValue(); resource.update().apply(); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Patch Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + AutonomousDatabase resource = manager.autonomousDatabases() + .getByResourceGroupWithResponse("rgopenapi", "databasedb1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key9827", "fakeTokenPlaceholder")) + .withProperties(new AutonomousDatabaseUpdateProperties().withAdminPassword("fakeTokenPlaceholder") + .withAutonomousMaintenanceScheduleType(AutonomousMaintenanceScheduleType.EARLY) + .withComputeCount(56.1D) + .withCpuCoreCount(45) + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("dummyemail@microsoft.com"))) + .withDataStorageSizeInTbs(133) + .withDataStorageSizeInGbs(175271) + .withDisplayName("lrdrjpyyvufnxdzpwvlkmfukpstrjftdxcejcxtnqhxqbhvtzeiokllnspotsqeggddxkjjtf") + .withIsAutoScalingEnabled(true) + .withIsAutoScalingForStorageEnabled(true) + .withPeerDbId("qmpfwtvpfvbgmulethqznsyyjlpxmyfqfanrymzqsgraavtmlqqbexpzguyqybngoupbshlzpxv") + .withIsLocalDataGuardEnabled(true) + .withIsMtlsConnectionRequired(true) + .withLicenseModel(LicenseModel.LICENSE_INCLUDED) + .withScheduledOperationsList(Arrays.asList(new ScheduledOperationsTypeUpdate() + .withDayOfWeek(new DayOfWeekUpdate().withName(DayOfWeekName.MONDAY)) + .withScheduledStartTime("lwwvkazgmfremfwhckfb") + .withScheduledStopTime("hjwagzxijpiaogulmnmbuqakpqxhkjvaypjqnvbvtjddc"))) + .withDatabaseEdition(DatabaseEditionType.STANDARD_EDITION) + .withLongTermBackupSchedule( + new LongTermBackUpScheduleDetails().withRepeatCadence(RepeatCadenceType.ONE_TIME) + .withTimeOfBackup(OffsetDateTime.parse("2025-08-01T04:32:58.715Z")) + .withRetentionPeriodInDays(188) + .withIsDisabled(true)) + .withLocalAdgAutoFailoverMaxDataLossLimit(212) + .withOpenMode(OpenModeType.READ_ONLY) + .withPermissionLevel(PermissionLevelType.RESTRICTED) + .withRole(RoleType.PRIMARY) + .withBackupRetentionPeriodInDays(12) + .withWhitelistedIps(Arrays.asList( + "kfierlppwurtqrhfxwgfgrnqtmvraignzwsddwmpdijeveuevuoejfmbjvpnlrmmdflilxcwkkzvdofctsdjfxrrrwctihhnchtrouauesqbmlcqhzwnppnhrtitecenlfyshassvajukbwxudhlwixkvkgsessvshcwmleoqujeemwenhwlsccbcjnnviugzgylsxkssalqoicatcvkahogdvweymhdxboyqwhaxuzlmrdbvgbnnetobkbwygcsflzanwknlybvvzgjzjirpfrksbxwgllgfxwdflcisvxpkjecpgdaxccqkzxofedkrawvhzeabmunpykwd"))) + .apply(); + } + + // 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; + } } ``` @@ -332,7 +603,37 @@ public final class AutonomousDatabasesUpdateSamples { */ public final class CloudExadataInfrastructuresAddStorageCapacitySamples { /* - * x-ms-original-file: 2025-03-01/exaInfra_addStorageCapacity.json + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_AddStorageCapacity_MaximumSet_Gen.json + */ + /** + * Sample code: Perform add storage capacity on exadata infra - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performAddStorageCapacityOnExadataInfraGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .addStorageCapacity("rgopenapi", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_AddStorageCapacity_MinimumSet_Gen.json + */ + /** + * Sample code: Perform add storage capacity on exadata infra - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performAddStorageCapacityOnExadataInfraGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .addStorageCapacity("rgopenapi", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/exaInfra_addStorageCapacity.json */ /** * Sample code: CloudExadataInfrastructures_addStorageCapacity. @@ -346,6 +647,49 @@ public final class CloudExadataInfrastructuresAddStorageCapacitySamples { } ``` +### CloudExadataInfrastructures_ConfigureExascale + +```java +import com.azure.resourcemanager.oracledatabase.models.ConfigureExascaleCloudExadataInfrastructureDetails; + +/** + * Samples for CloudExadataInfrastructures ConfigureExascale. + */ +public final class CloudExadataInfrastructuresConfigureExascaleSamples { + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_ConfigureExascale_MaximumSet_Gen.json + */ + /** + * Sample code: CloudExadataInfrastructures_ConfigureExascale_MaximumSet_Gen - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void cloudExadataInfrastructuresConfigureExascaleMaximumSetGenGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .configureExascale("rgopenapi", "Replace this value with a string matching RegExp .*", + new ConfigureExascaleCloudExadataInfrastructureDetails().withTotalStorageInGbs(19), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_ConfigureExascale_MinimumSet_Gen.json + */ + /** + * Sample code: CloudExadataInfrastructures_ConfigureExascale_MaximumSet_Gen - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void cloudExadataInfrastructuresConfigureExascaleMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .configureExascale("rgopenapi", "Replace this value with a string matching RegExp .*", + new ConfigureExascaleCloudExadataInfrastructureDetails().withTotalStorageInGbs(19), + com.azure.core.util.Context.NONE); + } +} +``` + ### CloudVmClusters_AddVms ```java @@ -357,7 +701,23 @@ import java.util.Arrays; */ public final class CloudVmClustersAddVmsSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_addVms.json + * x-ms-original-file: 2025-09-01/CloudVmClusters_AddVms_MaximumSet_Gen.json + */ + /** + * Sample code: Add VMs to VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void addVMsToVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .addVms("rgopenapi", "cloudvmcluster1", + new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/vmClusters_addVms.json */ /** * Sample code: CloudVmClusters_addVms. @@ -370,6 +730,22 @@ public final class CloudVmClustersAddVmsSamples { new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_AddVms_MinimumSet_Gen.json + */ + /** + * Sample code: Add VMs to VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void addVMsToVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .addVms("rgopenapi", "cloudvmcluster1", + new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), + com.azure.core.util.Context.NONE); + } } ``` @@ -383,7 +759,7 @@ import com.azure.resourcemanager.oracledatabase.models.PrivateIpAddressesFilter; */ public final class CloudVmClustersListPrivateIpAddressesSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_listPrivateIpAddresses.json + * x-ms-original-file: 2025-09-01/vmClusters_listPrivateIpAddresses.json */ /** * Sample code: CloudVmClusters_listPrivateIpAddresses. @@ -397,6 +773,38 @@ public final class CloudVmClustersListPrivateIpAddressesSamples { new PrivateIpAddressesFilter().withSubnetId("ocid1..aaaaaa").withVnicId("ocid1..aaaaa"), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_ListPrivateIpAddresses_MinimumSet_Gen.json + */ + /** + * Sample code: List Private IP Addresses for VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listPrivateIPAddressesForVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .listPrivateIpAddressesWithResponse("rgopenapi", "cloudvmcluster1", + new PrivateIpAddressesFilter().withSubnetId("ocid1..aaaaaa").withVnicId("ocid1..aaaaa"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_ListPrivateIpAddresses_MaximumSet_Gen.json + */ + /** + * Sample code: List Private IP Addresses for VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listPrivateIPAddressesForVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .listPrivateIpAddressesWithResponse("rgopenapi", "cloudvmcluster1", + new PrivateIpAddressesFilter().withSubnetId("ocid1..aaaaaa").withVnicId("ocid1..aaaaa"), + com.azure.core.util.Context.NONE); + } } ``` @@ -411,7 +819,39 @@ import java.util.Arrays; */ public final class CloudVmClustersRemoveVmsSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_removeVms.json + * x-ms-original-file: 2025-09-01/CloudVmClusters_RemoveVms_MaximumSet_Gen.json + */ + /** + * Sample code: Remove VMs from VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void removeVMsFromVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .removeVms("rgopenapi", "cloudvmcluster1", + new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_RemoveVms_MinimumSet_Gen.json + */ + /** + * Sample code: Remove VMs from VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void removeVMsFromVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .removeVms("rgopenapi", "cloudvmcluster1", + new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/vmClusters_removeVms.json */ /** * Sample code: CloudVmClusters_removeVms. @@ -438,7 +878,22 @@ import com.azure.resourcemanager.oracledatabase.models.DbNodeActionEnum; */ public final class DbNodesActionSamples { /* - * x-ms-original-file: 2025-03-01/dbNodes_action.json + * x-ms-original-file: 2025-09-01/DbNodes_Action_MinimumSet_Gen.json + */ + /** + * Sample code: VM actions on DbNodes of VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void vmActionsOnDbNodesOfVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbNodes() + .action("rgopenapi", "cloudvmcluster1", "adfedefeewwevkieviect", + new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dbNodes_action.json */ /** * Sample code: DbNodes_Action. @@ -450,6 +905,21 @@ public final class DbNodesActionSamples { .action("rg000", "cluster1", "ocid1....aaaaaa", new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/DbNodes_Action_MaximumSet_Gen.json + */ + /** + * Sample code: VM actions on DbNodes of VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void vmActionsOnDbNodesOfVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbNodes() + .action("rgopenapi", "cloudvmcluster1", "abciderewdidsereq", + new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); + } } ``` @@ -461,7 +931,7 @@ public final class DbNodesActionSamples { */ public final class DbNodesListByCloudVmClusterSamples { /* - * x-ms-original-file: 2025-03-01/dbNodes_listByParent.json + * x-ms-original-file: 2025-09-01/dbNodes_listByParent.json */ /** * Sample code: DbNodes_listByCloudVmCluster. @@ -483,7 +953,7 @@ public final class DbNodesListByCloudVmClusterSamples { */ public final class DbServersListByCloudExadataInfrastructureSamples { /* - * x-ms-original-file: 2025-03-01/dbServers_listByParent.json + * x-ms-original-file: 2025-09-01/dbServers_listByParent.json */ /** * Sample code: DbServers_listByCloudExadataInfrastructure. @@ -497,24 +967,80 @@ public final class DbServersListByCloudExadataInfrastructureSamples { } ``` -### DbSystemShapes_ListByLocation +### DbSystemShapes_ListByLocation + +```java +/** + * Samples for DbSystemShapes ListByLocation. + */ +public final class DbSystemShapesListByLocationSamples { + /* + * x-ms-original-file: 2025-09-01/DbSystemShapes_ListByLocation_MinimumSet_Gen.json + */ + /** + * Sample code: List DbSystemShapes by location - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listDbSystemShapesByLocationGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystemShapes().listByLocation("eastus", null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/DbSystemShapes_ListByLocation_MaximumSet_Gen.json + */ + /** + * Sample code: List DbSystemShapes by location - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listDbSystemShapesByLocationGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystemShapes().listByLocation("eastus", "ymedsvqavemtixp", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dbSystemShapes_listByLocation.json + */ + /** + * Sample code: DbSystemShapes_listByLocation. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + dbSystemShapesListByLocation(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystemShapes().listByLocation("eastus", null, null, com.azure.core.util.Context.NONE); + } +} +``` + +### DbVersions_ListByLocation ```java +import com.azure.resourcemanager.oracledatabase.models.BaseDbSystemShapes; +import com.azure.resourcemanager.oracledatabase.models.ShapeFamilyType; +import com.azure.resourcemanager.oracledatabase.models.StorageManagementType; + /** - * Samples for DbSystemShapes ListByLocation. + * Samples for DbVersions ListByLocation. */ -public final class DbSystemShapesListByLocationSamples { +public final class DbVersionsListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/dbSystemShapes_listByLocation.json + * x-ms-original-file: 2025-09-01/DbVersions_ListByLocation_MaximumSet_Gen.json */ /** - * Sample code: DbSystemShapes_listByLocation. + * Sample code: DbVersions_ListByLocation_MaximumSet. * * @param manager Entry point to OracleDatabaseManager. */ public static void - dbSystemShapesListByLocation(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.dbSystemShapes().listByLocation("eastus", null, com.azure.core.util.Context.NONE); + dbVersionsListByLocationMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbVersions() + .listByLocation("eastus", BaseDbSystemShapes.VMSTANDARD_X86, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Oracle.Database/dbSystems/dbsystem1", + StorageManagementType.LVM, true, true, ShapeFamilyType.VIRTUAL_MACHINE, + com.azure.core.util.Context.NONE); } } ``` @@ -531,7 +1057,7 @@ import java.util.Arrays; */ public final class ExadbVmClustersRemoveVmsSamples { /* - * x-ms-original-file: 2025-03-01/ExadbVmClusters_RemoveVms_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExadbVmClusters_RemoveVms_MaximumSet_Gen.json */ /** * Sample code: ExadbVmClusters_RemoveVms_MaximumSet. @@ -541,7 +1067,24 @@ public final class ExadbVmClustersRemoveVmsSamples { public static void exadbVmClustersRemoveVmsMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exadbVmClusters() - .removeVms("rgopenapi", "vmClusterName", new RemoveVirtualMachineFromExadbVmClusterDetails() + .removeVms("rgopenapi", "exadbVmClusterName1", new RemoveVirtualMachineFromExadbVmClusterDetails() + .withDbNodes(Arrays.asList(new DbNodeDetails().withDbNodeId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Oracle.Database/exadbVmClusters/vmCluster/dbNodes/dbNodeName"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExadbVmClusters_RemoveVms_MinimumSet_Gen.json + */ + /** + * Sample code: ExadbVmClusters_RemoveVms_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exadbVmClustersRemoveVmsMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exadbVmClusters() + .removeVms("rgopenapi", "vmCluster1", new RemoveVirtualMachineFromExadbVmClusterDetails() .withDbNodes(Arrays.asList(new DbNodeDetails().withDbNodeId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Oracle.Database/exadbVmClusters/vmCluster/dbNodes/dbNodeName"))), com.azure.core.util.Context.NONE); @@ -560,7 +1103,7 @@ import com.azure.resourcemanager.oracledatabase.models.DbNodeActionEnum; */ public final class ExascaleDbNodesActionSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbNodes_Action_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_Action_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbNodes_Action_MaximumSet. @@ -570,8 +1113,23 @@ public final class ExascaleDbNodesActionSamples { public static void exascaleDbNodesActionMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exascaleDbNodes() - .action("rgopenapi", "vmClusterName", "dbNodeName", new DbNodeAction().withAction(DbNodeActionEnum.START), - com.azure.core.util.Context.NONE); + .action("rgopenapi", "exadbvmcluster1", "exascaledbnode1", + new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_Action_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbNodes_Action_MinimumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + exascaleDbNodesActionMinimumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbNodes() + .action("rgopenapi", "exadbvmcluster1", "exascaledbnode1", + new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); } } ``` @@ -584,7 +1142,7 @@ public final class ExascaleDbNodesActionSamples { */ public final class ExascaleDbNodesListByParentSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbNodes_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_ListByParent_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbNodes_ListByParent_MaximumSet. @@ -593,7 +1151,20 @@ public final class ExascaleDbNodesListByParentSamples { */ public static void exascaleDbNodesListByParentMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.exascaleDbNodes().listByParent("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE); + manager.exascaleDbNodes().listByParent("rgopenapi", "vmcluster", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_ListByParent_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbNodes_ListByParent_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbNodesListByParentMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbNodes().listByParent("rgopenapi", "vmcluster", com.azure.core.util.Context.NONE); } } ``` @@ -612,7 +1183,24 @@ import java.util.Map; */ public final class ExascaleDbStorageVaultsCreateSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_Create_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Create_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_Create_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsCreateMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults() + .define("storagevault1") + .withRegion("odxgtv") + .withExistingResourceGroup("rgopenapi") + .create(); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Create_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_Create_MaximumSet. @@ -622,18 +1210,17 @@ public final class ExascaleDbStorageVaultsCreateSamples { public static void exascaleDbStorageVaultsCreateMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exascaleDbStorageVaults() - .define("vmClusterName") - .withRegion("ltguhzffucaytqg") + .define("storagevault1") + .withRegion("zuoudqbvlxerpjtlfooyqlb") .withExistingResourceGroup("rgopenapi") - .withTags(mapOf("key7827", "fakeTokenPlaceholder")) + .withTags(mapOf("key4521", "fakeTokenPlaceholder")) .withProperties(new ExascaleDbStorageVaultProperties().withAdditionalFlashCacheInPercent(0) - .withDescription("dmnvnnduldfmrmkkvvsdtuvmsmruxzzpsfdydgytlckutfozephjygjetrauvbdfcwmti") - .withDisplayName( - "hbsybtelyvhpalemszcvartlhwvskrnpiveqfblvkdihoytqaotdgsgauvgivzaftfgeiwlyeqzssicwrrnlxtsmeakbcsxabjlt") - .withHighCapacityDatabaseStorageInput(new ExascaleDbStorageInputDetails().withTotalSizeInGbs(21)) - .withTimeZone( - "ltrbozwxjunncicrtzjrpqnqrcjgghohztrdlbfjrbkpenopyldwolslwgrgumjfkyovvkzcuxjujuxtjjzubvqvnhrswnbdgcbslopeofmtepbrrlymqwwszvsglmyuvlcuejshtpokirwklnwpcykhyinjmlqvxtyixlthtdishhmtipbygsayvgqzfrprgppylydlcskbmvwctxifdltippfvsxiughqbojqpqrekxsotnqsk")) - .withZones(Arrays.asList("qk")) + .withDescription( + "kgqvxvtegzwyppegpvqxnlslvetbjlgveofcpjddenhbpocyzwtswaeaetqkipcxyhedsymuljalirryldlbviuvidhssyiwodacajjnbpkbvbvzwzsjctsidchalyjkievnivikwnnypaojcvhmokddstxwiqxmbfmbvglfimseguwyvibwzllggjtwejdfgezoeuvjjbsyfozswihydzuscjrqnklewongumiljeordhqlsclwlmftzdoey") + .withDisplayName("storagevault1") + .withHighCapacityDatabaseStorageInput(new ExascaleDbStorageInputDetails().withTotalSizeInGbs(1)) + .withTimeZone("hyjcftlal")) + .withZones(Arrays.asList("npqjhyekyumfybqas")) .create(); } @@ -659,7 +1246,7 @@ public final class ExascaleDbStorageVaultsCreateSamples { */ public final class ExascaleDbStorageVaultsDeleteSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Delete_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_Delete_MaximumSet. @@ -668,7 +1255,20 @@ public final class ExascaleDbStorageVaultsDeleteSamples { */ public static void exascaleDbStorageVaultsDeleteMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.exascaleDbStorageVaults().delete("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE); + manager.exascaleDbStorageVaults().delete("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_Delete_MinimumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsDeleteMinimumSet( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults().delete("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE); } } ``` @@ -681,7 +1281,7 @@ public final class ExascaleDbStorageVaultsDeleteSamples { */ public final class ExascaleDbStorageVaultsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Get_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_Get_MaximumSet. @@ -691,7 +1291,21 @@ public final class ExascaleDbStorageVaultsGetByResourceGroupSamples { public static void exascaleDbStorageVaultsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exascaleDbStorageVaults() - .getByResourceGroupWithResponse("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE); + .getByResourceGroupWithResponse("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Get_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_Get_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsGetMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults() + .getByResourceGroupWithResponse("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE); } } ``` @@ -704,7 +1318,20 @@ public final class ExascaleDbStorageVaultsGetByResourceGroupSamples { */ public final class ExascaleDbStorageVaultsListSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_ListBySubscription_MaximumSet. @@ -726,7 +1353,7 @@ public final class ExascaleDbStorageVaultsListSamples { */ public final class ExascaleDbStorageVaultsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_ListByResourceGroup_MaximumSet. @@ -737,6 +1364,19 @@ public final class ExascaleDbStorageVaultsListByResourceGroupSamples { com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exascaleDbStorageVaults().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } } ``` @@ -752,7 +1392,7 @@ import java.util.Map; */ public final class ExascaleDbStorageVaultsUpdateSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Update_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_Update_MaximumSet. @@ -762,9 +1402,25 @@ public final class ExascaleDbStorageVaultsUpdateSamples { public static void exascaleDbStorageVaultsUpdateMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { ExascaleDbStorageVault resource = manager.exascaleDbStorageVaults() - .getByResourceGroupWithResponse("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key6486", "fakeTokenPlaceholder")).apply(); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Update_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_Update_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsUpdateMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + ExascaleDbStorageVault resource = manager.exascaleDbStorageVaults() + .getByResourceGroupWithResponse("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withTags(mapOf("key6179", "fakeTokenPlaceholder")).apply(); + resource.update().apply(); } // Use "Map.of" if available @@ -789,7 +1445,7 @@ public final class ExascaleDbStorageVaultsUpdateSamples { */ public final class FlexComponentsGetSamples { /* - * x-ms-original-file: 2025-03-01/FlexComponents_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/FlexComponents_Get_MaximumSet_Gen.json */ /** * Sample code: FlexComponents_Get_MaximumSet. @@ -798,7 +1454,7 @@ public final class FlexComponentsGetSamples { */ public static void flexComponentsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.flexComponents().getWithResponse("eastus", "flexComponent", com.azure.core.util.Context.NONE); + manager.flexComponents().getWithResponse("eastus", "flexname1", com.azure.core.util.Context.NONE); } } ``` @@ -813,7 +1469,7 @@ import com.azure.resourcemanager.oracledatabase.models.SystemShapes; */ public final class FlexComponentsListByParentSamples { /* - * x-ms-original-file: 2025-03-01/FlexComponents_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/FlexComponents_ListByParent_MaximumSet_Gen.json */ /** * Sample code: FlexComponents_ListByParent_MaximumSet. @@ -822,7 +1478,20 @@ public final class FlexComponentsListByParentSamples { */ public static void flexComponentsListByParentMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.flexComponents().listByParent("eastus", SystemShapes.EXADATA_X11M, com.azure.core.util.Context.NONE); + manager.flexComponents().listByParent("eastus", SystemShapes.EXADATA_X9M, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/FlexComponents_ListByParent_MinimumSet_Gen.json + */ + /** + * Sample code: FlexComponents_ListByParent_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void flexComponentsListByParentMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.flexComponents().listByParent("eastus", null, com.azure.core.util.Context.NONE); } } ``` @@ -835,7 +1504,7 @@ public final class FlexComponentsListByParentSamples { */ public final class GiMinorVersionsGetSamples { /* - * x-ms-original-file: 2025-03-01/GiMinorVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiMinorVersions_Get_MaximumSet_Gen.json */ /** * Sample code: GiMinorVersions_Get_MaximumSet. @@ -845,7 +1514,7 @@ public final class GiMinorVersionsGetSamples { public static void giMinorVersionsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.giMinorVersions() - .getWithResponse("eastus", "giVersionName", "giMinorVersionName", com.azure.core.util.Context.NONE); + .getWithResponse("eastus", "19.0.0.0", "minorversion", com.azure.core.util.Context.NONE); } } ``` @@ -860,7 +1529,7 @@ import com.azure.resourcemanager.oracledatabase.models.ShapeFamily; */ public final class GiMinorVersionsListByParentSamples { /* - * x-ms-original-file: 2025-03-01/GiMinorVersions_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiMinorVersions_ListByParent_MaximumSet_Gen.json */ /** * Sample code: GiMinorVersions_ListByParent_MaximumSet. @@ -870,8 +1539,21 @@ public final class GiMinorVersionsListByParentSamples { public static void giMinorVersionsListByParentMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.giMinorVersions() - .listByParent("eastus", "giVersionName", ShapeFamily.fromString("rtfcosvtlpeeqoicsjqggtgc"), null, - com.azure.core.util.Context.NONE); + .listByParent("eastus", "name1", ShapeFamily.EXADATA, "zone1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/GiMinorVersions_ListByParent_MinimumSet_Gen.json + */ + /** + * Sample code: GiMinorVersions_ListByParent_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void giMinorVersionsListByParentMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.giMinorVersions() + .listByParent("eastus", "giMinorVersionName", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -886,32 +1568,30 @@ import com.azure.resourcemanager.oracledatabase.models.SystemShapes; */ public final class GiVersionsListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/GiVersions_ListByLocation_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiVersions_ListByLocation_MinimumSet_Gen.json */ /** - * Sample code: List GiVersions by location - generated by [MaximumSet] rule. + * Sample code: GiVersions_ListByLocation_MinimumSet. * * @param manager Entry point to OracleDatabaseManager. */ - public static void listGiVersionsByLocationGeneratedByMaximumSetRule( - com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.giVersions() - .listByLocation("eastus", SystemShapes.fromString( - "osixsklyaauhoqnkxvnvsqeqenhzogntqnpubldrrfvqncwetdtwqwjjcvspwhgecbimdlulwcubikebrdzmidrucgtsuqvytkqutmbyrvvyioxpocpmuwiivyanjzucaegihztluuvpznzaoakfsselumhhsvrtrbzwpjhcihsvyouonlxdluwhqfxoqvgthkaxppbydtqjntscgzbivfdcaobbkthrbdjwpejirqmbly"), - null, com.azure.core.util.Context.NONE); + public static void + giVersionsListByLocationMinimumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.giVersions().listByLocation("eastus", null, null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-03-01/GiVersions_ListByLocation_MinimumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiVersions_ListByLocation_MaximumSet_Gen.json */ /** - * Sample code: List GiVersions by location - generated by [MinimumSet] rule. + * Sample code: GiVersions_ListByLocation_MaximumSet. * * @param manager Entry point to OracleDatabaseManager. */ - public static void listGiVersionsByLocationGeneratedByMinimumSetRule( - com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.giVersions().listByLocation("eastus", null, null, com.azure.core.util.Context.NONE); + public static void + giVersionsListByLocationMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.giVersions() + .listByLocation("eastus", SystemShapes.EXADATA_X9M, "hpzuyaemum", null, com.azure.core.util.Context.NONE); } } ``` @@ -924,7 +1604,20 @@ public final class GiVersionsListByLocationSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-03-01/operations_list.json + * x-ms-original-file: 2025-09-01/Operations_List_MaximumSet_Gen.json + */ + /** + * Sample code: List Operations - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listOperationsGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/operations_list.json */ /** * Sample code: Operations_list. @@ -934,6 +1627,19 @@ public final class OperationsListSamples { public static void operationsList(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/Operations_List_MinimumSet_Gen.json + */ + /** + * Sample code: List Operations - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listOperationsGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } } ``` @@ -948,7 +1654,7 @@ import java.util.Arrays; */ public final class OracleSubscriptionsAddAzureSubscriptionsSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_addAzureSubscriptions.json + * x-ms-original-file: 2025-09-01/oracleSubscriptions_addAzureSubscriptions.json */ /** * Sample code: OracleSubscriptions_addAzureSubscriptions. @@ -961,6 +1667,36 @@ public final class OracleSubscriptionsAddAzureSubscriptionsSamples { .addAzureSubscriptions(new AzureSubscriptions().withAzureSubscriptionIds( Arrays.asList("00000000-0000-0000-0000-000000000001")), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_AddAzureSubscriptions_MaximumSet_Gen.json + */ + /** + * Sample code: Add Azure Subscriptions to the OracleSubscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void addAzureSubscriptionsToTheOracleSubscriptionGeneratedByMaximumSetRule( + 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); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_AddAzureSubscriptions_MinimumSet_Gen.json + */ + /** + * Sample code: Add Azure Subscriptions to the OracleSubscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void addAzureSubscriptionsToTheOracleSubscriptionGeneratedByMinimumSetRule( + 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); + } } ``` @@ -972,7 +1708,33 @@ public final class OracleSubscriptionsAddAzureSubscriptionsSamples { */ public final class OracleSubscriptionsListActivationLinksSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_listActivationLinks.json + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListActivationLinks_MaximumSet_Gen.json + */ + /** + * Sample code: List Activation Links for the Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listActivationLinksForTheOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listActivationLinks(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListActivationLinks_MinimumSet_Gen.json + */ + /** + * Sample code: List Activation Links for the Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listActivationLinksForTheOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listActivationLinks(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/oracleSubscriptions_listActivationLinks.json */ /** * Sample code: OracleSubscriptions_listActivationLinks. @@ -994,7 +1756,7 @@ public final class OracleSubscriptionsListActivationLinksSamples { */ public final class OracleSubscriptionsListCloudAccountDetailsSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_listCloudAccountDetails.json + * x-ms-original-file: 2025-09-01/oracleSubscriptions_listCloudAccountDetails.json */ /** * Sample code: OracleSubscriptions_listCloudAccountDetails. @@ -1005,6 +1767,32 @@ public final class OracleSubscriptionsListCloudAccountDetailsSamples { com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.oracleSubscriptions().listCloudAccountDetails(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListCloudAccountDetails_MaximumSet_Gen.json + */ + /** + * Sample code: List Cloud Account details for the Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listCloudAccountDetailsForTheOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listCloudAccountDetails(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListCloudAccountDetails_MinimumSet_Gen.json + */ + /** + * Sample code: List Cloud Account details for the Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listCloudAccountDetailsForTheOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listCloudAccountDetails(com.azure.core.util.Context.NONE); + } } ``` @@ -1016,7 +1804,7 @@ public final class OracleSubscriptionsListCloudAccountDetailsSamples { */ public final class OracleSubscriptionsListSaasSubscriptionDetailsSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_listSaasSubscriptionDetails.json + * x-ms-original-file: 2025-09-01/oracleSubscriptions_listSaasSubscriptionDetails.json */ /** * Sample code: OracleSubscriptions_listSaasSubscriptionDetails. @@ -1027,20 +1815,49 @@ public final class OracleSubscriptionsListSaasSubscriptionDetailsSamples { com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.oracleSubscriptions().listSaasSubscriptionDetails(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListSaasSubscriptionDetails_MaximumSet_Gen.json + */ + /** + * Sample code: List Saas Subscription details for the Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listSaasSubscriptionDetailsForTheOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listSaasSubscriptionDetails(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListSaasSubscriptionDetails_MinimumSet_Gen.json + */ + /** + * Sample code: List Saas Subscription details for the Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listSaasSubscriptionDetailsForTheOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listSaasSubscriptionDetails(com.azure.core.util.Context.NONE); + } } ``` ### OracleSubscriptions_Update ```java +import com.azure.resourcemanager.oracledatabase.models.Intent; import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdate; +import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdateProperties; +import com.azure.resourcemanager.oracledatabase.models.PlanUpdate; /** * Samples for OracleSubscriptions Update. */ public final class OracleSubscriptionsUpdateSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_patch.json + * x-ms-original-file: 2025-09-01/oracleSubscriptions_patch.json */ /** * Sample code: OracleSubscriptions_update. @@ -1051,6 +1868,41 @@ public final class OracleSubscriptionsUpdateSamples { oracleSubscriptionsUpdate(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.oracleSubscriptions().update(new OracleSubscriptionUpdate(), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_Update_MinimumSet_Gen.json + */ + /** + * Sample code: Patch Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().update(new OracleSubscriptionUpdate(), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Patch Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions() + .update(new OracleSubscriptionUpdate() + .withPlan(new PlanUpdate().withName("klnnbggrxhvvaiajvjx") + .withPublisher("xvsarzadrjqergudsohjk") + .withProduct("hivkczjyrimjilbmqj") + .withPromotionCode("fakeTokenPlaceholder") + .withVersion("ueudckjmuqpjvsmmenzyflgpa")) + .withProperties(new OracleSubscriptionUpdateProperties().withProductCode("fakeTokenPlaceholder") + .withIntent(Intent.RETAIN)), + com.azure.core.util.Context.NONE); + } } ``` @@ -1062,7 +1914,7 @@ public final class OracleSubscriptionsUpdateSamples { */ public final class VirtualNetworkAddressesListByCloudVmClusterSamples { /* - * x-ms-original-file: 2025-03-01/virtualNetworkAddresses_listByParent.json + * x-ms-original-file: 2025-09-01/virtualNetworkAddresses_listByParent.json */ /** * Sample code: VirtualNetworkAddresses_listByCloudVmCluster. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/pom.xml b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/pom.xml index 1e8d5f0d7ae3..f9ef367fc276 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/pom.xml +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-oracledatabase - 1.2.0-beta.1 + 1.2.0 jar Microsoft Azure SDK for Oracle Database Management - This package contains Microsoft Azure SDK for Oracle Database Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2025-03-01. + This package contains Microsoft Azure SDK for Oracle Database Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2025-09-01. https://github.com/Azure/azure-sdk-for-java 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 0692a8127a2d..31c6de17d35d 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 @@ -35,6 +35,8 @@ import com.azure.resourcemanager.oracledatabase.implementation.DbNodesImpl; import com.azure.resourcemanager.oracledatabase.implementation.DbServersImpl; import com.azure.resourcemanager.oracledatabase.implementation.DbSystemShapesImpl; +import com.azure.resourcemanager.oracledatabase.implementation.DbSystemsImpl; +import com.azure.resourcemanager.oracledatabase.implementation.DbVersionsImpl; import com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateViewsImpl; import com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateZonesImpl; import com.azure.resourcemanager.oracledatabase.implementation.ExadbVmClustersImpl; @@ -43,9 +45,11 @@ import com.azure.resourcemanager.oracledatabase.implementation.FlexComponentsImpl; import com.azure.resourcemanager.oracledatabase.implementation.GiMinorVersionsImpl; import com.azure.resourcemanager.oracledatabase.implementation.GiVersionsImpl; +import com.azure.resourcemanager.oracledatabase.implementation.NetworkAnchorsImpl; import com.azure.resourcemanager.oracledatabase.implementation.OperationsImpl; import com.azure.resourcemanager.oracledatabase.implementation.OracleDatabaseManagementClientBuilder; import com.azure.resourcemanager.oracledatabase.implementation.OracleSubscriptionsImpl; +import com.azure.resourcemanager.oracledatabase.implementation.ResourceAnchorsImpl; import com.azure.resourcemanager.oracledatabase.implementation.SystemVersionsImpl; import com.azure.resourcemanager.oracledatabase.implementation.VirtualNetworkAddressesImpl; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackups; @@ -58,6 +62,8 @@ import com.azure.resourcemanager.oracledatabase.models.DbNodes; import com.azure.resourcemanager.oracledatabase.models.DbServers; import com.azure.resourcemanager.oracledatabase.models.DbSystemShapes; +import com.azure.resourcemanager.oracledatabase.models.DbSystems; +import com.azure.resourcemanager.oracledatabase.models.DbVersions; import com.azure.resourcemanager.oracledatabase.models.DnsPrivateViews; import com.azure.resourcemanager.oracledatabase.models.DnsPrivateZones; import com.azure.resourcemanager.oracledatabase.models.ExadbVmClusters; @@ -66,8 +72,10 @@ import com.azure.resourcemanager.oracledatabase.models.FlexComponents; import com.azure.resourcemanager.oracledatabase.models.GiMinorVersions; import com.azure.resourcemanager.oracledatabase.models.GiVersions; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchors; import com.azure.resourcemanager.oracledatabase.models.Operations; import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptions; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchors; import com.azure.resourcemanager.oracledatabase.models.SystemVersions; import com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddresses; import java.time.Duration; @@ -126,6 +134,14 @@ public final class OracleDatabaseManager { private ExascaleDbStorageVaults exascaleDbStorageVaults; + private NetworkAnchors networkAnchors; + + private ResourceAnchors resourceAnchors; + + private DbSystems dbSystems; + + private DbVersions dbVersions; + private final OracleDatabaseManagementClient clientObject; private OracleDatabaseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -612,6 +628,54 @@ public ExascaleDbStorageVaults exascaleDbStorageVaults() { return exascaleDbStorageVaults; } + /** + * Gets the resource collection API of NetworkAnchors. It manages NetworkAnchor. + * + * @return Resource collection API of NetworkAnchors. + */ + public NetworkAnchors networkAnchors() { + if (this.networkAnchors == null) { + this.networkAnchors = new NetworkAnchorsImpl(clientObject.getNetworkAnchors(), this); + } + return networkAnchors; + } + + /** + * Gets the resource collection API of ResourceAnchors. It manages ResourceAnchor. + * + * @return Resource collection API of ResourceAnchors. + */ + public ResourceAnchors resourceAnchors() { + if (this.resourceAnchors == null) { + this.resourceAnchors = new ResourceAnchorsImpl(clientObject.getResourceAnchors(), this); + } + return resourceAnchors; + } + + /** + * Gets the resource collection API of DbSystems. It manages DbSystem. + * + * @return Resource collection API of DbSystems. + */ + public DbSystems dbSystems() { + if (this.dbSystems == null) { + this.dbSystems = new DbSystemsImpl(clientObject.getDbSystems(), this); + } + return dbSystems; + } + + /** + * Gets the resource collection API of DbVersions. + * + * @return Resource collection API of DbVersions. + */ + public DbVersions dbVersions() { + if (this.dbVersions == null) { + this.dbVersions = new DbVersionsImpl(clientObject.getDbVersions(), this); + } + return dbVersions; + } + /** * Gets wrapped service client OracleDatabaseManagementClient providing direct access to the underlying * auto-generated API implementation, based on Azure REST API. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabasesClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabasesClient.java index 5d4cafe76309..b40590ba8476 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabasesClient.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabasesClient.java @@ -13,6 +13,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseInner; import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseWalletFileInner; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleAction; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdate; import com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryConfigurationDetails; import com.azure.resourcemanager.oracledatabase.models.GenerateAutonomousDatabaseWalletDetails; @@ -608,4 +609,66 @@ AutonomousDatabaseInner changeDisasterRecoveryConfiguration(String resourceGroup @ServiceMethod(returns = ReturnType.SINGLE) AutonomousDatabaseInner changeDisasterRecoveryConfiguration(String resourceGroupName, String autonomousdatabasename, DisasterRecoveryConfigurationDetails body, Context context); + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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, AutonomousDatabaseInner> beginAction(String resourceGroupName, + String autonomousdatabasename, AutonomousDatabaseLifecycleAction body); + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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, AutonomousDatabaseInner> beginAction(String resourceGroupName, + String autonomousdatabasename, AutonomousDatabaseLifecycleAction body, Context context); + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AutonomousDatabaseInner action(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body); + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AutonomousDatabaseInner action(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body, Context context); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/CloudExadataInfrastructuresClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/CloudExadataInfrastructuresClient.java index 6515bc1882cd..1d79ee1445e5 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/CloudExadataInfrastructuresClient.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/CloudExadataInfrastructuresClient.java @@ -13,6 +13,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.oracledatabase.fluent.models.CloudExadataInfrastructureInner; import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdate; +import com.azure.resourcemanager.oracledatabase.models.ConfigureExascaleCloudExadataInfrastructureDetails; /** * An instance of this class provides access to all the operations defined in CloudExadataInfrastructuresClient. @@ -332,4 +333,68 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String @ServiceMethod(returns = ReturnType.SINGLE) CloudExadataInfrastructureInner addStorageCapacity(String resourceGroupName, String cloudexadatainfrastructurename, Context context); + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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, CloudExadataInfrastructureInner> beginConfigureExascale( + String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body); + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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, CloudExadataInfrastructureInner> beginConfigureExascale( + String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body, Context context); + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CloudExadataInfrastructureInner configureExascale(String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body); + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CloudExadataInfrastructureInner configureExascale(String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body, Context context); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemShapesClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemShapesClient.java index fef679a32b54..d4f9618be0c4 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemShapesClient.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemShapesClient.java @@ -59,6 +59,7 @@ public interface DbSystemShapesClient { * * @param location The name of the Azure region. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @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. @@ -66,5 +67,6 @@ public interface DbSystemShapesClient { * @return the response of a DbSystemShape list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocation(String location, String zone, Context context); + PagedIterable listByLocation(String location, String zone, String shapeAttribute, + Context context); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemsClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemsClient.java new file mode 100644 index 000000000000..652883c14bcb --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemsClient.java @@ -0,0 +1,268 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemInner; +import com.azure.resourcemanager.oracledatabase.models.DbSystemUpdate; + +/** + * An instance of this class provides access to all the operations defined in DbSystemsClient. + */ +public interface DbSystemsClient { + /** + * List DbSystem resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List DbSystem resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, DbSystemInner> beginCreateOrUpdate(String resourceGroupName, + String dbSystemName, DbSystemInner resource); + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, DbSystemInner> beginCreateOrUpdate(String resourceGroupName, + String dbSystemName, DbSystemInner resource, Context context); + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DbSystemInner createOrUpdate(String resourceGroupName, String dbSystemName, DbSystemInner resource); + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DbSystemInner createOrUpdate(String resourceGroupName, String dbSystemName, DbSystemInner resource, + Context context); + + /** + * Get a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbSystem along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String dbSystemName, + Context context); + + /** + * Get a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbSystem. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DbSystemInner getByResourceGroup(String resourceGroupName, String dbSystemName); + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, DbSystemInner> beginUpdate(String resourceGroupName, String dbSystemName, + DbSystemUpdate properties); + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, DbSystemInner> beginUpdate(String resourceGroupName, String dbSystemName, + DbSystemUpdate properties, Context context); + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DbSystemInner update(String resourceGroupName, String dbSystemName, DbSystemUpdate properties); + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DbSystemInner update(String resourceGroupName, String dbSystemName, DbSystemUpdate properties, Context context); + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String dbSystemName); + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @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> beginDelete(String resourceGroupName, String dbSystemName, Context context); + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String dbSystemName); + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String dbSystemName, Context context); + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbVersionsClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbVersionsClient.java new file mode 100644 index 000000000000..b58447329163 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbVersionsClient.java @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner; +import com.azure.resourcemanager.oracledatabase.models.BaseDbSystemShapes; +import com.azure.resourcemanager.oracledatabase.models.ShapeFamilyType; +import com.azure.resourcemanager.oracledatabase.models.StorageManagementType; + +/** + * An instance of this class provides access to all the operations defined in DbVersionsClient. + */ +public interface DbVersionsClient { + /** + * Get a DbVersion. + * + * @param location The name of the Azure region. + * @param dbversionsname DbVersion name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbVersion along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String location, String dbversionsname, Context context); + + /** + * Get a DbVersion. + * + * @param location The name of the Azure region. + * @param dbversionsname DbVersion name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbVersion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DbVersionInner get(String location, String dbversionsname); + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocation(String location); + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @param dbSystemShape If provided, filters the results to the set of database versions which are supported for the + * given shape. e.g., VM.Standard.E5.Flex. + * @param dbSystemId The DB system AzureId. If provided, filters the results to the set of database versions which + * are supported for the DB system. + * @param storageManagement The DB system storage management option. Used to list database versions available for + * that storage manager. Valid values are ASM and LVM. + * @param isUpgradeSupported If true, filters the results to the set of database versions which are supported for + * Upgrade. + * @param isDatabaseSoftwareImageSupported If true, filters the results to the set of Oracle Database versions that + * are supported for the database software images. + * @param shapeFamily If provided, filters the results to the set of database versions which are supported for the + * given shape family. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByLocation(String location, BaseDbSystemShapes dbSystemShape, String dbSystemId, + StorageManagementType storageManagement, Boolean isUpgradeSupported, Boolean isDatabaseSoftwareImageSupported, + ShapeFamilyType shapeFamily, Context context); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/GiVersionsClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/GiVersionsClient.java index eb1da495c8fa..acce8c46e81d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/GiVersionsClient.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/GiVersionsClient.java @@ -61,6 +61,7 @@ public interface GiVersionsClient { * @param location The name of the Azure region. * @param shape If provided, filters the results for the given shape. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -68,5 +69,6 @@ public interface GiVersionsClient { * @return the response of a GiVersion list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByLocation(String location, SystemShapes shape, String zone, Context context); + PagedIterable listByLocation(String location, SystemShapes shape, String zone, + String shapeAttribute, Context context); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/NetworkAnchorsClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/NetworkAnchorsClient.java new file mode 100644 index 000000000000..15ce76886a51 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/NetworkAnchorsClient.java @@ -0,0 +1,269 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdate; + +/** + * An instance of this class provides access to all the operations defined in NetworkAnchorsClient. + */ +public interface NetworkAnchorsClient { + /** + * List NetworkAnchor resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List NetworkAnchor resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkAnchorInner> beginCreateOrUpdate(String resourceGroupName, + String networkAnchorName, NetworkAnchorInner resource); + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkAnchorInner> beginCreateOrUpdate(String resourceGroupName, + String networkAnchorName, NetworkAnchorInner resource, Context context); + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkAnchorInner createOrUpdate(String resourceGroupName, String networkAnchorName, NetworkAnchorInner resource); + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkAnchorInner createOrUpdate(String resourceGroupName, String networkAnchorName, NetworkAnchorInner resource, + Context context); + + /** + * Get a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a NetworkAnchor along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String networkAnchorName, + Context context); + + /** + * Get a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a NetworkAnchor. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkAnchorInner getByResourceGroup(String resourceGroupName, String networkAnchorName); + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkAnchorInner> beginUpdate(String resourceGroupName, + String networkAnchorName, NetworkAnchorUpdate properties); + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkAnchorInner> beginUpdate(String resourceGroupName, + String networkAnchorName, NetworkAnchorUpdate properties, Context context); + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkAnchorInner update(String resourceGroupName, String networkAnchorName, NetworkAnchorUpdate properties); + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkAnchorInner update(String resourceGroupName, String networkAnchorName, NetworkAnchorUpdate properties, + Context context); + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String networkAnchorName); + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @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> beginDelete(String resourceGroupName, String networkAnchorName, Context context); + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkAnchorName); + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String networkAnchorName, Context context); + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseManagementClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseManagementClient.java index a9639a16d442..985428f71492 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseManagementClient.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseManagementClient.java @@ -199,4 +199,32 @@ public interface OracleDatabaseManagementClient { * @return the ExascaleDbStorageVaultsClient object. */ ExascaleDbStorageVaultsClient getExascaleDbStorageVaults(); + + /** + * Gets the NetworkAnchorsClient object to access its operations. + * + * @return the NetworkAnchorsClient object. + */ + NetworkAnchorsClient getNetworkAnchors(); + + /** + * Gets the ResourceAnchorsClient object to access its operations. + * + * @return the ResourceAnchorsClient object. + */ + ResourceAnchorsClient getResourceAnchors(); + + /** + * Gets the DbSystemsClient object to access its operations. + * + * @return the DbSystemsClient object. + */ + DbSystemsClient getDbSystems(); + + /** + * Gets the DbVersionsClient object to access its operations. + * + * @return the DbVersionsClient object. + */ + DbVersionsClient getDbVersions(); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ResourceAnchorsClient.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ResourceAnchorsClient.java new file mode 100644 index 000000000000..7366588cf43b --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ResourceAnchorsClient.java @@ -0,0 +1,271 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorUpdate; + +/** + * An instance of this class provides access to all the operations defined in ResourceAnchorsClient. + */ +public interface ResourceAnchorsClient { + /** + * List ResourceAnchor resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * List ResourceAnchor resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ResourceAnchorInner> beginCreateOrUpdate(String resourceGroupName, + String resourceAnchorName, ResourceAnchorInner resource); + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ResourceAnchorInner> beginCreateOrUpdate(String resourceGroupName, + String resourceAnchorName, ResourceAnchorInner resource, Context context); + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ResourceAnchorInner createOrUpdate(String resourceGroupName, String resourceAnchorName, + ResourceAnchorInner resource); + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ResourceAnchorInner createOrUpdate(String resourceGroupName, String resourceAnchorName, + ResourceAnchorInner resource, Context context); + + /** + * Get a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ResourceAnchor along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String resourceAnchorName, + Context context); + + /** + * Get a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ResourceAnchor. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ResourceAnchorInner getByResourceGroup(String resourceGroupName, String resourceAnchorName); + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ResourceAnchorInner> beginUpdate(String resourceGroupName, + String resourceAnchorName, ResourceAnchorUpdate properties); + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ResourceAnchorInner> beginUpdate(String resourceGroupName, + String resourceAnchorName, ResourceAnchorUpdate properties, Context context); + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ResourceAnchorInner update(String resourceGroupName, String resourceAnchorName, ResourceAnchorUpdate properties); + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ResourceAnchorInner update(String resourceGroupName, String resourceAnchorName, ResourceAnchorUpdate properties, + Context context); + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceAnchorName); + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @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> beginDelete(String resourceGroupName, String resourceAnchorName, + Context context); + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceAnchorName); + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceAnchorName, Context context); + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbSystemInner.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbSystemInner.java new file mode 100644 index 000000000000..997afd24f54c --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbSystemInner.java @@ -0,0 +1,211 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.oracledatabase.models.DbSystemProperties; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * DbSystem resource definition. + */ +@Fluent +public final class DbSystemInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private DbSystemProperties properties; + + /* + * The availability zones. + */ + private List zones; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of DbSystemInner class. + */ + public DbSystemInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public DbSystemProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the DbSystemInner object itself. + */ + public DbSystemInner withProperties(DbSystemProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the zones property: The availability zones. + * + * @return the zones value. + */ + public List zones() { + return this.zones; + } + + /** + * Set the zones property: The availability zones. + * + * @param zones the zones value to set. + * @return the DbSystemInner object itself. + */ + public DbSystemInner withZones(List zones) { + this.zones = zones; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbSystemInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbSystemInner 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 DbSystemInner. + */ + public static DbSystemInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbSystemInner deserializedDbSystemInner = new DbSystemInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedDbSystemInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedDbSystemInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedDbSystemInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedDbSystemInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedDbSystemInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedDbSystemInner.properties = DbSystemProperties.fromJson(reader); + } else if ("zones".equals(fieldName)) { + List zones = reader.readArray(reader1 -> reader1.getString()); + deserializedDbSystemInner.zones = zones; + } else if ("systemData".equals(fieldName)) { + deserializedDbSystemInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedDbSystemInner; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbVersionInner.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbVersionInner.java new file mode 100644 index 000000000000..6e91a871d3e9 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbVersionInner.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.oracledatabase.models.DbVersionProperties; +import java.io.IOException; + +/** + * Oracle Database DbVersion resource definition. + */ +@Immutable +public final class DbVersionInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private DbVersionProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of DbVersionInner class. + */ + private DbVersionInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public DbVersionProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbVersionInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbVersionInner 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 DbVersionInner. + */ + public static DbVersionInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbVersionInner deserializedDbVersionInner = new DbVersionInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedDbVersionInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedDbVersionInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedDbVersionInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedDbVersionInner.properties = DbVersionProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedDbVersionInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedDbVersionInner; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/NetworkAnchorInner.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/NetworkAnchorInner.java new file mode 100644 index 000000000000..4916be8e57d5 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/NetworkAnchorInner.java @@ -0,0 +1,211 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorProperties; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * Network Anchor resource model. + */ +@Fluent +public final class NetworkAnchorInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private NetworkAnchorProperties properties; + + /* + * The availability zones. + */ + private List zones; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of NetworkAnchorInner class. + */ + public NetworkAnchorInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public NetworkAnchorProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the NetworkAnchorInner object itself. + */ + public NetworkAnchorInner withProperties(NetworkAnchorProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the zones property: The availability zones. + * + * @return the zones value. + */ + public List zones() { + return this.zones; + } + + /** + * Set the zones property: The availability zones. + * + * @param zones the zones value to set. + * @return the NetworkAnchorInner object itself. + */ + public NetworkAnchorInner withZones(List zones) { + this.zones = zones; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public NetworkAnchorInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NetworkAnchorInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkAnchorInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkAnchorInner 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 NetworkAnchorInner. + */ + public static NetworkAnchorInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkAnchorInner deserializedNetworkAnchorInner = new NetworkAnchorInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedNetworkAnchorInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedNetworkAnchorInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedNetworkAnchorInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedNetworkAnchorInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedNetworkAnchorInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedNetworkAnchorInner.properties = NetworkAnchorProperties.fromJson(reader); + } else if ("zones".equals(fieldName)) { + List zones = reader.readArray(reader1 -> reader1.getString()); + deserializedNetworkAnchorInner.zones = zones; + } else if ("systemData".equals(fieldName)) { + deserializedNetworkAnchorInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkAnchorInner; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ResourceAnchorInner.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ResourceAnchorInner.java new file mode 100644 index 000000000000..451a8f17ed61 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ResourceAnchorInner.java @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorProperties; +import java.io.IOException; +import java.util.Map; + +/** + * Resource Anchor model. + */ +@Fluent +public final class ResourceAnchorInner extends Resource { + /* + * The resource-specific properties for this resource. + */ + private ResourceAnchorProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ResourceAnchorInner class. + */ + public ResourceAnchorInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public ResourceAnchorProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the ResourceAnchorInner object itself. + */ + public ResourceAnchorInner withProperties(ResourceAnchorProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public ResourceAnchorInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ResourceAnchorInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceAnchorInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceAnchorInner 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 ResourceAnchorInner. + */ + public static ResourceAnchorInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceAnchorInner deserializedResourceAnchorInner = new ResourceAnchorInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedResourceAnchorInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedResourceAnchorInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedResourceAnchorInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedResourceAnchorInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedResourceAnchorInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedResourceAnchorInner.properties = ResourceAnchorProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedResourceAnchorInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceAnchorInner; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseImpl.java index e8d8e75c492f..848655ca70d2 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseImpl.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseInner; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabase; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBaseProperties; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleAction; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdate; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdateProperties; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseWalletFile; @@ -209,6 +210,14 @@ public AutonomousDatabase changeDisasterRecoveryConfiguration(DisasterRecoveryCo .changeDisasterRecoveryConfiguration(resourceGroupName, autonomousdatabasename, body, context); } + public AutonomousDatabase action(AutonomousDatabaseLifecycleAction body) { + return serviceManager.autonomousDatabases().action(resourceGroupName, autonomousdatabasename, body); + } + + public AutonomousDatabase action(AutonomousDatabaseLifecycleAction body, Context context) { + return serviceManager.autonomousDatabases().action(resourceGroupName, autonomousdatabasename, body, context); + } + public AutonomousDatabaseImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; 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 8b034393414c..475c592bcb52 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 @@ -38,6 +38,7 @@ import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseInner; import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseWalletFileInner; import com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDatabaseListResult; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleAction; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdate; import com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryConfigurationDetails; import com.azure.resourcemanager.oracledatabase.models.GenerateAutonomousDatabaseWalletDetails; @@ -311,6 +312,26 @@ Response changeDisasterRecoveryConfigurationSync(@HostParam("endpoin @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, @BodyParam("application/json") DisasterRecoveryConfigurationDetails body, Context context); + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/action") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> action(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("autonomousdatabasename") String autonomousdatabasename, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") AutonomousDatabaseLifecycleAction body, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/action") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response actionSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("autonomousdatabasename") String autonomousdatabasename, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") AutonomousDatabaseLifecycleAction body, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -2088,6 +2109,186 @@ public AutonomousDatabaseInner changeDisasterRecoveryConfiguration(String resour .getFinalResult(); } + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response body along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> actionWithResponseAsync(String resourceGroupName, + String autonomousdatabasename, AutonomousDatabaseLifecycleAction body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.action(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, autonomousdatabasename, contentType, accept, body, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response actionWithResponse(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.actionSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, autonomousdatabasename, contentType, accept, body, + Context.NONE); + } + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response actionWithResponse(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.actionSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, autonomousdatabasename, contentType, accept, body, + context); + } + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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, AutonomousDatabaseInner> beginActionAsync( + String resourceGroupName, String autonomousdatabasename, AutonomousDatabaseLifecycleAction body) { + Mono>> mono + = actionWithResponseAsync(resourceGroupName, autonomousdatabasename, body); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), AutonomousDatabaseInner.class, AutonomousDatabaseInner.class, + this.client.getContext()); + } + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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, AutonomousDatabaseInner> + beginAction(String resourceGroupName, String autonomousdatabasename, AutonomousDatabaseLifecycleAction body) { + Response response = actionWithResponse(resourceGroupName, autonomousdatabasename, body); + return this.client.getLroResult(response, + AutonomousDatabaseInner.class, AutonomousDatabaseInner.class, Context.NONE); + } + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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, AutonomousDatabaseInner> beginAction( + String resourceGroupName, String autonomousdatabasename, AutonomousDatabaseLifecycleAction body, + Context context) { + Response response = actionWithResponse(resourceGroupName, autonomousdatabasename, body, context); + return this.client.getLroResult(response, + AutonomousDatabaseInner.class, AutonomousDatabaseInner.class, context); + } + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response body on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono actionAsync(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body) { + return beginActionAsync(resourceGroupName, autonomousdatabasename, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AutonomousDatabaseInner action(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body) { + return beginAction(resourceGroupName, autonomousdatabasename, body).getFinalResult(); + } + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AutonomousDatabaseInner action(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body, Context context) { + return beginAction(resourceGroupName, autonomousdatabasename, body, context).getFinalResult(); + } + /** * Get the next page of items. * diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesImpl.java index 16146de100da..c04a002f7c6a 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesImpl.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseInner; import com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseWalletFileInner; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabase; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleAction; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseWalletFile; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabases; import com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryConfigurationDetails; @@ -209,6 +210,27 @@ public AutonomousDatabase changeDisasterRecoveryConfiguration(String resourceGro } } + public AutonomousDatabase action(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body) { + AutonomousDatabaseInner inner = this.serviceClient().action(resourceGroupName, autonomousdatabasename, body); + if (inner != null) { + return new AutonomousDatabaseImpl(inner, this.manager()); + } else { + return null; + } + } + + public AutonomousDatabase action(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body, Context context) { + AutonomousDatabaseInner inner + = this.serviceClient().action(resourceGroupName, autonomousdatabasename, body, context); + if (inner != null) { + return new AutonomousDatabaseImpl(inner, this.manager()); + } else { + return null; + } + } + public AutonomousDatabase getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructureImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructureImpl.java index c9f659d226c4..1108f30fc635 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructureImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructureImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureProperties; import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdate; import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdateProperties; +import com.azure.resourcemanager.oracledatabase.models.ConfigureExascaleCloudExadataInfrastructureDetails; import java.util.Collections; import java.util.List; import java.util.Map; @@ -170,6 +171,17 @@ public CloudExadataInfrastructure addStorageCapacity(Context context) { .addStorageCapacity(resourceGroupName, cloudexadatainfrastructurename, context); } + public CloudExadataInfrastructure configureExascale(ConfigureExascaleCloudExadataInfrastructureDetails body) { + return serviceManager.cloudExadataInfrastructures() + .configureExascale(resourceGroupName, cloudexadatainfrastructurename, body); + } + + public CloudExadataInfrastructure configureExascale(ConfigureExascaleCloudExadataInfrastructureDetails body, + Context context) { + return serviceManager.cloudExadataInfrastructures() + .configureExascale(resourceGroupName, cloudexadatainfrastructurename, body, context); + } + public CloudExadataInfrastructureImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; 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 f3ab775e2932..4a18ad0d4e41 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 @@ -38,6 +38,7 @@ import com.azure.resourcemanager.oracledatabase.fluent.models.CloudExadataInfrastructureInner; import com.azure.resourcemanager.oracledatabase.implementation.models.CloudExadataInfrastructureListResult; import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdate; +import com.azure.resourcemanager.oracledatabase.models.ConfigureExascaleCloudExadataInfrastructureDetails; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -206,6 +207,26 @@ Response addStorageCapacitySync(@HostParam("endpoint") String endpoi @PathParam("cloudexadatainfrastructurename") String cloudexadatainfrastructurename, @HeaderParam("Accept") String accept, Context context); + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures/{cloudexadatainfrastructurename}/configureExascale") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> configureExascale(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("cloudexadatainfrastructurename") String cloudexadatainfrastructurename, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigureExascaleCloudExadataInfrastructureDetails body, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures/{cloudexadatainfrastructurename}/configureExascale") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response configureExascaleSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("cloudexadatainfrastructurename") String cloudexadatainfrastructurename, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ConfigureExascaleCloudExadataInfrastructureDetails body, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -1202,6 +1223,193 @@ public CloudExadataInfrastructureInner addStorageCapacity(String resourceGroupNa return beginAddStorageCapacity(resourceGroupName, cloudexadatainfrastructurename, context).getFinalResult(); } + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response body along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> configureExascaleWithResponseAsync(String resourceGroupName, + String cloudexadatainfrastructurename, ConfigureExascaleCloudExadataInfrastructureDetails body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.configureExascale(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, cloudexadatainfrastructurename, contentType, accept, + body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response configureExascaleWithResponse(String resourceGroupName, + String cloudexadatainfrastructurename, ConfigureExascaleCloudExadataInfrastructureDetails body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.configureExascaleSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, cloudexadatainfrastructurename, contentType, accept, + body, Context.NONE); + } + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response configureExascaleWithResponse(String resourceGroupName, + String cloudexadatainfrastructurename, ConfigureExascaleCloudExadataInfrastructureDetails body, + Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.configureExascaleSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, cloudexadatainfrastructurename, contentType, accept, + body, context); + } + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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, CloudExadataInfrastructureInner> + beginConfigureExascaleAsync(String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body) { + Mono>> mono + = configureExascaleWithResponseAsync(resourceGroupName, cloudexadatainfrastructurename, body); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), CloudExadataInfrastructureInner.class, CloudExadataInfrastructureInner.class, + this.client.getContext()); + } + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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, CloudExadataInfrastructureInner> + beginConfigureExascale(String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body) { + Response response + = configureExascaleWithResponse(resourceGroupName, cloudexadatainfrastructurename, body); + return this.client.getLroResult(response, + CloudExadataInfrastructureInner.class, CloudExadataInfrastructureInner.class, Context.NONE); + } + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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, CloudExadataInfrastructureInner> + beginConfigureExascale(String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body, Context context) { + Response response + = configureExascaleWithResponse(resourceGroupName, cloudexadatainfrastructurename, body, context); + return this.client.getLroResult(response, + CloudExadataInfrastructureInner.class, CloudExadataInfrastructureInner.class, context); + } + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response body on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono configureExascaleAsync(String resourceGroupName, + String cloudexadatainfrastructurename, ConfigureExascaleCloudExadataInfrastructureDetails body) { + return beginConfigureExascaleAsync(resourceGroupName, cloudexadatainfrastructurename, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CloudExadataInfrastructureInner configureExascale(String resourceGroupName, + String cloudexadatainfrastructurename, ConfigureExascaleCloudExadataInfrastructureDetails body) { + return beginConfigureExascale(resourceGroupName, cloudexadatainfrastructurename, body).getFinalResult(); + } + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CloudExadataInfrastructureInner configureExascale(String resourceGroupName, + String cloudexadatainfrastructurename, ConfigureExascaleCloudExadataInfrastructureDetails body, + Context context) { + return beginConfigureExascale(resourceGroupName, cloudexadatainfrastructurename, body, context) + .getFinalResult(); + } + /** * Get the next page of items. * diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresImpl.java index 15da4d12a9a2..fc5df0b9ab4f 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresImpl.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.oracledatabase.fluent.models.CloudExadataInfrastructureInner; import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructure; import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructures; +import com.azure.resourcemanager.oracledatabase.models.ConfigureExascaleCloudExadataInfrastructureDetails; public final class CloudExadataInfrastructuresImpl implements CloudExadataInfrastructures { private static final ClientLogger LOGGER = new ClientLogger(CloudExadataInfrastructuresImpl.class); @@ -106,6 +107,28 @@ public CloudExadataInfrastructure addStorageCapacity(String resourceGroupName, } } + public CloudExadataInfrastructure configureExascale(String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body) { + CloudExadataInfrastructureInner inner + = this.serviceClient().configureExascale(resourceGroupName, cloudexadatainfrastructurename, body); + if (inner != null) { + return new CloudExadataInfrastructureImpl(inner, this.manager()); + } else { + return null; + } + } + + public CloudExadataInfrastructure configureExascale(String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body, Context context) { + CloudExadataInfrastructureInner inner + = this.serviceClient().configureExascale(resourceGroupName, cloudexadatainfrastructurename, body, context); + if (inner != null) { + return new CloudExadataInfrastructureImpl(inner, this.manager()); + } else { + return null; + } + } + public CloudExadataInfrastructure getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemImpl.java new file mode 100644 index 000000000000..5878f598f326 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemImpl.java @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemInner; +import com.azure.resourcemanager.oracledatabase.models.DbSystem; +import com.azure.resourcemanager.oracledatabase.models.DbSystemProperties; +import com.azure.resourcemanager.oracledatabase.models.DbSystemUpdate; +import com.azure.resourcemanager.oracledatabase.models.DbSystemUpdateProperties; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +public final class DbSystemImpl implements DbSystem, DbSystem.Definition, DbSystem.Update { + private DbSystemInner innerObject; + + private final com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public DbSystemProperties properties() { + return this.innerModel().properties(); + } + + public List zones() { + List inner = this.innerModel().zones(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public DbSystemInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String dbSystemName; + + private DbSystemUpdate updateProperties; + + public DbSystemImpl withExistingResourceGroup(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + public DbSystem create() { + this.innerObject = serviceManager.serviceClient() + .getDbSystems() + .createOrUpdate(resourceGroupName, dbSystemName, this.innerModel(), Context.NONE); + return this; + } + + public DbSystem create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getDbSystems() + .createOrUpdate(resourceGroupName, dbSystemName, this.innerModel(), context); + return this; + } + + DbSystemImpl(String name, com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerObject = new DbSystemInner(); + this.serviceManager = serviceManager; + this.dbSystemName = name; + } + + public DbSystemImpl update() { + this.updateProperties = new DbSystemUpdate(); + return this; + } + + public DbSystem apply() { + this.innerObject = serviceManager.serviceClient() + .getDbSystems() + .update(resourceGroupName, dbSystemName, updateProperties, Context.NONE); + return this; + } + + public DbSystem apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getDbSystems() + .update(resourceGroupName, dbSystemName, updateProperties, context); + return this; + } + + DbSystemImpl(DbSystemInner innerObject, + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.dbSystemName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "dbSystems"); + } + + public DbSystem refresh() { + this.innerObject = serviceManager.serviceClient() + .getDbSystems() + .getByResourceGroupWithResponse(resourceGroupName, dbSystemName, Context.NONE) + .getValue(); + return this; + } + + public DbSystem refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getDbSystems() + .getByResourceGroupWithResponse(resourceGroupName, dbSystemName, context) + .getValue(); + return this; + } + + public DbSystemImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public DbSystemImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public DbSystemImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public DbSystemImpl withProperties(DbSystemProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public DbSystemImpl withZones(List zones) { + if (isInCreateMode()) { + this.innerModel().withZones(zones); + return this; + } else { + this.updateProperties.withZones(zones); + return this; + } + } + + public DbSystemImpl withProperties(DbSystemUpdateProperties properties) { + this.updateProperties.withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel() == null || this.innerModel().id() == null; + } +} 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 dc8b13fe2111..0e3fde45e0fd 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 @@ -87,7 +87,7 @@ Response getSync(@HostParam("endpoint") String endpoint, Mono> listByLocation(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("zone") String zone, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("shapeAttribute") String shapeAttribute, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dbSystemShapes") @@ -96,7 +96,7 @@ Mono> listByLocation(@HostParam("endpoint") St Response listByLocationSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("zone") String zone, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("shapeAttribute") String shapeAttribute, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -187,6 +187,7 @@ public DbSystemShapeInner get(String location, String dbsystemshapename) { * * @param location The name of the Azure region. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @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. @@ -194,11 +195,12 @@ public DbSystemShapeInner get(String location, String dbsystemshapename) { * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByLocationSinglePageAsync(String location, String zone) { + private Mono> listByLocationSinglePageAsync(String location, String zone, + String shapeAttribute) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByLocation(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), location, zone, accept, context)) + this.client.getSubscriptionId(), location, zone, shapeAttribute, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -209,14 +211,15 @@ private Mono> listByLocationSinglePageAsync(St * * @param location The name of the Azure region. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a DbSystemShape list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocationAsync(String location, String zone) { - return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, zone), + private PagedFlux listByLocationAsync(String location, String zone, String shapeAttribute) { + return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, zone, shapeAttribute), nextLink -> listByLocationNextSinglePageAsync(nextLink)); } @@ -232,7 +235,8 @@ private PagedFlux listByLocationAsync(String location, Strin @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByLocationAsync(String location) { final String zone = null; - return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, zone), + final String shapeAttribute = null; + return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, zone, shapeAttribute), nextLink -> listByLocationNextSinglePageAsync(nextLink)); } @@ -241,16 +245,19 @@ private PagedFlux listByLocationAsync(String location) { * * @param location The name of the Azure region. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a DbSystemShape list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByLocationSinglePage(String location, String zone) { + private PagedResponse listByLocationSinglePage(String location, String zone, + String shapeAttribute) { final String accept = "application/json"; - Response res = service.listByLocationSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), location, zone, accept, Context.NONE); + Response res + = service.listByLocationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, zone, shapeAttribute, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -260,6 +267,7 @@ private PagedResponse listByLocationSinglePage(String locati * * @param location The name of the Azure region. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @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. @@ -267,10 +275,12 @@ private PagedResponse listByLocationSinglePage(String locati * @return the response of a DbSystemShape list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByLocationSinglePage(String location, String zone, Context context) { + private PagedResponse listByLocationSinglePage(String location, String zone, + String shapeAttribute, Context context) { final String accept = "application/json"; - Response res = service.listByLocationSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), location, zone, accept, context); + Response res + = service.listByLocationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, zone, shapeAttribute, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -287,7 +297,8 @@ private PagedResponse listByLocationSinglePage(String locati @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByLocation(String location) { final String zone = null; - return new PagedIterable<>(() -> listByLocationSinglePage(location, zone), + final String shapeAttribute = null; + return new PagedIterable<>(() -> listByLocationSinglePage(location, zone, shapeAttribute), nextLink -> listByLocationNextSinglePage(nextLink)); } @@ -296,6 +307,7 @@ public PagedIterable listByLocation(String location) { * * @param location The name of the Azure region. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @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. @@ -303,8 +315,9 @@ public PagedIterable listByLocation(String location) { * @return the response of a DbSystemShape list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByLocation(String location, String zone, Context context) { - return new PagedIterable<>(() -> listByLocationSinglePage(location, zone, context), + public PagedIterable listByLocation(String location, String zone, String shapeAttribute, + Context context) { + return new PagedIterable<>(() -> listByLocationSinglePage(location, zone, shapeAttribute, context), nextLink -> listByLocationNextSinglePage(nextLink, context)); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesImpl.java index 0ef002a51542..1fc4bd544c16 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesImpl.java @@ -51,8 +51,10 @@ public PagedIterable listByLocation(String location) { return ResourceManagerUtils.mapPage(inner, inner1 -> new DbSystemShapeImpl(inner1, this.manager())); } - public PagedIterable listByLocation(String location, String zone, Context context) { - PagedIterable inner = this.serviceClient().listByLocation(location, zone, context); + public PagedIterable listByLocation(String location, String zone, String shapeAttribute, + Context context) { + PagedIterable inner + = this.serviceClient().listByLocation(location, zone, shapeAttribute, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new DbSystemShapeImpl(inner1, this.manager())); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemsClientImpl.java new file mode 100644 index 000000000000..e0b3e1baa29a --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemsClientImpl.java @@ -0,0 +1,1091 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemInner; +import com.azure.resourcemanager.oracledatabase.implementation.models.DbSystemListResult; +import com.azure.resourcemanager.oracledatabase.models.DbSystemUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in DbSystemsClient. + */ +public final class DbSystemsClientImpl implements DbSystemsClient { + /** + * The proxy service used to perform REST calls. + */ + private final DbSystemsService service; + + /** + * The service client containing this operation class. + */ + private final OracleDatabaseManagementClientImpl client; + + /** + * Initializes an instance of DbSystemsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + DbSystemsClientImpl(OracleDatabaseManagementClientImpl client) { + this.service + = RestProxy.create(DbSystemsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for OracleDatabaseManagementClientDbSystems to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "OracleDatabaseManagementClientDbSystems") + public interface DbSystemsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/dbSystems") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/dbSystems") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dbSystemName") String dbSystemName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") DbSystemInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dbSystemName") String dbSystemName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") DbSystemInner resource, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dbSystemName") String dbSystemName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dbSystemName") String dbSystemName, + @HeaderParam("Accept") String accept, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dbSystemName") String dbSystemName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") DbSystemUpdate properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dbSystemName") String dbSystemName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") DbSystemUpdate properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dbSystemName") String dbSystemName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems/{dbSystemName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("dbSystemName") String dbSystemName, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/dbSystems") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySubscriptionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * List DbSystem resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List DbSystem resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * List DbSystem resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List DbSystem resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List DbSystem resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); + } + + /** + * List DbSystem resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), + nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); + } + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dbSystem resource definition along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String dbSystemName, DbSystemInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dbSystem resource definition along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String dbSystemName, + DbSystemInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, contentType, accept, resource, + Context.NONE); + } + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dbSystem resource definition along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String dbSystemName, + DbSystemInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, contentType, accept, resource, context); + } + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, DbSystemInner> beginCreateOrUpdateAsync(String resourceGroupName, + String dbSystemName, DbSystemInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, dbSystemName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DbSystemInner.class, DbSystemInner.class, this.client.getContext()); + } + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, DbSystemInner> beginCreateOrUpdate(String resourceGroupName, + String dbSystemName, DbSystemInner resource) { + Response response = createOrUpdateWithResponse(resourceGroupName, dbSystemName, resource); + return this.client.getLroResult(response, DbSystemInner.class, + DbSystemInner.class, Context.NONE); + } + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, DbSystemInner> beginCreateOrUpdate(String resourceGroupName, + String dbSystemName, DbSystemInner resource, Context context) { + Response response = createOrUpdateWithResponse(resourceGroupName, dbSystemName, resource, context); + return this.client.getLroResult(response, DbSystemInner.class, + DbSystemInner.class, context); + } + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dbSystem resource definition on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String dbSystemName, + DbSystemInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, dbSystemName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DbSystemInner createOrUpdate(String resourceGroupName, String dbSystemName, DbSystemInner resource) { + return beginCreateOrUpdate(resourceGroupName, dbSystemName, resource).getFinalResult(); + } + + /** + * Create a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DbSystemInner createOrUpdate(String resourceGroupName, String dbSystemName, DbSystemInner resource, + Context context) { + return beginCreateOrUpdate(resourceGroupName, dbSystemName, resource, context).getFinalResult(); + } + + /** + * Get a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @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 DbSystem along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String dbSystemName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @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 DbSystem on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, String dbSystemName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, dbSystemName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @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 DbSystem along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, String dbSystemName, + Context context) { + final String accept = "application/json"; + return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, accept, context); + } + + /** + * Get a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @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 DbSystem. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DbSystemInner getByResourceGroup(String resourceGroupName, String dbSystemName) { + return getByResourceGroupWithResponse(resourceGroupName, dbSystemName, Context.NONE).getValue(); + } + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String dbSystemName, + DbSystemUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String dbSystemName, + DbSystemUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, contentType, accept, properties, + Context.NONE); + } + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String dbSystemName, + DbSystemUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, contentType, accept, properties, context); + } + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, DbSystemInner> beginUpdateAsync(String resourceGroupName, + String dbSystemName, DbSystemUpdate properties) { + Mono>> mono = updateWithResponseAsync(resourceGroupName, dbSystemName, properties); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DbSystemInner.class, DbSystemInner.class, this.client.getContext()); + } + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, DbSystemInner> beginUpdate(String resourceGroupName, + String dbSystemName, DbSystemUpdate properties) { + Response response = updateWithResponse(resourceGroupName, dbSystemName, properties); + return this.client.getLroResult(response, DbSystemInner.class, + DbSystemInner.class, Context.NONE); + } + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, DbSystemInner> beginUpdate(String resourceGroupName, + String dbSystemName, DbSystemUpdate properties, Context context) { + Response response = updateWithResponse(resourceGroupName, dbSystemName, properties, context); + return this.client.getLroResult(response, DbSystemInner.class, + DbSystemInner.class, context); + } + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String dbSystemName, DbSystemUpdate properties) { + return beginUpdateAsync(resourceGroupName, dbSystemName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DbSystemInner update(String resourceGroupName, String dbSystemName, DbSystemUpdate properties) { + return beginUpdate(resourceGroupName, dbSystemName, properties).getFinalResult(); + } + + /** + * Update a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param properties The resource properties to be updated. + * @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 dbSystem resource definition. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DbSystemInner update(String resourceGroupName, String dbSystemName, DbSystemUpdate properties, + Context context) { + return beginUpdate(resourceGroupName, dbSystemName, properties, context).getFinalResult(); + } + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String dbSystemName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String dbSystemName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, Context.NONE); + } + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String dbSystemName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, dbSystemName, context); + } + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String dbSystemName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, dbSystemName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String dbSystemName) { + Response response = deleteWithResponse(resourceGroupName, dbSystemName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String dbSystemName, + Context context) { + Response response = deleteWithResponse(resourceGroupName, dbSystemName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String dbSystemName) { + return beginDeleteAsync(resourceGroupName, dbSystemName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String dbSystemName) { + beginDelete(resourceGroupName, dbSystemName).getFinalResult(); + } + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String dbSystemName, Context context) { + beginDelete(resourceGroupName, dbSystemName, context).getFinalResult(); + } + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); + } + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemsImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemsImpl.java new file mode 100644 index 000000000000..a09b8ff2e0c7 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemsImpl.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemInner; +import com.azure.resourcemanager.oracledatabase.models.DbSystem; +import com.azure.resourcemanager.oracledatabase.models.DbSystems; + +public final class DbSystemsImpl implements DbSystems { + private static final ClientLogger LOGGER = new ClientLogger(DbSystemsImpl.class); + + private final DbSystemsClient innerClient; + + private final com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager; + + public DbSystemsImpl(DbSystemsClient innerClient, + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DbSystemImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DbSystemImpl(inner1, this.manager())); + } + + public Response getByResourceGroupWithResponse(String resourceGroupName, String dbSystemName, + Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, dbSystemName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new DbSystemImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public DbSystem getByResourceGroup(String resourceGroupName, String dbSystemName) { + DbSystemInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, dbSystemName); + if (inner != null) { + return new DbSystemImpl(inner, this.manager()); + } else { + return null; + } + } + + public void deleteByResourceGroup(String resourceGroupName, String dbSystemName) { + this.serviceClient().delete(resourceGroupName, dbSystemName); + } + + public void delete(String resourceGroupName, String dbSystemName, Context context) { + this.serviceClient().delete(resourceGroupName, dbSystemName, context); + } + + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DbSystemImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DbSystemImpl(inner1, this.manager())); + } + + public DbSystem getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String dbSystemName = ResourceManagerUtils.getValueFromIdByName(id, "dbSystems"); + if (dbSystemName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'dbSystems'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, dbSystemName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String dbSystemName = ResourceManagerUtils.getValueFromIdByName(id, "dbSystems"); + if (dbSystemName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'dbSystems'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, dbSystemName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String dbSystemName = ResourceManagerUtils.getValueFromIdByName(id, "dbSystems"); + if (dbSystemName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'dbSystems'.", id))); + } + this.delete(resourceGroupName, dbSystemName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String dbSystemName = ResourceManagerUtils.getValueFromIdByName(id, "dbSystems"); + if (dbSystemName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'dbSystems'.", id))); + } + this.delete(resourceGroupName, dbSystemName, context); + } + + private DbSystemsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager() { + return this.serviceManager; + } + + public DbSystemImpl define(String name) { + return new DbSystemImpl(name, this.manager()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionImpl.java new file mode 100644 index 000000000000..467e47893fd8 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner; +import com.azure.resourcemanager.oracledatabase.models.DbVersion; +import com.azure.resourcemanager.oracledatabase.models.DbVersionProperties; + +public final class DbVersionImpl implements DbVersion { + private DbVersionInner innerObject; + + private final com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager; + + DbVersionImpl(DbVersionInner innerObject, + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public DbVersionProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public DbVersionInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionsClientImpl.java new file mode 100644 index 000000000000..1904a7071842 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionsClientImpl.java @@ -0,0 +1,465 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner; +import com.azure.resourcemanager.oracledatabase.implementation.models.DbVersionListResult; +import com.azure.resourcemanager.oracledatabase.models.BaseDbSystemShapes; +import com.azure.resourcemanager.oracledatabase.models.ShapeFamilyType; +import com.azure.resourcemanager.oracledatabase.models.StorageManagementType; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in DbVersionsClient. + */ +public final class DbVersionsClientImpl implements DbVersionsClient { + /** + * The proxy service used to perform REST calls. + */ + private final DbVersionsService service; + + /** + * The service client containing this operation class. + */ + private final OracleDatabaseManagementClientImpl client; + + /** + * Initializes an instance of DbVersionsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + DbVersionsClientImpl(OracleDatabaseManagementClientImpl client) { + this.service + = RestProxy.create(DbVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for OracleDatabaseManagementClientDbVersions to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "OracleDatabaseManagementClientDbVersions") + public interface DbVersionsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dbSystemDbVersions/{dbversionsname}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("dbversionsname") String dbversionsname, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dbSystemDbVersions/{dbversionsname}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("dbversionsname") String dbversionsname, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dbSystemDbVersions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByLocation(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @QueryParam("dbSystemShape") BaseDbSystemShapes dbSystemShape, + @QueryParam("dbSystemId") String dbSystemId, + @QueryParam("storageManagement") StorageManagementType storageManagement, + @QueryParam("isUpgradeSupported") Boolean isUpgradeSupported, + @QueryParam("isDatabaseSoftwareImageSupported") Boolean isDatabaseSoftwareImageSupported, + @QueryParam("shapeFamily") ShapeFamilyType shapeFamily, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dbSystemDbVersions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocationSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @QueryParam("dbSystemShape") BaseDbSystemShapes dbSystemShape, + @QueryParam("dbSystemId") String dbSystemId, + @QueryParam("storageManagement") StorageManagementType storageManagement, + @QueryParam("isUpgradeSupported") Boolean isUpgradeSupported, + @QueryParam("isDatabaseSoftwareImageSupported") Boolean isDatabaseSoftwareImageSupported, + @QueryParam("shapeFamily") ShapeFamilyType shapeFamily, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByLocationNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByLocationNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Get a DbVersion. + * + * @param location The name of the Azure region. + * @param dbversionsname DbVersion name. + * @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 DbVersion along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String location, String dbversionsname) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, dbversionsname, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a DbVersion. + * + * @param location The name of the Azure region. + * @param dbversionsname DbVersion name. + * @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 DbVersion on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String location, String dbversionsname) { + return getWithResponseAsync(location, dbversionsname).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a DbVersion. + * + * @param location The name of the Azure region. + * @param dbversionsname DbVersion name. + * @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 DbVersion along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String location, String dbversionsname, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + location, dbversionsname, accept, context); + } + + /** + * Get a DbVersion. + * + * @param location The name of the Azure region. + * @param dbversionsname DbVersion name. + * @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 DbVersion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DbVersionInner get(String location, String dbversionsname) { + return getWithResponse(location, dbversionsname, Context.NONE).getValue(); + } + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @param dbSystemShape If provided, filters the results to the set of database versions which are supported for the + * given shape. e.g., VM.Standard.E5.Flex. + * @param dbSystemId The DB system AzureId. If provided, filters the results to the set of database versions which + * are supported for the DB system. + * @param storageManagement The DB system storage management option. Used to list database versions available for + * that storage manager. Valid values are ASM and LVM. + * @param isUpgradeSupported If true, filters the results to the set of database versions which are supported for + * Upgrade. + * @param isDatabaseSoftwareImageSupported If true, filters the results to the set of Oracle Database versions that + * are supported for the database software images. + * @param shapeFamily If provided, filters the results to the set of database versions which are supported for the + * given shape family. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByLocationSinglePageAsync(String location, + BaseDbSystemShapes dbSystemShape, String dbSystemId, StorageManagementType storageManagement, + Boolean isUpgradeSupported, Boolean isDatabaseSoftwareImageSupported, ShapeFamilyType shapeFamily) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByLocation(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, dbSystemShape, dbSystemId, storageManagement, + isUpgradeSupported, isDatabaseSoftwareImageSupported, shapeFamily, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @param dbSystemShape If provided, filters the results to the set of database versions which are supported for the + * given shape. e.g., VM.Standard.E5.Flex. + * @param dbSystemId The DB system AzureId. If provided, filters the results to the set of database versions which + * are supported for the DB system. + * @param storageManagement The DB system storage management option. Used to list database versions available for + * that storage manager. Valid values are ASM and LVM. + * @param isUpgradeSupported If true, filters the results to the set of database versions which are supported for + * Upgrade. + * @param isDatabaseSoftwareImageSupported If true, filters the results to the set of Oracle Database versions that + * are supported for the database software images. + * @param shapeFamily If provided, filters the results to the set of database versions which are supported for the + * given shape family. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByLocationAsync(String location, BaseDbSystemShapes dbSystemShape, + String dbSystemId, StorageManagementType storageManagement, Boolean isUpgradeSupported, + Boolean isDatabaseSoftwareImageSupported, ShapeFamilyType shapeFamily) { + return new PagedFlux<>( + () -> listByLocationSinglePageAsync(location, dbSystemShape, dbSystemId, storageManagement, + isUpgradeSupported, isDatabaseSoftwareImageSupported, shapeFamily), + nextLink -> listByLocationNextSinglePageAsync(nextLink)); + } + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByLocationAsync(String location) { + final BaseDbSystemShapes dbSystemShape = null; + final String dbSystemId = null; + final StorageManagementType storageManagement = null; + final Boolean isUpgradeSupported = null; + final Boolean isDatabaseSoftwareImageSupported = null; + final ShapeFamilyType shapeFamily = null; + return new PagedFlux<>( + () -> listByLocationSinglePageAsync(location, dbSystemShape, dbSystemId, storageManagement, + isUpgradeSupported, isDatabaseSoftwareImageSupported, shapeFamily), + nextLink -> listByLocationNextSinglePageAsync(nextLink)); + } + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @param dbSystemShape If provided, filters the results to the set of database versions which are supported for the + * given shape. e.g., VM.Standard.E5.Flex. + * @param dbSystemId The DB system AzureId. If provided, filters the results to the set of database versions which + * are supported for the DB system. + * @param storageManagement The DB system storage management option. Used to list database versions available for + * that storage manager. Valid values are ASM and LVM. + * @param isUpgradeSupported If true, filters the results to the set of database versions which are supported for + * Upgrade. + * @param isDatabaseSoftwareImageSupported If true, filters the results to the set of Oracle Database versions that + * are supported for the database software images. + * @param shapeFamily If provided, filters the results to the set of database versions which are supported for the + * given shape family. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocationSinglePage(String location, BaseDbSystemShapes dbSystemShape, + String dbSystemId, StorageManagementType storageManagement, Boolean isUpgradeSupported, + Boolean isDatabaseSoftwareImageSupported, ShapeFamilyType shapeFamily) { + final String accept = "application/json"; + Response res = service.listByLocationSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, dbSystemShape, dbSystemId, + storageManagement, isUpgradeSupported, isDatabaseSoftwareImageSupported, shapeFamily, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @param dbSystemShape If provided, filters the results to the set of database versions which are supported for the + * given shape. e.g., VM.Standard.E5.Flex. + * @param dbSystemId The DB system AzureId. If provided, filters the results to the set of database versions which + * are supported for the DB system. + * @param storageManagement The DB system storage management option. Used to list database versions available for + * that storage manager. Valid values are ASM and LVM. + * @param isUpgradeSupported If true, filters the results to the set of database versions which are supported for + * Upgrade. + * @param isDatabaseSoftwareImageSupported If true, filters the results to the set of Oracle Database versions that + * are supported for the database software images. + * @param shapeFamily If provided, filters the results to the set of database versions which are supported for the + * given shape family. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocationSinglePage(String location, BaseDbSystemShapes dbSystemShape, + String dbSystemId, StorageManagementType storageManagement, Boolean isUpgradeSupported, + Boolean isDatabaseSoftwareImageSupported, ShapeFamilyType shapeFamily, Context context) { + final String accept = "application/json"; + Response res = service.listByLocationSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, dbSystemShape, dbSystemId, + storageManagement, isUpgradeSupported, isDatabaseSoftwareImageSupported, shapeFamily, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocation(String location) { + final BaseDbSystemShapes dbSystemShape = null; + final String dbSystemId = null; + final StorageManagementType storageManagement = null; + final Boolean isUpgradeSupported = null; + final Boolean isDatabaseSoftwareImageSupported = null; + final ShapeFamilyType shapeFamily = null; + return new PagedIterable<>(() -> listByLocationSinglePage(location, dbSystemShape, dbSystemId, + storageManagement, isUpgradeSupported, isDatabaseSoftwareImageSupported, shapeFamily), + nextLink -> listByLocationNextSinglePage(nextLink)); + } + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @param dbSystemShape If provided, filters the results to the set of database versions which are supported for the + * given shape. e.g., VM.Standard.E5.Flex. + * @param dbSystemId The DB system AzureId. If provided, filters the results to the set of database versions which + * are supported for the DB system. + * @param storageManagement The DB system storage management option. Used to list database versions available for + * that storage manager. Valid values are ASM and LVM. + * @param isUpgradeSupported If true, filters the results to the set of database versions which are supported for + * Upgrade. + * @param isDatabaseSoftwareImageSupported If true, filters the results to the set of Oracle Database versions that + * are supported for the database software images. + * @param shapeFamily If provided, filters the results to the set of database versions which are supported for the + * given shape family. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByLocation(String location, BaseDbSystemShapes dbSystemShape, + String dbSystemId, StorageManagementType storageManagement, Boolean isUpgradeSupported, + Boolean isDatabaseSoftwareImageSupported, ShapeFamilyType shapeFamily, Context context) { + return new PagedIterable<>( + () -> listByLocationSinglePage(location, dbSystemShape, dbSystemId, storageManagement, isUpgradeSupported, + isDatabaseSoftwareImageSupported, shapeFamily, context), + nextLink -> listByLocationNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByLocationNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByLocationNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocationNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByLocationNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByLocationNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByLocationNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionsImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionsImpl.java new file mode 100644 index 000000000000..cd7cd5020452 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionsImpl.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner; +import com.azure.resourcemanager.oracledatabase.models.BaseDbSystemShapes; +import com.azure.resourcemanager.oracledatabase.models.DbVersion; +import com.azure.resourcemanager.oracledatabase.models.DbVersions; +import com.azure.resourcemanager.oracledatabase.models.ShapeFamilyType; +import com.azure.resourcemanager.oracledatabase.models.StorageManagementType; + +public final class DbVersionsImpl implements DbVersions { + private static final ClientLogger LOGGER = new ClientLogger(DbVersionsImpl.class); + + private final DbVersionsClient innerClient; + + private final com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager; + + public DbVersionsImpl(DbVersionsClient innerClient, + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String location, String dbversionsname, Context context) { + Response inner = this.serviceClient().getWithResponse(location, dbversionsname, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new DbVersionImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public DbVersion get(String location, String dbversionsname) { + DbVersionInner inner = this.serviceClient().get(location, dbversionsname); + if (inner != null) { + return new DbVersionImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable listByLocation(String location) { + PagedIterable inner = this.serviceClient().listByLocation(location); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DbVersionImpl(inner1, this.manager())); + } + + public PagedIterable listByLocation(String location, BaseDbSystemShapes dbSystemShape, String dbSystemId, + StorageManagementType storageManagement, Boolean isUpgradeSupported, Boolean isDatabaseSoftwareImageSupported, + ShapeFamilyType shapeFamily, Context context) { + PagedIterable inner = this.serviceClient() + .listByLocation(location, dbSystemShape, dbSystemId, storageManagement, isUpgradeSupported, + isDatabaseSoftwareImageSupported, shapeFamily, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DbVersionImpl(inner1, this.manager())); + } + + private DbVersionsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager() { + return this.serviceManager; + } +} 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 9b54c17774c9..9270b2340d3f 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 @@ -88,7 +88,8 @@ Response getSync(@HostParam("endpoint") String endpoint, Mono> listByLocation(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("shape") SystemShapes shape, - @QueryParam("zone") String zone, @HeaderParam("Accept") String accept, Context context); + @QueryParam("zone") String zone, @QueryParam("shapeAttribute") String shapeAttribute, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/giVersions") @@ -97,7 +98,8 @@ Mono> listByLocation(@HostParam("endpoint") String Response listByLocationSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("shape") SystemShapes shape, - @QueryParam("zone") String zone, @HeaderParam("Accept") String accept, Context context); + @QueryParam("zone") String zone, @QueryParam("shapeAttribute") String shapeAttribute, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @@ -189,6 +191,7 @@ public GiVersionInner get(String location, String giversionname) { * @param location The name of the Azure region. * @param shape If provided, filters the results for the given shape. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @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. @@ -197,11 +200,11 @@ public GiVersionInner get(String location, String giversionname) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByLocationSinglePageAsync(String location, SystemShapes shape, - String zone) { + String zone, String shapeAttribute) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByLocation(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), location, shape, zone, accept, context)) + this.client.getSubscriptionId(), location, shape, zone, shapeAttribute, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -213,14 +216,16 @@ private Mono> listByLocationSinglePageAsync(String * @param location The name of the Azure region. * @param shape If provided, filters the results for the given shape. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a GiVersion list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByLocationAsync(String location, SystemShapes shape, String zone) { - return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, shape, zone), + private PagedFlux listByLocationAsync(String location, SystemShapes shape, String zone, + String shapeAttribute) { + return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, shape, zone, shapeAttribute), nextLink -> listByLocationNextSinglePageAsync(nextLink)); } @@ -237,7 +242,8 @@ private PagedFlux listByLocationAsync(String location, SystemSha private PagedFlux listByLocationAsync(String location) { final SystemShapes shape = null; final String zone = null; - return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, shape, zone), + final String shapeAttribute = null; + return new PagedFlux<>(() -> listByLocationSinglePageAsync(location, shape, zone, shapeAttribute), nextLink -> listByLocationNextSinglePageAsync(nextLink)); } @@ -247,16 +253,19 @@ private PagedFlux listByLocationAsync(String location) { * @param location The name of the Azure region. * @param shape If provided, filters the results for the given shape. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a GiVersion list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByLocationSinglePage(String location, SystemShapes shape, String zone) { + private PagedResponse listByLocationSinglePage(String location, SystemShapes shape, String zone, + String shapeAttribute) { final String accept = "application/json"; - Response res = service.listByLocationSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), location, shape, zone, accept, Context.NONE); + Response res + = service.listByLocationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, shape, zone, shapeAttribute, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -267,6 +276,7 @@ private PagedResponse listByLocationSinglePage(String location, * @param location The name of the Azure region. * @param shape If provided, filters the results for the given shape. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @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. @@ -275,10 +285,11 @@ private PagedResponse listByLocationSinglePage(String location, */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listByLocationSinglePage(String location, SystemShapes shape, String zone, - Context context) { + String shapeAttribute, Context context) { final String accept = "application/json"; - Response res = service.listByLocationSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), location, shape, zone, accept, context); + Response res + = service.listByLocationSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, shape, zone, shapeAttribute, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -296,7 +307,8 @@ private PagedResponse listByLocationSinglePage(String location, public PagedIterable listByLocation(String location) { final SystemShapes shape = null; final String zone = null; - return new PagedIterable<>(() -> listByLocationSinglePage(location, shape, zone), + final String shapeAttribute = null; + return new PagedIterable<>(() -> listByLocationSinglePage(location, shape, zone, shapeAttribute), nextLink -> listByLocationNextSinglePage(nextLink)); } @@ -306,6 +318,7 @@ public PagedIterable listByLocation(String location) { * @param location The name of the Azure region. * @param shape If provided, filters the results for the given shape. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @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. @@ -314,8 +327,8 @@ public PagedIterable listByLocation(String location) { */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByLocation(String location, SystemShapes shape, String zone, - Context context) { - return new PagedIterable<>(() -> listByLocationSinglePage(location, shape, zone, context), + String shapeAttribute, Context context) { + return new PagedIterable<>(() -> listByLocationSinglePage(location, shape, zone, shapeAttribute, context), nextLink -> listByLocationNextSinglePage(nextLink, context)); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsImpl.java index 6b1f5eb74dd4..db6dd64c3521 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsImpl.java @@ -52,8 +52,10 @@ public PagedIterable listByLocation(String location) { return ResourceManagerUtils.mapPage(inner, inner1 -> new GiVersionImpl(inner1, this.manager())); } - public PagedIterable listByLocation(String location, SystemShapes shape, String zone, Context context) { - PagedIterable inner = this.serviceClient().listByLocation(location, shape, zone, context); + public PagedIterable listByLocation(String location, SystemShapes shape, String zone, + String shapeAttribute, Context context) { + PagedIterable inner + = this.serviceClient().listByLocation(location, shape, zone, shapeAttribute, context); return ResourceManagerUtils.mapPage(inner, inner1 -> new GiVersionImpl(inner1, this.manager())); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorImpl.java new file mode 100644 index 000000000000..2918de5e5a17 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorImpl.java @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchor; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorProperties; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdate; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdateProperties; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +public final class NetworkAnchorImpl implements NetworkAnchor, NetworkAnchor.Definition, NetworkAnchor.Update { + private NetworkAnchorInner innerObject; + + private final com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public NetworkAnchorProperties properties() { + return this.innerModel().properties(); + } + + public List zones() { + List inner = this.innerModel().zones(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public NetworkAnchorInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String networkAnchorName; + + private NetworkAnchorUpdate updateProperties; + + public NetworkAnchorImpl withExistingResourceGroup(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + public NetworkAnchor create() { + this.innerObject = serviceManager.serviceClient() + .getNetworkAnchors() + .createOrUpdate(resourceGroupName, networkAnchorName, this.innerModel(), Context.NONE); + return this; + } + + public NetworkAnchor create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getNetworkAnchors() + .createOrUpdate(resourceGroupName, networkAnchorName, this.innerModel(), context); + return this; + } + + NetworkAnchorImpl(String name, com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerObject = new NetworkAnchorInner(); + this.serviceManager = serviceManager; + this.networkAnchorName = name; + } + + public NetworkAnchorImpl update() { + this.updateProperties = new NetworkAnchorUpdate(); + return this; + } + + public NetworkAnchor apply() { + this.innerObject = serviceManager.serviceClient() + .getNetworkAnchors() + .update(resourceGroupName, networkAnchorName, updateProperties, Context.NONE); + return this; + } + + public NetworkAnchor apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getNetworkAnchors() + .update(resourceGroupName, networkAnchorName, updateProperties, context); + return this; + } + + NetworkAnchorImpl(NetworkAnchorInner innerObject, + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.networkAnchorName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "networkAnchors"); + } + + public NetworkAnchor refresh() { + this.innerObject = serviceManager.serviceClient() + .getNetworkAnchors() + .getByResourceGroupWithResponse(resourceGroupName, networkAnchorName, Context.NONE) + .getValue(); + return this; + } + + public NetworkAnchor refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getNetworkAnchors() + .getByResourceGroupWithResponse(resourceGroupName, networkAnchorName, context) + .getValue(); + return this; + } + + public NetworkAnchorImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public NetworkAnchorImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public NetworkAnchorImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public NetworkAnchorImpl withProperties(NetworkAnchorProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public NetworkAnchorImpl withZones(List zones) { + if (isInCreateMode()) { + this.innerModel().withZones(zones); + return this; + } else { + this.updateProperties.withZones(zones); + return this; + } + } + + public NetworkAnchorImpl withProperties(NetworkAnchorUpdateProperties properties) { + this.updateProperties.withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel() == null || this.innerModel().id() == null; + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorsClientImpl.java new file mode 100644 index 000000000000..7bb5a5eafe93 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorsClientImpl.java @@ -0,0 +1,1109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient; +import com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner; +import com.azure.resourcemanager.oracledatabase.implementation.models.NetworkAnchorListResult; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in NetworkAnchorsClient. + */ +public final class NetworkAnchorsClientImpl implements NetworkAnchorsClient { + /** + * The proxy service used to perform REST calls. + */ + private final NetworkAnchorsService service; + + /** + * The service client containing this operation class. + */ + private final OracleDatabaseManagementClientImpl client; + + /** + * Initializes an instance of NetworkAnchorsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + NetworkAnchorsClientImpl(OracleDatabaseManagementClientImpl client) { + this.service + = RestProxy.create(NetworkAnchorsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for OracleDatabaseManagementClientNetworkAnchors to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "OracleDatabaseManagementClientNetworkAnchors") + public interface NetworkAnchorsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/networkAnchors") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/networkAnchors") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkAnchorName") String networkAnchorName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkAnchorInner resource, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkAnchorName") String networkAnchorName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkAnchorInner resource, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkAnchorName") String networkAnchorName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkAnchorName") String networkAnchorName, @HeaderParam("Accept") String accept, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkAnchorName") String networkAnchorName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkAnchorUpdate properties, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkAnchorName") String networkAnchorName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") NetworkAnchorUpdate properties, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkAnchorName") String networkAnchorName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors/{networkAnchorName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkAnchorName") String networkAnchorName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/networkAnchors") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySubscriptionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * List NetworkAnchor resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List NetworkAnchor resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * List NetworkAnchor resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List NetworkAnchor resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List NetworkAnchor resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); + } + + /** + * List NetworkAnchor resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), + nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); + } + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network Anchor resource model along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String networkAnchorName, NetworkAnchorInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network Anchor resource model along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String networkAnchorName, + NetworkAnchorInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, contentType, accept, resource, + Context.NONE); + } + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network Anchor resource model along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String networkAnchorName, + NetworkAnchorInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, contentType, accept, resource, + context); + } + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, NetworkAnchorInner> + beginCreateOrUpdateAsync(String resourceGroupName, String networkAnchorName, NetworkAnchorInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, networkAnchorName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + NetworkAnchorInner.class, NetworkAnchorInner.class, this.client.getContext()); + } + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetworkAnchorInner> beginCreateOrUpdate(String resourceGroupName, + String networkAnchorName, NetworkAnchorInner resource) { + Response response = createOrUpdateWithResponse(resourceGroupName, networkAnchorName, resource); + return this.client.getLroResult(response, NetworkAnchorInner.class, + NetworkAnchorInner.class, Context.NONE); + } + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetworkAnchorInner> beginCreateOrUpdate(String resourceGroupName, + String networkAnchorName, NetworkAnchorInner resource, Context context) { + Response response + = createOrUpdateWithResponse(resourceGroupName, networkAnchorName, resource, context); + return this.client.getLroResult(response, NetworkAnchorInner.class, + NetworkAnchorInner.class, context); + } + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network Anchor resource model on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String networkAnchorName, + NetworkAnchorInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, networkAnchorName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkAnchorInner createOrUpdate(String resourceGroupName, String networkAnchorName, + NetworkAnchorInner resource) { + return beginCreateOrUpdate(resourceGroupName, networkAnchorName, resource).getFinalResult(); + } + + /** + * Create a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkAnchorInner createOrUpdate(String resourceGroupName, String networkAnchorName, + NetworkAnchorInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, networkAnchorName, resource, context).getFinalResult(); + } + + /** + * Get a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @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 NetworkAnchor along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String networkAnchorName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @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 NetworkAnchor on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, String networkAnchorName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, networkAnchorName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @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 NetworkAnchor along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String networkAnchorName, Context context) { + final String accept = "application/json"; + return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, accept, context); + } + + /** + * Get a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @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 NetworkAnchor. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkAnchorInner getByResourceGroup(String resourceGroupName, String networkAnchorName) { + return getByResourceGroupWithResponse(resourceGroupName, networkAnchorName, Context.NONE).getValue(); + } + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String networkAnchorName, + NetworkAnchorUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, contentType, accept, properties, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String networkAnchorName, + NetworkAnchorUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, contentType, accept, properties, + Context.NONE); + } + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String networkAnchorName, + NetworkAnchorUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, contentType, accept, properties, + context); + } + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, NetworkAnchorInner> beginUpdateAsync(String resourceGroupName, + String networkAnchorName, NetworkAnchorUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, networkAnchorName, properties); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + NetworkAnchorInner.class, NetworkAnchorInner.class, this.client.getContext()); + } + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetworkAnchorInner> beginUpdate(String resourceGroupName, + String networkAnchorName, NetworkAnchorUpdate properties) { + Response response = updateWithResponse(resourceGroupName, networkAnchorName, properties); + return this.client.getLroResult(response, NetworkAnchorInner.class, + NetworkAnchorInner.class, Context.NONE); + } + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetworkAnchorInner> beginUpdate(String resourceGroupName, + String networkAnchorName, NetworkAnchorUpdate properties, Context context) { + Response response = updateWithResponse(resourceGroupName, networkAnchorName, properties, context); + return this.client.getLroResult(response, NetworkAnchorInner.class, + NetworkAnchorInner.class, context); + } + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String networkAnchorName, + NetworkAnchorUpdate properties) { + return beginUpdateAsync(resourceGroupName, networkAnchorName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkAnchorInner update(String resourceGroupName, String networkAnchorName, + NetworkAnchorUpdate properties) { + return beginUpdate(resourceGroupName, networkAnchorName, properties).getFinalResult(); + } + + /** + * Update a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param properties The resource properties to be updated. + * @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 network Anchor resource model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkAnchorInner update(String resourceGroupName, String networkAnchorName, NetworkAnchorUpdate properties, + Context context) { + return beginUpdate(resourceGroupName, networkAnchorName, properties, context).getFinalResult(); + } + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String networkAnchorName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String networkAnchorName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, Context.NONE); + } + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String networkAnchorName, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, networkAnchorName, context); + } + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String networkAnchorName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, networkAnchorName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkAnchorName) { + Response response = deleteWithResponse(resourceGroupName, networkAnchorName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String networkAnchorName, + Context context) { + Response response = deleteWithResponse(resourceGroupName, networkAnchorName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String networkAnchorName) { + return beginDeleteAsync(resourceGroupName, networkAnchorName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkAnchorName) { + beginDelete(resourceGroupName, networkAnchorName).getFinalResult(); + } + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String networkAnchorName, Context context) { + beginDelete(resourceGroupName, networkAnchorName, context).getFinalResult(); + } + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); + } + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorsImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorsImpl.java new file mode 100644 index 000000000000..3b4360e90289 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorsImpl.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient; +import com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchor; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchors; + +public final class NetworkAnchorsImpl implements NetworkAnchors { + private static final ClientLogger LOGGER = new ClientLogger(NetworkAnchorsImpl.class); + + private final NetworkAnchorsClient innerClient; + + private final com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager; + + public NetworkAnchorsImpl(NetworkAnchorsClient innerClient, + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkAnchorImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkAnchorImpl(inner1, this.manager())); + } + + public Response getByResourceGroupWithResponse(String resourceGroupName, String networkAnchorName, + Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, networkAnchorName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new NetworkAnchorImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public NetworkAnchor getByResourceGroup(String resourceGroupName, String networkAnchorName) { + NetworkAnchorInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, networkAnchorName); + if (inner != null) { + return new NetworkAnchorImpl(inner, this.manager()); + } else { + return null; + } + } + + public void deleteByResourceGroup(String resourceGroupName, String networkAnchorName) { + this.serviceClient().delete(resourceGroupName, networkAnchorName); + } + + public void delete(String resourceGroupName, String networkAnchorName, Context context) { + this.serviceClient().delete(resourceGroupName, networkAnchorName, context); + } + + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkAnchorImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NetworkAnchorImpl(inner1, this.manager())); + } + + public NetworkAnchor getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String networkAnchorName = ResourceManagerUtils.getValueFromIdByName(id, "networkAnchors"); + if (networkAnchorName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'networkAnchors'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, networkAnchorName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String networkAnchorName = ResourceManagerUtils.getValueFromIdByName(id, "networkAnchors"); + if (networkAnchorName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'networkAnchors'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, networkAnchorName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String networkAnchorName = ResourceManagerUtils.getValueFromIdByName(id, "networkAnchors"); + if (networkAnchorName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'networkAnchors'.", id))); + } + this.delete(resourceGroupName, networkAnchorName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String networkAnchorName = ResourceManagerUtils.getValueFromIdByName(id, "networkAnchors"); + if (networkAnchorName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'networkAnchors'.", id))); + } + this.delete(resourceGroupName, networkAnchorName, context); + } + + private NetworkAnchorsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager() { + return this.serviceManager; + } + + public NetworkAnchorImpl define(String name) { + return new NetworkAnchorImpl(name, this.manager()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseManagementClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseManagementClientImpl.java index ac8d7fd42caa..e049d33ae7e7 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseManagementClientImpl.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseManagementClientImpl.java @@ -36,6 +36,8 @@ import com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient; import com.azure.resourcemanager.oracledatabase.fluent.DbServersClient; import com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient; +import com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient; +import com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient; import com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient; import com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient; import com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient; @@ -44,9 +46,11 @@ import com.azure.resourcemanager.oracledatabase.fluent.FlexComponentsClient; import com.azure.resourcemanager.oracledatabase.fluent.GiMinorVersionsClient; import com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient; +import com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient; import com.azure.resourcemanager.oracledatabase.fluent.OperationsClient; import com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseManagementClient; import com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient; +import com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient; import com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient; import com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient; import java.io.IOException; @@ -455,6 +459,62 @@ public ExascaleDbStorageVaultsClient getExascaleDbStorageVaults() { return this.exascaleDbStorageVaults; } + /** + * The NetworkAnchorsClient object to access its operations. + */ + private final NetworkAnchorsClient networkAnchors; + + /** + * Gets the NetworkAnchorsClient object to access its operations. + * + * @return the NetworkAnchorsClient object. + */ + public NetworkAnchorsClient getNetworkAnchors() { + return this.networkAnchors; + } + + /** + * The ResourceAnchorsClient object to access its operations. + */ + private final ResourceAnchorsClient resourceAnchors; + + /** + * Gets the ResourceAnchorsClient object to access its operations. + * + * @return the ResourceAnchorsClient object. + */ + public ResourceAnchorsClient getResourceAnchors() { + return this.resourceAnchors; + } + + /** + * The DbSystemsClient object to access its operations. + */ + private final DbSystemsClient dbSystems; + + /** + * Gets the DbSystemsClient object to access its operations. + * + * @return the DbSystemsClient object. + */ + public DbSystemsClient getDbSystems() { + return this.dbSystems; + } + + /** + * The DbVersionsClient object to access its operations. + */ + private final DbVersionsClient dbVersions; + + /** + * Gets the DbVersionsClient object to access its operations. + * + * @return the DbVersionsClient object. + */ + public DbVersionsClient getDbVersions() { + return this.dbVersions; + } + /** * Initializes an instance of OracleDatabaseManagementClient client. * @@ -472,7 +532,7 @@ public ExascaleDbStorageVaultsClient getExascaleDbStorageVaults() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-03-01"; + this.apiVersion = "2025-09-01"; this.operations = new OperationsClientImpl(this); this.cloudExadataInfrastructures = new CloudExadataInfrastructuresClientImpl(this); this.dbServers = new DbServersClientImpl(this); @@ -495,6 +555,10 @@ public ExascaleDbStorageVaultsClient getExascaleDbStorageVaults() { this.exadbVmClusters = new ExadbVmClustersClientImpl(this); this.exascaleDbNodes = new ExascaleDbNodesClientImpl(this); this.exascaleDbStorageVaults = new ExascaleDbStorageVaultsClientImpl(this); + this.networkAnchors = new NetworkAnchorsClientImpl(this); + this.resourceAnchors = new ResourceAnchorsClientImpl(this); + this.dbSystems = new DbSystemsClientImpl(this); + this.dbVersions = new DbVersionsClientImpl(this); } /** diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorImpl.java new file mode 100644 index 000000000000..1fd129524aa7 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorImpl.java @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchor; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorProperties; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorUpdate; +import java.util.Collections; +import java.util.Map; + +public final class ResourceAnchorImpl implements ResourceAnchor, ResourceAnchor.Definition, ResourceAnchor.Update { + private ResourceAnchorInner innerObject; + + private final com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public ResourceAnchorProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public ResourceAnchorInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String resourceAnchorName; + + private ResourceAnchorUpdate updateProperties; + + public ResourceAnchorImpl withExistingResourceGroup(String resourceGroupName) { + this.resourceGroupName = resourceGroupName; + return this; + } + + public ResourceAnchor create() { + this.innerObject = serviceManager.serviceClient() + .getResourceAnchors() + .createOrUpdate(resourceGroupName, resourceAnchorName, this.innerModel(), Context.NONE); + return this; + } + + public ResourceAnchor create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getResourceAnchors() + .createOrUpdate(resourceGroupName, resourceAnchorName, this.innerModel(), context); + return this; + } + + ResourceAnchorImpl(String name, com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerObject = new ResourceAnchorInner(); + this.serviceManager = serviceManager; + this.resourceAnchorName = name; + } + + public ResourceAnchorImpl update() { + this.updateProperties = new ResourceAnchorUpdate(); + return this; + } + + public ResourceAnchor apply() { + this.innerObject = serviceManager.serviceClient() + .getResourceAnchors() + .update(resourceGroupName, resourceAnchorName, updateProperties, Context.NONE); + return this; + } + + public ResourceAnchor apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getResourceAnchors() + .update(resourceGroupName, resourceAnchorName, updateProperties, context); + return this; + } + + ResourceAnchorImpl(ResourceAnchorInner innerObject, + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.resourceAnchorName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceAnchors"); + } + + public ResourceAnchor refresh() { + this.innerObject = serviceManager.serviceClient() + .getResourceAnchors() + .getByResourceGroupWithResponse(resourceGroupName, resourceAnchorName, Context.NONE) + .getValue(); + return this; + } + + public ResourceAnchor refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getResourceAnchors() + .getByResourceGroupWithResponse(resourceGroupName, resourceAnchorName, context) + .getValue(); + return this; + } + + public ResourceAnchorImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public ResourceAnchorImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public ResourceAnchorImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public ResourceAnchorImpl withProperties(ResourceAnchorProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel() == null || this.innerModel().id() == null; + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorsClientImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorsClientImpl.java new file mode 100644 index 000000000000..69afa6f12f91 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorsClientImpl.java @@ -0,0 +1,1110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient; +import com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner; +import com.azure.resourcemanager.oracledatabase.implementation.models.ResourceAnchorListResult; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ResourceAnchorsClient. + */ +public final class ResourceAnchorsClientImpl implements ResourceAnchorsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ResourceAnchorsService service; + + /** + * The service client containing this operation class. + */ + private final OracleDatabaseManagementClientImpl client; + + /** + * Initializes an instance of ResourceAnchorsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ResourceAnchorsClientImpl(OracleDatabaseManagementClientImpl client) { + this.service + = RestProxy.create(ResourceAnchorsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for OracleDatabaseManagementClientResourceAnchors to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "OracleDatabaseManagementClientResourceAnchors") + public interface ResourceAnchorsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/resourceAnchors") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Oracle.Database/resourceAnchors") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceAnchorName") String resourceAnchorName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ResourceAnchorInner resource, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceAnchorName") String resourceAnchorName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ResourceAnchorInner resource, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceAnchorName") String resourceAnchorName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceAnchorName") String resourceAnchorName, @HeaderParam("Accept") String accept, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceAnchorName") String resourceAnchorName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ResourceAnchorUpdate properties, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceAnchorName") String resourceAnchorName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ResourceAnchorUpdate properties, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceAnchorName") String resourceAnchorName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors/{resourceAnchorName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("resourceAnchorName") String resourceAnchorName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/resourceAnchors") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySubscriptionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listByResourceGroupNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * List ResourceAnchor resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List ResourceAnchor resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * List ResourceAnchor resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage() { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List ResourceAnchor resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List ResourceAnchor resources by subscription ID. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); + } + + /** + * List ResourceAnchor resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(() -> listSinglePage(context), + nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); + } + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return resource Anchor model along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceAnchorName, ResourceAnchorInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return resource Anchor model along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String resourceAnchorName, + ResourceAnchorInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, contentType, accept, resource, + Context.NONE); + } + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return resource Anchor model along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String resourceAnchorName, + ResourceAnchorInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, contentType, accept, resource, + context); + } + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ResourceAnchorInner> + beginCreateOrUpdateAsync(String resourceGroupName, String resourceAnchorName, ResourceAnchorInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceAnchorName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ResourceAnchorInner.class, ResourceAnchorInner.class, this.client.getContext()); + } + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ResourceAnchorInner> + beginCreateOrUpdate(String resourceGroupName, String resourceAnchorName, ResourceAnchorInner resource) { + Response response = createOrUpdateWithResponse(resourceGroupName, resourceAnchorName, resource); + return this.client.getLroResult(response, ResourceAnchorInner.class, + ResourceAnchorInner.class, Context.NONE); + } + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ResourceAnchorInner> beginCreateOrUpdate( + String resourceGroupName, String resourceAnchorName, ResourceAnchorInner resource, Context context) { + Response response + = createOrUpdateWithResponse(resourceGroupName, resourceAnchorName, resource, context); + return this.client.getLroResult(response, ResourceAnchorInner.class, + ResourceAnchorInner.class, context); + } + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return resource Anchor model on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String resourceAnchorName, + ResourceAnchorInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceAnchorName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ResourceAnchorInner createOrUpdate(String resourceGroupName, String resourceAnchorName, + ResourceAnchorInner resource) { + return beginCreateOrUpdate(resourceGroupName, resourceAnchorName, resource).getFinalResult(); + } + + /** + * Create a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ResourceAnchorInner createOrUpdate(String resourceGroupName, String resourceAnchorName, + ResourceAnchorInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, resourceAnchorName, resource, context).getFinalResult(); + } + + /** + * Get a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @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 ResourceAnchor along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String resourceAnchorName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @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 ResourceAnchor on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getByResourceGroupAsync(String resourceGroupName, String resourceAnchorName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, resourceAnchorName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @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 ResourceAnchor along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String resourceAnchorName, Context context) { + final String accept = "application/json"; + return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, accept, context); + } + + /** + * Get a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @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 ResourceAnchor. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ResourceAnchorInner getByResourceGroup(String resourceGroupName, String resourceAnchorName) { + return getByResourceGroupWithResponse(resourceGroupName, resourceAnchorName, Context.NONE).getValue(); + } + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, + String resourceAnchorName, ResourceAnchorUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, contentType, accept, properties, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String resourceAnchorName, + ResourceAnchorUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, contentType, accept, properties, + Context.NONE); + } + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String resourceAnchorName, + ResourceAnchorUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, contentType, accept, properties, + context); + } + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ResourceAnchorInner> beginUpdateAsync(String resourceGroupName, + String resourceAnchorName, ResourceAnchorUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, resourceAnchorName, properties); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ResourceAnchorInner.class, ResourceAnchorInner.class, this.client.getContext()); + } + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ResourceAnchorInner> beginUpdate(String resourceGroupName, + String resourceAnchorName, ResourceAnchorUpdate properties) { + Response response = updateWithResponse(resourceGroupName, resourceAnchorName, properties); + return this.client.getLroResult(response, ResourceAnchorInner.class, + ResourceAnchorInner.class, Context.NONE); + } + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ResourceAnchorInner> beginUpdate(String resourceGroupName, + String resourceAnchorName, ResourceAnchorUpdate properties, Context context) { + Response response = updateWithResponse(resourceGroupName, resourceAnchorName, properties, context); + return this.client.getLroResult(response, ResourceAnchorInner.class, + ResourceAnchorInner.class, context); + } + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String resourceAnchorName, + ResourceAnchorUpdate properties) { + return beginUpdateAsync(resourceGroupName, resourceAnchorName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ResourceAnchorInner update(String resourceGroupName, String resourceAnchorName, + ResourceAnchorUpdate properties) { + return beginUpdate(resourceGroupName, resourceAnchorName, properties).getFinalResult(); + } + + /** + * Update a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param properties The resource properties to be updated. + * @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 resource Anchor model. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ResourceAnchorInner update(String resourceGroupName, String resourceAnchorName, + ResourceAnchorUpdate properties, Context context) { + return beginUpdate(resourceGroupName, resourceAnchorName, properties, context).getFinalResult(); + } + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String resourceAnchorName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String resourceAnchorName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, Context.NONE); + } + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response body along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response deleteWithResponse(String resourceGroupName, String resourceAnchorName, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceAnchorName, context); + } + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceAnchorName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceAnchorName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceAnchorName) { + Response response = deleteWithResponse(resourceGroupName, resourceAnchorName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceAnchorName, + Context context) { + Response response = deleteWithResponse(resourceGroupName, resourceAnchorName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String resourceAnchorName) { + return beginDeleteAsync(resourceGroupName, resourceAnchorName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String resourceAnchorName) { + beginDelete(resourceGroupName, resourceAnchorName).getFinalResult(); + } + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String resourceAnchorName, Context context) { + beginDelete(resourceGroupName, resourceAnchorName, context).getFinalResult(); + } + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, + Context context) { + final String accept = "application/json"; + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePage(nextLink)); + } + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorsImpl.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorsImpl.java new file mode 100644 index 000000000000..449769ab3b54 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorsImpl.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient; +import com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchor; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchors; + +public final class ResourceAnchorsImpl implements ResourceAnchors { + private static final ClientLogger LOGGER = new ClientLogger(ResourceAnchorsImpl.class); + + private final ResourceAnchorsClient innerClient; + + private final com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager; + + public ResourceAnchorsImpl(ResourceAnchorsClient innerClient, + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ResourceAnchorImpl(inner1, this.manager())); + } + + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ResourceAnchorImpl(inner1, this.manager())); + } + + public Response getByResourceGroupWithResponse(String resourceGroupName, String resourceAnchorName, + Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, resourceAnchorName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ResourceAnchorImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public ResourceAnchor getByResourceGroup(String resourceGroupName, String resourceAnchorName) { + ResourceAnchorInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, resourceAnchorName); + if (inner != null) { + return new ResourceAnchorImpl(inner, this.manager()); + } else { + return null; + } + } + + public void deleteByResourceGroup(String resourceGroupName, String resourceAnchorName) { + this.serviceClient().delete(resourceGroupName, resourceAnchorName); + } + + public void delete(String resourceGroupName, String resourceAnchorName, Context context) { + this.serviceClient().delete(resourceGroupName, resourceAnchorName, context); + } + + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ResourceAnchorImpl(inner1, this.manager())); + } + + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ResourceAnchorImpl(inner1, this.manager())); + } + + public ResourceAnchor getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String resourceAnchorName = ResourceManagerUtils.getValueFromIdByName(id, "resourceAnchors"); + if (resourceAnchorName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceAnchors'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, resourceAnchorName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String resourceAnchorName = ResourceManagerUtils.getValueFromIdByName(id, "resourceAnchors"); + if (resourceAnchorName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceAnchors'.", id))); + } + return this.getByResourceGroupWithResponse(resourceGroupName, resourceAnchorName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String resourceAnchorName = ResourceManagerUtils.getValueFromIdByName(id, "resourceAnchors"); + if (resourceAnchorName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceAnchors'.", id))); + } + this.delete(resourceGroupName, resourceAnchorName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String resourceAnchorName = ResourceManagerUtils.getValueFromIdByName(id, "resourceAnchors"); + if (resourceAnchorName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceAnchors'.", id))); + } + this.delete(resourceGroupName, resourceAnchorName, context); + } + + private ResourceAnchorsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager() { + return this.serviceManager; + } + + public ResourceAnchorImpl define(String name) { + return new ResourceAnchorImpl(name, this.manager()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbSystemListResult.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbSystemListResult.java new file mode 100644 index 000000000000..34bcd2e9cf0f --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbSystemListResult.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a DbSystem list operation. + */ +@Immutable +public final class DbSystemListResult implements JsonSerializable { + /* + * The DbSystem items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of DbSystemListResult class. + */ + private DbSystemListResult() { + } + + /** + * Get the value property: The DbSystem items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbSystemListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbSystemListResult 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 DbSystemListResult. + */ + public static DbSystemListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbSystemListResult deserializedDbSystemListResult = new DbSystemListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> DbSystemInner.fromJson(reader1)); + deserializedDbSystemListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedDbSystemListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDbSystemListResult; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbVersionListResult.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbVersionListResult.java new file mode 100644 index 000000000000..7914a7b37d3a --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbVersionListResult.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a DbVersion list operation. + */ +@Immutable +public final class DbVersionListResult implements JsonSerializable { + /* + * The DbVersion items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of DbVersionListResult class. + */ + private DbVersionListResult() { + } + + /** + * Get the value property: The DbVersion items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbVersionListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbVersionListResult 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 DbVersionListResult. + */ + public static DbVersionListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbVersionListResult deserializedDbVersionListResult = new DbVersionListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> DbVersionInner.fromJson(reader1)); + deserializedDbVersionListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedDbVersionListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDbVersionListResult; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/NetworkAnchorListResult.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/NetworkAnchorListResult.java new file mode 100644 index 000000000000..869f62379cbb --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/NetworkAnchorListResult.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a NetworkAnchor list operation. + */ +@Immutable +public final class NetworkAnchorListResult implements JsonSerializable { + /* + * The NetworkAnchor items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of NetworkAnchorListResult class. + */ + private NetworkAnchorListResult() { + } + + /** + * Get the value property: The NetworkAnchor items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkAnchorListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkAnchorListResult 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 NetworkAnchorListResult. + */ + public static NetworkAnchorListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkAnchorListResult deserializedNetworkAnchorListResult = new NetworkAnchorListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> NetworkAnchorInner.fromJson(reader1)); + deserializedNetworkAnchorListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedNetworkAnchorListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkAnchorListResult; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ResourceAnchorListResult.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ResourceAnchorListResult.java new file mode 100644 index 000000000000..0e7617d73bbb --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ResourceAnchorListResult.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a ResourceAnchor list operation. + */ +@Immutable +public final class ResourceAnchorListResult implements JsonSerializable { + /* + * The ResourceAnchor items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of ResourceAnchorListResult class. + */ + private ResourceAnchorListResult() { + } + + /** + * Get the value property: The ResourceAnchor items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceAnchorListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceAnchorListResult 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 ResourceAnchorListResult. + */ + public static ResourceAnchorListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceAnchorListResult deserializedResourceAnchorListResult = new ResourceAnchorListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ResourceAnchorInner.fromJson(reader1)); + deserializedResourceAnchorListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedResourceAnchorListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceAnchorListResult; + }); + } +} 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 774258c0fb7a..b53a6639867b 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 @@ -399,4 +399,27 @@ Response generateWalletWithResponse(GenerateAutono * @return the response. */ AutonomousDatabase changeDisasterRecoveryConfiguration(DisasterRecoveryConfigurationDetails body, Context context); + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @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 response. + */ + AutonomousDatabase action(AutonomousDatabaseLifecycleAction body); + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @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 response. + */ + AutonomousDatabase action(AutonomousDatabaseLifecycleAction body, Context context); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBaseProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBaseProperties.java index b6494b3da8bf..7a359df6054b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBaseProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBaseProperties.java @@ -182,7 +182,7 @@ public class AutonomousDatabaseBaseProperties implements JsonSerializable scheduledOperationsList; /* * The private endpoint Ip address for the resource. @@ -1068,22 +1068,23 @@ AutonomousDatabaseBaseProperties withLifecycleState(AutonomousDatabaseLifecycleS } /** - * Get the scheduledOperations property: The list of scheduled operations. + * Get the scheduledOperationsList property: The list of scheduled operations. * - * @return the scheduledOperations value. + * @return the scheduledOperationsList value. */ - public ScheduledOperationsType scheduledOperations() { - return this.scheduledOperations; + public List scheduledOperationsList() { + return this.scheduledOperationsList; } /** - * Set the scheduledOperations property: The list of scheduled operations. + * Set the scheduledOperationsList property: The list of scheduled operations. * - * @param scheduledOperations the scheduledOperations value to set. + * @param scheduledOperationsList the scheduledOperationsList value to set. * @return the AutonomousDatabaseBaseProperties object itself. */ - public AutonomousDatabaseBaseProperties withScheduledOperations(ScheduledOperationsType scheduledOperations) { - this.scheduledOperations = scheduledOperations; + public AutonomousDatabaseBaseProperties + withScheduledOperationsList(List scheduledOperationsList) { + this.scheduledOperationsList = scheduledOperationsList; return this; } @@ -2052,7 +2053,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.isPreviewVersionWithServiceTermsAccepted); jsonWriter.writeStringField("licenseModel", this.licenseModel == null ? null : this.licenseModel.toString()); jsonWriter.writeStringField("ncharacterSet", this.ncharacterSet); - jsonWriter.writeJsonField("scheduledOperations", this.scheduledOperations); + jsonWriter.writeArrayField("scheduledOperationsList", this.scheduledOperationsList, + (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("privateEndpointIp", this.privateEndpointIp); jsonWriter.writeStringField("privateEndpointLabel", this.privateEndpointLabel); jsonWriter.writeStringField("subnetId", this.subnetId); @@ -2205,9 +2207,10 @@ static AutonomousDatabaseBaseProperties fromJsonKnownDiscriminator(JsonReader js } else if ("lifecycleState".equals(fieldName)) { deserializedAutonomousDatabaseBaseProperties.lifecycleState = AutonomousDatabaseLifecycleState.fromString(reader.getString()); - } else if ("scheduledOperations".equals(fieldName)) { - deserializedAutonomousDatabaseBaseProperties.scheduledOperations - = ScheduledOperationsType.fromJson(reader); + } else if ("scheduledOperationsList".equals(fieldName)) { + List scheduledOperationsList + = reader.readArray(reader1 -> ScheduledOperationsType.fromJson(reader1)); + deserializedAutonomousDatabaseBaseProperties.scheduledOperationsList = scheduledOperationsList; } else if ("privateEndpointIp".equals(fieldName)) { deserializedAutonomousDatabaseBaseProperties.privateEndpointIp = reader.getString(); } else if ("privateEndpointLabel".equals(fieldName)) { diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCloneProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCloneProperties.java index 17f92e101dd8..85870db03e31 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCloneProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCloneProperties.java @@ -398,8 +398,9 @@ public AutonomousDatabaseCloneProperties withNcharacterSet(String ncharacterSet) * {@inheritDoc} */ @Override - public AutonomousDatabaseCloneProperties withScheduledOperations(ScheduledOperationsType scheduledOperations) { - super.withScheduledOperations(scheduledOperations); + public AutonomousDatabaseCloneProperties + withScheduledOperationsList(List scheduledOperationsList) { + super.withScheduledOperationsList(scheduledOperationsList); return this; } @@ -551,7 +552,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { isPreviewVersionWithServiceTermsAccepted()); jsonWriter.writeStringField("licenseModel", licenseModel() == null ? null : licenseModel().toString()); jsonWriter.writeStringField("ncharacterSet", ncharacterSet()); - jsonWriter.writeJsonField("scheduledOperations", scheduledOperations()); + jsonWriter.writeArrayField("scheduledOperationsList", scheduledOperationsList(), + (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("privateEndpointIp", privateEndpointIp()); jsonWriter.writeStringField("privateEndpointLabel", privateEndpointLabel()); jsonWriter.writeStringField("subnetId", subnetId()); @@ -677,9 +679,10 @@ public static AutonomousDatabaseCloneProperties fromJson(JsonReader jsonReader) } else if ("lifecycleState".equals(fieldName)) { deserializedAutonomousDatabaseCloneProperties .withLifecycleState(AutonomousDatabaseLifecycleState.fromString(reader.getString())); - } else if ("scheduledOperations".equals(fieldName)) { - deserializedAutonomousDatabaseCloneProperties - .withScheduledOperations(ScheduledOperationsType.fromJson(reader)); + } else if ("scheduledOperationsList".equals(fieldName)) { + List scheduledOperationsList + = reader.readArray(reader1 -> ScheduledOperationsType.fromJson(reader1)); + deserializedAutonomousDatabaseCloneProperties.withScheduledOperationsList(scheduledOperationsList); } else if ("privateEndpointIp".equals(fieldName)) { deserializedAutonomousDatabaseCloneProperties.withPrivateEndpointIp(reader.getString()); } else if ("privateEndpointLabel".equals(fieldName)) { diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCrossRegionDisasterRecoveryProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCrossRegionDisasterRecoveryProperties.java index 93ab6ebb1eec..f21559565494 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCrossRegionDisasterRecoveryProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCrossRegionDisasterRecoveryProperties.java @@ -390,8 +390,8 @@ public AutonomousDatabaseCrossRegionDisasterRecoveryProperties withNcharacterSet */ @Override public AutonomousDatabaseCrossRegionDisasterRecoveryProperties - withScheduledOperations(ScheduledOperationsType scheduledOperations) { - super.withScheduledOperations(scheduledOperations); + withScheduledOperationsList(List scheduledOperationsList) { + super.withScheduledOperationsList(scheduledOperationsList); return this; } @@ -548,7 +548,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { isPreviewVersionWithServiceTermsAccepted()); jsonWriter.writeStringField("licenseModel", licenseModel() == null ? null : licenseModel().toString()); jsonWriter.writeStringField("ncharacterSet", ncharacterSet()); - jsonWriter.writeJsonField("scheduledOperations", scheduledOperations()); + jsonWriter.writeArrayField("scheduledOperationsList", scheduledOperationsList(), + (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("privateEndpointIp", privateEndpointIp()); jsonWriter.writeStringField("privateEndpointLabel", privateEndpointLabel()); jsonWriter.writeStringField("subnetId", subnetId()); @@ -686,9 +687,11 @@ public static AutonomousDatabaseCrossRegionDisasterRecoveryProperties fromJson(J } else if ("lifecycleState".equals(fieldName)) { deserializedAutonomousDatabaseCrossRegionDisasterRecoveryProperties .withLifecycleState(AutonomousDatabaseLifecycleState.fromString(reader.getString())); - } else if ("scheduledOperations".equals(fieldName)) { + } else if ("scheduledOperationsList".equals(fieldName)) { + List scheduledOperationsList + = reader.readArray(reader1 -> ScheduledOperationsType.fromJson(reader1)); deserializedAutonomousDatabaseCrossRegionDisasterRecoveryProperties - .withScheduledOperations(ScheduledOperationsType.fromJson(reader)); + .withScheduledOperationsList(scheduledOperationsList); } else if ("privateEndpointIp".equals(fieldName)) { deserializedAutonomousDatabaseCrossRegionDisasterRecoveryProperties .withPrivateEndpointIp(reader.getString()); diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseFromBackupTimestampProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseFromBackupTimestampProperties.java index 8f77added0bc..e4623b141b35 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseFromBackupTimestampProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseFromBackupTimestampProperties.java @@ -351,8 +351,8 @@ public AutonomousDatabaseFromBackupTimestampProperties withNcharacterSet(String */ @Override public AutonomousDatabaseFromBackupTimestampProperties - withScheduledOperations(ScheduledOperationsType scheduledOperations) { - super.withScheduledOperations(scheduledOperations); + withScheduledOperationsList(List scheduledOperationsList) { + super.withScheduledOperationsList(scheduledOperationsList); return this; } @@ -505,7 +505,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { isPreviewVersionWithServiceTermsAccepted()); jsonWriter.writeStringField("licenseModel", licenseModel() == null ? null : licenseModel().toString()); jsonWriter.writeStringField("ncharacterSet", ncharacterSet()); - jsonWriter.writeJsonField("scheduledOperations", scheduledOperations()); + jsonWriter.writeArrayField("scheduledOperationsList", scheduledOperationsList(), + (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("privateEndpointIp", privateEndpointIp()); jsonWriter.writeStringField("privateEndpointLabel", privateEndpointLabel()); jsonWriter.writeStringField("subnetId", subnetId()); @@ -633,9 +634,11 @@ public static AutonomousDatabaseFromBackupTimestampProperties fromJson(JsonReade } else if ("lifecycleState".equals(fieldName)) { deserializedAutonomousDatabaseFromBackupTimestampProperties .withLifecycleState(AutonomousDatabaseLifecycleState.fromString(reader.getString())); - } else if ("scheduledOperations".equals(fieldName)) { + } else if ("scheduledOperationsList".equals(fieldName)) { + List scheduledOperationsList + = reader.readArray(reader1 -> ScheduledOperationsType.fromJson(reader1)); deserializedAutonomousDatabaseFromBackupTimestampProperties - .withScheduledOperations(ScheduledOperationsType.fromJson(reader)); + .withScheduledOperationsList(scheduledOperationsList); } else if ("privateEndpointIp".equals(fieldName)) { deserializedAutonomousDatabaseFromBackupTimestampProperties .withPrivateEndpointIp(reader.getString()); diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleAction.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleAction.java new file mode 100644 index 000000000000..d359a48de616 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleAction.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Autonomous Database Action Object. + */ +@Fluent +public final class AutonomousDatabaseLifecycleAction implements JsonSerializable { + /* + * Autonomous Database lifecycle action + */ + private AutonomousDatabaseLifecycleActionEnum action; + + /** + * Creates an instance of AutonomousDatabaseLifecycleAction class. + */ + public AutonomousDatabaseLifecycleAction() { + } + + /** + * Get the action property: Autonomous Database lifecycle action. + * + * @return the action value. + */ + public AutonomousDatabaseLifecycleActionEnum action() { + return this.action; + } + + /** + * Set the action property: Autonomous Database lifecycle action. + * + * @param action the action value to set. + * @return the AutonomousDatabaseLifecycleAction object itself. + */ + public AutonomousDatabaseLifecycleAction withAction(AutonomousDatabaseLifecycleActionEnum action) { + this.action = action; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("action", this.action == null ? null : this.action.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AutonomousDatabaseLifecycleAction from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AutonomousDatabaseLifecycleAction 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 AutonomousDatabaseLifecycleAction. + */ + public static AutonomousDatabaseLifecycleAction fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AutonomousDatabaseLifecycleAction deserializedAutonomousDatabaseLifecycleAction + = new AutonomousDatabaseLifecycleAction(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("action".equals(fieldName)) { + deserializedAutonomousDatabaseLifecycleAction.action + = AutonomousDatabaseLifecycleActionEnum.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedAutonomousDatabaseLifecycleAction; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleActionEnum.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleActionEnum.java new file mode 100644 index 000000000000..1e1db6cbd043 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleActionEnum.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Autonomous Database Action Enum. + */ +public final class AutonomousDatabaseLifecycleActionEnum + extends ExpandableStringEnum { + /** + * Start Autonomous Database. + */ + public static final AutonomousDatabaseLifecycleActionEnum START = fromString("Start"); + + /** + * Stop Autonomous Database. + */ + public static final AutonomousDatabaseLifecycleActionEnum STOP = fromString("Stop"); + + /** + * Restart Autonomous Database. + */ + public static final AutonomousDatabaseLifecycleActionEnum RESTART = fromString("Restart"); + + /** + * Creates a new instance of AutonomousDatabaseLifecycleActionEnum value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AutonomousDatabaseLifecycleActionEnum() { + } + + /** + * Creates or finds a AutonomousDatabaseLifecycleActionEnum from its string representation. + * + * @param name a name to look for. + * @return the corresponding AutonomousDatabaseLifecycleActionEnum. + */ + public static AutonomousDatabaseLifecycleActionEnum fromString(String name) { + return fromString(name, AutonomousDatabaseLifecycleActionEnum.class); + } + + /** + * Gets known AutonomousDatabaseLifecycleActionEnum values. + * + * @return known AutonomousDatabaseLifecycleActionEnum values. + */ + public static Collection values() { + return values(AutonomousDatabaseLifecycleActionEnum.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseProperties.java index 70f6b9b325be..051c9a909c19 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseProperties.java @@ -224,8 +224,9 @@ public AutonomousDatabaseProperties withNcharacterSet(String ncharacterSet) { * {@inheritDoc} */ @Override - public AutonomousDatabaseProperties withScheduledOperations(ScheduledOperationsType scheduledOperations) { - super.withScheduledOperations(scheduledOperations); + public AutonomousDatabaseProperties + withScheduledOperationsList(List scheduledOperationsList) { + super.withScheduledOperationsList(scheduledOperationsList); return this; } @@ -377,7 +378,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { isPreviewVersionWithServiceTermsAccepted()); jsonWriter.writeStringField("licenseModel", licenseModel() == null ? null : licenseModel().toString()); jsonWriter.writeStringField("ncharacterSet", ncharacterSet()); - jsonWriter.writeJsonField("scheduledOperations", scheduledOperations()); + jsonWriter.writeArrayField("scheduledOperationsList", scheduledOperationsList(), + (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("privateEndpointIp", privateEndpointIp()); jsonWriter.writeStringField("privateEndpointLabel", privateEndpointLabel()); jsonWriter.writeStringField("subnetId", subnetId()); @@ -494,9 +496,10 @@ public static AutonomousDatabaseProperties fromJson(JsonReader jsonReader) throw } else if ("lifecycleState".equals(fieldName)) { deserializedAutonomousDatabaseProperties .withLifecycleState(AutonomousDatabaseLifecycleState.fromString(reader.getString())); - } else if ("scheduledOperations".equals(fieldName)) { - deserializedAutonomousDatabaseProperties - .withScheduledOperations(ScheduledOperationsType.fromJson(reader)); + } else if ("scheduledOperationsList".equals(fieldName)) { + List scheduledOperationsList + = reader.readArray(reader1 -> ScheduledOperationsType.fromJson(reader1)); + deserializedAutonomousDatabaseProperties.withScheduledOperationsList(scheduledOperationsList); } else if ("privateEndpointIp".equals(fieldName)) { deserializedAutonomousDatabaseProperties.withPrivateEndpointIp(reader.getString()); } else if ("privateEndpointLabel".equals(fieldName)) { diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdateProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdateProperties.java index eefb071c7a07..312e4d21d885 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdateProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdateProperties.java @@ -91,7 +91,7 @@ public final class AutonomousDatabaseUpdateProperties implements JsonSerializabl /* * The list of scheduled operations. */ - private ScheduledOperationsTypeUpdate scheduledOperations; + private List scheduledOperationsList; /* * The Oracle Database Edition that applies to the Autonomous databases. @@ -439,23 +439,23 @@ public AutonomousDatabaseUpdateProperties withLicenseModel(LicenseModel licenseM } /** - * Get the scheduledOperations property: The list of scheduled operations. + * Get the scheduledOperationsList property: The list of scheduled operations. * - * @return the scheduledOperations value. + * @return the scheduledOperationsList value. */ - public ScheduledOperationsTypeUpdate scheduledOperations() { - return this.scheduledOperations; + public List scheduledOperationsList() { + return this.scheduledOperationsList; } /** - * Set the scheduledOperations property: The list of scheduled operations. + * Set the scheduledOperationsList property: The list of scheduled operations. * - * @param scheduledOperations the scheduledOperations value to set. + * @param scheduledOperationsList the scheduledOperationsList value to set. * @return the AutonomousDatabaseUpdateProperties object itself. */ public AutonomousDatabaseUpdateProperties - withScheduledOperations(ScheduledOperationsTypeUpdate scheduledOperations) { - this.scheduledOperations = scheduledOperations; + withScheduledOperationsList(List scheduledOperationsList) { + this.scheduledOperationsList = scheduledOperationsList; return this; } @@ -653,7 +653,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("isLocalDataGuardEnabled", this.isLocalDataGuardEnabled); jsonWriter.writeBooleanField("isMtlsConnectionRequired", this.isMtlsConnectionRequired); jsonWriter.writeStringField("licenseModel", this.licenseModel == null ? null : this.licenseModel.toString()); - jsonWriter.writeJsonField("scheduledOperations", this.scheduledOperations); + jsonWriter.writeArrayField("scheduledOperationsList", this.scheduledOperationsList, + (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("databaseEdition", this.databaseEdition == null ? null : this.databaseEdition.toString()); jsonWriter.writeJsonField("longTermBackupSchedule", this.longTermBackupSchedule); @@ -724,9 +725,10 @@ public static AutonomousDatabaseUpdateProperties fromJson(JsonReader jsonReader) } else if ("licenseModel".equals(fieldName)) { deserializedAutonomousDatabaseUpdateProperties.licenseModel = LicenseModel.fromString(reader.getString()); - } else if ("scheduledOperations".equals(fieldName)) { - deserializedAutonomousDatabaseUpdateProperties.scheduledOperations - = ScheduledOperationsTypeUpdate.fromJson(reader); + } else if ("scheduledOperationsList".equals(fieldName)) { + List scheduledOperationsList + = reader.readArray(reader1 -> ScheduledOperationsTypeUpdate.fromJson(reader1)); + deserializedAutonomousDatabaseUpdateProperties.scheduledOperationsList = scheduledOperationsList; } else if ("databaseEdition".equals(fieldName)) { deserializedAutonomousDatabaseUpdateProperties.databaseEdition = DatabaseEditionType.fromString(reader.getString()); diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabases.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabases.java index 9bb0f49b7de1..f4c300001f1d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabases.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabases.java @@ -272,6 +272,35 @@ AutonomousDatabase changeDisasterRecoveryConfiguration(String resourceGroupName, AutonomousDatabase changeDisasterRecoveryConfiguration(String resourceGroupName, String autonomousdatabasename, DisasterRecoveryConfigurationDetails body, Context context); + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response. + */ + AutonomousDatabase action(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body); + + /** + * Perform Lifecycle Management Action on Autonomous Database. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param autonomousdatabasename The database name. + * @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 response. + */ + AutonomousDatabase action(String resourceGroupName, String autonomousdatabasename, + AutonomousDatabaseLifecycleAction body, Context context); + /** * Get a AutonomousDatabase. * diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/BaseDbSystemShapes.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/BaseDbSystemShapes.java new file mode 100644 index 000000000000..d6dd229d63dd --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/BaseDbSystemShapes.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Allowed values for BaseDb System Shapes. + */ +public final class BaseDbSystemShapes extends ExpandableStringEnum { + /** + * Vm Standard X86. + */ + public static final BaseDbSystemShapes VMSTANDARD_X86 = fromString("VM.Standard.x86"); + + /** + * Creates a new instance of BaseDbSystemShapes value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public BaseDbSystemShapes() { + } + + /** + * Creates or finds a BaseDbSystemShapes from its string representation. + * + * @param name a name to look for. + * @return the corresponding BaseDbSystemShapes. + */ + public static BaseDbSystemShapes fromString(String name) { + return fromString(name, BaseDbSystemShapes.class); + } + + /** + * Gets known BaseDbSystemShapes values. + * + * @return known BaseDbSystemShapes values. + */ + public static Collection values() { + return values(BaseDbSystemShapes.class); + } +} 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 8bc51f514805..f41860a50d86 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 @@ -316,4 +316,28 @@ interface WithProperties { * @return the response. */ CloudExadataInfrastructure addStorageCapacity(Context context); + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @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 response. + */ + CloudExadataInfrastructure configureExascale(ConfigureExascaleCloudExadataInfrastructureDetails body); + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @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 response. + */ + CloudExadataInfrastructure configureExascale(ConfigureExascaleCloudExadataInfrastructureDetails body, + Context context); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureProperties.java index c836a01baec8..4075743d80d6 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureProperties.java @@ -197,6 +197,11 @@ public final class CloudExadataInfrastructureProperties */ private ComputeModel computeModel; + /* + * The exascale config details for the cloud Exadata infrastructure + */ + private ExascaleConfigDetails exascaleConfig; + /** * Creates an instance of CloudExadataInfrastructureProperties class. */ @@ -621,6 +626,15 @@ public ComputeModel computeModel() { return this.computeModel; } + /** + * Get the exascaleConfig property: The exascale config details for the cloud Exadata infrastructure. + * + * @return the exascaleConfig value. + */ + public ExascaleConfigDetails exascaleConfig() { + return this.exascaleConfig; + } + /** * {@inheritDoc} */ @@ -749,6 +763,9 @@ public static CloudExadataInfrastructureProperties fromJson(JsonReader jsonReade } else if ("computeModel".equals(fieldName)) { deserializedCloudExadataInfrastructureProperties.computeModel = ComputeModel.fromString(reader.getString()); + } else if ("exascaleConfig".equals(fieldName)) { + deserializedCloudExadataInfrastructureProperties.exascaleConfig + = ExascaleConfigDetails.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructures.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructures.java index 716b2dc36d29..eb4a83411052 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructures.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructures.java @@ -134,6 +134,35 @@ Response getByResourceGroupWithResponse(String resou CloudExadataInfrastructure addStorageCapacity(String resourceGroupName, String cloudexadatainfrastructurename, Context context); + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response. + */ + CloudExadataInfrastructure configureExascale(String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body); + + /** + * Configures Exascale on Cloud exadata infrastructure resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param cloudexadatainfrastructurename CloudExadataInfrastructure name. + * @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 response. + */ + CloudExadataInfrastructure configureExascale(String resourceGroupName, String cloudexadatainfrastructurename, + ConfigureExascaleCloudExadataInfrastructureDetails body, Context context); + /** * Get a CloudExadataInfrastructure. * diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterProperties.java index 65f830e7789a..11b924457297 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterProperties.java @@ -285,6 +285,16 @@ public final class CloudVmClusterProperties implements JsonSerializable writer.writeString(element)); jsonWriter.writeArrayField("dbServers", this.dbServers, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("exascaleDbStorageVaultId", this.exascaleDbStorageVaultId); return jsonWriter.writeEndObject(); } @@ -1286,6 +1327,11 @@ public static CloudVmClusterProperties fromJson(JsonReader jsonReader) throws IO deserializedCloudVmClusterProperties.subnetOcid = reader.getString(); } else if ("computeModel".equals(fieldName)) { deserializedCloudVmClusterProperties.computeModel = ComputeModel.fromString(reader.getString()); + } else if ("exascaleDbStorageVaultId".equals(fieldName)) { + deserializedCloudVmClusterProperties.exascaleDbStorageVaultId = reader.getString(); + } else if ("storageManagementType".equals(fieldName)) { + deserializedCloudVmClusterProperties.storageManagementType + = ExadataVmClusterStorageManagementType.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ConfigureExascaleCloudExadataInfrastructureDetails.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ConfigureExascaleCloudExadataInfrastructureDetails.java new file mode 100644 index 000000000000..acb283c80a62 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ConfigureExascaleCloudExadataInfrastructureDetails.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The exascale config request details for the Cloud Exadata infrastructure. + */ +@Fluent +public final class ConfigureExascaleCloudExadataInfrastructureDetails + implements JsonSerializable { + /* + * Storage size needed for Exascale in GBs. + */ + private int totalStorageInGbs; + + /** + * Creates an instance of ConfigureExascaleCloudExadataInfrastructureDetails class. + */ + public ConfigureExascaleCloudExadataInfrastructureDetails() { + } + + /** + * Get the totalStorageInGbs property: Storage size needed for Exascale in GBs. + * + * @return the totalStorageInGbs value. + */ + public int totalStorageInGbs() { + return this.totalStorageInGbs; + } + + /** + * Set the totalStorageInGbs property: Storage size needed for Exascale in GBs. + * + * @param totalStorageInGbs the totalStorageInGbs value to set. + * @return the ConfigureExascaleCloudExadataInfrastructureDetails object itself. + */ + public ConfigureExascaleCloudExadataInfrastructureDetails withTotalStorageInGbs(int totalStorageInGbs) { + this.totalStorageInGbs = totalStorageInGbs; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("totalStorageInGbs", this.totalStorageInGbs); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConfigureExascaleCloudExadataInfrastructureDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConfigureExascaleCloudExadataInfrastructureDetails 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 ConfigureExascaleCloudExadataInfrastructureDetails. + */ + public static ConfigureExascaleCloudExadataInfrastructureDetails fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ConfigureExascaleCloudExadataInfrastructureDetails deserializedConfigureExascaleCloudExadataInfrastructureDetails + = new ConfigureExascaleCloudExadataInfrastructureDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("totalStorageInGbs".equals(fieldName)) { + deserializedConfigureExascaleCloudExadataInfrastructureDetails.totalStorageInGbs = reader.getInt(); + } else { + reader.skipChildren(); + } + } + + return deserializedConfigureExascaleCloudExadataInfrastructureDetails; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystem.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystem.java new file mode 100644 index 000000000000..174967b38071 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystem.java @@ -0,0 +1,300 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemInner; +import java.util.List; +import java.util.Map; + +/** + * An immutable client-side representation of DbSystem. + */ +public interface DbSystem { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + DbSystemProperties properties(); + + /** + * Gets the zones property: The availability zones. + * + * @return the zones value. + */ + List zones(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemInner object. + * + * @return the inner object. + */ + DbSystemInner innerModel(); + + /** + * The entirety of the DbSystem definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { + } + + /** + * The DbSystem definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the DbSystem definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the DbSystem definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(String location); + } + + /** + * The stage of the DbSystem definition allowing to specify parent resource. + */ + interface WithResourceGroup { + /** + * Specifies resourceGroupName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @return the next definition stage. + */ + WithCreate withExistingResourceGroup(String resourceGroupName); + } + + /** + * The stage of the DbSystem definition which contains all the minimum required properties for the resource to + * be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate + extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithZones { + /** + * Executes the create request. + * + * @return the created resource. + */ + DbSystem create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + DbSystem create(Context context); + } + + /** + * The stage of the DbSystem definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the DbSystem definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(DbSystemProperties properties); + } + + /** + * The stage of the DbSystem definition allowing to specify zones. + */ + interface WithZones { + /** + * Specifies the zones property: The availability zones.. + * + * @param zones The availability zones. + * @return the next definition stage. + */ + WithCreate withZones(List zones); + } + } + + /** + * Begins update for the DbSystem resource. + * + * @return the stage of resource update. + */ + DbSystem.Update update(); + + /** + * The template for DbSystem update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithZones, UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + DbSystem apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + DbSystem apply(Context context); + } + + /** + * The DbSystem update stages. + */ + interface UpdateStages { + /** + * The stage of the DbSystem update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the DbSystem update allowing to specify zones. + */ + interface WithZones { + /** + * Specifies the zones property: The availability zones.. + * + * @param zones The availability zones. + * @return the next definition stage. + */ + Update withZones(List zones); + } + + /** + * The stage of the DbSystem update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + Update withProperties(DbSystemUpdateProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + DbSystem refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + DbSystem refresh(Context context); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemBaseProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemBaseProperties.java new file mode 100644 index 000000000000..4a535e0832fa --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemBaseProperties.java @@ -0,0 +1,968 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * DbSystem resource base model. + */ +@Fluent +public class DbSystemBaseProperties implements JsonSerializable { + /* + * The source of the database: Use `None` for creating a new database. The default is `None`. + */ + private DbSystemSourceType source = DbSystemSourceType.fromString("DbSystemBaseProperties"); + + /* + * dbSystem provisioning state + */ + private AzureResourceProvisioningState provisioningState; + + /* + * HTTPS link to OCI resources exposed to Azure Customer via Azure Interface. + */ + private String ociUrl; + + /* + * Azure Resource Anchor ID + */ + private String resourceAnchorId; + + /* + * Azure Network Anchor ID + */ + private String networkAnchorId; + + /* + * The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an + * alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no + * longer than 11 characters and is not case sensitive. + */ + private String clusterName; + + /* + * The user-friendly name for the DB system. The name does not have to be unique. + */ + private String displayName; + + /* + * Size in GB of the initial data volume that will be created and attached to a virtual machine DB system. You can + * scale up storage after provisioning, as needed. Note that the total storage size attached will be more than the + * amount you specify to allow for REDO/RECO space and software volume. + */ + private Integer initialDataStorageSizeInGb; + + /* + * The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual + * machine DB systems. + */ + private Integer dataStorageSizeInGbs; + + /* + * The DB system options. + */ + private DbSystemOptions dbSystemOptions; + + /* + * The type of redundancy configured for the DB system. NORMAL is 2-way redundancy. HIGH is 3-way redundancy. + */ + private DiskRedundancyType diskRedundancy; + + /* + * The domain name for the DB system. + */ + private String domainV2; + + /* + * The OCID of a grid infrastructure software image. This is a database software image of the type GRID_IMAGE. + */ + private String gridImageOcid; + + /* + * The hostname for the DB system. + */ + private String hostname; + + /* + * The OCID of the DB system. + */ + private String ocid; + + /* + * The Oracle license model that applies to all the databases on the DB system. The default is LicenseIncluded. + */ + private LicenseModel licenseModelV2; + + /* + * Additional information about the current lifecycle state. + */ + private String lifecycleDetails; + + /* + * The current state of the DB system. + */ + private DbSystemLifecycleState lifecycleState; + + /* + * The port number configured for the listener on the DB system. + */ + private Integer listenerPort; + + /* + * Memory allocated to the DB system, in gigabytes. + */ + private Integer memorySizeInGbs; + + /* + * The number of nodes in the DB system. For RAC DB systems, the value is greater than 1. + */ + private Integer nodeCount; + + /* + * The FQDN of the DNS record for the SCAN IP addresses that are associated with the DB system. + */ + private String scanDnsName; + + /* + * The list of Single Client Access Name (SCAN) IP addresses associated with the DB system. SCAN IP addresses are + * typically used for load balancing and are not assigned to any interface. Oracle Clusterware directs the requests + * to the appropriate nodes in the cluster. Note: For a single-node DB system, this list is empty. + */ + private List scanIps; + + /* + * The shape of the DB system. The shape determines resources to allocate to the DB system. For virtual machine + * shapes, the number of CPU cores and memory. For bare metal and Exadata shapes, the number of CPU cores, storage, + * and memory. + */ + private String shape; + + /* + * The public key portion of one or more key pairs used for SSH access to the DB system. + */ + private List sshPublicKeys; + + /* + * The block storage volume performance level. Valid values are Balanced and HighPerformance. See [Block Volume + * Performance](/Content/Block/Concepts/blockvolumeperformance.htm) for more information. + */ + private StorageVolumePerformanceMode storageVolumePerformanceMode; + + /* + * The time zone of the DB system, e.g., UTC, to set the timeZone as UTC. + */ + private String timeZone; + + /* + * The Oracle Database version of the DB system. + */ + private String version; + + /* + * The compute model for Base Database Service. This is required if using the `computeCount` parameter. If using + * `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. The ECPU compute model is the + * recommended model, and the OCPU compute model is legacy. + */ + private ComputeModel computeModel; + + /* + * The number of compute servers for the DB system. + */ + private Integer computeCount; + + /** + * Creates an instance of DbSystemBaseProperties class. + */ + public DbSystemBaseProperties() { + } + + /** + * Get the source property: The source of the database: Use `None` for creating a new database. The default is + * `None`. + * + * @return the source value. + */ + public DbSystemSourceType source() { + return this.source; + } + + /** + * Get the provisioningState property: dbSystem provisioning state. + * + * @return the provisioningState value. + */ + public AzureResourceProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioningState property: dbSystem provisioning state. + * + * @param provisioningState the provisioningState value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withProvisioningState(AzureResourceProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get the ociUrl property: HTTPS link to OCI resources exposed to Azure Customer via Azure Interface. + * + * @return the ociUrl value. + */ + public String ociUrl() { + return this.ociUrl; + } + + /** + * Set the ociUrl property: HTTPS link to OCI resources exposed to Azure Customer via Azure Interface. + * + * @param ociUrl the ociUrl value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withOciUrl(String ociUrl) { + this.ociUrl = ociUrl; + return this; + } + + /** + * Get the resourceAnchorId property: Azure Resource Anchor ID. + * + * @return the resourceAnchorId value. + */ + public String resourceAnchorId() { + return this.resourceAnchorId; + } + + /** + * Set the resourceAnchorId property: Azure Resource Anchor ID. + * + * @param resourceAnchorId the resourceAnchorId value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withResourceAnchorId(String resourceAnchorId) { + this.resourceAnchorId = resourceAnchorId; + return this; + } + + /** + * Get the networkAnchorId property: Azure Network Anchor ID. + * + * @return the networkAnchorId value. + */ + public String networkAnchorId() { + return this.networkAnchorId; + } + + /** + * Set the networkAnchorId property: Azure Network Anchor ID. + * + * @param networkAnchorId the networkAnchorId value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withNetworkAnchorId(String networkAnchorId) { + this.networkAnchorId = networkAnchorId; + return this; + } + + /** + * Get the clusterName property: The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster + * name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The + * cluster name can be no longer than 11 characters and is not case sensitive. + * + * @return the clusterName value. + */ + public String clusterName() { + return this.clusterName; + } + + /** + * Set the clusterName property: The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster + * name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The + * cluster name can be no longer than 11 characters and is not case sensitive. + * + * @param clusterName the clusterName value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withClusterName(String clusterName) { + this.clusterName = clusterName; + return this; + } + + /** + * Get the displayName property: The user-friendly name for the DB system. The name does not have to be unique. + * + * @return the displayName value. + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the displayName property: The user-friendly name for the DB system. The name does not have to be unique. + * + * @param displayName the displayName value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the initialDataStorageSizeInGb property: Size in GB of the initial data volume that will be created and + * attached to a virtual machine DB system. You can scale up storage after provisioning, as needed. Note that the + * total storage size attached will be more than the amount you specify to allow for REDO/RECO space and software + * volume. + * + * @return the initialDataStorageSizeInGb value. + */ + public Integer initialDataStorageSizeInGb() { + return this.initialDataStorageSizeInGb; + } + + /** + * Set the initialDataStorageSizeInGb property: Size in GB of the initial data volume that will be created and + * attached to a virtual machine DB system. You can scale up storage after provisioning, as needed. Note that the + * total storage size attached will be more than the amount you specify to allow for REDO/RECO space and software + * volume. + * + * @param initialDataStorageSizeInGb the initialDataStorageSizeInGb value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withInitialDataStorageSizeInGb(Integer initialDataStorageSizeInGb) { + this.initialDataStorageSizeInGb = initialDataStorageSizeInGb; + return this; + } + + /** + * Get the dataStorageSizeInGbs property: The data storage size, in gigabytes, that is currently available to the DB + * system. Applies only for virtual machine DB systems. + * + * @return the dataStorageSizeInGbs value. + */ + public Integer dataStorageSizeInGbs() { + return this.dataStorageSizeInGbs; + } + + /** + * Set the dataStorageSizeInGbs property: The data storage size, in gigabytes, that is currently available to the DB + * system. Applies only for virtual machine DB systems. + * + * @param dataStorageSizeInGbs the dataStorageSizeInGbs value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withDataStorageSizeInGbs(Integer dataStorageSizeInGbs) { + this.dataStorageSizeInGbs = dataStorageSizeInGbs; + return this; + } + + /** + * Get the dbSystemOptions property: The DB system options. + * + * @return the dbSystemOptions value. + */ + public DbSystemOptions dbSystemOptions() { + return this.dbSystemOptions; + } + + /** + * Set the dbSystemOptions property: The DB system options. + * + * @param dbSystemOptions the dbSystemOptions value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withDbSystemOptions(DbSystemOptions dbSystemOptions) { + this.dbSystemOptions = dbSystemOptions; + return this; + } + + /** + * Get the diskRedundancy property: The type of redundancy configured for the DB system. NORMAL is 2-way redundancy. + * HIGH is 3-way redundancy. + * + * @return the diskRedundancy value. + */ + public DiskRedundancyType diskRedundancy() { + return this.diskRedundancy; + } + + /** + * Set the diskRedundancy property: The type of redundancy configured for the DB system. NORMAL is 2-way redundancy. + * HIGH is 3-way redundancy. + * + * @param diskRedundancy the diskRedundancy value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withDiskRedundancy(DiskRedundancyType diskRedundancy) { + this.diskRedundancy = diskRedundancy; + return this; + } + + /** + * Get the domainV2 property: The domain name for the DB system. + * + * @return the domainV2 value. + */ + public String domainV2() { + return this.domainV2; + } + + /** + * Set the domainV2 property: The domain name for the DB system. + * + * @param domainV2 the domainV2 value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withDomainV2(String domainV2) { + this.domainV2 = domainV2; + return this; + } + + /** + * Get the gridImageOcid property: The OCID of a grid infrastructure software image. This is a database software + * image of the type GRID_IMAGE. + * + * @return the gridImageOcid value. + */ + public String gridImageOcid() { + return this.gridImageOcid; + } + + /** + * Set the gridImageOcid property: The OCID of a grid infrastructure software image. This is a database software + * image of the type GRID_IMAGE. + * + * @param gridImageOcid the gridImageOcid value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withGridImageOcid(String gridImageOcid) { + this.gridImageOcid = gridImageOcid; + return this; + } + + /** + * Get the hostname property: The hostname for the DB system. + * + * @return the hostname value. + */ + public String hostname() { + return this.hostname; + } + + /** + * Set the hostname property: The hostname for the DB system. + * + * @param hostname the hostname value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withHostname(String hostname) { + this.hostname = hostname; + return this; + } + + /** + * Get the ocid property: The OCID of the DB system. + * + * @return the ocid value. + */ + public String ocid() { + return this.ocid; + } + + /** + * Set the ocid property: The OCID of the DB system. + * + * @param ocid the ocid value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withOcid(String ocid) { + this.ocid = ocid; + return this; + } + + /** + * Get the licenseModelV2 property: The Oracle license model that applies to all the databases on the DB system. The + * default is LicenseIncluded. + * + * @return the licenseModelV2 value. + */ + public LicenseModel licenseModelV2() { + return this.licenseModelV2; + } + + /** + * Set the licenseModelV2 property: The Oracle license model that applies to all the databases on the DB system. The + * default is LicenseIncluded. + * + * @param licenseModelV2 the licenseModelV2 value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withLicenseModelV2(LicenseModel licenseModelV2) { + this.licenseModelV2 = licenseModelV2; + return this; + } + + /** + * Get the lifecycleDetails property: Additional information about the current lifecycle state. + * + * @return the lifecycleDetails value. + */ + public String lifecycleDetails() { + return this.lifecycleDetails; + } + + /** + * Set the lifecycleDetails property: Additional information about the current lifecycle state. + * + * @param lifecycleDetails the lifecycleDetails value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withLifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + return this; + } + + /** + * Get the lifecycleState property: The current state of the DB system. + * + * @return the lifecycleState value. + */ + public DbSystemLifecycleState lifecycleState() { + return this.lifecycleState; + } + + /** + * Set the lifecycleState property: The current state of the DB system. + * + * @param lifecycleState the lifecycleState value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withLifecycleState(DbSystemLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Get the listenerPort property: The port number configured for the listener on the DB system. + * + * @return the listenerPort value. + */ + public Integer listenerPort() { + return this.listenerPort; + } + + /** + * Set the listenerPort property: The port number configured for the listener on the DB system. + * + * @param listenerPort the listenerPort value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withListenerPort(Integer listenerPort) { + this.listenerPort = listenerPort; + return this; + } + + /** + * Get the memorySizeInGbs property: Memory allocated to the DB system, in gigabytes. + * + * @return the memorySizeInGbs value. + */ + public Integer memorySizeInGbs() { + return this.memorySizeInGbs; + } + + /** + * Set the memorySizeInGbs property: Memory allocated to the DB system, in gigabytes. + * + * @param memorySizeInGbs the memorySizeInGbs value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withMemorySizeInGbs(Integer memorySizeInGbs) { + this.memorySizeInGbs = memorySizeInGbs; + return this; + } + + /** + * Get the nodeCount property: The number of nodes in the DB system. For RAC DB systems, the value is greater than + * 1. + * + * @return the nodeCount value. + */ + public Integer nodeCount() { + return this.nodeCount; + } + + /** + * Set the nodeCount property: The number of nodes in the DB system. For RAC DB systems, the value is greater than + * 1. + * + * @param nodeCount the nodeCount value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withNodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + return this; + } + + /** + * Get the scanDnsName property: The FQDN of the DNS record for the SCAN IP addresses that are associated with the + * DB system. + * + * @return the scanDnsName value. + */ + public String scanDnsName() { + return this.scanDnsName; + } + + /** + * Set the scanDnsName property: The FQDN of the DNS record for the SCAN IP addresses that are associated with the + * DB system. + * + * @param scanDnsName the scanDnsName value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withScanDnsName(String scanDnsName) { + this.scanDnsName = scanDnsName; + return this; + } + + /** + * Get the scanIps property: The list of Single Client Access Name (SCAN) IP addresses associated with the DB + * system. SCAN IP addresses are typically used for load balancing and are not assigned to any interface. Oracle + * Clusterware directs the requests to the appropriate nodes in the cluster. Note: For a single-node DB system, this + * list is empty. + * + * @return the scanIps value. + */ + public List scanIps() { + return this.scanIps; + } + + /** + * Set the scanIps property: The list of Single Client Access Name (SCAN) IP addresses associated with the DB + * system. SCAN IP addresses are typically used for load balancing and are not assigned to any interface. Oracle + * Clusterware directs the requests to the appropriate nodes in the cluster. Note: For a single-node DB system, this + * list is empty. + * + * @param scanIps the scanIps value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withScanIps(List scanIps) { + this.scanIps = scanIps; + return this; + } + + /** + * Get the shape property: The shape of the DB system. The shape determines resources to allocate to the DB system. + * For virtual machine shapes, the number of CPU cores and memory. For bare metal and Exadata shapes, the number of + * CPU cores, storage, and memory. + * + * @return the shape value. + */ + public String shape() { + return this.shape; + } + + /** + * Set the shape property: The shape of the DB system. The shape determines resources to allocate to the DB system. + * For virtual machine shapes, the number of CPU cores and memory. For bare metal and Exadata shapes, the number of + * CPU cores, storage, and memory. + * + * @param shape the shape value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withShape(String shape) { + this.shape = shape; + return this; + } + + /** + * Get the sshPublicKeys property: The public key portion of one or more key pairs used for SSH access to the DB + * system. + * + * @return the sshPublicKeys value. + */ + public List sshPublicKeys() { + return this.sshPublicKeys; + } + + /** + * Set the sshPublicKeys property: The public key portion of one or more key pairs used for SSH access to the DB + * system. + * + * @param sshPublicKeys the sshPublicKeys value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withSshPublicKeys(List sshPublicKeys) { + this.sshPublicKeys = sshPublicKeys; + return this; + } + + /** + * Get the storageVolumePerformanceMode property: The block storage volume performance level. Valid values are + * Balanced and HighPerformance. See [Block Volume Performance](/Content/Block/Concepts/blockvolumeperformance.htm) + * for more information. + * + * @return the storageVolumePerformanceMode value. + */ + public StorageVolumePerformanceMode storageVolumePerformanceMode() { + return this.storageVolumePerformanceMode; + } + + /** + * Set the storageVolumePerformanceMode property: The block storage volume performance level. Valid values are + * Balanced and HighPerformance. See [Block Volume Performance](/Content/Block/Concepts/blockvolumeperformance.htm) + * for more information. + * + * @param storageVolumePerformanceMode the storageVolumePerformanceMode value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties + withStorageVolumePerformanceMode(StorageVolumePerformanceMode storageVolumePerformanceMode) { + this.storageVolumePerformanceMode = storageVolumePerformanceMode; + return this; + } + + /** + * Get the timeZone property: The time zone of the DB system, e.g., UTC, to set the timeZone as UTC. + * + * @return the timeZone value. + */ + public String timeZone() { + return this.timeZone; + } + + /** + * Set the timeZone property: The time zone of the DB system, e.g., UTC, to set the timeZone as UTC. + * + * @param timeZone the timeZone value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withTimeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Get the version property: The Oracle Database version of the DB system. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Set the version property: The Oracle Database version of the DB system. + * + * @param version the version value to set. + * @return the DbSystemBaseProperties object itself. + */ + DbSystemBaseProperties withVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the computeModel property: The compute model for Base Database Service. This is required if using the + * `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null + * value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy. + * + * @return the computeModel value. + */ + public ComputeModel computeModel() { + return this.computeModel; + } + + /** + * Set the computeModel property: The compute model for Base Database Service. This is required if using the + * `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null + * value. The ECPU compute model is the recommended model, and the OCPU compute model is legacy. + * + * @param computeModel the computeModel value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withComputeModel(ComputeModel computeModel) { + this.computeModel = computeModel; + return this; + } + + /** + * Get the computeCount property: The number of compute servers for the DB system. + * + * @return the computeCount value. + */ + public Integer computeCount() { + return this.computeCount; + } + + /** + * Set the computeCount property: The number of compute servers for the DB system. + * + * @param computeCount the computeCount value to set. + * @return the DbSystemBaseProperties object itself. + */ + public DbSystemBaseProperties withComputeCount(Integer computeCount) { + this.computeCount = computeCount; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("resourceAnchorId", this.resourceAnchorId); + jsonWriter.writeStringField("networkAnchorId", this.networkAnchorId); + jsonWriter.writeStringField("hostname", this.hostname); + jsonWriter.writeStringField("shape", this.shape); + jsonWriter.writeArrayField("sshPublicKeys", this.sshPublicKeys, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("source", this.source == null ? null : this.source.toString()); + jsonWriter.writeStringField("clusterName", this.clusterName); + jsonWriter.writeStringField("displayName", this.displayName); + jsonWriter.writeNumberField("initialDataStorageSizeInGb", this.initialDataStorageSizeInGb); + jsonWriter.writeJsonField("dbSystemOptions", this.dbSystemOptions); + jsonWriter.writeStringField("diskRedundancy", + this.diskRedundancy == null ? null : this.diskRedundancy.toString()); + jsonWriter.writeStringField("domain", this.domainV2); + jsonWriter.writeStringField("licenseModel", + this.licenseModelV2 == null ? null : this.licenseModelV2.toString()); + jsonWriter.writeNumberField("nodeCount", this.nodeCount); + jsonWriter.writeStringField("storageVolumePerformanceMode", + this.storageVolumePerformanceMode == null ? null : this.storageVolumePerformanceMode.toString()); + jsonWriter.writeStringField("timeZone", this.timeZone); + jsonWriter.writeStringField("computeModel", this.computeModel == null ? null : this.computeModel.toString()); + jsonWriter.writeNumberField("computeCount", this.computeCount); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbSystemBaseProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbSystemBaseProperties 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 DbSystemBaseProperties. + */ + public static DbSystemBaseProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("source".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("None".equals(discriminatorValue)) { + return DbSystemProperties.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static DbSystemBaseProperties fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbSystemBaseProperties deserializedDbSystemBaseProperties = new DbSystemBaseProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceAnchorId".equals(fieldName)) { + deserializedDbSystemBaseProperties.resourceAnchorId = reader.getString(); + } else if ("networkAnchorId".equals(fieldName)) { + deserializedDbSystemBaseProperties.networkAnchorId = reader.getString(); + } else if ("hostname".equals(fieldName)) { + deserializedDbSystemBaseProperties.hostname = reader.getString(); + } else if ("shape".equals(fieldName)) { + deserializedDbSystemBaseProperties.shape = reader.getString(); + } else if ("sshPublicKeys".equals(fieldName)) { + List sshPublicKeys = reader.readArray(reader1 -> reader1.getString()); + deserializedDbSystemBaseProperties.sshPublicKeys = sshPublicKeys; + } else if ("source".equals(fieldName)) { + deserializedDbSystemBaseProperties.source = DbSystemSourceType.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedDbSystemBaseProperties.provisioningState + = AzureResourceProvisioningState.fromString(reader.getString()); + } else if ("ociUrl".equals(fieldName)) { + deserializedDbSystemBaseProperties.ociUrl = reader.getString(); + } else if ("clusterName".equals(fieldName)) { + deserializedDbSystemBaseProperties.clusterName = reader.getString(); + } else if ("displayName".equals(fieldName)) { + deserializedDbSystemBaseProperties.displayName = reader.getString(); + } else if ("initialDataStorageSizeInGb".equals(fieldName)) { + deserializedDbSystemBaseProperties.initialDataStorageSizeInGb + = reader.getNullable(JsonReader::getInt); + } else if ("dataStorageSizeInGbs".equals(fieldName)) { + deserializedDbSystemBaseProperties.dataStorageSizeInGbs = reader.getNullable(JsonReader::getInt); + } else if ("dbSystemOptions".equals(fieldName)) { + deserializedDbSystemBaseProperties.dbSystemOptions = DbSystemOptions.fromJson(reader); + } else if ("diskRedundancy".equals(fieldName)) { + deserializedDbSystemBaseProperties.diskRedundancy + = DiskRedundancyType.fromString(reader.getString()); + } else if ("domain".equals(fieldName)) { + deserializedDbSystemBaseProperties.domainV2 = reader.getString(); + } else if ("gridImageOcid".equals(fieldName)) { + deserializedDbSystemBaseProperties.gridImageOcid = reader.getString(); + } else if ("ocid".equals(fieldName)) { + deserializedDbSystemBaseProperties.ocid = reader.getString(); + } else if ("licenseModel".equals(fieldName)) { + deserializedDbSystemBaseProperties.licenseModelV2 = LicenseModel.fromString(reader.getString()); + } else if ("lifecycleDetails".equals(fieldName)) { + deserializedDbSystemBaseProperties.lifecycleDetails = reader.getString(); + } else if ("lifecycleState".equals(fieldName)) { + deserializedDbSystemBaseProperties.lifecycleState + = DbSystemLifecycleState.fromString(reader.getString()); + } else if ("listenerPort".equals(fieldName)) { + deserializedDbSystemBaseProperties.listenerPort = reader.getNullable(JsonReader::getInt); + } else if ("memorySizeInGbs".equals(fieldName)) { + deserializedDbSystemBaseProperties.memorySizeInGbs = reader.getNullable(JsonReader::getInt); + } else if ("nodeCount".equals(fieldName)) { + deserializedDbSystemBaseProperties.nodeCount = reader.getNullable(JsonReader::getInt); + } else if ("scanDnsName".equals(fieldName)) { + deserializedDbSystemBaseProperties.scanDnsName = reader.getString(); + } else if ("scanIps".equals(fieldName)) { + List scanIps = reader.readArray(reader1 -> reader1.getString()); + deserializedDbSystemBaseProperties.scanIps = scanIps; + } else if ("storageVolumePerformanceMode".equals(fieldName)) { + deserializedDbSystemBaseProperties.storageVolumePerformanceMode + = StorageVolumePerformanceMode.fromString(reader.getString()); + } else if ("timeZone".equals(fieldName)) { + deserializedDbSystemBaseProperties.timeZone = reader.getString(); + } else if ("version".equals(fieldName)) { + deserializedDbSystemBaseProperties.version = reader.getString(); + } else if ("computeModel".equals(fieldName)) { + deserializedDbSystemBaseProperties.computeModel = ComputeModel.fromString(reader.getString()); + } else if ("computeCount".equals(fieldName)) { + deserializedDbSystemBaseProperties.computeCount = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedDbSystemBaseProperties; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemDatabaseEditionType.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemDatabaseEditionType.java new file mode 100644 index 000000000000..9d6c1cfe77a3 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemDatabaseEditionType.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Database edition type enum. + */ +public final class DbSystemDatabaseEditionType extends ExpandableStringEnum { + /** + * Standard edition. + */ + public static final DbSystemDatabaseEditionType STANDARD_EDITION = fromString("StandardEdition"); + + /** + * Enterprise edition. + */ + public static final DbSystemDatabaseEditionType ENTERPRISE_EDITION = fromString("EnterpriseEdition"); + + /** + * Enterprise edition high performance. + */ + public static final DbSystemDatabaseEditionType ENTERPRISE_EDITION_HIGH_PERFORMANCE + = fromString("EnterpriseEditionHighPerformance"); + + /** + * Enterprise edition extreme. + */ + public static final DbSystemDatabaseEditionType ENTERPRISE_EDITION_EXTREME = fromString("EnterpriseEditionExtreme"); + + /** + * Enterprise edition developer. + */ + public static final DbSystemDatabaseEditionType ENTERPRISE_EDITION_DEVELOPER + = fromString("EnterpriseEditionDeveloper"); + + /** + * Creates a new instance of DbSystemDatabaseEditionType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DbSystemDatabaseEditionType() { + } + + /** + * Creates or finds a DbSystemDatabaseEditionType from its string representation. + * + * @param name a name to look for. + * @return the corresponding DbSystemDatabaseEditionType. + */ + public static DbSystemDatabaseEditionType fromString(String name) { + return fromString(name, DbSystemDatabaseEditionType.class); + } + + /** + * Gets known DbSystemDatabaseEditionType values. + * + * @return known DbSystemDatabaseEditionType values. + */ + public static Collection values() { + return values(DbSystemDatabaseEditionType.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemLifecycleState.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemLifecycleState.java new file mode 100644 index 000000000000..76a13acf35d2 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemLifecycleState.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * DB System lifecycle state enum. + */ +public final class DbSystemLifecycleState extends ExpandableStringEnum { + /** + * Indicates that resource in Provisioning state. + */ + public static final DbSystemLifecycleState PROVISIONING = fromString("Provisioning"); + + /** + * Indicates that resource in Available state. + */ + public static final DbSystemLifecycleState AVAILABLE = fromString("Available"); + + /** + * Indicates that resource in Updating state. + */ + public static final DbSystemLifecycleState UPDATING = fromString("Updating"); + + /** + * Indicates that resource in Terminating state. + */ + public static final DbSystemLifecycleState TERMINATING = fromString("Terminating"); + + /** + * Indicates that resource in Terminated state. + */ + public static final DbSystemLifecycleState TERMINATED = fromString("Terminated"); + + /** + * Indicates that resource in Failed state. + */ + public static final DbSystemLifecycleState FAILED = fromString("Failed"); + + /** + * Indicates that resource is Migrated state. + */ + public static final DbSystemLifecycleState MIGRATED = fromString("Migrated"); + + /** + * Indicates that resource maintenance in progress state. + */ + public static final DbSystemLifecycleState MAINTENANCE_IN_PROGRESS = fromString("MaintenanceInProgress"); + + /** + * Indicates that resource needs attention state. + */ + public static final DbSystemLifecycleState NEEDS_ATTENTION = fromString("NeedsAttention"); + + /** + * Indicates that resource in Upgrading state. + */ + public static final DbSystemLifecycleState UPGRADING = fromString("Upgrading"); + + /** + * Creates a new instance of DbSystemLifecycleState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DbSystemLifecycleState() { + } + + /** + * Creates or finds a DbSystemLifecycleState from its string representation. + * + * @param name a name to look for. + * @return the corresponding DbSystemLifecycleState. + */ + public static DbSystemLifecycleState fromString(String name) { + return fromString(name, DbSystemLifecycleState.class); + } + + /** + * Gets known DbSystemLifecycleState values. + * + * @return known DbSystemLifecycleState values. + */ + public static Collection values() { + return values(DbSystemLifecycleState.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemOptions.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemOptions.java new file mode 100644 index 000000000000..56bc5d8c7dfb --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemOptions.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * DbSystemOptions resource properties. + */ +@Fluent +public final class DbSystemOptions implements JsonSerializable { + /* + * The storage option used in DB system. ASM - Automatic storage management, LVM - Logical Volume management. + */ + private StorageManagementType storageManagement; + + /** + * Creates an instance of DbSystemOptions class. + */ + public DbSystemOptions() { + } + + /** + * Get the storageManagement property: The storage option used in DB system. ASM - Automatic storage management, LVM + * - Logical Volume management. + * + * @return the storageManagement value. + */ + public StorageManagementType storageManagement() { + return this.storageManagement; + } + + /** + * Set the storageManagement property: The storage option used in DB system. ASM - Automatic storage management, LVM + * - Logical Volume management. + * + * @param storageManagement the storageManagement value to set. + * @return the DbSystemOptions object itself. + */ + public DbSystemOptions withStorageManagement(StorageManagementType storageManagement) { + this.storageManagement = storageManagement; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("storageManagement", + this.storageManagement == null ? null : this.storageManagement.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbSystemOptions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbSystemOptions if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the DbSystemOptions. + */ + public static DbSystemOptions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbSystemOptions deserializedDbSystemOptions = new DbSystemOptions(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("storageManagement".equals(fieldName)) { + deserializedDbSystemOptions.storageManagement + = StorageManagementType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedDbSystemOptions; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemProperties.java new file mode 100644 index 000000000000..d872ecd6d795 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemProperties.java @@ -0,0 +1,445 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * DbSystem resource model. + */ +@Fluent +public final class DbSystemProperties extends DbSystemBaseProperties { + /* + * The source of the database: Use `None` for creating a new database. The default is `None`. + */ + private DbSystemSourceType source = DbSystemSourceType.NONE; + + /* + * The Oracle Database Edition that applies to all the databases on the DB system. Exadata DB systems and 2-node RAC + * DB systems require EnterpriseEditionExtremePerformance. + */ + private DbSystemDatabaseEditionType databaseEdition; + + /* + * A strong password for SYS, SYSTEM, and PDB Admin. The password must be at least nine characters and contain at + * least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, #, + * or -. + */ + private String adminPassword; + + /* + * A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation. + */ + private String dbVersion; + + /* + * The name of the pluggable database. The name must begin with an alphabetic character and can contain a maximum of + * thirty alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as + * database name. + */ + private String pdbName; + + /** + * Creates an instance of DbSystemProperties class. + */ + public DbSystemProperties() { + } + + /** + * Get the source property: The source of the database: Use `None` for creating a new database. The default is + * `None`. + * + * @return the source value. + */ + @Override + public DbSystemSourceType source() { + return this.source; + } + + /** + * Get the databaseEdition property: The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require EnterpriseEditionExtremePerformance. + * + * @return the databaseEdition value. + */ + public DbSystemDatabaseEditionType databaseEdition() { + return this.databaseEdition; + } + + /** + * Set the databaseEdition property: The Oracle Database Edition that applies to all the databases on the DB system. + * Exadata DB systems and 2-node RAC DB systems require EnterpriseEditionExtremePerformance. + * + * @param databaseEdition the databaseEdition value to set. + * @return the DbSystemProperties object itself. + */ + public DbSystemProperties withDatabaseEdition(DbSystemDatabaseEditionType databaseEdition) { + this.databaseEdition = databaseEdition; + return this; + } + + /** + * Get the adminPassword property: A strong password for SYS, SYSTEM, and PDB Admin. The password must be at least + * nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The + * special characters must be _, #, or -. + * + * @return the adminPassword value. + */ + public String adminPassword() { + return this.adminPassword; + } + + /** + * Set the adminPassword property: A strong password for SYS, SYSTEM, and PDB Admin. The password must be at least + * nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The + * special characters must be _, #, or -. + * + * @param adminPassword the adminPassword value to set. + * @return the DbSystemProperties object itself. + */ + public DbSystemProperties withAdminPassword(String adminPassword) { + this.adminPassword = adminPassword; + return this; + } + + /** + * Get the dbVersion property: A valid Oracle Database version. For a list of supported versions, use the + * ListDbVersions operation. + * + * @return the dbVersion value. + */ + public String dbVersion() { + return this.dbVersion; + } + + /** + * Set the dbVersion property: A valid Oracle Database version. For a list of supported versions, use the + * ListDbVersions operation. + * + * @param dbVersion the dbVersion value to set. + * @return the DbSystemProperties object itself. + */ + public DbSystemProperties withDbVersion(String dbVersion) { + this.dbVersion = dbVersion; + return this; + } + + /** + * Get the pdbName property: The name of the pluggable database. The name must begin with an alphabetic character + * and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. Pluggable + * database should not be same as database name. + * + * @return the pdbName value. + */ + public String pdbName() { + return this.pdbName; + } + + /** + * Set the pdbName property: The name of the pluggable database. The name must begin with an alphabetic character + * and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. Pluggable + * database should not be same as database name. + * + * @param pdbName the pdbName value to set. + * @return the DbSystemProperties object itself. + */ + public DbSystemProperties withPdbName(String pdbName) { + this.pdbName = pdbName; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withResourceAnchorId(String resourceAnchorId) { + super.withResourceAnchorId(resourceAnchorId); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withNetworkAnchorId(String networkAnchorId) { + super.withNetworkAnchorId(networkAnchorId); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withClusterName(String clusterName) { + super.withClusterName(clusterName); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withDisplayName(String displayName) { + super.withDisplayName(displayName); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withInitialDataStorageSizeInGb(Integer initialDataStorageSizeInGb) { + super.withInitialDataStorageSizeInGb(initialDataStorageSizeInGb); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withDbSystemOptions(DbSystemOptions dbSystemOptions) { + super.withDbSystemOptions(dbSystemOptions); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withDiskRedundancy(DiskRedundancyType diskRedundancy) { + super.withDiskRedundancy(diskRedundancy); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withDomainV2(String domainV2) { + super.withDomainV2(domainV2); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withHostname(String hostname) { + super.withHostname(hostname); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withLicenseModelV2(LicenseModel licenseModelV2) { + super.withLicenseModelV2(licenseModelV2); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withNodeCount(Integer nodeCount) { + super.withNodeCount(nodeCount); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withShape(String shape) { + super.withShape(shape); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withSshPublicKeys(List sshPublicKeys) { + super.withSshPublicKeys(sshPublicKeys); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties + withStorageVolumePerformanceMode(StorageVolumePerformanceMode storageVolumePerformanceMode) { + super.withStorageVolumePerformanceMode(storageVolumePerformanceMode); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withTimeZone(String timeZone) { + super.withTimeZone(timeZone); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withComputeModel(ComputeModel computeModel) { + super.withComputeModel(computeModel); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public DbSystemProperties withComputeCount(Integer computeCount) { + super.withComputeCount(computeCount); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("resourceAnchorId", resourceAnchorId()); + jsonWriter.writeStringField("networkAnchorId", networkAnchorId()); + jsonWriter.writeStringField("hostname", hostname()); + jsonWriter.writeStringField("shape", shape()); + jsonWriter.writeArrayField("sshPublicKeys", sshPublicKeys(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("clusterName", clusterName()); + jsonWriter.writeStringField("displayName", displayName()); + jsonWriter.writeNumberField("initialDataStorageSizeInGb", initialDataStorageSizeInGb()); + jsonWriter.writeJsonField("dbSystemOptions", dbSystemOptions()); + jsonWriter.writeStringField("diskRedundancy", diskRedundancy() == null ? null : diskRedundancy().toString()); + jsonWriter.writeStringField("domain", domainV2()); + jsonWriter.writeStringField("licenseModel", licenseModelV2() == null ? null : licenseModelV2().toString()); + jsonWriter.writeNumberField("nodeCount", nodeCount()); + jsonWriter.writeStringField("storageVolumePerformanceMode", + storageVolumePerformanceMode() == null ? null : storageVolumePerformanceMode().toString()); + jsonWriter.writeStringField("timeZone", timeZone()); + jsonWriter.writeStringField("computeModel", computeModel() == null ? null : computeModel().toString()); + jsonWriter.writeNumberField("computeCount", computeCount()); + jsonWriter.writeStringField("databaseEdition", + this.databaseEdition == null ? null : this.databaseEdition.toString()); + jsonWriter.writeStringField("dbVersion", this.dbVersion); + jsonWriter.writeStringField("source", this.source == null ? null : this.source.toString()); + jsonWriter.writeStringField("adminPassword", this.adminPassword); + jsonWriter.writeStringField("pdbName", this.pdbName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbSystemProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbSystemProperties 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 DbSystemProperties. + */ + public static DbSystemProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbSystemProperties deserializedDbSystemProperties = new DbSystemProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceAnchorId".equals(fieldName)) { + deserializedDbSystemProperties.withResourceAnchorId(reader.getString()); + } else if ("networkAnchorId".equals(fieldName)) { + deserializedDbSystemProperties.withNetworkAnchorId(reader.getString()); + } else if ("hostname".equals(fieldName)) { + deserializedDbSystemProperties.withHostname(reader.getString()); + } else if ("shape".equals(fieldName)) { + deserializedDbSystemProperties.withShape(reader.getString()); + } else if ("sshPublicKeys".equals(fieldName)) { + List sshPublicKeys = reader.readArray(reader1 -> reader1.getString()); + deserializedDbSystemProperties.withSshPublicKeys(sshPublicKeys); + } else if ("provisioningState".equals(fieldName)) { + deserializedDbSystemProperties + .withProvisioningState(AzureResourceProvisioningState.fromString(reader.getString())); + } else if ("ociUrl".equals(fieldName)) { + deserializedDbSystemProperties.withOciUrl(reader.getString()); + } else if ("clusterName".equals(fieldName)) { + deserializedDbSystemProperties.withClusterName(reader.getString()); + } else if ("displayName".equals(fieldName)) { + deserializedDbSystemProperties.withDisplayName(reader.getString()); + } else if ("initialDataStorageSizeInGb".equals(fieldName)) { + deserializedDbSystemProperties + .withInitialDataStorageSizeInGb(reader.getNullable(JsonReader::getInt)); + } else if ("dataStorageSizeInGbs".equals(fieldName)) { + deserializedDbSystemProperties.withDataStorageSizeInGbs(reader.getNullable(JsonReader::getInt)); + } else if ("dbSystemOptions".equals(fieldName)) { + deserializedDbSystemProperties.withDbSystemOptions(DbSystemOptions.fromJson(reader)); + } else if ("diskRedundancy".equals(fieldName)) { + deserializedDbSystemProperties + .withDiskRedundancy(DiskRedundancyType.fromString(reader.getString())); + } else if ("domain".equals(fieldName)) { + deserializedDbSystemProperties.withDomainV2(reader.getString()); + } else if ("gridImageOcid".equals(fieldName)) { + deserializedDbSystemProperties.withGridImageOcid(reader.getString()); + } else if ("ocid".equals(fieldName)) { + deserializedDbSystemProperties.withOcid(reader.getString()); + } else if ("licenseModel".equals(fieldName)) { + deserializedDbSystemProperties.withLicenseModelV2(LicenseModel.fromString(reader.getString())); + } else if ("lifecycleDetails".equals(fieldName)) { + deserializedDbSystemProperties.withLifecycleDetails(reader.getString()); + } else if ("lifecycleState".equals(fieldName)) { + deserializedDbSystemProperties + .withLifecycleState(DbSystemLifecycleState.fromString(reader.getString())); + } else if ("listenerPort".equals(fieldName)) { + deserializedDbSystemProperties.withListenerPort(reader.getNullable(JsonReader::getInt)); + } else if ("memorySizeInGbs".equals(fieldName)) { + deserializedDbSystemProperties.withMemorySizeInGbs(reader.getNullable(JsonReader::getInt)); + } else if ("nodeCount".equals(fieldName)) { + deserializedDbSystemProperties.withNodeCount(reader.getNullable(JsonReader::getInt)); + } else if ("scanDnsName".equals(fieldName)) { + deserializedDbSystemProperties.withScanDnsName(reader.getString()); + } else if ("scanIps".equals(fieldName)) { + List scanIps = reader.readArray(reader1 -> reader1.getString()); + deserializedDbSystemProperties.withScanIps(scanIps); + } else if ("storageVolumePerformanceMode".equals(fieldName)) { + deserializedDbSystemProperties + .withStorageVolumePerformanceMode(StorageVolumePerformanceMode.fromString(reader.getString())); + } else if ("timeZone".equals(fieldName)) { + deserializedDbSystemProperties.withTimeZone(reader.getString()); + } else if ("version".equals(fieldName)) { + deserializedDbSystemProperties.withVersion(reader.getString()); + } else if ("computeModel".equals(fieldName)) { + deserializedDbSystemProperties.withComputeModel(ComputeModel.fromString(reader.getString())); + } else if ("computeCount".equals(fieldName)) { + deserializedDbSystemProperties.withComputeCount(reader.getNullable(JsonReader::getInt)); + } else if ("databaseEdition".equals(fieldName)) { + deserializedDbSystemProperties.databaseEdition + = DbSystemDatabaseEditionType.fromString(reader.getString()); + } else if ("dbVersion".equals(fieldName)) { + deserializedDbSystemProperties.dbVersion = reader.getString(); + } else if ("source".equals(fieldName)) { + deserializedDbSystemProperties.source = DbSystemSourceType.fromString(reader.getString()); + } else if ("adminPassword".equals(fieldName)) { + deserializedDbSystemProperties.adminPassword = reader.getString(); + } else if ("pdbName".equals(fieldName)) { + deserializedDbSystemProperties.pdbName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDbSystemProperties; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapeProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapeProperties.java index 133b93e79e74..0685e3ca8108 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapeProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapeProperties.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * DbSystemShape resource model. @@ -137,6 +138,11 @@ public final class DbSystemShapeProperties implements JsonSerializable shapeAttributes; + /** * Creates an instance of DbSystemShapeProperties class. */ @@ -371,6 +377,15 @@ public String displayName() { return this.displayName; } + /** + * Get the shapeAttributes property: The shapeAttributes of the DB system shape.. + * + * @return the shapeAttributes value. + */ + public List shapeAttributes() { + return this.shapeAttributes; + } + /** * {@inheritDoc} */ @@ -401,6 +416,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("computeModel", this.computeModel == null ? null : this.computeModel.toString()); jsonWriter.writeBooleanField("areServerTypesSupported", this.areServerTypesSupported); jsonWriter.writeStringField("displayName", this.displayName); + jsonWriter.writeArrayField("shapeAttributes", this.shapeAttributes, + (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -477,6 +494,9 @@ public static DbSystemShapeProperties fromJson(JsonReader jsonReader) throws IOE = reader.getNullable(JsonReader::getBoolean); } else if ("displayName".equals(fieldName)) { deserializedDbSystemShapeProperties.displayName = reader.getString(); + } else if ("shapeAttributes".equals(fieldName)) { + List shapeAttributes = reader.readArray(reader1 -> reader1.getString()); + deserializedDbSystemShapeProperties.shapeAttributes = shapeAttributes; } else { reader.skipChildren(); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapes.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapes.java index 81b56fbb314b..9eaa2bc654e0 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapes.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapes.java @@ -53,11 +53,12 @@ public interface DbSystemShapes { * * @param location The name of the Azure region. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a DbSystemShape list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByLocation(String location, String zone, Context context); + PagedIterable listByLocation(String location, String zone, String shapeAttribute, Context context); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemSourceType.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemSourceType.java new file mode 100644 index 000000000000..0d48b2e815e9 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemSourceType.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The DbSystem source type of the database. + */ +public final class DbSystemSourceType extends ExpandableStringEnum { + /** + * for creating a new database. + */ + public static final DbSystemSourceType NONE = fromString("None"); + + /** + * Creates a new instance of DbSystemSourceType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DbSystemSourceType() { + } + + /** + * Creates or finds a DbSystemSourceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding DbSystemSourceType. + */ + public static DbSystemSourceType fromString(String name) { + return fromString(name, DbSystemSourceType.class); + } + + /** + * Gets known DbSystemSourceType values. + * + * @return known DbSystemSourceType values. + */ + public static Collection values() { + return values(DbSystemSourceType.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemUpdate.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemUpdate.java new file mode 100644 index 000000000000..5a9d0104e610 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemUpdate.java @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * The type used for update operations of the DbSystem. + */ +@Fluent +public final class DbSystemUpdate implements JsonSerializable { + /* + * The availability zones. + */ + private List zones; + + /* + * Resource tags. + */ + private Map tags; + + /* + * The resource-specific properties for this resource. + */ + private DbSystemUpdateProperties properties; + + /** + * Creates an instance of DbSystemUpdate class. + */ + public DbSystemUpdate() { + } + + /** + * Get the zones property: The availability zones. + * + * @return the zones value. + */ + public List zones() { + return this.zones; + } + + /** + * Set the zones property: The availability zones. + * + * @param zones the zones value to set. + * @return the DbSystemUpdate object itself. + */ + public DbSystemUpdate withZones(List zones) { + this.zones = zones; + return this; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the DbSystemUpdate object itself. + */ + public DbSystemUpdate withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public DbSystemUpdateProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the DbSystemUpdate object itself. + */ + public DbSystemUpdate withProperties(DbSystemUpdateProperties properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbSystemUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbSystemUpdate if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the DbSystemUpdate. + */ + public static DbSystemUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbSystemUpdate deserializedDbSystemUpdate = new DbSystemUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("zones".equals(fieldName)) { + List zones = reader.readArray(reader1 -> reader1.getString()); + deserializedDbSystemUpdate.zones = zones; + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedDbSystemUpdate.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedDbSystemUpdate.properties = DbSystemUpdateProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedDbSystemUpdate; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemUpdateProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemUpdateProperties.java new file mode 100644 index 000000000000..33b6954648d3 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemUpdateProperties.java @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The updatable properties of the DbSystem. + */ +@Fluent +public final class DbSystemUpdateProperties implements JsonSerializable { + /* + * The source of the database for creating a new database. + */ + private DbSystemSourceType source; + + /** + * Creates an instance of DbSystemUpdateProperties class. + */ + public DbSystemUpdateProperties() { + } + + /** + * Get the source property: The source of the database for creating a new database. + * + * @return the source value. + */ + public DbSystemSourceType source() { + return this.source; + } + + /** + * Set the source property: The source of the database for creating a new database. + * + * @param source the source value to set. + * @return the DbSystemUpdateProperties object itself. + */ + public DbSystemUpdateProperties withSource(DbSystemSourceType source) { + this.source = source; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("source", this.source == null ? null : this.source.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbSystemUpdateProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbSystemUpdateProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the DbSystemUpdateProperties. + */ + public static DbSystemUpdateProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbSystemUpdateProperties deserializedDbSystemUpdateProperties = new DbSystemUpdateProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("source".equals(fieldName)) { + deserializedDbSystemUpdateProperties.source = DbSystemSourceType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedDbSystemUpdateProperties; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystems.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystems.java new file mode 100644 index 000000000000..21b1e372b437 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystems.java @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of DbSystems. + */ +public interface DbSystems { + /** + * List DbSystem resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * List DbSystem resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(Context context); + + /** + * Get a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbSystem along with {@link Response}. + */ + Response getByResourceGroupWithResponse(String resourceGroupName, String dbSystemName, Context context); + + /** + * Get a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbSystem. + */ + DbSystem getByResourceGroup(String resourceGroupName, String dbSystemName); + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByResourceGroup(String resourceGroupName, String dbSystemName); + + /** + * Delete a DbSystem. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dbSystemName The name of the DbSystem. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String dbSystemName, Context context); + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List DbSystem resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbSystem list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Get a DbSystem. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbSystem along with {@link Response}. + */ + DbSystem getById(String id); + + /** + * Get a DbSystem. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbSystem along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a DbSystem. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete a DbSystem. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new DbSystem resource. + * + * @param name resource name. + * @return the first stage of the new DbSystem definition. + */ + DbSystem.DefinitionStages.Blank define(String name); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersion.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersion.java new file mode 100644 index 000000000000..5e24e6e1851f --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersion.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner; + +/** + * An immutable client-side representation of DbVersion. + */ +public interface DbVersion { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + DbVersionProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner object. + * + * @return the inner object. + */ + DbVersionInner innerModel(); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersionProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersionProperties.java new file mode 100644 index 000000000000..4adce8042a5f --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersionProperties.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * DbVersion resource model. + */ +@Immutable +public final class DbVersionProperties implements JsonSerializable { + /* + * A valid Oracle Database version. + */ + private String version; + + /* + * True if this version of the Oracle Database software is the latest version for a release. + */ + private Boolean isLatestForMajorVersion; + + /* + * True if this version of the Oracle Database software is the preview version. + */ + private Boolean isPreviewDbVersion; + + /* + * True if this version of the Oracle Database software is supported for Upgrade. + */ + private Boolean isUpgradeSupported; + + /* + * True if this version of the Oracle Database software supports pluggable databases. + */ + private Boolean supportsPdb; + + /** + * Creates an instance of DbVersionProperties class. + */ + private DbVersionProperties() { + } + + /** + * Get the version property: A valid Oracle Database version. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the isLatestForMajorVersion property: True if this version of the Oracle Database software is the latest + * version for a release. + * + * @return the isLatestForMajorVersion value. + */ + public Boolean isLatestForMajorVersion() { + return this.isLatestForMajorVersion; + } + + /** + * Get the isPreviewDbVersion property: True if this version of the Oracle Database software is the preview version. + * + * @return the isPreviewDbVersion value. + */ + public Boolean isPreviewDbVersion() { + return this.isPreviewDbVersion; + } + + /** + * Get the isUpgradeSupported property: True if this version of the Oracle Database software is supported for + * Upgrade. + * + * @return the isUpgradeSupported value. + */ + public Boolean isUpgradeSupported() { + return this.isUpgradeSupported; + } + + /** + * Get the supportsPdb property: True if this version of the Oracle Database software supports pluggable databases. + * + * @return the supportsPdb value. + */ + public Boolean supportsPdb() { + return this.supportsPdb; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("version", this.version); + jsonWriter.writeBooleanField("isLatestForMajorVersion", this.isLatestForMajorVersion); + jsonWriter.writeBooleanField("isPreviewDbVersion", this.isPreviewDbVersion); + jsonWriter.writeBooleanField("isUpgradeSupported", this.isUpgradeSupported); + jsonWriter.writeBooleanField("supportsPdb", this.supportsPdb); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DbVersionProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DbVersionProperties 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 DbVersionProperties. + */ + public static DbVersionProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DbVersionProperties deserializedDbVersionProperties = new DbVersionProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("version".equals(fieldName)) { + deserializedDbVersionProperties.version = reader.getString(); + } else if ("isLatestForMajorVersion".equals(fieldName)) { + deserializedDbVersionProperties.isLatestForMajorVersion + = reader.getNullable(JsonReader::getBoolean); + } else if ("isPreviewDbVersion".equals(fieldName)) { + deserializedDbVersionProperties.isPreviewDbVersion = reader.getNullable(JsonReader::getBoolean); + } else if ("isUpgradeSupported".equals(fieldName)) { + deserializedDbVersionProperties.isUpgradeSupported = reader.getNullable(JsonReader::getBoolean); + } else if ("supportsPdb".equals(fieldName)) { + deserializedDbVersionProperties.supportsPdb = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedDbVersionProperties; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersions.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersions.java new file mode 100644 index 000000000000..e0eda8b649f6 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersions.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of DbVersions. + */ +public interface DbVersions { + /** + * Get a DbVersion. + * + * @param location The name of the Azure region. + * @param dbversionsname DbVersion name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbVersion along with {@link Response}. + */ + Response getWithResponse(String location, String dbversionsname, Context context); + + /** + * Get a DbVersion. + * + * @param location The name of the Azure region. + * @param dbversionsname DbVersion name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a DbVersion. + */ + DbVersion get(String location, String dbversionsname); + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByLocation(String location); + + /** + * List DbVersion resources by SubscriptionLocationResource. + * + * @param location The name of the Azure region. + * @param dbSystemShape If provided, filters the results to the set of database versions which are supported for the + * given shape. e.g., VM.Standard.E5.Flex. + * @param dbSystemId The DB system AzureId. If provided, filters the results to the set of database versions which + * are supported for the DB system. + * @param storageManagement The DB system storage management option. Used to list database versions available for + * that storage manager. Valid values are ASM and LVM. + * @param isUpgradeSupported If true, filters the results to the set of database versions which are supported for + * Upgrade. + * @param isDatabaseSoftwareImageSupported If true, filters the results to the set of Oracle Database versions that + * are supported for the database software images. + * @param shapeFamily If provided, filters the results to the set of database versions which are supported for the + * given shape family. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DbVersion list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByLocation(String location, BaseDbSystemShapes dbSystemShape, String dbSystemId, + StorageManagementType storageManagement, Boolean isUpgradeSupported, Boolean isDatabaseSoftwareImageSupported, + ShapeFamilyType shapeFamily, Context context); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DiskRedundancyType.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DiskRedundancyType.java new file mode 100644 index 000000000000..fa4c1ce45b9a --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DiskRedundancyType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Disk redundancy type enum. + */ +public final class DiskRedundancyType extends ExpandableStringEnum { + /** + * 3-way redundancy. + */ + public static final DiskRedundancyType HIGH = fromString("High"); + + /** + * 2-way redundancy. + */ + public static final DiskRedundancyType NORMAL = fromString("Normal"); + + /** + * Creates a new instance of DiskRedundancyType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DiskRedundancyType() { + } + + /** + * Creates or finds a DiskRedundancyType from its string representation. + * + * @param name a name to look for. + * @return the corresponding DiskRedundancyType. + */ + public static DiskRedundancyType fromString(String name) { + return fromString(name, DiskRedundancyType.class); + } + + /** + * Gets known DiskRedundancyType values. + * + * @return known DiskRedundancyType values. + */ + public static Collection values() { + return values(DiskRedundancyType.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsForwardingRule.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsForwardingRule.java new file mode 100644 index 000000000000..765fc3da2df0 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsForwardingRule.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * DNS forwarding rule properties. + */ +@Fluent +public final class DnsForwardingRule implements JsonSerializable { + /* + * Comma-separated domain names + */ + private String domainNames; + + /* + * Forwarding ip address + */ + private String forwardingIpAddress; + + /** + * Creates an instance of DnsForwardingRule class. + */ + public DnsForwardingRule() { + } + + /** + * Get the domainNames property: Comma-separated domain names. + * + * @return the domainNames value. + */ + public String domainNames() { + return this.domainNames; + } + + /** + * Set the domainNames property: Comma-separated domain names. + * + * @param domainNames the domainNames value to set. + * @return the DnsForwardingRule object itself. + */ + public DnsForwardingRule withDomainNames(String domainNames) { + this.domainNames = domainNames; + return this; + } + + /** + * Get the forwardingIpAddress property: Forwarding ip address. + * + * @return the forwardingIpAddress value. + */ + public String forwardingIpAddress() { + return this.forwardingIpAddress; + } + + /** + * Set the forwardingIpAddress property: Forwarding ip address. + * + * @param forwardingIpAddress the forwardingIpAddress value to set. + * @return the DnsForwardingRule object itself. + */ + public DnsForwardingRule withForwardingIpAddress(String forwardingIpAddress) { + this.forwardingIpAddress = forwardingIpAddress; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("domainNames", this.domainNames); + jsonWriter.writeStringField("forwardingIpAddress", this.forwardingIpAddress); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DnsForwardingRule from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DnsForwardingRule 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 DnsForwardingRule. + */ + public static DnsForwardingRule fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DnsForwardingRule deserializedDnsForwardingRule = new DnsForwardingRule(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("domainNames".equals(fieldName)) { + deserializedDnsForwardingRule.domainNames = reader.getString(); + } else if ("forwardingIpAddress".equals(fieldName)) { + deserializedDnsForwardingRule.forwardingIpAddress = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDnsForwardingRule; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadataVmClusterStorageManagementType.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadataVmClusterStorageManagementType.java new file mode 100644 index 000000000000..e8bd51b040b6 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadataVmClusterStorageManagementType.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Specifies the type of storage management for the Cloud VM Cluster if its ASM or Exascale. + */ +public final class ExadataVmClusterStorageManagementType + extends ExpandableStringEnum { + /** + * Indicates that storage management for the Cloud VM Cluster is ASM. + */ + public static final ExadataVmClusterStorageManagementType ASM = fromString("ASM"); + + /** + * Indicates that storage management for the Cloud VM Cluster is Exascale. + */ + public static final ExadataVmClusterStorageManagementType EXASCALE = fromString("Exascale"); + + /** + * Creates a new instance of ExadataVmClusterStorageManagementType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ExadataVmClusterStorageManagementType() { + } + + /** + * Creates or finds a ExadataVmClusterStorageManagementType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ExadataVmClusterStorageManagementType. + */ + public static ExadataVmClusterStorageManagementType fromString(String name) { + return fromString(name, ExadataVmClusterStorageManagementType.class); + } + + /** + * Gets known ExadataVmClusterStorageManagementType values. + * + * @return known ExadataVmClusterStorageManagementType values. + */ + public static Collection values() { + return values(ExadataVmClusterStorageManagementType.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterProperties.java index e4c0654ab598..25505421f45e 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterProperties.java @@ -247,6 +247,11 @@ public final class ExadbVmClusterProperties implements JsonSerializable { + /* + * Storage size needed for Exascale in GBs. + */ + private int totalStorageInGbs; + + /* + * Available storage size for Exascale in GBs. + */ + private Integer availableStorageInGbs; + + /** + * Creates an instance of ExascaleConfigDetails class. + */ + private ExascaleConfigDetails() { + } + + /** + * Get the totalStorageInGbs property: Storage size needed for Exascale in GBs. + * + * @return the totalStorageInGbs value. + */ + public int totalStorageInGbs() { + return this.totalStorageInGbs; + } + + /** + * Get the availableStorageInGbs property: Available storage size for Exascale in GBs. + * + * @return the availableStorageInGbs value. + */ + public Integer availableStorageInGbs() { + return this.availableStorageInGbs; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeIntField("totalStorageInGbs", this.totalStorageInGbs); + jsonWriter.writeNumberField("availableStorageInGbs", this.availableStorageInGbs); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ExascaleConfigDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ExascaleConfigDetails 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 ExascaleConfigDetails. + */ + public static ExascaleConfigDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ExascaleConfigDetails deserializedExascaleConfigDetails = new ExascaleConfigDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("totalStorageInGbs".equals(fieldName)) { + deserializedExascaleConfigDetails.totalStorageInGbs = reader.getInt(); + } else if ("availableStorageInGbs".equals(fieldName)) { + deserializedExascaleConfigDetails.availableStorageInGbs = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedExascaleConfigDetails; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultProperties.java index c12e31ac845f..a41f25c4393f 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultProperties.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultProperties.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * ExascaleDbStorageVault resource model. @@ -76,6 +77,16 @@ public final class ExascaleDbStorageVaultProperties implements JsonSerializable< */ private String ociUrl; + /* + * Cloud Exadata infrastructure ID + */ + private String exadataInfrastructureId; + + /* + * The shapeAttribute of the Exadata VM cluster(s) associated with the Exadata Database Storage Vault. + */ + private List attachedShapeAttributes; + /** * Creates an instance of ExascaleDbStorageVaultProperties class. */ @@ -250,6 +261,36 @@ public String ociUrl() { return this.ociUrl; } + /** + * Get the exadataInfrastructureId property: Cloud Exadata infrastructure ID. + * + * @return the exadataInfrastructureId value. + */ + public String exadataInfrastructureId() { + return this.exadataInfrastructureId; + } + + /** + * Set the exadataInfrastructureId property: Cloud Exadata infrastructure ID. + * + * @param exadataInfrastructureId the exadataInfrastructureId value to set. + * @return the ExascaleDbStorageVaultProperties object itself. + */ + public ExascaleDbStorageVaultProperties withExadataInfrastructureId(String exadataInfrastructureId) { + this.exadataInfrastructureId = exadataInfrastructureId; + return this; + } + + /** + * Get the attachedShapeAttributes property: The shapeAttribute of the Exadata VM cluster(s) associated with the + * Exadata Database Storage Vault. + * + * @return the attachedShapeAttributes value. + */ + public List attachedShapeAttributes() { + return this.attachedShapeAttributes; + } + /** * {@inheritDoc} */ @@ -261,6 +302,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("additionalFlashCacheInPercent", this.additionalFlashCacheInPercent); jsonWriter.writeStringField("description", this.description); jsonWriter.writeStringField("timeZone", this.timeZone); + jsonWriter.writeStringField("exadataInfrastructureId", this.exadataInfrastructureId); return jsonWriter.writeEndObject(); } @@ -311,6 +353,12 @@ public static ExascaleDbStorageVaultProperties fromJson(JsonReader jsonReader) t deserializedExascaleDbStorageVaultProperties.ocid = reader.getString(); } else if ("ociUrl".equals(fieldName)) { deserializedExascaleDbStorageVaultProperties.ociUrl = reader.getString(); + } else if ("exadataInfrastructureId".equals(fieldName)) { + deserializedExascaleDbStorageVaultProperties.exadataInfrastructureId = reader.getString(); + } else if ("attachedShapeAttributes".equals(fieldName)) { + List attachedShapeAttributes + = reader.readArray(reader1 -> ShapeAttribute.fromString(reader1.getString())); + deserializedExascaleDbStorageVaultProperties.attachedShapeAttributes = attachedShapeAttributes; } else { reader.skipChildren(); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersions.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersions.java index e152261bd1c2..82383d33f896 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersions.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersions.java @@ -54,11 +54,13 @@ public interface GiVersions { * @param location The name of the Azure region. * @param shape If provided, filters the results for the given shape. * @param zone Filters the result for the given Azure Availability Zone. + * @param shapeAttribute Filters the result for the given Shape Attribute, such as BLOCK_STORAGE or SMART_STORAGE. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response of a GiVersion list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByLocation(String location, SystemShapes shape, String zone, Context context); + PagedIterable listByLocation(String location, SystemShapes shape, String zone, String shapeAttribute, + Context context); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchor.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchor.java new file mode 100644 index 000000000000..8d42f29b91be --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchor.java @@ -0,0 +1,300 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner; +import java.util.List; +import java.util.Map; + +/** + * An immutable client-side representation of NetworkAnchor. + */ +public interface NetworkAnchor { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + NetworkAnchorProperties properties(); + + /** + * Gets the zones property: The availability zones. + * + * @return the zones value. + */ + List zones(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner object. + * + * @return the inner object. + */ + NetworkAnchorInner innerModel(); + + /** + * The entirety of the NetworkAnchor definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { + } + + /** + * The NetworkAnchor definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the NetworkAnchor definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the NetworkAnchor definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(String location); + } + + /** + * The stage of the NetworkAnchor definition allowing to specify parent resource. + */ + interface WithResourceGroup { + /** + * Specifies resourceGroupName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @return the next definition stage. + */ + WithCreate withExistingResourceGroup(String resourceGroupName); + } + + /** + * The stage of the NetworkAnchor definition which contains all the minimum required properties for the resource + * to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate + extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithZones { + /** + * Executes the create request. + * + * @return the created resource. + */ + NetworkAnchor create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + NetworkAnchor create(Context context); + } + + /** + * The stage of the NetworkAnchor definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the NetworkAnchor definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(NetworkAnchorProperties properties); + } + + /** + * The stage of the NetworkAnchor definition allowing to specify zones. + */ + interface WithZones { + /** + * Specifies the zones property: The availability zones.. + * + * @param zones The availability zones. + * @return the next definition stage. + */ + WithCreate withZones(List zones); + } + } + + /** + * Begins update for the NetworkAnchor resource. + * + * @return the stage of resource update. + */ + NetworkAnchor.Update update(); + + /** + * The template for NetworkAnchor update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithZones, UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + NetworkAnchor apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + NetworkAnchor apply(Context context); + } + + /** + * The NetworkAnchor update stages. + */ + interface UpdateStages { + /** + * The stage of the NetworkAnchor update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the NetworkAnchor update allowing to specify zones. + */ + interface WithZones { + /** + * Specifies the zones property: The availability zones.. + * + * @param zones The availability zones. + * @return the next definition stage. + */ + Update withZones(List zones); + } + + /** + * The stage of the NetworkAnchor update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + Update withProperties(NetworkAnchorUpdateProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + NetworkAnchor refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + NetworkAnchor refresh(Context context); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorProperties.java new file mode 100644 index 000000000000..e615de85cc66 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorProperties.java @@ -0,0 +1,486 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Network Anchor properties. + */ +@Fluent +public final class NetworkAnchorProperties implements JsonSerializable { + /* + * Corresponding resource anchor Azure ID + */ + private String resourceAnchorId; + + /* + * NetworkAnchor provisioning state + */ + private AzureResourceProvisioningState provisioningState; + + /* + * VNET for network connectivity + */ + private String vnetId; + + /* + * Client subnet + */ + private String subnetId; + + /* + * Delegated Azure subnet cidr block. + */ + private String cidrBlock; + + /* + * Oracle Cloud Infrastructure VCN OCID + */ + private String ociVcnId; + + /* + * OCI DNS label. This is optional if DNS config is provided. + */ + private String ociVcnDnsLabel; + + /* + * Oracle Cloud Infrastructure subnet OCID + */ + private String ociSubnetId; + + /* + * OCI backup subnet cidr block. + */ + private String ociBackupCidrBlock; + + /* + * Indicates whether DNS zone sync from OCI to Azure is enabled + */ + private Boolean isOracleToAzureDnsZoneSyncEnabled; + + /* + * Indicates whether the Oracle DNS listening endpoint is enabled + */ + private Boolean isOracleDnsListeningEndpointEnabled; + + /* + * Indicates whether the Oracle DNS forwarding endpoint is enabled + */ + private Boolean isOracleDnsForwardingEndpointEnabled; + + /* + * DNS forwarding rules + */ + private List dnsForwardingRules; + + /* + * Comma-separated list of CIDRs that are allowed to send requests to the DNS listening endpoint + */ + private String dnsListeningEndpointAllowedCidrs; + + /* + * DNS listening endpoint IP address + */ + private String dnsListeningEndpointIpAddress; + + /* + * DNS forwarding endpoint IP address + */ + private String dnsForwardingEndpointIpAddress; + + /* + * Deep link to OCI console DNS Forwarding rules page + */ + private String dnsForwardingRulesUrl; + + /* + * Deep link to OCI console DNS Listening endpoint NSG rules + */ + private String dnsListeningEndpointNsgRulesUrl; + + /* + * Deep link to OCI console DNS Forwarding endpoint NSG rules + */ + private String dnsForwardingEndpointNsgRulesUrl; + + /** + * Creates an instance of NetworkAnchorProperties class. + */ + public NetworkAnchorProperties() { + } + + /** + * Get the resourceAnchorId property: Corresponding resource anchor Azure ID. + * + * @return the resourceAnchorId value. + */ + public String resourceAnchorId() { + return this.resourceAnchorId; + } + + /** + * Set the resourceAnchorId property: Corresponding resource anchor Azure ID. + * + * @param resourceAnchorId the resourceAnchorId value to set. + * @return the NetworkAnchorProperties object itself. + */ + public NetworkAnchorProperties withResourceAnchorId(String resourceAnchorId) { + this.resourceAnchorId = resourceAnchorId; + return this; + } + + /** + * Get the provisioningState property: NetworkAnchor provisioning state. + * + * @return the provisioningState value. + */ + public AzureResourceProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the vnetId property: VNET for network connectivity. + * + * @return the vnetId value. + */ + public String vnetId() { + return this.vnetId; + } + + /** + * Get the subnetId property: Client subnet. + * + * @return the subnetId value. + */ + public String subnetId() { + return this.subnetId; + } + + /** + * Set the subnetId property: Client subnet. + * + * @param subnetId the subnetId value to set. + * @return the NetworkAnchorProperties object itself. + */ + public NetworkAnchorProperties withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * Get the cidrBlock property: Delegated Azure subnet cidr block. + * + * @return the cidrBlock value. + */ + public String cidrBlock() { + return this.cidrBlock; + } + + /** + * Get the ociVcnId property: Oracle Cloud Infrastructure VCN OCID. + * + * @return the ociVcnId value. + */ + public String ociVcnId() { + return this.ociVcnId; + } + + /** + * Get the ociVcnDnsLabel property: OCI DNS label. This is optional if DNS config is provided. + * + * @return the ociVcnDnsLabel value. + */ + public String ociVcnDnsLabel() { + return this.ociVcnDnsLabel; + } + + /** + * Set the ociVcnDnsLabel property: OCI DNS label. This is optional if DNS config is provided. + * + * @param ociVcnDnsLabel the ociVcnDnsLabel value to set. + * @return the NetworkAnchorProperties object itself. + */ + public NetworkAnchorProperties withOciVcnDnsLabel(String ociVcnDnsLabel) { + this.ociVcnDnsLabel = ociVcnDnsLabel; + return this; + } + + /** + * Get the ociSubnetId property: Oracle Cloud Infrastructure subnet OCID. + * + * @return the ociSubnetId value. + */ + public String ociSubnetId() { + return this.ociSubnetId; + } + + /** + * Get the ociBackupCidrBlock property: OCI backup subnet cidr block. + * + * @return the ociBackupCidrBlock value. + */ + public String ociBackupCidrBlock() { + return this.ociBackupCidrBlock; + } + + /** + * Set the ociBackupCidrBlock property: OCI backup subnet cidr block. + * + * @param ociBackupCidrBlock the ociBackupCidrBlock value to set. + * @return the NetworkAnchorProperties object itself. + */ + public NetworkAnchorProperties withOciBackupCidrBlock(String ociBackupCidrBlock) { + this.ociBackupCidrBlock = ociBackupCidrBlock; + return this; + } + + /** + * Get the isOracleToAzureDnsZoneSyncEnabled property: Indicates whether DNS zone sync from OCI to Azure is enabled. + * + * @return the isOracleToAzureDnsZoneSyncEnabled value. + */ + public Boolean isOracleToAzureDnsZoneSyncEnabled() { + return this.isOracleToAzureDnsZoneSyncEnabled; + } + + /** + * Set the isOracleToAzureDnsZoneSyncEnabled property: Indicates whether DNS zone sync from OCI to Azure is enabled. + * + * @param isOracleToAzureDnsZoneSyncEnabled the isOracleToAzureDnsZoneSyncEnabled value to set. + * @return the NetworkAnchorProperties object itself. + */ + public NetworkAnchorProperties withIsOracleToAzureDnsZoneSyncEnabled(Boolean isOracleToAzureDnsZoneSyncEnabled) { + this.isOracleToAzureDnsZoneSyncEnabled = isOracleToAzureDnsZoneSyncEnabled; + return this; + } + + /** + * Get the isOracleDnsListeningEndpointEnabled property: Indicates whether the Oracle DNS listening endpoint is + * enabled. + * + * @return the isOracleDnsListeningEndpointEnabled value. + */ + public Boolean isOracleDnsListeningEndpointEnabled() { + return this.isOracleDnsListeningEndpointEnabled; + } + + /** + * Set the isOracleDnsListeningEndpointEnabled property: Indicates whether the Oracle DNS listening endpoint is + * enabled. + * + * @param isOracleDnsListeningEndpointEnabled the isOracleDnsListeningEndpointEnabled value to set. + * @return the NetworkAnchorProperties object itself. + */ + public NetworkAnchorProperties + withIsOracleDnsListeningEndpointEnabled(Boolean isOracleDnsListeningEndpointEnabled) { + this.isOracleDnsListeningEndpointEnabled = isOracleDnsListeningEndpointEnabled; + return this; + } + + /** + * Get the isOracleDnsForwardingEndpointEnabled property: Indicates whether the Oracle DNS forwarding endpoint is + * enabled. + * + * @return the isOracleDnsForwardingEndpointEnabled value. + */ + public Boolean isOracleDnsForwardingEndpointEnabled() { + return this.isOracleDnsForwardingEndpointEnabled; + } + + /** + * Set the isOracleDnsForwardingEndpointEnabled property: Indicates whether the Oracle DNS forwarding endpoint is + * enabled. + * + * @param isOracleDnsForwardingEndpointEnabled the isOracleDnsForwardingEndpointEnabled value to set. + * @return the NetworkAnchorProperties object itself. + */ + public NetworkAnchorProperties + withIsOracleDnsForwardingEndpointEnabled(Boolean isOracleDnsForwardingEndpointEnabled) { + this.isOracleDnsForwardingEndpointEnabled = isOracleDnsForwardingEndpointEnabled; + return this; + } + + /** + * Get the dnsForwardingRules property: DNS forwarding rules. + * + * @return the dnsForwardingRules value. + */ + public List dnsForwardingRules() { + return this.dnsForwardingRules; + } + + /** + * Set the dnsForwardingRules property: DNS forwarding rules. + * + * @param dnsForwardingRules the dnsForwardingRules value to set. + * @return the NetworkAnchorProperties object itself. + */ + public NetworkAnchorProperties withDnsForwardingRules(List dnsForwardingRules) { + this.dnsForwardingRules = dnsForwardingRules; + return this; + } + + /** + * Get the dnsListeningEndpointAllowedCidrs property: Comma-separated list of CIDRs that are allowed to send + * requests to the DNS listening endpoint. + * + * @return the dnsListeningEndpointAllowedCidrs value. + */ + public String dnsListeningEndpointAllowedCidrs() { + return this.dnsListeningEndpointAllowedCidrs; + } + + /** + * Set the dnsListeningEndpointAllowedCidrs property: Comma-separated list of CIDRs that are allowed to send + * requests to the DNS listening endpoint. + * + * @param dnsListeningEndpointAllowedCidrs the dnsListeningEndpointAllowedCidrs value to set. + * @return the NetworkAnchorProperties object itself. + */ + public NetworkAnchorProperties withDnsListeningEndpointAllowedCidrs(String dnsListeningEndpointAllowedCidrs) { + this.dnsListeningEndpointAllowedCidrs = dnsListeningEndpointAllowedCidrs; + return this; + } + + /** + * Get the dnsListeningEndpointIpAddress property: DNS listening endpoint IP address. + * + * @return the dnsListeningEndpointIpAddress value. + */ + public String dnsListeningEndpointIpAddress() { + return this.dnsListeningEndpointIpAddress; + } + + /** + * Get the dnsForwardingEndpointIpAddress property: DNS forwarding endpoint IP address. + * + * @return the dnsForwardingEndpointIpAddress value. + */ + public String dnsForwardingEndpointIpAddress() { + return this.dnsForwardingEndpointIpAddress; + } + + /** + * Get the dnsForwardingRulesUrl property: Deep link to OCI console DNS Forwarding rules page. + * + * @return the dnsForwardingRulesUrl value. + */ + public String dnsForwardingRulesUrl() { + return this.dnsForwardingRulesUrl; + } + + /** + * Get the dnsListeningEndpointNsgRulesUrl property: Deep link to OCI console DNS Listening endpoint NSG rules. + * + * @return the dnsListeningEndpointNsgRulesUrl value. + */ + public String dnsListeningEndpointNsgRulesUrl() { + return this.dnsListeningEndpointNsgRulesUrl; + } + + /** + * Get the dnsForwardingEndpointNsgRulesUrl property: Deep link to OCI console DNS Forwarding endpoint NSG rules. + * + * @return the dnsForwardingEndpointNsgRulesUrl value. + */ + public String dnsForwardingEndpointNsgRulesUrl() { + return this.dnsForwardingEndpointNsgRulesUrl; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("resourceAnchorId", this.resourceAnchorId); + jsonWriter.writeStringField("subnetId", this.subnetId); + jsonWriter.writeStringField("ociVcnDnsLabel", this.ociVcnDnsLabel); + jsonWriter.writeStringField("ociBackupCidrBlock", this.ociBackupCidrBlock); + jsonWriter.writeBooleanField("isOracleToAzureDnsZoneSyncEnabled", this.isOracleToAzureDnsZoneSyncEnabled); + jsonWriter.writeBooleanField("isOracleDnsListeningEndpointEnabled", this.isOracleDnsListeningEndpointEnabled); + jsonWriter.writeBooleanField("isOracleDnsForwardingEndpointEnabled", this.isOracleDnsForwardingEndpointEnabled); + jsonWriter.writeArrayField("dnsForwardingRules", this.dnsForwardingRules, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("dnsListeningEndpointAllowedCidrs", this.dnsListeningEndpointAllowedCidrs); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkAnchorProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkAnchorProperties 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 NetworkAnchorProperties. + */ + public static NetworkAnchorProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkAnchorProperties deserializedNetworkAnchorProperties = new NetworkAnchorProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceAnchorId".equals(fieldName)) { + deserializedNetworkAnchorProperties.resourceAnchorId = reader.getString(); + } else if ("subnetId".equals(fieldName)) { + deserializedNetworkAnchorProperties.subnetId = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedNetworkAnchorProperties.provisioningState + = AzureResourceProvisioningState.fromString(reader.getString()); + } else if ("vnetId".equals(fieldName)) { + deserializedNetworkAnchorProperties.vnetId = reader.getString(); + } else if ("cidrBlock".equals(fieldName)) { + deserializedNetworkAnchorProperties.cidrBlock = reader.getString(); + } else if ("ociVcnId".equals(fieldName)) { + deserializedNetworkAnchorProperties.ociVcnId = reader.getString(); + } else if ("ociVcnDnsLabel".equals(fieldName)) { + deserializedNetworkAnchorProperties.ociVcnDnsLabel = reader.getString(); + } else if ("ociSubnetId".equals(fieldName)) { + deserializedNetworkAnchorProperties.ociSubnetId = reader.getString(); + } else if ("ociBackupCidrBlock".equals(fieldName)) { + deserializedNetworkAnchorProperties.ociBackupCidrBlock = reader.getString(); + } else if ("isOracleToAzureDnsZoneSyncEnabled".equals(fieldName)) { + deserializedNetworkAnchorProperties.isOracleToAzureDnsZoneSyncEnabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("isOracleDnsListeningEndpointEnabled".equals(fieldName)) { + deserializedNetworkAnchorProperties.isOracleDnsListeningEndpointEnabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("isOracleDnsForwardingEndpointEnabled".equals(fieldName)) { + deserializedNetworkAnchorProperties.isOracleDnsForwardingEndpointEnabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("dnsForwardingRules".equals(fieldName)) { + List dnsForwardingRules + = reader.readArray(reader1 -> DnsForwardingRule.fromJson(reader1)); + deserializedNetworkAnchorProperties.dnsForwardingRules = dnsForwardingRules; + } else if ("dnsListeningEndpointAllowedCidrs".equals(fieldName)) { + deserializedNetworkAnchorProperties.dnsListeningEndpointAllowedCidrs = reader.getString(); + } else if ("dnsListeningEndpointIpAddress".equals(fieldName)) { + deserializedNetworkAnchorProperties.dnsListeningEndpointIpAddress = reader.getString(); + } else if ("dnsForwardingEndpointIpAddress".equals(fieldName)) { + deserializedNetworkAnchorProperties.dnsForwardingEndpointIpAddress = reader.getString(); + } else if ("dnsForwardingRulesUrl".equals(fieldName)) { + deserializedNetworkAnchorProperties.dnsForwardingRulesUrl = reader.getString(); + } else if ("dnsListeningEndpointNsgRulesUrl".equals(fieldName)) { + deserializedNetworkAnchorProperties.dnsListeningEndpointNsgRulesUrl = reader.getString(); + } else if ("dnsForwardingEndpointNsgRulesUrl".equals(fieldName)) { + deserializedNetworkAnchorProperties.dnsForwardingEndpointNsgRulesUrl = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkAnchorProperties; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorUpdate.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorUpdate.java new file mode 100644 index 000000000000..52b9da71932a --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorUpdate.java @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * The type used for update operations of the NetworkAnchor. + */ +@Fluent +public final class NetworkAnchorUpdate implements JsonSerializable { + /* + * The availability zones. + */ + private List zones; + + /* + * Resource tags. + */ + private Map tags; + + /* + * The resource-specific properties for this resource. + */ + private NetworkAnchorUpdateProperties properties; + + /** + * Creates an instance of NetworkAnchorUpdate class. + */ + public NetworkAnchorUpdate() { + } + + /** + * Get the zones property: The availability zones. + * + * @return the zones value. + */ + public List zones() { + return this.zones; + } + + /** + * Set the zones property: The availability zones. + * + * @param zones the zones value to set. + * @return the NetworkAnchorUpdate object itself. + */ + public NetworkAnchorUpdate withZones(List zones) { + this.zones = zones; + return this; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the NetworkAnchorUpdate object itself. + */ + public NetworkAnchorUpdate withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public NetworkAnchorUpdateProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the NetworkAnchorUpdate object itself. + */ + public NetworkAnchorUpdate withProperties(NetworkAnchorUpdateProperties properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkAnchorUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkAnchorUpdate if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkAnchorUpdate. + */ + public static NetworkAnchorUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkAnchorUpdate deserializedNetworkAnchorUpdate = new NetworkAnchorUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("zones".equals(fieldName)) { + List zones = reader.readArray(reader1 -> reader1.getString()); + deserializedNetworkAnchorUpdate.zones = zones; + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedNetworkAnchorUpdate.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedNetworkAnchorUpdate.properties = NetworkAnchorUpdateProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkAnchorUpdate; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorUpdateProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorUpdateProperties.java new file mode 100644 index 000000000000..07fc2e041983 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorUpdateProperties.java @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The updatable properties of the NetworkAnchor. + */ +@Fluent +public final class NetworkAnchorUpdateProperties implements JsonSerializable { + /* + * OCI backup subnet cidr block. + */ + private String ociBackupCidrBlock; + + /* + * Indicates whether DNS zone sync from OCI to Azure is enabled + */ + private Boolean isOracleToAzureDnsZoneSyncEnabled; + + /* + * Indicates whether the Oracle DNS listening endpoint is enabled + */ + private Boolean isOracleDnsListeningEndpointEnabled; + + /* + * Indicates whether the Oracle DNS forwarding endpoint is enabled + */ + private Boolean isOracleDnsForwardingEndpointEnabled; + + /** + * Creates an instance of NetworkAnchorUpdateProperties class. + */ + public NetworkAnchorUpdateProperties() { + } + + /** + * Get the ociBackupCidrBlock property: OCI backup subnet cidr block. + * + * @return the ociBackupCidrBlock value. + */ + public String ociBackupCidrBlock() { + return this.ociBackupCidrBlock; + } + + /** + * Set the ociBackupCidrBlock property: OCI backup subnet cidr block. + * + * @param ociBackupCidrBlock the ociBackupCidrBlock value to set. + * @return the NetworkAnchorUpdateProperties object itself. + */ + public NetworkAnchorUpdateProperties withOciBackupCidrBlock(String ociBackupCidrBlock) { + this.ociBackupCidrBlock = ociBackupCidrBlock; + return this; + } + + /** + * Get the isOracleToAzureDnsZoneSyncEnabled property: Indicates whether DNS zone sync from OCI to Azure is enabled. + * + * @return the isOracleToAzureDnsZoneSyncEnabled value. + */ + public Boolean isOracleToAzureDnsZoneSyncEnabled() { + return this.isOracleToAzureDnsZoneSyncEnabled; + } + + /** + * Set the isOracleToAzureDnsZoneSyncEnabled property: Indicates whether DNS zone sync from OCI to Azure is enabled. + * + * @param isOracleToAzureDnsZoneSyncEnabled the isOracleToAzureDnsZoneSyncEnabled value to set. + * @return the NetworkAnchorUpdateProperties object itself. + */ + public NetworkAnchorUpdateProperties + withIsOracleToAzureDnsZoneSyncEnabled(Boolean isOracleToAzureDnsZoneSyncEnabled) { + this.isOracleToAzureDnsZoneSyncEnabled = isOracleToAzureDnsZoneSyncEnabled; + return this; + } + + /** + * Get the isOracleDnsListeningEndpointEnabled property: Indicates whether the Oracle DNS listening endpoint is + * enabled. + * + * @return the isOracleDnsListeningEndpointEnabled value. + */ + public Boolean isOracleDnsListeningEndpointEnabled() { + return this.isOracleDnsListeningEndpointEnabled; + } + + /** + * Set the isOracleDnsListeningEndpointEnabled property: Indicates whether the Oracle DNS listening endpoint is + * enabled. + * + * @param isOracleDnsListeningEndpointEnabled the isOracleDnsListeningEndpointEnabled value to set. + * @return the NetworkAnchorUpdateProperties object itself. + */ + public NetworkAnchorUpdateProperties + withIsOracleDnsListeningEndpointEnabled(Boolean isOracleDnsListeningEndpointEnabled) { + this.isOracleDnsListeningEndpointEnabled = isOracleDnsListeningEndpointEnabled; + return this; + } + + /** + * Get the isOracleDnsForwardingEndpointEnabled property: Indicates whether the Oracle DNS forwarding endpoint is + * enabled. + * + * @return the isOracleDnsForwardingEndpointEnabled value. + */ + public Boolean isOracleDnsForwardingEndpointEnabled() { + return this.isOracleDnsForwardingEndpointEnabled; + } + + /** + * Set the isOracleDnsForwardingEndpointEnabled property: Indicates whether the Oracle DNS forwarding endpoint is + * enabled. + * + * @param isOracleDnsForwardingEndpointEnabled the isOracleDnsForwardingEndpointEnabled value to set. + * @return the NetworkAnchorUpdateProperties object itself. + */ + public NetworkAnchorUpdateProperties + withIsOracleDnsForwardingEndpointEnabled(Boolean isOracleDnsForwardingEndpointEnabled) { + this.isOracleDnsForwardingEndpointEnabled = isOracleDnsForwardingEndpointEnabled; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("ociBackupCidrBlock", this.ociBackupCidrBlock); + jsonWriter.writeBooleanField("isOracleToAzureDnsZoneSyncEnabled", this.isOracleToAzureDnsZoneSyncEnabled); + jsonWriter.writeBooleanField("isOracleDnsListeningEndpointEnabled", this.isOracleDnsListeningEndpointEnabled); + jsonWriter.writeBooleanField("isOracleDnsForwardingEndpointEnabled", this.isOracleDnsForwardingEndpointEnabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkAnchorUpdateProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkAnchorUpdateProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the NetworkAnchorUpdateProperties. + */ + public static NetworkAnchorUpdateProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkAnchorUpdateProperties deserializedNetworkAnchorUpdateProperties + = new NetworkAnchorUpdateProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("ociBackupCidrBlock".equals(fieldName)) { + deserializedNetworkAnchorUpdateProperties.ociBackupCidrBlock = reader.getString(); + } else if ("isOracleToAzureDnsZoneSyncEnabled".equals(fieldName)) { + deserializedNetworkAnchorUpdateProperties.isOracleToAzureDnsZoneSyncEnabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("isOracleDnsListeningEndpointEnabled".equals(fieldName)) { + deserializedNetworkAnchorUpdateProperties.isOracleDnsListeningEndpointEnabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("isOracleDnsForwardingEndpointEnabled".equals(fieldName)) { + deserializedNetworkAnchorUpdateProperties.isOracleDnsForwardingEndpointEnabled + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkAnchorUpdateProperties; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchors.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchors.java new file mode 100644 index 000000000000..57d62b0e28e2 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchors.java @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of NetworkAnchors. + */ +public interface NetworkAnchors { + /** + * List NetworkAnchor resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * List NetworkAnchor resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(Context context); + + /** + * Get a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a NetworkAnchor along with {@link Response}. + */ + Response getByResourceGroupWithResponse(String resourceGroupName, String networkAnchorName, + Context context); + + /** + * Get a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a NetworkAnchor. + */ + NetworkAnchor getByResourceGroup(String resourceGroupName, String networkAnchorName); + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByResourceGroup(String resourceGroupName, String networkAnchorName); + + /** + * Delete a NetworkAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkAnchorName The name of the NetworkAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String networkAnchorName, Context context); + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List NetworkAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a NetworkAnchor list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Get a NetworkAnchor. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a NetworkAnchor along with {@link Response}. + */ + NetworkAnchor getById(String id); + + /** + * Get a NetworkAnchor. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a NetworkAnchor along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a NetworkAnchor. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete a NetworkAnchor. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new NetworkAnchor resource. + * + * @param name resource name. + * @return the first stage of the new NetworkAnchor definition. + */ + NetworkAnchor.DefinitionStages.Blank define(String name); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchor.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchor.java new file mode 100644 index 000000000000..96cee30fa668 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchor.java @@ -0,0 +1,252 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.management.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner; +import java.util.Map; + +/** + * An immutable client-side representation of ResourceAnchor. + */ +public interface ResourceAnchor { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + ResourceAnchorProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner object. + * + * @return the inner object. + */ + ResourceAnchorInner innerModel(); + + /** + * The entirety of the ResourceAnchor definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { + } + + /** + * The ResourceAnchor definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the ResourceAnchor definition. + */ + interface Blank extends WithLocation { + } + + /** + * The stage of the ResourceAnchor definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithResourceGroup withRegion(String location); + } + + /** + * The stage of the ResourceAnchor definition allowing to specify parent resource. + */ + interface WithResourceGroup { + /** + * Specifies resourceGroupName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @return the next definition stage. + */ + WithCreate withExistingResourceGroup(String resourceGroupName); + } + + /** + * The stage of the ResourceAnchor definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + ResourceAnchor create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + ResourceAnchor create(Context context); + } + + /** + * The stage of the ResourceAnchor definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the ResourceAnchor definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(ResourceAnchorProperties properties); + } + } + + /** + * Begins update for the ResourceAnchor resource. + * + * @return the stage of resource update. + */ + ResourceAnchor.Update update(); + + /** + * The template for ResourceAnchor update. + */ + interface Update extends UpdateStages.WithTags { + /** + * Executes the update request. + * + * @return the updated resource. + */ + ResourceAnchor apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + ResourceAnchor apply(Context context); + } + + /** + * The ResourceAnchor update stages. + */ + interface UpdateStages { + /** + * The stage of the ResourceAnchor update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + ResourceAnchor refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + ResourceAnchor refresh(Context context); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchorProperties.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchorProperties.java new file mode 100644 index 000000000000..4148e558ec51 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchorProperties.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Resource Anchor properties. + */ +@Immutable +public final class ResourceAnchorProperties implements JsonSerializable { + /* + * ResourceAnchor provisioning state + */ + private AzureResourceProvisioningState provisioningState; + + /* + * Oracle Cloud Infrastructure compartment Id (ocid) which was created or linked by customer with resource anchor. + * This compartmentId is different from where resource Anchor lives + */ + private String linkedCompartmentId; + + /** + * Creates an instance of ResourceAnchorProperties class. + */ + public ResourceAnchorProperties() { + } + + /** + * Get the provisioningState property: ResourceAnchor provisioning state. + * + * @return the provisioningState value. + */ + public AzureResourceProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the linkedCompartmentId property: Oracle Cloud Infrastructure compartment Id (ocid) which was created or + * linked by customer with resource anchor. This compartmentId is different from where resource Anchor lives. + * + * @return the linkedCompartmentId value. + */ + public String linkedCompartmentId() { + return this.linkedCompartmentId; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceAnchorProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceAnchorProperties if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ResourceAnchorProperties. + */ + public static ResourceAnchorProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceAnchorProperties deserializedResourceAnchorProperties = new ResourceAnchorProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedResourceAnchorProperties.provisioningState + = AzureResourceProvisioningState.fromString(reader.getString()); + } else if ("linkedCompartmentId".equals(fieldName)) { + deserializedResourceAnchorProperties.linkedCompartmentId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceAnchorProperties; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchorUpdate.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchorUpdate.java new file mode 100644 index 000000000000..257b91c51787 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchorUpdate.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * The type used for update operations of the ResourceAnchor. + */ +@Fluent +public final class ResourceAnchorUpdate implements JsonSerializable { + /* + * Resource tags. + */ + private Map tags; + + /** + * Creates an instance of ResourceAnchorUpdate class. + */ + public ResourceAnchorUpdate() { + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the ResourceAnchorUpdate object itself. + */ + public ResourceAnchorUpdate withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceAnchorUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceAnchorUpdate if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the ResourceAnchorUpdate. + */ + public static ResourceAnchorUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceAnchorUpdate deserializedResourceAnchorUpdate = new ResourceAnchorUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedResourceAnchorUpdate.tags = tags; + } else { + reader.skipChildren(); + } + } + + return deserializedResourceAnchorUpdate; + }); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchors.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchors.java new file mode 100644 index 000000000000..b6e6f3f7da09 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchors.java @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of ResourceAnchors. + */ +public interface ResourceAnchors { + /** + * List ResourceAnchor resources by subscription ID. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(); + + /** + * List ResourceAnchor resources by subscription ID. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(Context context); + + /** + * Get a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ResourceAnchor along with {@link Response}. + */ + Response getByResourceGroupWithResponse(String resourceGroupName, String resourceAnchorName, + Context context); + + /** + * Get a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ResourceAnchor. + */ + ResourceAnchor getByResourceGroup(String resourceGroupName, String resourceAnchorName); + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByResourceGroup(String resourceGroupName, String resourceAnchorName); + + /** + * Delete a ResourceAnchor. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceAnchorName The name of the ResourceAnchor. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String resourceAnchorName, Context context); + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * List ResourceAnchor resources by resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ResourceAnchor list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Get a ResourceAnchor. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ResourceAnchor along with {@link Response}. + */ + ResourceAnchor getById(String id); + + /** + * Get a ResourceAnchor. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a ResourceAnchor along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Delete a ResourceAnchor. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteById(String id); + + /** + * Delete a ResourceAnchor. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new ResourceAnchor resource. + * + * @param name resource name. + * @return the first stage of the new ResourceAnchor definition. + */ + ResourceAnchor.DefinitionStages.Blank define(String name); +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeAttribute.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeAttribute.java new file mode 100644 index 000000000000..fc2222fb4512 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeAttribute.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE which supports Oracle Database + * 23ai and later. + */ +public final class ShapeAttribute extends ExpandableStringEnum { + /** + * Smart storage. + */ + public static final ShapeAttribute SMART_STORAGE = fromString("SMART_STORAGE"); + + /** + * block storage. + */ + public static final ShapeAttribute BLOCK_STORAGE = fromString("BLOCK_STORAGE"); + + /** + * Creates a new instance of ShapeAttribute value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ShapeAttribute() { + } + + /** + * Creates or finds a ShapeAttribute from its string representation. + * + * @param name a name to look for. + * @return the corresponding ShapeAttribute. + */ + public static ShapeAttribute fromString(String name) { + return fromString(name, ShapeAttribute.class); + } + + /** + * Gets known ShapeAttribute values. + * + * @return known ShapeAttribute values. + */ + public static Collection values() { + return values(ShapeAttribute.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeFamilyType.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeFamilyType.java new file mode 100644 index 000000000000..c327d999b049 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeFamilyType.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Allowed values for shape family. + */ +public final class ShapeFamilyType extends ExpandableStringEnum { + /** + * Family value for Exadata Shape. + */ + public static final ShapeFamilyType EXADATA = fromString("EXADATA"); + + /** + * Family value for Exadb XS Shape. + */ + public static final ShapeFamilyType EXADB_XS = fromString("EXADB_XS"); + + /** + * Family value for Single Node Shape. + */ + public static final ShapeFamilyType SINGLE_NODE = fromString("SINGLENODE"); + + /** + * Family value for Virtual Machine Shape. + */ + public static final ShapeFamilyType VIRTUAL_MACHINE = fromString("VIRTUALMACHINE"); + + /** + * Creates a new instance of ShapeFamilyType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ShapeFamilyType() { + } + + /** + * Creates or finds a ShapeFamilyType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ShapeFamilyType. + */ + public static ShapeFamilyType fromString(String name) { + return fromString(name, ShapeFamilyType.class); + } + + /** + * Gets known ShapeFamilyType values. + * + * @return known ShapeFamilyType values. + */ + public static Collection values() { + return values(ShapeFamilyType.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/StorageManagementType.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/StorageManagementType.java new file mode 100644 index 000000000000..0c4ce768982a --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/StorageManagementType.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Storage Management type enum. + */ +public final class StorageManagementType extends ExpandableStringEnum { + /** + * Logical Volume management. + */ + public static final StorageManagementType LVM = fromString("LVM"); + + /** + * Creates a new instance of StorageManagementType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public StorageManagementType() { + } + + /** + * Creates or finds a StorageManagementType from its string representation. + * + * @param name a name to look for. + * @return the corresponding StorageManagementType. + */ + public static StorageManagementType fromString(String name) { + return fromString(name, StorageManagementType.class); + } + + /** + * Gets known StorageManagementType values. + * + * @return known StorageManagementType values. + */ + public static Collection values() { + return values(StorageManagementType.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/StorageVolumePerformanceMode.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/StorageVolumePerformanceMode.java new file mode 100644 index 000000000000..78e6f8a4b841 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/models/StorageVolumePerformanceMode.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Storage volume performance mode. + */ +public final class StorageVolumePerformanceMode extends ExpandableStringEnum { + /** + * With this option, you are purchasing 10 VPUs per GB/month. For more information, including specific throughput + * and IOPS performance numbers for various volume sizes. + */ + public static final StorageVolumePerformanceMode BALANCED = fromString("Balanced"); + + /** + * With this option, you are purchasing 20 VPUs per GB/month. For more information, including specific throughput + * and IOPS performance numbers for various volume sizes. + */ + public static final StorageVolumePerformanceMode HIGH_PERFORMANCE = fromString("HighPerformance"); + + /** + * Creates a new instance of StorageVolumePerformanceMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public StorageVolumePerformanceMode() { + } + + /** + * Creates or finds a StorageVolumePerformanceMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding StorageVolumePerformanceMode. + */ + public static StorageVolumePerformanceMode fromString(String name) { + return fromString(name, StorageVolumePerformanceMode.class); + } + + /** + * Gets known StorageVolumePerformanceMode values. + * + * @return known StorageVolumePerformanceMode values. + */ + public static Collection values() { + return values(StorageVolumePerformanceMode.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/azure-resourcemanager-oracledatabase_apiview_properties.json b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/azure-resourcemanager-oracledatabase_apiview_properties.json index 9b5f7105f9e2..ab36f434bc3c 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/azure-resourcemanager-oracledatabase_apiview_properties.json +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/azure-resourcemanager-oracledatabase_apiview_properties.json @@ -24,6 +24,8 @@ "com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient.getWithResponse": "Oracle.Database.AutonomousDatabaseVersions.get", "com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient.listByLocation": "Oracle.Database.AutonomousDatabaseVersions.listByLocation", "com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient": "Oracle.Database.AutonomousDatabases", + "com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.action": "Oracle.Database.AutonomousDatabases.action", + "com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginAction": "Oracle.Database.AutonomousDatabases.action", "com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginChangeDisasterRecoveryConfiguration": "Oracle.Database.AutonomousDatabases.changeDisasterRecoveryConfiguration", "com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginCreateOrUpdate": "Azure.ResourceManager.AutonomousDatabases.createOrUpdate", "com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginDelete": "Azure.ResourceManager.AutonomousDatabases.delete", @@ -49,9 +51,11 @@ "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient": "Oracle.Database.CloudExadataInfrastructures", "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.addStorageCapacity": "Oracle.Database.CloudExadataInfrastructures.addStorageCapacity", "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginAddStorageCapacity": "Oracle.Database.CloudExadataInfrastructures.addStorageCapacity", + "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginConfigureExascale": "Oracle.Database.CloudExadataInfrastructures.configureExascale", "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginCreateOrUpdate": "Azure.ResourceManager.CloudExadataInfrastructures.createOrUpdate", "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginDelete": "Azure.ResourceManager.CloudExadataInfrastructures.delete", "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginUpdate": "Azure.ResourceManager.CloudExadataInfrastructures.update", + "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.configureExascale": "Oracle.Database.CloudExadataInfrastructures.configureExascale", "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.createOrUpdate": "Azure.ResourceManager.CloudExadataInfrastructures.createOrUpdate", "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.delete": "Azure.ResourceManager.CloudExadataInfrastructures.delete", "com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.getByResourceGroup": "Azure.ResourceManager.CloudExadataInfrastructures.get", @@ -90,6 +94,21 @@ "com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient.get": "Oracle.Database.DbSystemShapes.get", "com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient.getWithResponse": "Oracle.Database.DbSystemShapes.get", "com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient.listByLocation": "Oracle.Database.DbSystemShapes.listByLocation", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient": "Oracle.Database.DbSystems", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.beginCreateOrUpdate": "Azure.ResourceManager.DbSystems.createOrUpdate", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.beginDelete": "Azure.ResourceManager.DbSystems.delete", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.beginUpdate": "Azure.ResourceManager.DbSystems.update", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.createOrUpdate": "Azure.ResourceManager.DbSystems.createOrUpdate", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.delete": "Azure.ResourceManager.DbSystems.delete", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.getByResourceGroup": "Azure.ResourceManager.DbSystems.get", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.getByResourceGroupWithResponse": "Azure.ResourceManager.DbSystems.get", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.list": "Azure.ResourceManager.DbSystems.listBySubscription", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.listByResourceGroup": "Oracle.Database.DbSystems.listByResourceGroup", + "com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.update": "Azure.ResourceManager.DbSystems.update", + "com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient": "Oracle.Database.DbVersions", + "com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient.get": "Oracle.Database.DbVersions.get", + "com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient.getWithResponse": "Oracle.Database.DbVersions.get", + "com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient.listByLocation": "Oracle.Database.DbVersions.listByLocation", "com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient": "Oracle.Database.DnsPrivateViews", "com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient.get": "Oracle.Database.DnsPrivateViews.get", "com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient.getWithResponse": "Oracle.Database.DnsPrivateViews.get", @@ -140,6 +159,17 @@ "com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient.get": "Oracle.Database.GiVersions.get", "com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient.getWithResponse": "Oracle.Database.GiVersions.get", "com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient.listByLocation": "Oracle.Database.GiVersions.listByLocation", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient": "Oracle.Database.NetworkAnchors", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.beginCreateOrUpdate": "Azure.ResourceManager.NetworkAnchors.createOrUpdate", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.beginDelete": "Azure.ResourceManager.NetworkAnchors.delete", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.beginUpdate": "Azure.ResourceManager.NetworkAnchors.update", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.createOrUpdate": "Azure.ResourceManager.NetworkAnchors.createOrUpdate", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.delete": "Azure.ResourceManager.NetworkAnchors.delete", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.getByResourceGroup": "Azure.ResourceManager.NetworkAnchors.get", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.getByResourceGroupWithResponse": "Azure.ResourceManager.NetworkAnchors.get", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.list": "Azure.ResourceManager.NetworkAnchors.listBySubscription", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.listByResourceGroup": "Oracle.Database.NetworkAnchors.listByResourceGroup", + "com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.update": "Azure.ResourceManager.NetworkAnchors.update", "com.azure.resourcemanager.oracledatabase.fluent.OperationsClient": "Oracle.Database.Operations", "com.azure.resourcemanager.oracledatabase.fluent.OperationsClient.list": "Azure.ResourceManager.Operations.list", "com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseManagementClient": "Oracle.Database", @@ -161,6 +191,17 @@ "com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.listCloudAccountDetails": "Oracle.Database.OracleSubscriptions.listCloudAccountDetails", "com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.listSaasSubscriptionDetails": "Oracle.Database.OracleSubscriptions.listSaasSubscriptionDetails", "com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.update": "Oracle.Database.OracleSubscriptions.update", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient": "Oracle.Database.ResourceAnchors", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.beginCreateOrUpdate": "Azure.ResourceManager.ResourceAnchors.createOrUpdate", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.beginDelete": "Azure.ResourceManager.ResourceAnchors.delete", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.beginUpdate": "Azure.ResourceManager.ResourceAnchors.update", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.createOrUpdate": "Azure.ResourceManager.ResourceAnchors.createOrUpdate", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.delete": "Azure.ResourceManager.ResourceAnchors.delete", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.getByResourceGroup": "Azure.ResourceManager.ResourceAnchors.get", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.getByResourceGroupWithResponse": "Azure.ResourceManager.ResourceAnchors.get", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.list": "Azure.ResourceManager.ResourceAnchors.listBySubscription", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.listByResourceGroup": "Oracle.Database.ResourceAnchors.listByResourceGroup", + "com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.update": "Azure.ResourceManager.ResourceAnchors.update", "com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient": "Oracle.Database.SystemVersions", "com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient.get": "Oracle.Database.SystemVersions.get", "com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient.getWithResponse": "Oracle.Database.SystemVersions.get", @@ -186,7 +227,9 @@ "com.azure.resourcemanager.oracledatabase.fluent.models.DbActionResponseInner": "Oracle.Database.DbActionResponse", "com.azure.resourcemanager.oracledatabase.fluent.models.DbNodeInner": "Oracle.Database.DbNode", "com.azure.resourcemanager.oracledatabase.fluent.models.DbServerInner": "Oracle.Database.DbServer", + "com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemInner": "Oracle.Database.DbSystem", "com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemShapeInner": "Oracle.Database.DbSystemShape", + "com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner": "Oracle.Database.DbVersion", "com.azure.resourcemanager.oracledatabase.fluent.models.DnsPrivateViewInner": "Oracle.Database.DnsPrivateView", "com.azure.resourcemanager.oracledatabase.fluent.models.DnsPrivateZoneInner": "Oracle.Database.DnsPrivateZone", "com.azure.resourcemanager.oracledatabase.fluent.models.ExadbVmClusterInner": "Oracle.Database.ExadbVmCluster", @@ -195,9 +238,11 @@ "com.azure.resourcemanager.oracledatabase.fluent.models.FlexComponentInner": "Oracle.Database.FlexComponent", "com.azure.resourcemanager.oracledatabase.fluent.models.GiMinorVersionInner": "Oracle.Database.GiMinorVersion", "com.azure.resourcemanager.oracledatabase.fluent.models.GiVersionInner": "Oracle.Database.GiVersion", + "com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner": "Oracle.Database.NetworkAnchor", "com.azure.resourcemanager.oracledatabase.fluent.models.OperationInner": "Azure.ResourceManager.CommonTypes.Operation", "com.azure.resourcemanager.oracledatabase.fluent.models.OracleSubscriptionInner": "Oracle.Database.OracleSubscription", "com.azure.resourcemanager.oracledatabase.fluent.models.PrivateIpAddressPropertiesInner": "Oracle.Database.PrivateIpAddressProperties", + "com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner": "Oracle.Database.ResourceAnchor", "com.azure.resourcemanager.oracledatabase.fluent.models.SaasSubscriptionDetailsInner": "Oracle.Database.SaasSubscriptionDetails", "com.azure.resourcemanager.oracledatabase.fluent.models.SystemVersionInner": "Oracle.Database.SystemVersion", "com.azure.resourcemanager.oracledatabase.fluent.models.VirtualNetworkAddressInner": "Oracle.Database.VirtualNetworkAddress", @@ -211,7 +256,9 @@ "com.azure.resourcemanager.oracledatabase.implementation.models.CloudVmClusterListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.DbNodeListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.DbServerListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.oracledatabase.implementation.models.DbSystemListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.DbSystemShapeListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.oracledatabase.implementation.models.DbVersionListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.DnsPrivateViewListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.DnsPrivateZoneListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.ExadbVmClusterListResult": "Azure.ResourceManager.ResourceListResult", @@ -220,8 +267,10 @@ "com.azure.resourcemanager.oracledatabase.implementation.models.FlexComponentListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.GiMinorVersionListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.GiVersionListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.oracledatabase.implementation.models.NetworkAnchorListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.OperationListResult": "Azure.ResourceManager.CommonTypes.OperationListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.OracleSubscriptionListResult": "Azure.ResourceManager.ResourceListResult", + "com.azure.resourcemanager.oracledatabase.implementation.models.ResourceAnchorListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.SystemVersionListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.implementation.models.VirtualNetworkAddressListResult": "Azure.ResourceManager.ResourceListResult", "com.azure.resourcemanager.oracledatabase.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType", @@ -239,6 +288,8 @@ "com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCloneProperties": "Oracle.Database.AutonomousDatabaseCloneProperties", "com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCrossRegionDisasterRecoveryProperties": "Oracle.Database.AutonomousDatabaseCrossRegionDisasterRecoveryProperties", "com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseFromBackupTimestampProperties": "Oracle.Database.AutonomousDatabaseFromBackupTimestampProperties", + "com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleAction": "Oracle.Database.AutonomousDatabaseLifecycleAction", + "com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleActionEnum": "Oracle.Database.AutonomousDatabaseLifecycleActionEnum", "com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleState": "Oracle.Database.AutonomousDatabaseLifecycleState", "com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseNationalCharacterSetProperties": "Oracle.Database.AutonomousDatabaseNationalCharacterSetProperties", "com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseProperties": "Oracle.Database.AutonomousDatabaseProperties", @@ -249,6 +300,7 @@ "com.azure.resourcemanager.oracledatabase.models.AutonomousMaintenanceScheduleType": "Oracle.Database.AutonomousMaintenanceScheduleType", "com.azure.resourcemanager.oracledatabase.models.AzureResourceProvisioningState": "Oracle.Database.AzureResourceProvisioningState", "com.azure.resourcemanager.oracledatabase.models.AzureSubscriptions": "Oracle.Database.AzureSubscriptions", + "com.azure.resourcemanager.oracledatabase.models.BaseDbSystemShapes": "Oracle.Database.BaseDbSystemShapes", "com.azure.resourcemanager.oracledatabase.models.CloneType": "Oracle.Database.CloneType", "com.azure.resourcemanager.oracledatabase.models.CloudAccountProvisioningState": "Oracle.Database.CloudAccountProvisioningState", "com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureLifecycleState": "Oracle.Database.CloudExadataInfrastructureLifecycleState", @@ -260,6 +312,7 @@ "com.azure.resourcemanager.oracledatabase.models.CloudVmClusterUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel", "com.azure.resourcemanager.oracledatabase.models.CloudVmClusterUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties", "com.azure.resourcemanager.oracledatabase.models.ComputeModel": "Oracle.Database.ComputeModel", + "com.azure.resourcemanager.oracledatabase.models.ConfigureExascaleCloudExadataInfrastructureDetails": "Oracle.Database.ConfigureExascaleCloudExadataInfrastructureDetails", "com.azure.resourcemanager.oracledatabase.models.ConnectionStringType": "Oracle.Database.ConnectionStringType", "com.azure.resourcemanager.oracledatabase.models.ConnectionUrlType": "Oracle.Database.ConnectionUrlType", "com.azure.resourcemanager.oracledatabase.models.ConsumerGroup": "Oracle.Database.ConsumerGroup", @@ -282,22 +335,35 @@ "com.azure.resourcemanager.oracledatabase.models.DbServerPatchingStatus": "Oracle.Database.DbServerPatchingStatus", "com.azure.resourcemanager.oracledatabase.models.DbServerProperties": "Oracle.Database.DbServerProperties", "com.azure.resourcemanager.oracledatabase.models.DbServerProvisioningState": "Oracle.Database.DbServerProvisioningState", + "com.azure.resourcemanager.oracledatabase.models.DbSystemBaseProperties": "Oracle.Database.DbSystemBaseProperties", + "com.azure.resourcemanager.oracledatabase.models.DbSystemDatabaseEditionType": "Oracle.Database.DbSystemDatabaseEditionType", + "com.azure.resourcemanager.oracledatabase.models.DbSystemLifecycleState": "Oracle.Database.DbSystemLifecycleState", + "com.azure.resourcemanager.oracledatabase.models.DbSystemOptions": "Oracle.Database.DbSystemOptions", + "com.azure.resourcemanager.oracledatabase.models.DbSystemProperties": "Oracle.Database.DbSystemProperties", "com.azure.resourcemanager.oracledatabase.models.DbSystemShapeProperties": "Oracle.Database.DbSystemShapeProperties", + "com.azure.resourcemanager.oracledatabase.models.DbSystemSourceType": "Oracle.Database.DbSystemSourceType", + "com.azure.resourcemanager.oracledatabase.models.DbSystemUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel", + "com.azure.resourcemanager.oracledatabase.models.DbSystemUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties", + "com.azure.resourcemanager.oracledatabase.models.DbVersionProperties": "Oracle.Database.DbVersionProperties", "com.azure.resourcemanager.oracledatabase.models.DefinedFileSystemConfiguration": "Oracle.Database.DefinedFileSystemConfiguration", "com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryConfigurationDetails": "Oracle.Database.DisasterRecoveryConfigurationDetails", "com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryType": "Oracle.Database.DisasterRecoveryType", "com.azure.resourcemanager.oracledatabase.models.DiskRedundancy": "Oracle.Database.DiskRedundancy", + "com.azure.resourcemanager.oracledatabase.models.DiskRedundancyType": "Oracle.Database.DiskRedundancyType", + "com.azure.resourcemanager.oracledatabase.models.DnsForwardingRule": "Oracle.Database.DnsForwardingRule", "com.azure.resourcemanager.oracledatabase.models.DnsPrivateViewProperties": "Oracle.Database.DnsPrivateViewProperties", "com.azure.resourcemanager.oracledatabase.models.DnsPrivateViewsLifecycleState": "Oracle.Database.DnsPrivateViewsLifecycleState", "com.azure.resourcemanager.oracledatabase.models.DnsPrivateZoneProperties": "Oracle.Database.DnsPrivateZoneProperties", "com.azure.resourcemanager.oracledatabase.models.DnsPrivateZonesLifecycleState": "Oracle.Database.DnsPrivateZonesLifecycleState", "com.azure.resourcemanager.oracledatabase.models.EstimatedPatchingTime": "Oracle.Database.EstimatedPatchingTime", "com.azure.resourcemanager.oracledatabase.models.ExadataIormConfig": "Oracle.Database.ExadataIormConfig", + "com.azure.resourcemanager.oracledatabase.models.ExadataVmClusterStorageManagementType": "Oracle.Database.ExadataVmClusterStorageManagementType", "com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterLifecycleState": "Oracle.Database.ExadbVmClusterLifecycleState", "com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterProperties": "Oracle.Database.ExadbVmClusterProperties", "com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterStorageDetails": "Oracle.Database.ExadbVmClusterStorageDetails", "com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel", "com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties", + "com.azure.resourcemanager.oracledatabase.models.ExascaleConfigDetails": "Oracle.Database.ExascaleConfigDetails", "com.azure.resourcemanager.oracledatabase.models.ExascaleDbNodeProperties": "Oracle.Database.ExascaleDbNodeProperties", "com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageDetails": "Oracle.Database.ExascaleDbStorageDetails", "com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageInputDetails": "Oracle.Database.ExascaleDbStorageInputDetails", @@ -320,6 +386,9 @@ "com.azure.resourcemanager.oracledatabase.models.MaintenanceWindow": "Oracle.Database.MaintenanceWindow", "com.azure.resourcemanager.oracledatabase.models.Month": "Oracle.Database.Month", "com.azure.resourcemanager.oracledatabase.models.MonthName": "Oracle.Database.MonthName", + "com.azure.resourcemanager.oracledatabase.models.NetworkAnchorProperties": "Oracle.Database.NetworkAnchorProperties", + "com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel", + "com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties", "com.azure.resourcemanager.oracledatabase.models.NsgCidr": "Oracle.Database.NsgCidr", "com.azure.resourcemanager.oracledatabase.models.Objective": "Oracle.Database.Objective", "com.azure.resourcemanager.oracledatabase.models.OpenModeType": "Oracle.Database.OpenModeType", @@ -344,14 +413,20 @@ "com.azure.resourcemanager.oracledatabase.models.RefreshableStatusType": "Oracle.Database.RefreshableStatusType", "com.azure.resourcemanager.oracledatabase.models.RemoveVirtualMachineFromExadbVmClusterDetails": "Oracle.Database.RemoveVirtualMachineFromExadbVmClusterDetails", "com.azure.resourcemanager.oracledatabase.models.RepeatCadenceType": "Oracle.Database.RepeatCadenceType", + "com.azure.resourcemanager.oracledatabase.models.ResourceAnchorProperties": "Oracle.Database.ResourceAnchorProperties", + "com.azure.resourcemanager.oracledatabase.models.ResourceAnchorUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel", "com.azure.resourcemanager.oracledatabase.models.ResourceProvisioningState": "Azure.ResourceManager.ResourceProvisioningState", "com.azure.resourcemanager.oracledatabase.models.RestoreAutonomousDatabaseDetails": "Oracle.Database.RestoreAutonomousDatabaseDetails", "com.azure.resourcemanager.oracledatabase.models.RoleType": "Oracle.Database.RoleType", "com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsType": "Oracle.Database.ScheduledOperationsType", "com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsTypeUpdate": "Oracle.Database.ScheduledOperationsTypeUpdate", "com.azure.resourcemanager.oracledatabase.models.SessionModeType": "Oracle.Database.SessionModeType", + "com.azure.resourcemanager.oracledatabase.models.ShapeAttribute": "Oracle.Database.ShapeAttribute", "com.azure.resourcemanager.oracledatabase.models.ShapeFamily": "Oracle.Database.ShapeFamily", + "com.azure.resourcemanager.oracledatabase.models.ShapeFamilyType": "Oracle.Database.ShapeFamilyType", "com.azure.resourcemanager.oracledatabase.models.SourceType": "Oracle.Database.SourceType", + "com.azure.resourcemanager.oracledatabase.models.StorageManagementType": "Oracle.Database.StorageManagementType", + "com.azure.resourcemanager.oracledatabase.models.StorageVolumePerformanceMode": "Oracle.Database.StorageVolumePerformanceMode", "com.azure.resourcemanager.oracledatabase.models.SyntaxFormatType": "Oracle.Database.SyntaxFormatType", "com.azure.resourcemanager.oracledatabase.models.SystemShapes": "Oracle.Database.SystemShapes", "com.azure.resourcemanager.oracledatabase.models.SystemVersionProperties": "Oracle.Database.SystemVersionProperties", diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/azure-resourcemanager-oracledatabase_metadata.json b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/azure-resourcemanager-oracledatabase_metadata.json index ae57b1ffb820..7349ddc69d3e 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/azure-resourcemanager-oracledatabase_metadata.json +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/azure-resourcemanager-oracledatabase_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersion":"2025-03-01","crossLanguageDefinitions":{"com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient":"Oracle.Database.AutonomousDatabaseBackups","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.beginCreateOrUpdate":"Azure.ResourceManager.AutonomousDatabaseBackups.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.beginDelete":"Azure.ResourceManager.AutonomousDatabaseBackups.delete","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.beginUpdate":"Oracle.Database.AutonomousDatabaseBackups.update","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.createOrUpdate":"Azure.ResourceManager.AutonomousDatabaseBackups.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.delete":"Azure.ResourceManager.AutonomousDatabaseBackups.delete","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.get":"Azure.ResourceManager.AutonomousDatabaseBackups.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.getWithResponse":"Azure.ResourceManager.AutonomousDatabaseBackups.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.listByAutonomousDatabase":"Oracle.Database.AutonomousDatabaseBackups.listByParent","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.update":"Oracle.Database.AutonomousDatabaseBackups.update","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseCharacterSetsClient":"Oracle.Database.AutonomousDatabaseCharacterSets","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseCharacterSetsClient.get":"Oracle.Database.AutonomousDatabaseCharacterSets.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseCharacterSetsClient.getWithResponse":"Oracle.Database.AutonomousDatabaseCharacterSets.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseCharacterSetsClient.listByLocation":"Oracle.Database.AutonomousDatabaseCharacterSets.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseNationalCharacterSetsClient":"Oracle.Database.AutonomousDatabaseNationalCharacterSets","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseNationalCharacterSetsClient.get":"Oracle.Database.AutonomousDatabaseNationalCharacterSets.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseNationalCharacterSetsClient.getWithResponse":"Oracle.Database.AutonomousDatabaseNationalCharacterSets.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseNationalCharacterSetsClient.listByLocation":"Oracle.Database.AutonomousDatabaseNationalCharacterSets.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient":"Oracle.Database.AutonomousDatabaseVersions","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient.get":"Oracle.Database.AutonomousDatabaseVersions.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient.getWithResponse":"Oracle.Database.AutonomousDatabaseVersions.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient.listByLocation":"Oracle.Database.AutonomousDatabaseVersions.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient":"Oracle.Database.AutonomousDatabases","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginChangeDisasterRecoveryConfiguration":"Oracle.Database.AutonomousDatabases.changeDisasterRecoveryConfiguration","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginCreateOrUpdate":"Azure.ResourceManager.AutonomousDatabases.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginDelete":"Azure.ResourceManager.AutonomousDatabases.delete","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginFailover":"Oracle.Database.AutonomousDatabases.failover","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginRestore":"Oracle.Database.AutonomousDatabases.restore","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginShrink":"Oracle.Database.AutonomousDatabases.shrink","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginSwitchover":"Oracle.Database.AutonomousDatabases.switchover","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginUpdate":"Oracle.Database.AutonomousDatabases.update","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.changeDisasterRecoveryConfiguration":"Oracle.Database.AutonomousDatabases.changeDisasterRecoveryConfiguration","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.createOrUpdate":"Azure.ResourceManager.AutonomousDatabases.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.delete":"Azure.ResourceManager.AutonomousDatabases.delete","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.failover":"Oracle.Database.AutonomousDatabases.failover","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.generateWallet":"Oracle.Database.AutonomousDatabases.generateWallet","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.generateWalletWithResponse":"Oracle.Database.AutonomousDatabases.generateWallet","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.getByResourceGroup":"Azure.ResourceManager.AutonomousDatabases.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.getByResourceGroupWithResponse":"Azure.ResourceManager.AutonomousDatabases.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.list":"Azure.ResourceManager.AutonomousDatabases.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.listByResourceGroup":"Oracle.Database.AutonomousDatabases.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.restore":"Oracle.Database.AutonomousDatabases.restore","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.shrink":"Oracle.Database.AutonomousDatabases.shrink","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.switchover":"Oracle.Database.AutonomousDatabases.switchover","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.update":"Oracle.Database.AutonomousDatabases.update","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient":"Oracle.Database.CloudExadataInfrastructures","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.addStorageCapacity":"Oracle.Database.CloudExadataInfrastructures.addStorageCapacity","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginAddStorageCapacity":"Oracle.Database.CloudExadataInfrastructures.addStorageCapacity","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginCreateOrUpdate":"Azure.ResourceManager.CloudExadataInfrastructures.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginDelete":"Azure.ResourceManager.CloudExadataInfrastructures.delete","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginUpdate":"Azure.ResourceManager.CloudExadataInfrastructures.update","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.createOrUpdate":"Azure.ResourceManager.CloudExadataInfrastructures.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.delete":"Azure.ResourceManager.CloudExadataInfrastructures.delete","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.getByResourceGroup":"Azure.ResourceManager.CloudExadataInfrastructures.get","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.getByResourceGroupWithResponse":"Azure.ResourceManager.CloudExadataInfrastructures.get","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.list":"Azure.ResourceManager.CloudExadataInfrastructures.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.listByResourceGroup":"Oracle.Database.CloudExadataInfrastructures.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.update":"Azure.ResourceManager.CloudExadataInfrastructures.update","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient":"Oracle.Database.CloudVmClusters","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.addVms":"Oracle.Database.CloudVmClusters.addVms","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginAddVms":"Oracle.Database.CloudVmClusters.addVms","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginCreateOrUpdate":"Azure.ResourceManager.CloudVmClusters.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginDelete":"Azure.ResourceManager.CloudVmClusters.delete","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginRemoveVms":"Oracle.Database.CloudVmClusters.removeVms","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginUpdate":"Azure.ResourceManager.CloudVmClusters.update","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.createOrUpdate":"Azure.ResourceManager.CloudVmClusters.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.delete":"Azure.ResourceManager.CloudVmClusters.delete","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.getByResourceGroup":"Azure.ResourceManager.CloudVmClusters.get","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.getByResourceGroupWithResponse":"Azure.ResourceManager.CloudVmClusters.get","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.list":"Azure.ResourceManager.CloudVmClusters.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.listByResourceGroup":"Oracle.Database.CloudVmClusters.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.listPrivateIpAddresses":"Oracle.Database.CloudVmClusters.listPrivateIpAddresses","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.listPrivateIpAddressesWithResponse":"Oracle.Database.CloudVmClusters.listPrivateIpAddresses","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.removeVms":"Oracle.Database.CloudVmClusters.removeVms","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.update":"Azure.ResourceManager.CloudVmClusters.update","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient":"Oracle.Database.DbNodes","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.action":"Oracle.Database.DbNodes.action","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.beginAction":"Oracle.Database.DbNodes.action","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.get":"Oracle.Database.DbNodes.get","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.getWithResponse":"Oracle.Database.DbNodes.get","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.listByCloudVmCluster":"Oracle.Database.DbNodes.listByParent","com.azure.resourcemanager.oracledatabase.fluent.DbServersClient":"Oracle.Database.DbServers","com.azure.resourcemanager.oracledatabase.fluent.DbServersClient.get":"Oracle.Database.DbServers.get","com.azure.resourcemanager.oracledatabase.fluent.DbServersClient.getWithResponse":"Oracle.Database.DbServers.get","com.azure.resourcemanager.oracledatabase.fluent.DbServersClient.listByCloudExadataInfrastructure":"Oracle.Database.DbServers.listByParent","com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient":"Oracle.Database.DbSystemShapes","com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient.get":"Oracle.Database.DbSystemShapes.get","com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient.getWithResponse":"Oracle.Database.DbSystemShapes.get","com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient.listByLocation":"Oracle.Database.DbSystemShapes.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient":"Oracle.Database.DnsPrivateViews","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient.get":"Oracle.Database.DnsPrivateViews.get","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient.getWithResponse":"Oracle.Database.DnsPrivateViews.get","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient.listByLocation":"Oracle.Database.DnsPrivateViews.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient":"Oracle.Database.DnsPrivateZones","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient.get":"Oracle.Database.DnsPrivateZones.get","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient.getWithResponse":"Oracle.Database.DnsPrivateZones.get","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient.listByLocation":"Oracle.Database.DnsPrivateZones.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient":"Oracle.Database.ExadbVmClusters","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.beginCreateOrUpdate":"Azure.ResourceManager.ExadbVmClusters.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.beginDelete":"Azure.ResourceManager.ExadbVmClusters.delete","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.beginRemoveVms":"Oracle.Database.ExadbVmClusters.removeVms","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.beginUpdate":"Azure.ResourceManager.ExadbVmClusters.update","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.createOrUpdate":"Azure.ResourceManager.ExadbVmClusters.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.delete":"Azure.ResourceManager.ExadbVmClusters.delete","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.getByResourceGroup":"Azure.ResourceManager.ExadbVmClusters.get","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.getByResourceGroupWithResponse":"Azure.ResourceManager.ExadbVmClusters.get","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.list":"Azure.ResourceManager.ExadbVmClusters.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.listByResourceGroup":"Oracle.Database.ExadbVmClusters.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.removeVms":"Oracle.Database.ExadbVmClusters.removeVms","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.update":"Azure.ResourceManager.ExadbVmClusters.update","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient":"Oracle.Database.ExascaleDbNodes","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.action":"Oracle.Database.ExascaleDbNodes.action","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.beginAction":"Oracle.Database.ExascaleDbNodes.action","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.get":"Oracle.Database.ExascaleDbNodes.get","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.getWithResponse":"Oracle.Database.ExascaleDbNodes.get","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.listByParent":"Oracle.Database.ExascaleDbNodes.listByParent","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient":"Oracle.Database.ExascaleDbStorageVaults","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.beginCreate":"Oracle.Database.ExascaleDbStorageVaults.create","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.beginDelete":"Oracle.Database.ExascaleDbStorageVaults.delete","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.beginUpdate":"Oracle.Database.ExascaleDbStorageVaults.update","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.create":"Oracle.Database.ExascaleDbStorageVaults.create","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.delete":"Oracle.Database.ExascaleDbStorageVaults.delete","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.getByResourceGroup":"Oracle.Database.ExascaleDbStorageVaults.get","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.getByResourceGroupWithResponse":"Oracle.Database.ExascaleDbStorageVaults.get","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.list":"Oracle.Database.ExascaleDbStorageVaults.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.listByResourceGroup":"Oracle.Database.ExascaleDbStorageVaults.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.update":"Oracle.Database.ExascaleDbStorageVaults.update","com.azure.resourcemanager.oracledatabase.fluent.FlexComponentsClient":"Oracle.Database.FlexComponents","com.azure.resourcemanager.oracledatabase.fluent.FlexComponentsClient.get":"Oracle.Database.FlexComponents.get","com.azure.resourcemanager.oracledatabase.fluent.FlexComponentsClient.getWithResponse":"Oracle.Database.FlexComponents.get","com.azure.resourcemanager.oracledatabase.fluent.FlexComponentsClient.listByParent":"Oracle.Database.FlexComponents.listByParent","com.azure.resourcemanager.oracledatabase.fluent.GiMinorVersionsClient":"Oracle.Database.GiMinorVersions","com.azure.resourcemanager.oracledatabase.fluent.GiMinorVersionsClient.get":"Oracle.Database.GiMinorVersions.get","com.azure.resourcemanager.oracledatabase.fluent.GiMinorVersionsClient.getWithResponse":"Oracle.Database.GiMinorVersions.get","com.azure.resourcemanager.oracledatabase.fluent.GiMinorVersionsClient.listByParent":"Oracle.Database.GiMinorVersions.listByParent","com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient":"Oracle.Database.GiVersions","com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient.get":"Oracle.Database.GiVersions.get","com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient.getWithResponse":"Oracle.Database.GiVersions.get","com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient.listByLocation":"Oracle.Database.GiVersions.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.OperationsClient":"Oracle.Database.Operations","com.azure.resourcemanager.oracledatabase.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseManagementClient":"Oracle.Database","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient":"Oracle.Database.OracleSubscriptions","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.addAzureSubscriptions":"Oracle.Database.OracleSubscriptions.addAzureSubscriptions","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginAddAzureSubscriptions":"Oracle.Database.OracleSubscriptions.addAzureSubscriptions","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginCreateOrUpdate":"Azure.ResourceManager.OracleSubscriptions.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginDelete":"Azure.ResourceManager.OracleSubscriptions.delete","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginListActivationLinks":"Oracle.Database.OracleSubscriptions.listActivationLinks","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginListCloudAccountDetails":"Oracle.Database.OracleSubscriptions.listCloudAccountDetails","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginListSaasSubscriptionDetails":"Oracle.Database.OracleSubscriptions.listSaasSubscriptionDetails","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginUpdate":"Oracle.Database.OracleSubscriptions.update","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.createOrUpdate":"Azure.ResourceManager.OracleSubscriptions.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.delete":"Azure.ResourceManager.OracleSubscriptions.delete","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.get":"Azure.ResourceManager.OracleSubscriptions.get","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.getWithResponse":"Azure.ResourceManager.OracleSubscriptions.get","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.list":"Azure.ResourceManager.OracleSubscriptions.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.listActivationLinks":"Oracle.Database.OracleSubscriptions.listActivationLinks","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.listCloudAccountDetails":"Oracle.Database.OracleSubscriptions.listCloudAccountDetails","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.listSaasSubscriptionDetails":"Oracle.Database.OracleSubscriptions.listSaasSubscriptionDetails","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.update":"Oracle.Database.OracleSubscriptions.update","com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient":"Oracle.Database.SystemVersions","com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient.get":"Oracle.Database.SystemVersions.get","com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient.getWithResponse":"Oracle.Database.SystemVersions.get","com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient.listByLocation":"Oracle.Database.SystemVersions.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient":"Oracle.Database.VirtualNetworkAddresses","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.beginCreateOrUpdate":"Azure.ResourceManager.VirtualNetworkAddresses.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.beginDelete":"Azure.ResourceManager.VirtualNetworkAddresses.delete","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.createOrUpdate":"Azure.ResourceManager.VirtualNetworkAddresses.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.delete":"Azure.ResourceManager.VirtualNetworkAddresses.delete","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.get":"Azure.ResourceManager.VirtualNetworkAddresses.get","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.getWithResponse":"Azure.ResourceManager.VirtualNetworkAddresses.get","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.listByCloudVmCluster":"Oracle.Database.VirtualNetworkAddresses.listByParent","com.azure.resourcemanager.oracledatabase.fluent.models.ActivationLinksInner":"Oracle.Database.ActivationLinks","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseBackupInner":"Oracle.Database.AutonomousDatabaseBackup","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseCharacterSetInner":"Oracle.Database.AutonomousDatabaseCharacterSet","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseInner":"Oracle.Database.AutonomousDatabase","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseNationalCharacterSetInner":"Oracle.Database.AutonomousDatabaseNationalCharacterSet","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseWalletFileInner":"Oracle.Database.AutonomousDatabaseWalletFile","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDbVersionInner":"Oracle.Database.AutonomousDbVersion","com.azure.resourcemanager.oracledatabase.fluent.models.CloudAccountDetailsInner":"Oracle.Database.CloudAccountDetails","com.azure.resourcemanager.oracledatabase.fluent.models.CloudExadataInfrastructureInner":"Oracle.Database.CloudExadataInfrastructure","com.azure.resourcemanager.oracledatabase.fluent.models.CloudVmClusterInner":"Oracle.Database.CloudVmCluster","com.azure.resourcemanager.oracledatabase.fluent.models.DbActionResponseInner":"Oracle.Database.DbActionResponse","com.azure.resourcemanager.oracledatabase.fluent.models.DbNodeInner":"Oracle.Database.DbNode","com.azure.resourcemanager.oracledatabase.fluent.models.DbServerInner":"Oracle.Database.DbServer","com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemShapeInner":"Oracle.Database.DbSystemShape","com.azure.resourcemanager.oracledatabase.fluent.models.DnsPrivateViewInner":"Oracle.Database.DnsPrivateView","com.azure.resourcemanager.oracledatabase.fluent.models.DnsPrivateZoneInner":"Oracle.Database.DnsPrivateZone","com.azure.resourcemanager.oracledatabase.fluent.models.ExadbVmClusterInner":"Oracle.Database.ExadbVmCluster","com.azure.resourcemanager.oracledatabase.fluent.models.ExascaleDbNodeInner":"Oracle.Database.ExascaleDbNode","com.azure.resourcemanager.oracledatabase.fluent.models.ExascaleDbStorageVaultInner":"Oracle.Database.ExascaleDbStorageVault","com.azure.resourcemanager.oracledatabase.fluent.models.FlexComponentInner":"Oracle.Database.FlexComponent","com.azure.resourcemanager.oracledatabase.fluent.models.GiMinorVersionInner":"Oracle.Database.GiMinorVersion","com.azure.resourcemanager.oracledatabase.fluent.models.GiVersionInner":"Oracle.Database.GiVersion","com.azure.resourcemanager.oracledatabase.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.oracledatabase.fluent.models.OracleSubscriptionInner":"Oracle.Database.OracleSubscription","com.azure.resourcemanager.oracledatabase.fluent.models.PrivateIpAddressPropertiesInner":"Oracle.Database.PrivateIpAddressProperties","com.azure.resourcemanager.oracledatabase.fluent.models.SaasSubscriptionDetailsInner":"Oracle.Database.SaasSubscriptionDetails","com.azure.resourcemanager.oracledatabase.fluent.models.SystemVersionInner":"Oracle.Database.SystemVersion","com.azure.resourcemanager.oracledatabase.fluent.models.VirtualNetworkAddressInner":"Oracle.Database.VirtualNetworkAddress","com.azure.resourcemanager.oracledatabase.implementation.OracleDatabaseManagementClientBuilder":"Oracle.Database","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDatabaseBackupListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDatabaseCharacterSetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDatabaseListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDatabaseNationalCharacterSetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDbVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.CloudExadataInfrastructureListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.CloudVmClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DbNodeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DbServerListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DbSystemShapeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DnsPrivateViewListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DnsPrivateZoneListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.ExadbVmClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.ExascaleDbNodeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.ExascaleDbStorageVaultListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.FlexComponentListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.GiMinorVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.GiVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.oracledatabase.implementation.models.OracleSubscriptionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.SystemVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.VirtualNetworkAddressListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.oracledatabase.models.AddRemoveDbNode":"Oracle.Database.AddRemoveDbNode","com.azure.resourcemanager.oracledatabase.models.AddSubscriptionOperationState":"Oracle.Database.AddSubscriptionOperationState","com.azure.resourcemanager.oracledatabase.models.AllConnectionStringType":"Oracle.Database.AllConnectionStringType","com.azure.resourcemanager.oracledatabase.models.ApexDetailsType":"Oracle.Database.ApexDetailsType","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupLifecycleState":"Oracle.Database.AutonomousDatabaseBackupLifecycleState","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupProperties":"Oracle.Database.AutonomousDatabaseBackupProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupType":"Oracle.Database.AutonomousDatabaseBackupType","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBaseProperties":"Oracle.Database.AutonomousDatabaseBaseProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCharacterSetProperties":"Oracle.Database.AutonomousDatabaseCharacterSetProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCloneProperties":"Oracle.Database.AutonomousDatabaseCloneProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCrossRegionDisasterRecoveryProperties":"Oracle.Database.AutonomousDatabaseCrossRegionDisasterRecoveryProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseFromBackupTimestampProperties":"Oracle.Database.AutonomousDatabaseFromBackupTimestampProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleState":"Oracle.Database.AutonomousDatabaseLifecycleState","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseNationalCharacterSetProperties":"Oracle.Database.AutonomousDatabaseNationalCharacterSetProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseProperties":"Oracle.Database.AutonomousDatabaseProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseStandbySummary":"Oracle.Database.AutonomousDatabaseStandbySummary","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdate":"Oracle.Database.AutonomousDatabaseUpdate","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdateProperties":"Oracle.Database.AutonomousDatabaseUpdateProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDbVersionProperties":"Oracle.Database.AutonomousDbVersionProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousMaintenanceScheduleType":"Oracle.Database.AutonomousMaintenanceScheduleType","com.azure.resourcemanager.oracledatabase.models.AzureResourceProvisioningState":"Oracle.Database.AzureResourceProvisioningState","com.azure.resourcemanager.oracledatabase.models.AzureSubscriptions":"Oracle.Database.AzureSubscriptions","com.azure.resourcemanager.oracledatabase.models.CloneType":"Oracle.Database.CloneType","com.azure.resourcemanager.oracledatabase.models.CloudAccountProvisioningState":"Oracle.Database.CloudAccountProvisioningState","com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureLifecycleState":"Oracle.Database.CloudExadataInfrastructureLifecycleState","com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureProperties":"Oracle.Database.CloudExadataInfrastructureProperties","com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.CloudVmClusterLifecycleState":"Oracle.Database.CloudVmClusterLifecycleState","com.azure.resourcemanager.oracledatabase.models.CloudVmClusterProperties":"Oracle.Database.CloudVmClusterProperties","com.azure.resourcemanager.oracledatabase.models.CloudVmClusterUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.CloudVmClusterUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.ComputeModel":"Oracle.Database.ComputeModel","com.azure.resourcemanager.oracledatabase.models.ConnectionStringType":"Oracle.Database.ConnectionStringType","com.azure.resourcemanager.oracledatabase.models.ConnectionUrlType":"Oracle.Database.ConnectionUrlType","com.azure.resourcemanager.oracledatabase.models.ConsumerGroup":"Oracle.Database.ConsumerGroup","com.azure.resourcemanager.oracledatabase.models.CustomerContact":"Oracle.Database.CustomerContact","com.azure.resourcemanager.oracledatabase.models.DataBaseType":"Oracle.Database.DataBaseType","com.azure.resourcemanager.oracledatabase.models.DataCollectionOptions":"Oracle.Database.DataCollectionOptions","com.azure.resourcemanager.oracledatabase.models.DataSafeStatusType":"Oracle.Database.DataSafeStatusType","com.azure.resourcemanager.oracledatabase.models.DatabaseEditionType":"Oracle.Database.DatabaseEditionType","com.azure.resourcemanager.oracledatabase.models.DayOfWeek":"Oracle.Database.DayOfWeek","com.azure.resourcemanager.oracledatabase.models.DayOfWeekName":"Oracle.Database.DayOfWeekName","com.azure.resourcemanager.oracledatabase.models.DayOfWeekUpdate":"Oracle.Database.DayOfWeekUpdate","com.azure.resourcemanager.oracledatabase.models.DbIormConfig":"Oracle.Database.DbIormConfig","com.azure.resourcemanager.oracledatabase.models.DbNodeAction":"Oracle.Database.DbNodeAction","com.azure.resourcemanager.oracledatabase.models.DbNodeActionEnum":"Oracle.Database.DbNodeActionEnum","com.azure.resourcemanager.oracledatabase.models.DbNodeDetails":"Oracle.Database.DbNodeDetails","com.azure.resourcemanager.oracledatabase.models.DbNodeMaintenanceType":"Oracle.Database.DbNodeMaintenanceType","com.azure.resourcemanager.oracledatabase.models.DbNodeProperties":"Oracle.Database.DbNodeProperties","com.azure.resourcemanager.oracledatabase.models.DbNodeProvisioningState":"Oracle.Database.DbNodeProvisioningState","com.azure.resourcemanager.oracledatabase.models.DbServerPatchingDetails":"Oracle.Database.DbServerPatchingDetails","com.azure.resourcemanager.oracledatabase.models.DbServerPatchingStatus":"Oracle.Database.DbServerPatchingStatus","com.azure.resourcemanager.oracledatabase.models.DbServerProperties":"Oracle.Database.DbServerProperties","com.azure.resourcemanager.oracledatabase.models.DbServerProvisioningState":"Oracle.Database.DbServerProvisioningState","com.azure.resourcemanager.oracledatabase.models.DbSystemShapeProperties":"Oracle.Database.DbSystemShapeProperties","com.azure.resourcemanager.oracledatabase.models.DefinedFileSystemConfiguration":"Oracle.Database.DefinedFileSystemConfiguration","com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryConfigurationDetails":"Oracle.Database.DisasterRecoveryConfigurationDetails","com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryType":"Oracle.Database.DisasterRecoveryType","com.azure.resourcemanager.oracledatabase.models.DiskRedundancy":"Oracle.Database.DiskRedundancy","com.azure.resourcemanager.oracledatabase.models.DnsPrivateViewProperties":"Oracle.Database.DnsPrivateViewProperties","com.azure.resourcemanager.oracledatabase.models.DnsPrivateViewsLifecycleState":"Oracle.Database.DnsPrivateViewsLifecycleState","com.azure.resourcemanager.oracledatabase.models.DnsPrivateZoneProperties":"Oracle.Database.DnsPrivateZoneProperties","com.azure.resourcemanager.oracledatabase.models.DnsPrivateZonesLifecycleState":"Oracle.Database.DnsPrivateZonesLifecycleState","com.azure.resourcemanager.oracledatabase.models.EstimatedPatchingTime":"Oracle.Database.EstimatedPatchingTime","com.azure.resourcemanager.oracledatabase.models.ExadataIormConfig":"Oracle.Database.ExadataIormConfig","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterLifecycleState":"Oracle.Database.ExadbVmClusterLifecycleState","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterProperties":"Oracle.Database.ExadbVmClusterProperties","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterStorageDetails":"Oracle.Database.ExadbVmClusterStorageDetails","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.ExascaleDbNodeProperties":"Oracle.Database.ExascaleDbNodeProperties","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageDetails":"Oracle.Database.ExascaleDbStorageDetails","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageInputDetails":"Oracle.Database.ExascaleDbStorageInputDetails","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageVaultLifecycleState":"Oracle.Database.ExascaleDbStorageVaultLifecycleState","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageVaultProperties":"Oracle.Database.ExascaleDbStorageVaultProperties","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageVaultTagsUpdate":"Azure.ResourceManager.Foundations.TagsUpdateModel","com.azure.resourcemanager.oracledatabase.models.FileSystemConfigurationDetails":"Oracle.Database.FileSystemConfigurationDetails","com.azure.resourcemanager.oracledatabase.models.FlexComponentProperties":"Oracle.Database.FlexComponentProperties","com.azure.resourcemanager.oracledatabase.models.GenerateAutonomousDatabaseWalletDetails":"Oracle.Database.GenerateAutonomousDatabaseWalletDetails","com.azure.resourcemanager.oracledatabase.models.GenerateType":"Oracle.Database.GenerateType","com.azure.resourcemanager.oracledatabase.models.GiMinorVersionProperties":"Oracle.Database.GiMinorVersionProperties","com.azure.resourcemanager.oracledatabase.models.GiVersionProperties":"Oracle.Database.GiVersionProperties","com.azure.resourcemanager.oracledatabase.models.GridImageType":"Oracle.Database.GridImageType","com.azure.resourcemanager.oracledatabase.models.HardwareType":"Oracle.Database.HardwareType","com.azure.resourcemanager.oracledatabase.models.HostFormatType":"Oracle.Database.HostFormatType","com.azure.resourcemanager.oracledatabase.models.Intent":"Oracle.Database.Intent","com.azure.resourcemanager.oracledatabase.models.IormLifecycleState":"Oracle.Database.IormLifecycleState","com.azure.resourcemanager.oracledatabase.models.LicenseModel":"Oracle.Database.LicenseModel","com.azure.resourcemanager.oracledatabase.models.LongTermBackUpScheduleDetails":"Oracle.Database.LongTermBackUpScheduleDetails","com.azure.resourcemanager.oracledatabase.models.MaintenanceWindow":"Oracle.Database.MaintenanceWindow","com.azure.resourcemanager.oracledatabase.models.Month":"Oracle.Database.Month","com.azure.resourcemanager.oracledatabase.models.MonthName":"Oracle.Database.MonthName","com.azure.resourcemanager.oracledatabase.models.NsgCidr":"Oracle.Database.NsgCidr","com.azure.resourcemanager.oracledatabase.models.Objective":"Oracle.Database.Objective","com.azure.resourcemanager.oracledatabase.models.OpenModeType":"Oracle.Database.OpenModeType","com.azure.resourcemanager.oracledatabase.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.oracledatabase.models.OperationsInsightsStatusType":"Oracle.Database.OperationsInsightsStatusType","com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionProperties":"Oracle.Database.OracleSubscriptionProperties","com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionProvisioningState":"Oracle.Database.OracleSubscriptionProvisioningState","com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.oracledatabase.models.PatchingMode":"Oracle.Database.PatchingMode","com.azure.resourcemanager.oracledatabase.models.PeerDbDetails":"Oracle.Database.PeerDbDetails","com.azure.resourcemanager.oracledatabase.models.PermissionLevelType":"Oracle.Database.PermissionLevelType","com.azure.resourcemanager.oracledatabase.models.Plan":"Azure.ResourceManager.CommonTypes.Plan","com.azure.resourcemanager.oracledatabase.models.PlanUpdate":"Oracle.Database.PlanUpdate","com.azure.resourcemanager.oracledatabase.models.PortRange":"Oracle.Database.PortRange","com.azure.resourcemanager.oracledatabase.models.Preference":"Oracle.Database.Preference","com.azure.resourcemanager.oracledatabase.models.PrivateIpAddressesFilter":"Oracle.Database.PrivateIpAddressesFilter","com.azure.resourcemanager.oracledatabase.models.ProfileType":"Oracle.Database.ProfileType","com.azure.resourcemanager.oracledatabase.models.ProtocolType":"Oracle.Database.ProtocolType","com.azure.resourcemanager.oracledatabase.models.RefreshableModelType":"Oracle.Database.RefreshableModelType","com.azure.resourcemanager.oracledatabase.models.RefreshableStatusType":"Oracle.Database.RefreshableStatusType","com.azure.resourcemanager.oracledatabase.models.RemoveVirtualMachineFromExadbVmClusterDetails":"Oracle.Database.RemoveVirtualMachineFromExadbVmClusterDetails","com.azure.resourcemanager.oracledatabase.models.RepeatCadenceType":"Oracle.Database.RepeatCadenceType","com.azure.resourcemanager.oracledatabase.models.ResourceProvisioningState":"Azure.ResourceManager.ResourceProvisioningState","com.azure.resourcemanager.oracledatabase.models.RestoreAutonomousDatabaseDetails":"Oracle.Database.RestoreAutonomousDatabaseDetails","com.azure.resourcemanager.oracledatabase.models.RoleType":"Oracle.Database.RoleType","com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsType":"Oracle.Database.ScheduledOperationsType","com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsTypeUpdate":"Oracle.Database.ScheduledOperationsTypeUpdate","com.azure.resourcemanager.oracledatabase.models.SessionModeType":"Oracle.Database.SessionModeType","com.azure.resourcemanager.oracledatabase.models.ShapeFamily":"Oracle.Database.ShapeFamily","com.azure.resourcemanager.oracledatabase.models.SourceType":"Oracle.Database.SourceType","com.azure.resourcemanager.oracledatabase.models.SyntaxFormatType":"Oracle.Database.SyntaxFormatType","com.azure.resourcemanager.oracledatabase.models.SystemShapes":"Oracle.Database.SystemShapes","com.azure.resourcemanager.oracledatabase.models.SystemVersionProperties":"Oracle.Database.SystemVersionProperties","com.azure.resourcemanager.oracledatabase.models.TlsAuthenticationType":"Oracle.Database.TlsAuthenticationType","com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddressLifecycleState":"Oracle.Database.VirtualNetworkAddressLifecycleState","com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddressProperties":"Oracle.Database.VirtualNetworkAddressProperties","com.azure.resourcemanager.oracledatabase.models.WorkloadType":"Oracle.Database.WorkloadType","com.azure.resourcemanager.oracledatabase.models.ZoneType":"Oracle.Database.ZoneType"},"generatedFiles":["src/main/java/com/azure/resourcemanager/oracledatabase/OracleDatabaseManager.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseBackupsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseCharacterSetsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseNationalCharacterSetsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseVersionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabasesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/CloudExadataInfrastructuresClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/CloudVmClustersClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbNodesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbServersClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemShapesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DnsPrivateViewsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DnsPrivateZonesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ExadbVmClustersClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ExascaleDbNodesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ExascaleDbStorageVaultsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/FlexComponentsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/GiMinorVersionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/GiVersionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseManagementClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleSubscriptionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/SystemVersionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/VirtualNetworkAddressesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ActivationLinksInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseBackupInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseCharacterSetInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseNationalCharacterSetInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseWalletFileInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDbVersionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/CloudAccountDetailsInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/CloudExadataInfrastructureInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/CloudVmClusterInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbActionResponseInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbNodeInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbServerInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbSystemShapeInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DnsPrivateViewInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DnsPrivateZoneInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ExadbVmClusterInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ExascaleDbNodeInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ExascaleDbStorageVaultInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/FlexComponentInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/GiMinorVersionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/GiVersionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/OracleSubscriptionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/PrivateIpAddressPropertiesInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/SaasSubscriptionDetailsInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/SystemVersionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/VirtualNetworkAddressInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/package-info.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ActivationLinksImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseVersionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseWalletFileImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDbVersionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudAccountDetailsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructureImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClusterImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClustersClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClustersImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbActionResponseImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodeImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServerImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServersClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServersImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapeImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZoneImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZonesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZonesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExadbVmClusterImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExadbVmClustersClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExadbVmClustersImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbNodeImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbNodesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbNodesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbStorageVaultImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbStorageVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbStorageVaultsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/FlexComponentImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/FlexComponentsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/FlexComponentsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiMinorVersionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiMinorVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiMinorVersionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseManagementClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/PrivateIpAddressPropertiesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SaasSubscriptionDetailsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDatabaseBackupListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDatabaseCharacterSetListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDatabaseListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDatabaseNationalCharacterSetListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDbVersionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/CloudExadataInfrastructureListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/CloudVmClusterListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbNodeListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbServerListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbSystemShapeListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DnsPrivateViewListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DnsPrivateZoneListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ExadbVmClusterListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ExascaleDbNodeListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ExascaleDbStorageVaultListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/FlexComponentListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/GiMinorVersionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/GiVersionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/OracleSubscriptionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/SystemVersionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/VirtualNetworkAddressListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/package-info.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ActionType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ActivationLinks.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AddRemoveDbNode.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AddSubscriptionOperationState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AllConnectionStringType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ApexDetailsType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabase.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackup.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackups.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBaseProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCharacterSet.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCharacterSetProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCharacterSets.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCloneProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCrossRegionDisasterRecoveryProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseFromBackupTimestampProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseNationalCharacterSet.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseNationalCharacterSetProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseNationalCharacterSets.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseStandbySummary.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseVersions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseWalletFile.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabases.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDbVersion.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDbVersionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousMaintenanceScheduleType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AzureResourceProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AzureSubscriptions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloneType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudAccountDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudAccountProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructure.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructures.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmCluster.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusters.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ComputeModel.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ConnectionStringType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ConnectionUrlType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ConsumerGroup.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CustomerContact.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DataBaseType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DataCollectionOptions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DataSafeStatusType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DatabaseEditionType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DayOfWeekName.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DayOfWeekUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbActionResponse.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbIormConfig.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNode.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeAction.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeActionEnum.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeMaintenanceType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodes.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServer.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServerPatchingDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServerPatchingStatus.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServerProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServerProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServers.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShape.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapeProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapes.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DefinedFileSystemConfiguration.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DisasterRecoveryConfigurationDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DisasterRecoveryType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DiskRedundancy.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateView.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateViewProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateViews.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateViewsLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateZone.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateZoneProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateZones.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateZonesLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/EstimatedPatchingTime.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadataIormConfig.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmCluster.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterStorageDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusters.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbNode.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbNodeProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbNodes.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageInputDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVault.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultTagsUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaults.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/FileSystemConfigurationDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/FlexComponent.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/FlexComponentProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/FlexComponents.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GenerateAutonomousDatabaseWalletDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GenerateType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiMinorVersion.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiMinorVersionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiMinorVersions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersion.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GridImageType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/HardwareType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/HostFormatType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Intent.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/IormLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/LicenseModel.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/LongTermBackUpScheduleDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/MaintenanceWindow.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Month.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/MonthName.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/NsgCidr.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Objective.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OpenModeType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Operation.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Operations.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OperationsInsightsStatusType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscription.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Origin.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PatchingMode.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PeerDbDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PermissionLevelType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Plan.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PlanUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PortRange.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Preference.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PrivateIpAddressProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PrivateIpAddressesFilter.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ProfileType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ProtocolType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RefreshableModelType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RefreshableStatusType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RemoveVirtualMachineFromExadbVmClusterDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RepeatCadenceType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RestoreAutonomousDatabaseDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RoleType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SaasSubscriptionDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ScheduledOperationsType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ScheduledOperationsTypeUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SessionModeType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeFamily.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SourceType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SyntaxFormatType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SystemShapes.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SystemVersion.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SystemVersionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SystemVersions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/TlsAuthenticationType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/VirtualNetworkAddress.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/VirtualNetworkAddressLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/VirtualNetworkAddressProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/VirtualNetworkAddresses.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/WorkloadType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ZoneType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/package-info.java","src/main/java/com/azure/resourcemanager/oracledatabase/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersion":"2025-09-01","crossLanguageDefinitions":{"com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient":"Oracle.Database.AutonomousDatabaseBackups","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.beginCreateOrUpdate":"Azure.ResourceManager.AutonomousDatabaseBackups.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.beginDelete":"Azure.ResourceManager.AutonomousDatabaseBackups.delete","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.beginUpdate":"Oracle.Database.AutonomousDatabaseBackups.update","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.createOrUpdate":"Azure.ResourceManager.AutonomousDatabaseBackups.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.delete":"Azure.ResourceManager.AutonomousDatabaseBackups.delete","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.get":"Azure.ResourceManager.AutonomousDatabaseBackups.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.getWithResponse":"Azure.ResourceManager.AutonomousDatabaseBackups.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.listByAutonomousDatabase":"Oracle.Database.AutonomousDatabaseBackups.listByParent","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseBackupsClient.update":"Oracle.Database.AutonomousDatabaseBackups.update","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseCharacterSetsClient":"Oracle.Database.AutonomousDatabaseCharacterSets","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseCharacterSetsClient.get":"Oracle.Database.AutonomousDatabaseCharacterSets.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseCharacterSetsClient.getWithResponse":"Oracle.Database.AutonomousDatabaseCharacterSets.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseCharacterSetsClient.listByLocation":"Oracle.Database.AutonomousDatabaseCharacterSets.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseNationalCharacterSetsClient":"Oracle.Database.AutonomousDatabaseNationalCharacterSets","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseNationalCharacterSetsClient.get":"Oracle.Database.AutonomousDatabaseNationalCharacterSets.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseNationalCharacterSetsClient.getWithResponse":"Oracle.Database.AutonomousDatabaseNationalCharacterSets.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseNationalCharacterSetsClient.listByLocation":"Oracle.Database.AutonomousDatabaseNationalCharacterSets.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient":"Oracle.Database.AutonomousDatabaseVersions","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient.get":"Oracle.Database.AutonomousDatabaseVersions.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient.getWithResponse":"Oracle.Database.AutonomousDatabaseVersions.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabaseVersionsClient.listByLocation":"Oracle.Database.AutonomousDatabaseVersions.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient":"Oracle.Database.AutonomousDatabases","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.action":"Oracle.Database.AutonomousDatabases.action","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginAction":"Oracle.Database.AutonomousDatabases.action","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginChangeDisasterRecoveryConfiguration":"Oracle.Database.AutonomousDatabases.changeDisasterRecoveryConfiguration","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginCreateOrUpdate":"Azure.ResourceManager.AutonomousDatabases.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginDelete":"Azure.ResourceManager.AutonomousDatabases.delete","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginFailover":"Oracle.Database.AutonomousDatabases.failover","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginRestore":"Oracle.Database.AutonomousDatabases.restore","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginShrink":"Oracle.Database.AutonomousDatabases.shrink","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginSwitchover":"Oracle.Database.AutonomousDatabases.switchover","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.beginUpdate":"Oracle.Database.AutonomousDatabases.update","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.changeDisasterRecoveryConfiguration":"Oracle.Database.AutonomousDatabases.changeDisasterRecoveryConfiguration","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.createOrUpdate":"Azure.ResourceManager.AutonomousDatabases.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.delete":"Azure.ResourceManager.AutonomousDatabases.delete","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.failover":"Oracle.Database.AutonomousDatabases.failover","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.generateWallet":"Oracle.Database.AutonomousDatabases.generateWallet","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.generateWalletWithResponse":"Oracle.Database.AutonomousDatabases.generateWallet","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.getByResourceGroup":"Azure.ResourceManager.AutonomousDatabases.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.getByResourceGroupWithResponse":"Azure.ResourceManager.AutonomousDatabases.get","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.list":"Azure.ResourceManager.AutonomousDatabases.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.listByResourceGroup":"Oracle.Database.AutonomousDatabases.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.restore":"Oracle.Database.AutonomousDatabases.restore","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.shrink":"Oracle.Database.AutonomousDatabases.shrink","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.switchover":"Oracle.Database.AutonomousDatabases.switchover","com.azure.resourcemanager.oracledatabase.fluent.AutonomousDatabasesClient.update":"Oracle.Database.AutonomousDatabases.update","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient":"Oracle.Database.CloudExadataInfrastructures","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.addStorageCapacity":"Oracle.Database.CloudExadataInfrastructures.addStorageCapacity","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginAddStorageCapacity":"Oracle.Database.CloudExadataInfrastructures.addStorageCapacity","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginConfigureExascale":"Oracle.Database.CloudExadataInfrastructures.configureExascale","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginCreateOrUpdate":"Azure.ResourceManager.CloudExadataInfrastructures.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginDelete":"Azure.ResourceManager.CloudExadataInfrastructures.delete","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.beginUpdate":"Azure.ResourceManager.CloudExadataInfrastructures.update","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.configureExascale":"Oracle.Database.CloudExadataInfrastructures.configureExascale","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.createOrUpdate":"Azure.ResourceManager.CloudExadataInfrastructures.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.delete":"Azure.ResourceManager.CloudExadataInfrastructures.delete","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.getByResourceGroup":"Azure.ResourceManager.CloudExadataInfrastructures.get","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.getByResourceGroupWithResponse":"Azure.ResourceManager.CloudExadataInfrastructures.get","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.list":"Azure.ResourceManager.CloudExadataInfrastructures.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.listByResourceGroup":"Oracle.Database.CloudExadataInfrastructures.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.CloudExadataInfrastructuresClient.update":"Azure.ResourceManager.CloudExadataInfrastructures.update","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient":"Oracle.Database.CloudVmClusters","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.addVms":"Oracle.Database.CloudVmClusters.addVms","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginAddVms":"Oracle.Database.CloudVmClusters.addVms","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginCreateOrUpdate":"Azure.ResourceManager.CloudVmClusters.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginDelete":"Azure.ResourceManager.CloudVmClusters.delete","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginRemoveVms":"Oracle.Database.CloudVmClusters.removeVms","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.beginUpdate":"Azure.ResourceManager.CloudVmClusters.update","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.createOrUpdate":"Azure.ResourceManager.CloudVmClusters.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.delete":"Azure.ResourceManager.CloudVmClusters.delete","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.getByResourceGroup":"Azure.ResourceManager.CloudVmClusters.get","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.getByResourceGroupWithResponse":"Azure.ResourceManager.CloudVmClusters.get","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.list":"Azure.ResourceManager.CloudVmClusters.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.listByResourceGroup":"Oracle.Database.CloudVmClusters.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.listPrivateIpAddresses":"Oracle.Database.CloudVmClusters.listPrivateIpAddresses","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.listPrivateIpAddressesWithResponse":"Oracle.Database.CloudVmClusters.listPrivateIpAddresses","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.removeVms":"Oracle.Database.CloudVmClusters.removeVms","com.azure.resourcemanager.oracledatabase.fluent.CloudVmClustersClient.update":"Azure.ResourceManager.CloudVmClusters.update","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient":"Oracle.Database.DbNodes","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.action":"Oracle.Database.DbNodes.action","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.beginAction":"Oracle.Database.DbNodes.action","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.get":"Oracle.Database.DbNodes.get","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.getWithResponse":"Oracle.Database.DbNodes.get","com.azure.resourcemanager.oracledatabase.fluent.DbNodesClient.listByCloudVmCluster":"Oracle.Database.DbNodes.listByParent","com.azure.resourcemanager.oracledatabase.fluent.DbServersClient":"Oracle.Database.DbServers","com.azure.resourcemanager.oracledatabase.fluent.DbServersClient.get":"Oracle.Database.DbServers.get","com.azure.resourcemanager.oracledatabase.fluent.DbServersClient.getWithResponse":"Oracle.Database.DbServers.get","com.azure.resourcemanager.oracledatabase.fluent.DbServersClient.listByCloudExadataInfrastructure":"Oracle.Database.DbServers.listByParent","com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient":"Oracle.Database.DbSystemShapes","com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient.get":"Oracle.Database.DbSystemShapes.get","com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient.getWithResponse":"Oracle.Database.DbSystemShapes.get","com.azure.resourcemanager.oracledatabase.fluent.DbSystemShapesClient.listByLocation":"Oracle.Database.DbSystemShapes.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient":"Oracle.Database.DbSystems","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.beginCreateOrUpdate":"Azure.ResourceManager.DbSystems.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.beginDelete":"Azure.ResourceManager.DbSystems.delete","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.beginUpdate":"Azure.ResourceManager.DbSystems.update","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.createOrUpdate":"Azure.ResourceManager.DbSystems.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.delete":"Azure.ResourceManager.DbSystems.delete","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.getByResourceGroup":"Azure.ResourceManager.DbSystems.get","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.getByResourceGroupWithResponse":"Azure.ResourceManager.DbSystems.get","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.list":"Azure.ResourceManager.DbSystems.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.listByResourceGroup":"Oracle.Database.DbSystems.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.DbSystemsClient.update":"Azure.ResourceManager.DbSystems.update","com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient":"Oracle.Database.DbVersions","com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient.get":"Oracle.Database.DbVersions.get","com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient.getWithResponse":"Oracle.Database.DbVersions.get","com.azure.resourcemanager.oracledatabase.fluent.DbVersionsClient.listByLocation":"Oracle.Database.DbVersions.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient":"Oracle.Database.DnsPrivateViews","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient.get":"Oracle.Database.DnsPrivateViews.get","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient.getWithResponse":"Oracle.Database.DnsPrivateViews.get","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateViewsClient.listByLocation":"Oracle.Database.DnsPrivateViews.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient":"Oracle.Database.DnsPrivateZones","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient.get":"Oracle.Database.DnsPrivateZones.get","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient.getWithResponse":"Oracle.Database.DnsPrivateZones.get","com.azure.resourcemanager.oracledatabase.fluent.DnsPrivateZonesClient.listByLocation":"Oracle.Database.DnsPrivateZones.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient":"Oracle.Database.ExadbVmClusters","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.beginCreateOrUpdate":"Azure.ResourceManager.ExadbVmClusters.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.beginDelete":"Azure.ResourceManager.ExadbVmClusters.delete","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.beginRemoveVms":"Oracle.Database.ExadbVmClusters.removeVms","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.beginUpdate":"Azure.ResourceManager.ExadbVmClusters.update","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.createOrUpdate":"Azure.ResourceManager.ExadbVmClusters.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.delete":"Azure.ResourceManager.ExadbVmClusters.delete","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.getByResourceGroup":"Azure.ResourceManager.ExadbVmClusters.get","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.getByResourceGroupWithResponse":"Azure.ResourceManager.ExadbVmClusters.get","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.list":"Azure.ResourceManager.ExadbVmClusters.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.listByResourceGroup":"Oracle.Database.ExadbVmClusters.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.removeVms":"Oracle.Database.ExadbVmClusters.removeVms","com.azure.resourcemanager.oracledatabase.fluent.ExadbVmClustersClient.update":"Azure.ResourceManager.ExadbVmClusters.update","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient":"Oracle.Database.ExascaleDbNodes","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.action":"Oracle.Database.ExascaleDbNodes.action","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.beginAction":"Oracle.Database.ExascaleDbNodes.action","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.get":"Oracle.Database.ExascaleDbNodes.get","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.getWithResponse":"Oracle.Database.ExascaleDbNodes.get","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbNodesClient.listByParent":"Oracle.Database.ExascaleDbNodes.listByParent","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient":"Oracle.Database.ExascaleDbStorageVaults","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.beginCreate":"Oracle.Database.ExascaleDbStorageVaults.create","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.beginDelete":"Oracle.Database.ExascaleDbStorageVaults.delete","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.beginUpdate":"Oracle.Database.ExascaleDbStorageVaults.update","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.create":"Oracle.Database.ExascaleDbStorageVaults.create","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.delete":"Oracle.Database.ExascaleDbStorageVaults.delete","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.getByResourceGroup":"Oracle.Database.ExascaleDbStorageVaults.get","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.getByResourceGroupWithResponse":"Oracle.Database.ExascaleDbStorageVaults.get","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.list":"Oracle.Database.ExascaleDbStorageVaults.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.listByResourceGroup":"Oracle.Database.ExascaleDbStorageVaults.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.ExascaleDbStorageVaultsClient.update":"Oracle.Database.ExascaleDbStorageVaults.update","com.azure.resourcemanager.oracledatabase.fluent.FlexComponentsClient":"Oracle.Database.FlexComponents","com.azure.resourcemanager.oracledatabase.fluent.FlexComponentsClient.get":"Oracle.Database.FlexComponents.get","com.azure.resourcemanager.oracledatabase.fluent.FlexComponentsClient.getWithResponse":"Oracle.Database.FlexComponents.get","com.azure.resourcemanager.oracledatabase.fluent.FlexComponentsClient.listByParent":"Oracle.Database.FlexComponents.listByParent","com.azure.resourcemanager.oracledatabase.fluent.GiMinorVersionsClient":"Oracle.Database.GiMinorVersions","com.azure.resourcemanager.oracledatabase.fluent.GiMinorVersionsClient.get":"Oracle.Database.GiMinorVersions.get","com.azure.resourcemanager.oracledatabase.fluent.GiMinorVersionsClient.getWithResponse":"Oracle.Database.GiMinorVersions.get","com.azure.resourcemanager.oracledatabase.fluent.GiMinorVersionsClient.listByParent":"Oracle.Database.GiMinorVersions.listByParent","com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient":"Oracle.Database.GiVersions","com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient.get":"Oracle.Database.GiVersions.get","com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient.getWithResponse":"Oracle.Database.GiVersions.get","com.azure.resourcemanager.oracledatabase.fluent.GiVersionsClient.listByLocation":"Oracle.Database.GiVersions.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient":"Oracle.Database.NetworkAnchors","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.beginCreateOrUpdate":"Azure.ResourceManager.NetworkAnchors.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.beginDelete":"Azure.ResourceManager.NetworkAnchors.delete","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.beginUpdate":"Azure.ResourceManager.NetworkAnchors.update","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.createOrUpdate":"Azure.ResourceManager.NetworkAnchors.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.delete":"Azure.ResourceManager.NetworkAnchors.delete","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.getByResourceGroup":"Azure.ResourceManager.NetworkAnchors.get","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.getByResourceGroupWithResponse":"Azure.ResourceManager.NetworkAnchors.get","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.list":"Azure.ResourceManager.NetworkAnchors.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.listByResourceGroup":"Oracle.Database.NetworkAnchors.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.NetworkAnchorsClient.update":"Azure.ResourceManager.NetworkAnchors.update","com.azure.resourcemanager.oracledatabase.fluent.OperationsClient":"Oracle.Database.Operations","com.azure.resourcemanager.oracledatabase.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseManagementClient":"Oracle.Database","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient":"Oracle.Database.OracleSubscriptions","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.addAzureSubscriptions":"Oracle.Database.OracleSubscriptions.addAzureSubscriptions","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginAddAzureSubscriptions":"Oracle.Database.OracleSubscriptions.addAzureSubscriptions","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginCreateOrUpdate":"Azure.ResourceManager.OracleSubscriptions.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginDelete":"Azure.ResourceManager.OracleSubscriptions.delete","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginListActivationLinks":"Oracle.Database.OracleSubscriptions.listActivationLinks","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginListCloudAccountDetails":"Oracle.Database.OracleSubscriptions.listCloudAccountDetails","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginListSaasSubscriptionDetails":"Oracle.Database.OracleSubscriptions.listSaasSubscriptionDetails","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.beginUpdate":"Oracle.Database.OracleSubscriptions.update","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.createOrUpdate":"Azure.ResourceManager.OracleSubscriptions.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.delete":"Azure.ResourceManager.OracleSubscriptions.delete","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.get":"Azure.ResourceManager.OracleSubscriptions.get","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.getWithResponse":"Azure.ResourceManager.OracleSubscriptions.get","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.list":"Azure.ResourceManager.OracleSubscriptions.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.listActivationLinks":"Oracle.Database.OracleSubscriptions.listActivationLinks","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.listCloudAccountDetails":"Oracle.Database.OracleSubscriptions.listCloudAccountDetails","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.listSaasSubscriptionDetails":"Oracle.Database.OracleSubscriptions.listSaasSubscriptionDetails","com.azure.resourcemanager.oracledatabase.fluent.OracleSubscriptionsClient.update":"Oracle.Database.OracleSubscriptions.update","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient":"Oracle.Database.ResourceAnchors","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.beginCreateOrUpdate":"Azure.ResourceManager.ResourceAnchors.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.beginDelete":"Azure.ResourceManager.ResourceAnchors.delete","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.beginUpdate":"Azure.ResourceManager.ResourceAnchors.update","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.createOrUpdate":"Azure.ResourceManager.ResourceAnchors.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.delete":"Azure.ResourceManager.ResourceAnchors.delete","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.getByResourceGroup":"Azure.ResourceManager.ResourceAnchors.get","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.getByResourceGroupWithResponse":"Azure.ResourceManager.ResourceAnchors.get","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.list":"Azure.ResourceManager.ResourceAnchors.listBySubscription","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.listByResourceGroup":"Oracle.Database.ResourceAnchors.listByResourceGroup","com.azure.resourcemanager.oracledatabase.fluent.ResourceAnchorsClient.update":"Azure.ResourceManager.ResourceAnchors.update","com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient":"Oracle.Database.SystemVersions","com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient.get":"Oracle.Database.SystemVersions.get","com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient.getWithResponse":"Oracle.Database.SystemVersions.get","com.azure.resourcemanager.oracledatabase.fluent.SystemVersionsClient.listByLocation":"Oracle.Database.SystemVersions.listByLocation","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient":"Oracle.Database.VirtualNetworkAddresses","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.beginCreateOrUpdate":"Azure.ResourceManager.VirtualNetworkAddresses.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.beginDelete":"Azure.ResourceManager.VirtualNetworkAddresses.delete","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.createOrUpdate":"Azure.ResourceManager.VirtualNetworkAddresses.createOrUpdate","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.delete":"Azure.ResourceManager.VirtualNetworkAddresses.delete","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.get":"Azure.ResourceManager.VirtualNetworkAddresses.get","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.getWithResponse":"Azure.ResourceManager.VirtualNetworkAddresses.get","com.azure.resourcemanager.oracledatabase.fluent.VirtualNetworkAddressesClient.listByCloudVmCluster":"Oracle.Database.VirtualNetworkAddresses.listByParent","com.azure.resourcemanager.oracledatabase.fluent.models.ActivationLinksInner":"Oracle.Database.ActivationLinks","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseBackupInner":"Oracle.Database.AutonomousDatabaseBackup","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseCharacterSetInner":"Oracle.Database.AutonomousDatabaseCharacterSet","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseInner":"Oracle.Database.AutonomousDatabase","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseNationalCharacterSetInner":"Oracle.Database.AutonomousDatabaseNationalCharacterSet","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDatabaseWalletFileInner":"Oracle.Database.AutonomousDatabaseWalletFile","com.azure.resourcemanager.oracledatabase.fluent.models.AutonomousDbVersionInner":"Oracle.Database.AutonomousDbVersion","com.azure.resourcemanager.oracledatabase.fluent.models.CloudAccountDetailsInner":"Oracle.Database.CloudAccountDetails","com.azure.resourcemanager.oracledatabase.fluent.models.CloudExadataInfrastructureInner":"Oracle.Database.CloudExadataInfrastructure","com.azure.resourcemanager.oracledatabase.fluent.models.CloudVmClusterInner":"Oracle.Database.CloudVmCluster","com.azure.resourcemanager.oracledatabase.fluent.models.DbActionResponseInner":"Oracle.Database.DbActionResponse","com.azure.resourcemanager.oracledatabase.fluent.models.DbNodeInner":"Oracle.Database.DbNode","com.azure.resourcemanager.oracledatabase.fluent.models.DbServerInner":"Oracle.Database.DbServer","com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemInner":"Oracle.Database.DbSystem","com.azure.resourcemanager.oracledatabase.fluent.models.DbSystemShapeInner":"Oracle.Database.DbSystemShape","com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner":"Oracle.Database.DbVersion","com.azure.resourcemanager.oracledatabase.fluent.models.DnsPrivateViewInner":"Oracle.Database.DnsPrivateView","com.azure.resourcemanager.oracledatabase.fluent.models.DnsPrivateZoneInner":"Oracle.Database.DnsPrivateZone","com.azure.resourcemanager.oracledatabase.fluent.models.ExadbVmClusterInner":"Oracle.Database.ExadbVmCluster","com.azure.resourcemanager.oracledatabase.fluent.models.ExascaleDbNodeInner":"Oracle.Database.ExascaleDbNode","com.azure.resourcemanager.oracledatabase.fluent.models.ExascaleDbStorageVaultInner":"Oracle.Database.ExascaleDbStorageVault","com.azure.resourcemanager.oracledatabase.fluent.models.FlexComponentInner":"Oracle.Database.FlexComponent","com.azure.resourcemanager.oracledatabase.fluent.models.GiMinorVersionInner":"Oracle.Database.GiMinorVersion","com.azure.resourcemanager.oracledatabase.fluent.models.GiVersionInner":"Oracle.Database.GiVersion","com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner":"Oracle.Database.NetworkAnchor","com.azure.resourcemanager.oracledatabase.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.oracledatabase.fluent.models.OracleSubscriptionInner":"Oracle.Database.OracleSubscription","com.azure.resourcemanager.oracledatabase.fluent.models.PrivateIpAddressPropertiesInner":"Oracle.Database.PrivateIpAddressProperties","com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner":"Oracle.Database.ResourceAnchor","com.azure.resourcemanager.oracledatabase.fluent.models.SaasSubscriptionDetailsInner":"Oracle.Database.SaasSubscriptionDetails","com.azure.resourcemanager.oracledatabase.fluent.models.SystemVersionInner":"Oracle.Database.SystemVersion","com.azure.resourcemanager.oracledatabase.fluent.models.VirtualNetworkAddressInner":"Oracle.Database.VirtualNetworkAddress","com.azure.resourcemanager.oracledatabase.implementation.OracleDatabaseManagementClientBuilder":"Oracle.Database","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDatabaseBackupListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDatabaseCharacterSetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDatabaseListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDatabaseNationalCharacterSetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.AutonomousDbVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.CloudExadataInfrastructureListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.CloudVmClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DbNodeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DbServerListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DbSystemListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DbSystemShapeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DbVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DnsPrivateViewListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.DnsPrivateZoneListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.ExadbVmClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.ExascaleDbNodeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.ExascaleDbStorageVaultListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.FlexComponentListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.GiMinorVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.GiVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.NetworkAnchorListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.oracledatabase.implementation.models.OracleSubscriptionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.ResourceAnchorListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.SystemVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.implementation.models.VirtualNetworkAddressListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.oracledatabase.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.oracledatabase.models.AddRemoveDbNode":"Oracle.Database.AddRemoveDbNode","com.azure.resourcemanager.oracledatabase.models.AddSubscriptionOperationState":"Oracle.Database.AddSubscriptionOperationState","com.azure.resourcemanager.oracledatabase.models.AllConnectionStringType":"Oracle.Database.AllConnectionStringType","com.azure.resourcemanager.oracledatabase.models.ApexDetailsType":"Oracle.Database.ApexDetailsType","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupLifecycleState":"Oracle.Database.AutonomousDatabaseBackupLifecycleState","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupProperties":"Oracle.Database.AutonomousDatabaseBackupProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupType":"Oracle.Database.AutonomousDatabaseBackupType","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBaseProperties":"Oracle.Database.AutonomousDatabaseBaseProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCharacterSetProperties":"Oracle.Database.AutonomousDatabaseCharacterSetProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCloneProperties":"Oracle.Database.AutonomousDatabaseCloneProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCrossRegionDisasterRecoveryProperties":"Oracle.Database.AutonomousDatabaseCrossRegionDisasterRecoveryProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseFromBackupTimestampProperties":"Oracle.Database.AutonomousDatabaseFromBackupTimestampProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleAction":"Oracle.Database.AutonomousDatabaseLifecycleAction","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleActionEnum":"Oracle.Database.AutonomousDatabaseLifecycleActionEnum","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleState":"Oracle.Database.AutonomousDatabaseLifecycleState","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseNationalCharacterSetProperties":"Oracle.Database.AutonomousDatabaseNationalCharacterSetProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseProperties":"Oracle.Database.AutonomousDatabaseProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseStandbySummary":"Oracle.Database.AutonomousDatabaseStandbySummary","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdate":"Oracle.Database.AutonomousDatabaseUpdate","com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdateProperties":"Oracle.Database.AutonomousDatabaseUpdateProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousDbVersionProperties":"Oracle.Database.AutonomousDbVersionProperties","com.azure.resourcemanager.oracledatabase.models.AutonomousMaintenanceScheduleType":"Oracle.Database.AutonomousMaintenanceScheduleType","com.azure.resourcemanager.oracledatabase.models.AzureResourceProvisioningState":"Oracle.Database.AzureResourceProvisioningState","com.azure.resourcemanager.oracledatabase.models.AzureSubscriptions":"Oracle.Database.AzureSubscriptions","com.azure.resourcemanager.oracledatabase.models.BaseDbSystemShapes":"Oracle.Database.BaseDbSystemShapes","com.azure.resourcemanager.oracledatabase.models.CloneType":"Oracle.Database.CloneType","com.azure.resourcemanager.oracledatabase.models.CloudAccountProvisioningState":"Oracle.Database.CloudAccountProvisioningState","com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureLifecycleState":"Oracle.Database.CloudExadataInfrastructureLifecycleState","com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureProperties":"Oracle.Database.CloudExadataInfrastructureProperties","com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructureUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.CloudVmClusterLifecycleState":"Oracle.Database.CloudVmClusterLifecycleState","com.azure.resourcemanager.oracledatabase.models.CloudVmClusterProperties":"Oracle.Database.CloudVmClusterProperties","com.azure.resourcemanager.oracledatabase.models.CloudVmClusterUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.CloudVmClusterUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.ComputeModel":"Oracle.Database.ComputeModel","com.azure.resourcemanager.oracledatabase.models.ConfigureExascaleCloudExadataInfrastructureDetails":"Oracle.Database.ConfigureExascaleCloudExadataInfrastructureDetails","com.azure.resourcemanager.oracledatabase.models.ConnectionStringType":"Oracle.Database.ConnectionStringType","com.azure.resourcemanager.oracledatabase.models.ConnectionUrlType":"Oracle.Database.ConnectionUrlType","com.azure.resourcemanager.oracledatabase.models.ConsumerGroup":"Oracle.Database.ConsumerGroup","com.azure.resourcemanager.oracledatabase.models.CustomerContact":"Oracle.Database.CustomerContact","com.azure.resourcemanager.oracledatabase.models.DataBaseType":"Oracle.Database.DataBaseType","com.azure.resourcemanager.oracledatabase.models.DataCollectionOptions":"Oracle.Database.DataCollectionOptions","com.azure.resourcemanager.oracledatabase.models.DataSafeStatusType":"Oracle.Database.DataSafeStatusType","com.azure.resourcemanager.oracledatabase.models.DatabaseEditionType":"Oracle.Database.DatabaseEditionType","com.azure.resourcemanager.oracledatabase.models.DayOfWeek":"Oracle.Database.DayOfWeek","com.azure.resourcemanager.oracledatabase.models.DayOfWeekName":"Oracle.Database.DayOfWeekName","com.azure.resourcemanager.oracledatabase.models.DayOfWeekUpdate":"Oracle.Database.DayOfWeekUpdate","com.azure.resourcemanager.oracledatabase.models.DbIormConfig":"Oracle.Database.DbIormConfig","com.azure.resourcemanager.oracledatabase.models.DbNodeAction":"Oracle.Database.DbNodeAction","com.azure.resourcemanager.oracledatabase.models.DbNodeActionEnum":"Oracle.Database.DbNodeActionEnum","com.azure.resourcemanager.oracledatabase.models.DbNodeDetails":"Oracle.Database.DbNodeDetails","com.azure.resourcemanager.oracledatabase.models.DbNodeMaintenanceType":"Oracle.Database.DbNodeMaintenanceType","com.azure.resourcemanager.oracledatabase.models.DbNodeProperties":"Oracle.Database.DbNodeProperties","com.azure.resourcemanager.oracledatabase.models.DbNodeProvisioningState":"Oracle.Database.DbNodeProvisioningState","com.azure.resourcemanager.oracledatabase.models.DbServerPatchingDetails":"Oracle.Database.DbServerPatchingDetails","com.azure.resourcemanager.oracledatabase.models.DbServerPatchingStatus":"Oracle.Database.DbServerPatchingStatus","com.azure.resourcemanager.oracledatabase.models.DbServerProperties":"Oracle.Database.DbServerProperties","com.azure.resourcemanager.oracledatabase.models.DbServerProvisioningState":"Oracle.Database.DbServerProvisioningState","com.azure.resourcemanager.oracledatabase.models.DbSystemBaseProperties":"Oracle.Database.DbSystemBaseProperties","com.azure.resourcemanager.oracledatabase.models.DbSystemDatabaseEditionType":"Oracle.Database.DbSystemDatabaseEditionType","com.azure.resourcemanager.oracledatabase.models.DbSystemLifecycleState":"Oracle.Database.DbSystemLifecycleState","com.azure.resourcemanager.oracledatabase.models.DbSystemOptions":"Oracle.Database.DbSystemOptions","com.azure.resourcemanager.oracledatabase.models.DbSystemProperties":"Oracle.Database.DbSystemProperties","com.azure.resourcemanager.oracledatabase.models.DbSystemShapeProperties":"Oracle.Database.DbSystemShapeProperties","com.azure.resourcemanager.oracledatabase.models.DbSystemSourceType":"Oracle.Database.DbSystemSourceType","com.azure.resourcemanager.oracledatabase.models.DbSystemUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.DbSystemUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.DbVersionProperties":"Oracle.Database.DbVersionProperties","com.azure.resourcemanager.oracledatabase.models.DefinedFileSystemConfiguration":"Oracle.Database.DefinedFileSystemConfiguration","com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryConfigurationDetails":"Oracle.Database.DisasterRecoveryConfigurationDetails","com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryType":"Oracle.Database.DisasterRecoveryType","com.azure.resourcemanager.oracledatabase.models.DiskRedundancy":"Oracle.Database.DiskRedundancy","com.azure.resourcemanager.oracledatabase.models.DiskRedundancyType":"Oracle.Database.DiskRedundancyType","com.azure.resourcemanager.oracledatabase.models.DnsForwardingRule":"Oracle.Database.DnsForwardingRule","com.azure.resourcemanager.oracledatabase.models.DnsPrivateViewProperties":"Oracle.Database.DnsPrivateViewProperties","com.azure.resourcemanager.oracledatabase.models.DnsPrivateViewsLifecycleState":"Oracle.Database.DnsPrivateViewsLifecycleState","com.azure.resourcemanager.oracledatabase.models.DnsPrivateZoneProperties":"Oracle.Database.DnsPrivateZoneProperties","com.azure.resourcemanager.oracledatabase.models.DnsPrivateZonesLifecycleState":"Oracle.Database.DnsPrivateZonesLifecycleState","com.azure.resourcemanager.oracledatabase.models.EstimatedPatchingTime":"Oracle.Database.EstimatedPatchingTime","com.azure.resourcemanager.oracledatabase.models.ExadataIormConfig":"Oracle.Database.ExadataIormConfig","com.azure.resourcemanager.oracledatabase.models.ExadataVmClusterStorageManagementType":"Oracle.Database.ExadataVmClusterStorageManagementType","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterLifecycleState":"Oracle.Database.ExadbVmClusterLifecycleState","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterProperties":"Oracle.Database.ExadbVmClusterProperties","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterStorageDetails":"Oracle.Database.ExadbVmClusterStorageDetails","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.ExadbVmClusterUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.ExascaleConfigDetails":"Oracle.Database.ExascaleConfigDetails","com.azure.resourcemanager.oracledatabase.models.ExascaleDbNodeProperties":"Oracle.Database.ExascaleDbNodeProperties","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageDetails":"Oracle.Database.ExascaleDbStorageDetails","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageInputDetails":"Oracle.Database.ExascaleDbStorageInputDetails","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageVaultLifecycleState":"Oracle.Database.ExascaleDbStorageVaultLifecycleState","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageVaultProperties":"Oracle.Database.ExascaleDbStorageVaultProperties","com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageVaultTagsUpdate":"Azure.ResourceManager.Foundations.TagsUpdateModel","com.azure.resourcemanager.oracledatabase.models.FileSystemConfigurationDetails":"Oracle.Database.FileSystemConfigurationDetails","com.azure.resourcemanager.oracledatabase.models.FlexComponentProperties":"Oracle.Database.FlexComponentProperties","com.azure.resourcemanager.oracledatabase.models.GenerateAutonomousDatabaseWalletDetails":"Oracle.Database.GenerateAutonomousDatabaseWalletDetails","com.azure.resourcemanager.oracledatabase.models.GenerateType":"Oracle.Database.GenerateType","com.azure.resourcemanager.oracledatabase.models.GiMinorVersionProperties":"Oracle.Database.GiMinorVersionProperties","com.azure.resourcemanager.oracledatabase.models.GiVersionProperties":"Oracle.Database.GiVersionProperties","com.azure.resourcemanager.oracledatabase.models.GridImageType":"Oracle.Database.GridImageType","com.azure.resourcemanager.oracledatabase.models.HardwareType":"Oracle.Database.HardwareType","com.azure.resourcemanager.oracledatabase.models.HostFormatType":"Oracle.Database.HostFormatType","com.azure.resourcemanager.oracledatabase.models.Intent":"Oracle.Database.Intent","com.azure.resourcemanager.oracledatabase.models.IormLifecycleState":"Oracle.Database.IormLifecycleState","com.azure.resourcemanager.oracledatabase.models.LicenseModel":"Oracle.Database.LicenseModel","com.azure.resourcemanager.oracledatabase.models.LongTermBackUpScheduleDetails":"Oracle.Database.LongTermBackUpScheduleDetails","com.azure.resourcemanager.oracledatabase.models.MaintenanceWindow":"Oracle.Database.MaintenanceWindow","com.azure.resourcemanager.oracledatabase.models.Month":"Oracle.Database.Month","com.azure.resourcemanager.oracledatabase.models.MonthName":"Oracle.Database.MonthName","com.azure.resourcemanager.oracledatabase.models.NetworkAnchorProperties":"Oracle.Database.NetworkAnchorProperties","com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.NsgCidr":"Oracle.Database.NsgCidr","com.azure.resourcemanager.oracledatabase.models.Objective":"Oracle.Database.Objective","com.azure.resourcemanager.oracledatabase.models.OpenModeType":"Oracle.Database.OpenModeType","com.azure.resourcemanager.oracledatabase.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.oracledatabase.models.OperationsInsightsStatusType":"Oracle.Database.OperationsInsightsStatusType","com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionProperties":"Oracle.Database.OracleSubscriptionProperties","com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionProvisioningState":"Oracle.Database.OracleSubscriptionProvisioningState","com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.oracledatabase.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.oracledatabase.models.PatchingMode":"Oracle.Database.PatchingMode","com.azure.resourcemanager.oracledatabase.models.PeerDbDetails":"Oracle.Database.PeerDbDetails","com.azure.resourcemanager.oracledatabase.models.PermissionLevelType":"Oracle.Database.PermissionLevelType","com.azure.resourcemanager.oracledatabase.models.Plan":"Azure.ResourceManager.CommonTypes.Plan","com.azure.resourcemanager.oracledatabase.models.PlanUpdate":"Oracle.Database.PlanUpdate","com.azure.resourcemanager.oracledatabase.models.PortRange":"Oracle.Database.PortRange","com.azure.resourcemanager.oracledatabase.models.Preference":"Oracle.Database.Preference","com.azure.resourcemanager.oracledatabase.models.PrivateIpAddressesFilter":"Oracle.Database.PrivateIpAddressesFilter","com.azure.resourcemanager.oracledatabase.models.ProfileType":"Oracle.Database.ProfileType","com.azure.resourcemanager.oracledatabase.models.ProtocolType":"Oracle.Database.ProtocolType","com.azure.resourcemanager.oracledatabase.models.RefreshableModelType":"Oracle.Database.RefreshableModelType","com.azure.resourcemanager.oracledatabase.models.RefreshableStatusType":"Oracle.Database.RefreshableStatusType","com.azure.resourcemanager.oracledatabase.models.RemoveVirtualMachineFromExadbVmClusterDetails":"Oracle.Database.RemoveVirtualMachineFromExadbVmClusterDetails","com.azure.resourcemanager.oracledatabase.models.RepeatCadenceType":"Oracle.Database.RepeatCadenceType","com.azure.resourcemanager.oracledatabase.models.ResourceAnchorProperties":"Oracle.Database.ResourceAnchorProperties","com.azure.resourcemanager.oracledatabase.models.ResourceAnchorUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.oracledatabase.models.ResourceProvisioningState":"Azure.ResourceManager.ResourceProvisioningState","com.azure.resourcemanager.oracledatabase.models.RestoreAutonomousDatabaseDetails":"Oracle.Database.RestoreAutonomousDatabaseDetails","com.azure.resourcemanager.oracledatabase.models.RoleType":"Oracle.Database.RoleType","com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsType":"Oracle.Database.ScheduledOperationsType","com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsTypeUpdate":"Oracle.Database.ScheduledOperationsTypeUpdate","com.azure.resourcemanager.oracledatabase.models.SessionModeType":"Oracle.Database.SessionModeType","com.azure.resourcemanager.oracledatabase.models.ShapeAttribute":"Oracle.Database.ShapeAttribute","com.azure.resourcemanager.oracledatabase.models.ShapeFamily":"Oracle.Database.ShapeFamily","com.azure.resourcemanager.oracledatabase.models.ShapeFamilyType":"Oracle.Database.ShapeFamilyType","com.azure.resourcemanager.oracledatabase.models.SourceType":"Oracle.Database.SourceType","com.azure.resourcemanager.oracledatabase.models.StorageManagementType":"Oracle.Database.StorageManagementType","com.azure.resourcemanager.oracledatabase.models.StorageVolumePerformanceMode":"Oracle.Database.StorageVolumePerformanceMode","com.azure.resourcemanager.oracledatabase.models.SyntaxFormatType":"Oracle.Database.SyntaxFormatType","com.azure.resourcemanager.oracledatabase.models.SystemShapes":"Oracle.Database.SystemShapes","com.azure.resourcemanager.oracledatabase.models.SystemVersionProperties":"Oracle.Database.SystemVersionProperties","com.azure.resourcemanager.oracledatabase.models.TlsAuthenticationType":"Oracle.Database.TlsAuthenticationType","com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddressLifecycleState":"Oracle.Database.VirtualNetworkAddressLifecycleState","com.azure.resourcemanager.oracledatabase.models.VirtualNetworkAddressProperties":"Oracle.Database.VirtualNetworkAddressProperties","com.azure.resourcemanager.oracledatabase.models.WorkloadType":"Oracle.Database.WorkloadType","com.azure.resourcemanager.oracledatabase.models.ZoneType":"Oracle.Database.ZoneType"},"generatedFiles":["src/main/java/com/azure/resourcemanager/oracledatabase/OracleDatabaseManager.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseBackupsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseCharacterSetsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseNationalCharacterSetsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseVersionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabasesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/CloudExadataInfrastructuresClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/CloudVmClustersClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbNodesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbServersClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemShapesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbSystemsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DbVersionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DnsPrivateViewsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/DnsPrivateZonesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ExadbVmClustersClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ExascaleDbNodesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ExascaleDbStorageVaultsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/FlexComponentsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/GiMinorVersionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/GiVersionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/NetworkAnchorsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleDatabaseManagementClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/OracleSubscriptionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/ResourceAnchorsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/SystemVersionsClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/VirtualNetworkAddressesClient.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ActivationLinksInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseBackupInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseCharacterSetInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseNationalCharacterSetInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDatabaseWalletFileInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/AutonomousDbVersionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/CloudAccountDetailsInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/CloudExadataInfrastructureInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/CloudVmClusterInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbActionResponseInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbNodeInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbServerInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbSystemInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbSystemShapeInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DbVersionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DnsPrivateViewInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/DnsPrivateZoneInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ExadbVmClusterInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ExascaleDbNodeInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ExascaleDbStorageVaultInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/FlexComponentInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/GiMinorVersionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/GiVersionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/NetworkAnchorInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/OracleSubscriptionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/PrivateIpAddressPropertiesInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/ResourceAnchorInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/SaasSubscriptionDetailsInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/SystemVersionInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/VirtualNetworkAddressInner.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/oracledatabase/fluent/package-info.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ActivationLinksImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseBackupsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseCharacterSetsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseNationalCharacterSetsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseVersionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabaseWalletFileImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDatabasesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/AutonomousDbVersionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudAccountDetailsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructureImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudExadataInfrastructuresImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClusterImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClustersClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/CloudVmClustersImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbActionResponseImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodeImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbNodesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServerImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServersClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbServersImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapeImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemShapesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbSystemsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DbVersionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateViewsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZoneImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZonesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/DnsPrivateZonesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExadbVmClusterImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExadbVmClustersClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExadbVmClustersImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbNodeImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbNodesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbNodesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbStorageVaultImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbStorageVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ExascaleDbStorageVaultsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/FlexComponentImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/FlexComponentsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/FlexComponentsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiMinorVersionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiMinorVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiMinorVersionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/GiVersionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/NetworkAnchorsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleDatabaseManagementClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/OracleSubscriptionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/PrivateIpAddressPropertiesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceAnchorsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SaasSubscriptionDetailsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/SystemVersionsImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressesClientImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/VirtualNetworkAddressesImpl.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDatabaseBackupListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDatabaseCharacterSetListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDatabaseListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDatabaseNationalCharacterSetListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/AutonomousDbVersionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/CloudExadataInfrastructureListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/CloudVmClusterListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbNodeListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbServerListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbSystemListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbSystemShapeListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DbVersionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DnsPrivateViewListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/DnsPrivateZoneListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ExadbVmClusterListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ExascaleDbNodeListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ExascaleDbStorageVaultListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/FlexComponentListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/GiMinorVersionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/GiVersionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/NetworkAnchorListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/OracleSubscriptionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/ResourceAnchorListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/SystemVersionListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/models/VirtualNetworkAddressListResult.java","src/main/java/com/azure/resourcemanager/oracledatabase/implementation/package-info.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ActionType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ActivationLinks.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AddRemoveDbNode.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AddSubscriptionOperationState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AllConnectionStringType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ApexDetailsType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabase.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackup.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackupUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBackups.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseBaseProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCharacterSet.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCharacterSetProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCharacterSets.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCloneProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseCrossRegionDisasterRecoveryProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseFromBackupTimestampProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleAction.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleActionEnum.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseNationalCharacterSet.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseNationalCharacterSetProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseNationalCharacterSets.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseStandbySummary.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseVersions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabaseWalletFile.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDatabases.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDbVersion.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousDbVersionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AutonomousMaintenanceScheduleType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AzureResourceProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/AzureSubscriptions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/BaseDbSystemShapes.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloneType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudAccountDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudAccountProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructure.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructureUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudExadataInfrastructures.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmCluster.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusterUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CloudVmClusters.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ComputeModel.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ConfigureExascaleCloudExadataInfrastructureDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ConnectionStringType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ConnectionUrlType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ConsumerGroup.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/CustomerContact.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DataBaseType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DataCollectionOptions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DataSafeStatusType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DatabaseEditionType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DayOfWeekName.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DayOfWeekUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbActionResponse.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbIormConfig.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNode.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeAction.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeActionEnum.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeMaintenanceType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodeProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbNodes.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServer.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServerPatchingDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServerPatchingStatus.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServerProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServerProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbServers.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystem.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemBaseProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemDatabaseEditionType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemOptions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShape.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapeProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemShapes.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemSourceType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystemUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbSystems.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersion.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DbVersions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DefinedFileSystemConfiguration.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DisasterRecoveryConfigurationDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DisasterRecoveryType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DiskRedundancy.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DiskRedundancyType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsForwardingRule.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateView.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateViewProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateViews.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateViewsLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateZone.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateZoneProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateZones.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/DnsPrivateZonesLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/EstimatedPatchingTime.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadataIormConfig.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadataVmClusterStorageManagementType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmCluster.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterStorageDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusterUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExadbVmClusters.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleConfigDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbNode.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbNodeProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbNodes.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageInputDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVault.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaultTagsUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ExascaleDbStorageVaults.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/FileSystemConfigurationDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/FlexComponent.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/FlexComponentProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/FlexComponents.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GenerateAutonomousDatabaseWalletDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GenerateType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiMinorVersion.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiMinorVersionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiMinorVersions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersion.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GiVersions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/GridImageType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/HardwareType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/HostFormatType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Intent.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/IormLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/LicenseModel.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/LongTermBackUpScheduleDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/MaintenanceWindow.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Month.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/MonthName.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchor.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchorUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/NetworkAnchors.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/NsgCidr.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Objective.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OpenModeType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Operation.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Operations.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OperationsInsightsStatusType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscription.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptionUpdateProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/OracleSubscriptions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Origin.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PatchingMode.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PeerDbDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PermissionLevelType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Plan.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PlanUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PortRange.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/Preference.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PrivateIpAddressProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/PrivateIpAddressesFilter.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ProfileType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ProtocolType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RefreshableModelType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RefreshableStatusType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RemoveVirtualMachineFromExadbVmClusterDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RepeatCadenceType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchor.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchorProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchorUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceAnchors.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ResourceProvisioningState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RestoreAutonomousDatabaseDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/RoleType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SaasSubscriptionDetails.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ScheduledOperationsType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ScheduledOperationsTypeUpdate.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SessionModeType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeAttribute.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeFamily.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ShapeFamilyType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SourceType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/StorageManagementType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/StorageVolumePerformanceMode.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SyntaxFormatType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SystemShapes.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SystemVersion.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SystemVersionProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/SystemVersions.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/TlsAuthenticationType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/VirtualNetworkAddress.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/VirtualNetworkAddressLifecycleState.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/VirtualNetworkAddressProperties.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/VirtualNetworkAddresses.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/WorkloadType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/ZoneType.java","src/main/java/com/azure/resourcemanager/oracledatabase/models/package-info.java","src/main/java/com/azure/resourcemanager/oracledatabase/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-oracledatabase/proxy-config.json b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-oracledatabase/proxy-config.json index 8d042121ef51..053fe34cc8a7 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-oracledatabase/proxy-config.json +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-oracledatabase/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseBackupsClientImpl$AutonomousDatabaseBackupsService"],["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseCharacterSetsClientImpl$AutonomousDatabaseCharacterSetsService"],["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseNationalCharacterSetsClientImpl$AutonomousDatabaseNationalCharacterSetsService"],["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseVersionsClientImpl$AutonomousDatabaseVersionsService"],["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabasesClientImpl$AutonomousDatabasesService"],["com.azure.resourcemanager.oracledatabase.implementation.CloudExadataInfrastructuresClientImpl$CloudExadataInfrastructuresService"],["com.azure.resourcemanager.oracledatabase.implementation.CloudVmClustersClientImpl$CloudVmClustersService"],["com.azure.resourcemanager.oracledatabase.implementation.DbNodesClientImpl$DbNodesService"],["com.azure.resourcemanager.oracledatabase.implementation.DbServersClientImpl$DbServersService"],["com.azure.resourcemanager.oracledatabase.implementation.DbSystemShapesClientImpl$DbSystemShapesService"],["com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateViewsClientImpl$DnsPrivateViewsService"],["com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateZonesClientImpl$DnsPrivateZonesService"],["com.azure.resourcemanager.oracledatabase.implementation.ExadbVmClustersClientImpl$ExadbVmClustersService"],["com.azure.resourcemanager.oracledatabase.implementation.ExascaleDbNodesClientImpl$ExascaleDbNodesService"],["com.azure.resourcemanager.oracledatabase.implementation.ExascaleDbStorageVaultsClientImpl$ExascaleDbStorageVaultsService"],["com.azure.resourcemanager.oracledatabase.implementation.FlexComponentsClientImpl$FlexComponentsService"],["com.azure.resourcemanager.oracledatabase.implementation.GiMinorVersionsClientImpl$GiMinorVersionsService"],["com.azure.resourcemanager.oracledatabase.implementation.GiVersionsClientImpl$GiVersionsService"],["com.azure.resourcemanager.oracledatabase.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.oracledatabase.implementation.OracleSubscriptionsClientImpl$OracleSubscriptionsService"],["com.azure.resourcemanager.oracledatabase.implementation.SystemVersionsClientImpl$SystemVersionsService"],["com.azure.resourcemanager.oracledatabase.implementation.VirtualNetworkAddressesClientImpl$VirtualNetworkAddressesService"]] \ No newline at end of file +[["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseBackupsClientImpl$AutonomousDatabaseBackupsService"],["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseCharacterSetsClientImpl$AutonomousDatabaseCharacterSetsService"],["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseNationalCharacterSetsClientImpl$AutonomousDatabaseNationalCharacterSetsService"],["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseVersionsClientImpl$AutonomousDatabaseVersionsService"],["com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabasesClientImpl$AutonomousDatabasesService"],["com.azure.resourcemanager.oracledatabase.implementation.CloudExadataInfrastructuresClientImpl$CloudExadataInfrastructuresService"],["com.azure.resourcemanager.oracledatabase.implementation.CloudVmClustersClientImpl$CloudVmClustersService"],["com.azure.resourcemanager.oracledatabase.implementation.DbNodesClientImpl$DbNodesService"],["com.azure.resourcemanager.oracledatabase.implementation.DbServersClientImpl$DbServersService"],["com.azure.resourcemanager.oracledatabase.implementation.DbSystemShapesClientImpl$DbSystemShapesService"],["com.azure.resourcemanager.oracledatabase.implementation.DbSystemsClientImpl$DbSystemsService"],["com.azure.resourcemanager.oracledatabase.implementation.DbVersionsClientImpl$DbVersionsService"],["com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateViewsClientImpl$DnsPrivateViewsService"],["com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateZonesClientImpl$DnsPrivateZonesService"],["com.azure.resourcemanager.oracledatabase.implementation.ExadbVmClustersClientImpl$ExadbVmClustersService"],["com.azure.resourcemanager.oracledatabase.implementation.ExascaleDbNodesClientImpl$ExascaleDbNodesService"],["com.azure.resourcemanager.oracledatabase.implementation.ExascaleDbStorageVaultsClientImpl$ExascaleDbStorageVaultsService"],["com.azure.resourcemanager.oracledatabase.implementation.FlexComponentsClientImpl$FlexComponentsService"],["com.azure.resourcemanager.oracledatabase.implementation.GiMinorVersionsClientImpl$GiMinorVersionsService"],["com.azure.resourcemanager.oracledatabase.implementation.GiVersionsClientImpl$GiVersionsService"],["com.azure.resourcemanager.oracledatabase.implementation.NetworkAnchorsClientImpl$NetworkAnchorsService"],["com.azure.resourcemanager.oracledatabase.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.oracledatabase.implementation.OracleSubscriptionsClientImpl$OracleSubscriptionsService"],["com.azure.resourcemanager.oracledatabase.implementation.ResourceAnchorsClientImpl$ResourceAnchorsService"],["com.azure.resourcemanager.oracledatabase.implementation.SystemVersionsClientImpl$SystemVersionsService"],["com.azure.resourcemanager.oracledatabase.implementation.VirtualNetworkAddressesClientImpl$VirtualNetworkAddressesService"]] \ No newline at end of file diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsCreateOrUpdateSamples.java index 00a67d1f5735..83d0f3575d42 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsCreateOrUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsCreateOrUpdateSamples.java @@ -11,7 +11,25 @@ */ public final class AutonomousDatabaseBackupsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseBackup_create.json + * x-ms-original-file: 2025-09-01/AutonomousDatabaseBackups_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: Create Autonomous Database Backup. - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void createAutonomousDatabaseBackupGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseBackups() + .define("1711644130") + .withExistingAutonomousDatabase("rgopenapi", "databasedb1") + .withProperties(new AutonomousDatabaseBackupProperties().withDisplayName("Nightly Backup") + .withRetentionPeriodInDays(365)) + .create(); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabaseBackup_create.json */ /** * Sample code: AutonomousDatabaseBackups_CreateOrUpdate. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsDeleteSamples.java index 0c4bf86d31ce..124feaacb3e9 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsDeleteSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AutonomousDatabaseBackupsDeleteSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseBackup_delete.json + * x-ms-original-file: 2025-09-01/autonomousDatabaseBackup_delete.json */ /** * Sample code: AutonomousDatabaseBackups_Delete. @@ -21,4 +21,18 @@ public final class AutonomousDatabaseBackupsDeleteSamples { manager.autonomousDatabaseBackups() .delete("rg000", "databasedb1", "1711644130", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseBackups_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: Delete Autonomous Database Backup. - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteAutonomousDatabaseBackupGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseBackups() + .delete("rgopenapi", "databasedb1", "1711644130", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsGetSamples.java index 4001bfcb3e12..1759a88d047d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsGetSamples.java @@ -9,7 +9,21 @@ */ public final class AutonomousDatabaseBackupsGetSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseBackup_get.json + * x-ms-original-file: 2025-09-01/AutonomousDatabaseBackups_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get Autonomous Database Backup. - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getAutonomousDatabaseBackupGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseBackups() + .getWithResponse("rgopenapi", "databasedb1", "1711644130", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabaseBackup_get.json */ /** * Sample code: AutonomousDatabaseBackups_Get. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsListByAutonomousDatabaseSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsListByAutonomousDatabaseSamples.java index a2dc1f9d5e5c..c882b013fc6b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsListByAutonomousDatabaseSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsListByAutonomousDatabaseSamples.java @@ -9,7 +9,7 @@ */ public final class AutonomousDatabaseBackupsListByAutonomousDatabaseSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseBackup_listByParent.json + * x-ms-original-file: 2025-09-01/autonomousDatabaseBackup_listByParent.json */ /** * Sample code: AutonomousDatabaseBackups_ListByAutonomousDatabase. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsUpdateSamples.java index f01035e10a39..89f6a506fbf6 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsUpdateSamples.java @@ -5,13 +5,32 @@ package com.azure.resourcemanager.oracledatabase.generated; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackup; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackupUpdateProperties; /** * Samples for AutonomousDatabaseBackups Update. */ public final class AutonomousDatabaseBackupsUpdateSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseBackup_patch.json + * x-ms-original-file: 2025-09-01/AutonomousDatabaseBackups_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Patch Autonomous Database Backup. - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchAutonomousDatabaseBackupGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + AutonomousDatabaseBackup resource = manager.autonomousDatabaseBackups() + .getWithResponse("rgopenapi", "databasedb1", "1711644130", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new AutonomousDatabaseBackupUpdateProperties().withRetentionPeriodInDays(90)) + .apply(); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabaseBackup_patch.json */ /** * Sample code: AutonomousDatabaseBackups_Update. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsGetSamples.java index df22b515e270..cc04bf5500f1 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsGetSamples.java @@ -9,7 +9,22 @@ */ public final class AutonomousDatabaseCharacterSetsGetSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseCharacterSet_get.json + * x-ms-original-file: 2025-09-01/AutonomousDatabaseCharacterSets_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get autonomous db character set - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getAutonomousDbCharacterSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseCharacterSets() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabaseCharacterSet_get.json */ /** * Sample code: AutonomousDatabaseCharacterSets_get. @@ -21,4 +36,19 @@ public final class AutonomousDatabaseCharacterSetsGetSamples { manager.autonomousDatabaseCharacterSets() .getWithResponse("eastus", "DATABASE", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseCharacterSets_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get autonomous db character set - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getAutonomousDbCharacterSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseCharacterSets() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsListByLocationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsListByLocationSamples.java index 3a6525806634..b09ff49524f0 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsListByLocationSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseCharacterSetsListByLocationSamples.java @@ -9,7 +9,33 @@ */ public final class AutonomousDatabaseCharacterSetsListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseCharacterSet_listByLocation.json + * x-ms-original-file: 2025-09-01/AutonomousDatabaseCharacterSets_ListByLocation_MaximumSet_Gen.json + */ + /** + * Sample code: List autonomous db character sets by location - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDbCharacterSetsByLocationGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseCharacterSets().listByLocation("eastus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseCharacterSets_ListByLocation_MinimumSet_Gen.json + */ + /** + * Sample code: List autonomous db character sets by location - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDbCharacterSetsByLocationGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseCharacterSets().listByLocation("eastus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabaseCharacterSet_listByLocation.json */ /** * Sample code: AutonomousDatabaseCharacterSets_listByLocation. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsGetSamples.java index c0d0f1b24680..9ac5009c579f 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsGetSamples.java @@ -9,7 +9,22 @@ */ public final class AutonomousDatabaseNationalCharacterSetsGetSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseNationalCharacterSet_get.json + * x-ms-original-file: 2025-09-01/AutonomousDatabaseNationalCharacterSets_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get autonomous db national character set - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getAutonomousDbNationalCharacterSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseNationalCharacterSets() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabaseNationalCharacterSet_get.json */ /** * Sample code: AutonomousDatabaseNationalCharacterSets_get. @@ -21,4 +36,19 @@ public static void autonomousDatabaseNationalCharacterSetsGet( manager.autonomousDatabaseNationalCharacterSets() .getWithResponse("eastus", "NATIONAL", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseNationalCharacterSets_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get autonomous db national character set - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getAutonomousDbNationalCharacterSetGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseNationalCharacterSets() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsListByLocationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsListByLocationSamples.java index 6069d1aef1bd..29e41917f80c 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsListByLocationSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseNationalCharacterSetsListByLocationSamples.java @@ -9,7 +9,7 @@ */ public final class AutonomousDatabaseNationalCharacterSetsListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseNationalCharacterSet_listByLocation.json + * x-ms-original-file: 2025-09-01/autonomousDatabaseNationalCharacterSet_listByLocation.json */ /** * Sample code: AutonomousDatabaseNationalCharacterSets_listByLocation. @@ -20,4 +20,30 @@ public static void autonomousDatabaseNationalCharacterSetsListByLocation( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.autonomousDatabaseNationalCharacterSets().listByLocation("eastus", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseNationalCharacterSets_ListByLocation_MaximumSet_Gen.json + */ + /** + * Sample code: List autonomous db national character sets by location - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDbNationalCharacterSetsByLocationGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseNationalCharacterSets().listByLocation("eastus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseNationalCharacterSets_ListByLocation_MinimumSet_Gen.json + */ + /** + * Sample code: List autonomous db national character sets by location - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDbNationalCharacterSetsByLocationGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseNationalCharacterSets().listByLocation("eastus", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsGetSamples.java index 67f8515a396e..41df31293f14 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AutonomousDatabaseVersionsGetSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseVersion_get.json + * x-ms-original-file: 2025-09-01/autonomousDatabaseVersion_get.json */ /** * Sample code: AutonomousDatabaseVersions_get. @@ -20,4 +20,34 @@ public final class AutonomousDatabaseVersionsGetSamples { autonomousDatabaseVersionsGet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.autonomousDatabaseVersions().getWithResponse("eastus", "18.4.0.0", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseVersions_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get an autonomous version - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getAnAutonomousVersionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseVersions() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseVersions_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get an autonomous version - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getAnAutonomousVersionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseVersions() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsListByLocationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsListByLocationSamples.java index 94f0d3f77a29..afedb9a78439 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsListByLocationSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseVersionsListByLocationSamples.java @@ -9,7 +9,7 @@ */ public final class AutonomousDatabaseVersionsListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseVersion_listByLocation.json + * x-ms-original-file: 2025-09-01/autonomousDatabaseVersion_listByLocation.json */ /** * Sample code: AutonomousDatabaseVersions_listByLocation. @@ -20,4 +20,30 @@ public static void autonomousDatabaseVersionsListByLocation( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.autonomousDatabaseVersions().listByLocation("eastus", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseVersions_ListByLocation_MinimumSet_Gen.json + */ + /** + * Sample code: List an autonomous versions by location - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAnAutonomousVersionsByLocationGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseVersions().listByLocation("eastus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabaseVersions_ListByLocation_MaximumSet_Gen.json + */ + /** + * Sample code: List an autonomous versions by location - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAnAutonomousVersionsByLocationGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabaseVersions().listByLocation("eastus", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesActionSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesActionSamples.java new file mode 100644 index 000000000000..f2043490caff --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesActionSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleAction; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleActionEnum; + +/** + * Samples for AutonomousDatabases Action. + */ +public final class AutonomousDatabasesActionSamples { + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Action_MaximumSet_Gen.json + */ + /** + * Sample code: AutonomousDatabases_Action_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + autonomousDatabasesActionMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .action("rgopenapi", "databasedb1", + new AutonomousDatabaseLifecycleAction().withAction(AutonomousDatabaseLifecycleActionEnum.START), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesChangeDisasterRecoveryConfigurationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesChangeDisasterRecoveryConfigurationSamples.java index 01ca9af7a6fa..35f7aa471182 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesChangeDisasterRecoveryConfigurationSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesChangeDisasterRecoveryConfigurationSamples.java @@ -6,13 +6,34 @@ import com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryConfigurationDetails; import com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryType; +import java.time.OffsetDateTime; /** * Samples for AutonomousDatabases ChangeDisasterRecoveryConfiguration. */ public final class AutonomousDatabasesChangeDisasterRecoveryConfigurationSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_changeDisasterRecoveryConfiguration.json + * x-ms-original-file: 2025-09-01/AutonomousDatabases_ChangeDisasterRecoveryConfiguration_MaximumSet_Gen.json + */ + /** + * Sample code: Perform ChangeDisasterRecoveryConfiguration action on Autonomous Database - generated by + * [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performChangeDisasterRecoveryConfigurationActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .changeDisasterRecoveryConfiguration("rgopenapi", "databasedb1", + new DisasterRecoveryConfigurationDetails().withDisasterRecoveryType(DisasterRecoveryType.ADG) + .withTimeSnapshotStandbyEnabledTill(OffsetDateTime.parse("2025-08-01T04:32:58.725Z")) + .withIsSnapshotStandby(true) + .withIsReplicateAutomaticBackups(true), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabase_changeDisasterRecoveryConfiguration.json */ /** * Sample code: AutonomousDatabases_ChangeDisasterRecoveryConfiguration. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesCreateOrUpdateSamples.java index 80f13bf891fd..13b058666982 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesCreateOrUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesCreateOrUpdateSamples.java @@ -5,11 +5,24 @@ package com.azure.resourcemanager.oracledatabase.generated; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCloneProperties; -import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCrossRegionDisasterRecoveryProperties; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseProperties; +import com.azure.resourcemanager.oracledatabase.models.AutonomousMaintenanceScheduleType; import com.azure.resourcemanager.oracledatabase.models.CloneType; import com.azure.resourcemanager.oracledatabase.models.ComputeModel; -import com.azure.resourcemanager.oracledatabase.models.DisasterRecoveryType; +import com.azure.resourcemanager.oracledatabase.models.CustomerContact; +import com.azure.resourcemanager.oracledatabase.models.DatabaseEditionType; +import com.azure.resourcemanager.oracledatabase.models.DayOfWeek; +import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; +import com.azure.resourcemanager.oracledatabase.models.LicenseModel; +import com.azure.resourcemanager.oracledatabase.models.LongTermBackUpScheduleDetails; +import com.azure.resourcemanager.oracledatabase.models.OpenModeType; +import com.azure.resourcemanager.oracledatabase.models.PermissionLevelType; +import com.azure.resourcemanager.oracledatabase.models.RepeatCadenceType; +import com.azure.resourcemanager.oracledatabase.models.RoleType; +import com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsType; +import com.azure.resourcemanager.oracledatabase.models.WorkloadType; +import java.time.OffsetDateTime; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -18,65 +31,101 @@ */ public final class AutonomousDatabasesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_create.json + * x-ms-original-file: 2025-09-01/AutonomousDatabases_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: AutonomousDatabases_CreateOrUpdate. + * Sample code: Create Autonomous Database - generated by [MaximumSet] rule. * * @param manager Entry point to OracleDatabaseManager. */ - public static void - autonomousDatabasesCreateOrUpdate(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + public static void createAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.autonomousDatabases() .define("databasedb1") .withRegion("eastus") - .withExistingResourceGroup("rg000") - .withTags(mapOf("tagK1", "tagV1")) + .withExistingResourceGroup("rgopenapi") + .withTags(mapOf()) .withProperties(new AutonomousDatabaseProperties().withAdminPassword("fakeTokenPlaceholder") + .withAutonomousMaintenanceScheduleType(AutonomousMaintenanceScheduleType.REGULAR) .withCharacterSet("AL32UTF8") .withComputeCount(2.0D) .withComputeModel(ComputeModel.ECPU) + .withCpuCoreCount(1) + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail( + "agyiqecugrloatgwpvmilmvutcnyjpxzhbilhhqfvqqblfgursqelzjjnwnmpfstitmcgkovzxnstiqqwjnhwwaufbnkebpqxlqwmfnmtlkgkoxcnjwcnfqbdtokhjalagxphkuiwxtxrzuipokiuczmuwoqoebkjvhytlhtxzshwsdoywluoggznuyuozqibiwdgwqbgnyogysdjpvlowmvuvq"))) .withDataStorageSizeInTbs(1) + .withDataStorageSizeInGbs(1024) .withDbVersion("18.4.0.0") + .withDbWorkload(WorkloadType.OLTP) .withDisplayName("example_autonomous_databasedb1") + .withIsAutoScalingEnabled(true) + .withIsAutoScalingForStorageEnabled(true) + .withPeerDbId( + "jghxnzevghltfytskymsxgyrugfedzchifwoezwbcwzzvpikoqqjcdiesbidbeqkmncodchlmktetjlgjgbaofwpwmpvckmusaunrzdrctypasgcabyjwxwzkodwugdpeprikvxygxyb") + .withIsLocalDataGuardEnabled(true) + .withIsMtlsConnectionRequired(true) + .withIsPreviewVersionWithServiceTermsAccepted(true) + .withLicenseModel(LicenseModel.BRING_YOUR_OWN_LICENSE) .withNcharacterSet("AL16UTF16") + .withScheduledOperationsList(Arrays + .asList(new ScheduledOperationsType().withDayOfWeek(new DayOfWeek().withName(DayOfWeekName.MONDAY)) + .withScheduledStartTime("lwwvkazgmfremfwhckfb") + .withScheduledStopTime("hjwagzxijpiaogulmnmbuqakpqxhkjvaypjqnvbvtjddc"))) + .withPrivateEndpointIp("rdlbhw") + .withPrivateEndpointLabel("worwqllbglhyakksevparfuaivc") .withSubnetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1") .withVnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1")) + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1") + .withDatabaseEdition(DatabaseEditionType.ENTERPRISE_EDITION) + .withAutonomousDatabaseId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1") + .withLongTermBackupSchedule( + new LongTermBackUpScheduleDetails().withRepeatCadence(RepeatCadenceType.ONE_TIME) + .withTimeOfBackup(OffsetDateTime.parse("2025-08-01T04:32:58.715Z")) + .withRetentionPeriodInDays(188) + .withIsDisabled(true)) + .withLocalAdgAutoFailoverMaxDataLossLimit(1759) + .withOpenMode(OpenModeType.READ_ONLY) + .withPermissionLevel(PermissionLevelType.RESTRICTED) + .withRole(RoleType.PRIMARY) + .withBackupRetentionPeriodInDays(1) + .withWhitelistedIps(Arrays.asList("1.1.1.1", "1.1.1.0/24", "1.1.2.25"))) .create(); } /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseCrossRegionPeer_create.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_create.json */ /** - * Sample code: AutonomousDatabases_CreateOrUpdate_CrossRegionPeer. + * Sample code: AutonomousDatabases_CreateOrUpdate. * * @param manager Entry point to OracleDatabaseManager. */ - public static void autonomousDatabasesCreateOrUpdateCrossRegionPeer( - com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + public static void + autonomousDatabasesCreateOrUpdate(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.autonomousDatabases() .define("databasedb1") .withRegion("eastus") .withExistingResourceGroup("rg000") .withTags(mapOf("tagK1", "tagV1")) - .withProperties(new AutonomousDatabaseCrossRegionDisasterRecoveryProperties().withSubnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1") + .withProperties(new AutonomousDatabaseProperties().withAdminPassword("fakeTokenPlaceholder") + .withCharacterSet("AL32UTF8") + .withComputeCount(2.0D) + .withComputeModel(ComputeModel.ECPU) + .withDataStorageSizeInTbs(1) + .withDbVersion("18.4.0.0") + .withDisplayName("example_autonomous_databasedb1") + .withNcharacterSet("AL16UTF16") + .withSubnetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1") .withVnetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1") - .withSourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1") - .withSourceLocation("germanywestcentral") - .withSourceOcid("ocid1..aaaaa") - .withRemoteDisasterRecoveryType(DisasterRecoveryType.ADG) - .withIsReplicateAutomaticBackups(false)) + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1")) .create(); } /* - * x-ms-original-file: 2025-03-01/autonomousDatabaseClone_create.json + * x-ms-original-file: 2025-09-01/autonomousDatabaseClone_create.json */ /** * Sample code: AutonomousDatabases_CreateOrUpdate_clone. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesDeleteSamples.java index 1187e28911f3..d91ef48449dd 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesDeleteSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesDeleteSamples.java @@ -9,7 +9,20 @@ */ public final class AutonomousDatabasesDeleteSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_delete.json + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: Delete Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases().delete("rgopenapi", "databasedb1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabase_delete.json */ /** * Sample code: AutonomousDatabases_delete. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesFailoverSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesFailoverSamples.java index f49b5d85d143..adbcbbc3ee00 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesFailoverSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesFailoverSamples.java @@ -11,7 +11,7 @@ */ public final class AutonomousDatabasesFailoverSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_failover.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_failover.json */ /** * Sample code: AutonomousDatabases_Failover. @@ -24,4 +24,22 @@ public final class AutonomousDatabasesFailoverSamples { .failover("rg000", "databasedb1", new PeerDbDetails().withPeerDbId("peerDbId"), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Failover_MaximumSet_Gen.json + */ + /** + * Sample code: Perform failover action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performFailoverActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .failover("rgopenapi", "databasedb1*", + new PeerDbDetails().withPeerDbId("peerDbId") + .withPeerDbOcid("yozpqyefqhirkybmzwgoidyl") + .withPeerDbLocation("cxlzbzbfzi"), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesGenerateWalletSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesGenerateWalletSamples.java index b382236d6c33..d01df64de7da 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesGenerateWalletSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesGenerateWalletSamples.java @@ -12,7 +12,25 @@ */ public final class AutonomousDatabasesGenerateWalletSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_generateWallet.json + * x-ms-original-file: 2025-09-01/AutonomousDatabases_GenerateWallet_MaximumSet_Gen.json + */ + /** + * Sample code: Generate wallet action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void generateWalletActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .generateWalletWithResponse("rgopenapi", "databasedb1", + new GenerateAutonomousDatabaseWalletDetails().withGenerateType(GenerateType.SINGLE) + .withIsRegional(true) + .withPassword("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabase_generateWallet.json */ /** * Sample code: AutonomousDatabases_generateWallet. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesGetByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesGetByResourceGroupSamples.java index 54322d118640..72f7b08c4f47 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesGetByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesGetByResourceGroupSamples.java @@ -9,7 +9,21 @@ */ public final class AutonomousDatabasesGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_get.json + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .getByResourceGroupWithResponse("rgopenapi", "database1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabase_get.json */ /** * Sample code: AutonomousDatabases_Get. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesListByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesListByResourceGroupSamples.java index 1d068a13060a..0d7511b8ad2f 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesListByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AutonomousDatabasesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_listByResourceGroup.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_listByResourceGroup.json */ /** * Sample code: AutonomousDatabases_listByResourceGroup. @@ -20,4 +20,30 @@ public final class AutonomousDatabasesListByResourceGroupSamples { autonomousDatabasesListByResourceGroup(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.autonomousDatabases().listByResourceGroup("rg000", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: List Autonomous Database by resource group - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDatabaseByResourceGroupGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: List Autonomous Database by resource group - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDatabaseByResourceGroupGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesListSamples.java index 20e7f91d66b8..21fef6a0bf27 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesListSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesListSamples.java @@ -9,7 +9,7 @@ */ public final class AutonomousDatabasesListSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_listBySubscription.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_listBySubscription.json */ /** * Sample code: AutonomousDatabases_listBySubscription. @@ -20,4 +20,30 @@ public final class AutonomousDatabasesListSamples { autonomousDatabasesListBySubscription(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.autonomousDatabases().list(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: List Autonomous Database by subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDatabaseBySubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: List Autonomous Database by subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listAutonomousDatabaseBySubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases().list(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesRestoreSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesRestoreSamples.java index 03015ab90214..5bf115d40b48 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesRestoreSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesRestoreSamples.java @@ -12,7 +12,7 @@ */ public final class AutonomousDatabasesRestoreSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_restore.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_restore.json */ /** * Sample code: AutonomousDatabases_Restore. @@ -26,4 +26,20 @@ public final class AutonomousDatabasesRestoreSamples { new RestoreAutonomousDatabaseDetails().withTimestamp(OffsetDateTime.parse("2024-04-23T00:00:00.000Z")), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Restore_MaximumSet_Gen.json + */ + /** + * Sample code: Perform restore action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performRestoreActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .restore("rgopenapi", "database1", + new RestoreAutonomousDatabaseDetails().withTimestamp(OffsetDateTime.parse("2024-04-23T00:00:00.000Z")), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesShrinkSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesShrinkSamples.java new file mode 100644 index 000000000000..0f807bec17a9 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesShrinkSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for AutonomousDatabases Shrink. + */ +public final class AutonomousDatabasesShrinkSamples { + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Shrink_MaximumSet_Gen.json + */ + /** + * Sample code: Perform shrink action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performShrinkActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases().shrink("rgopenapi", "database1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesSwitchoverSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesSwitchoverSamples.java index 7272c2ed6388..fa289d8e16b7 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesSwitchoverSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesSwitchoverSamples.java @@ -11,7 +11,25 @@ */ public final class AutonomousDatabasesSwitchoverSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_switchover.json + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Switchover_MaximumSet_Gen.json + */ + /** + * Sample code: Perform switchover action on Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performSwitchoverActionOnAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.autonomousDatabases() + .switchover("rgopenapi", "databasedb1", + new PeerDbDetails().withPeerDbId("peerDbId") + .withPeerDbOcid("yozpqyefqhirkybmzwgoidyl") + .withPeerDbLocation("cxlzbzbfzi"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/autonomousDatabase_switchover.json */ /** * Sample code: AutonomousDatabases_Switchover. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesUpdateSamples.java index 71acb7c404d5..4c083191cbc1 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabasesUpdateSamples.java @@ -5,13 +5,30 @@ package com.azure.resourcemanager.oracledatabase.generated; import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabase; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseUpdateProperties; +import com.azure.resourcemanager.oracledatabase.models.AutonomousMaintenanceScheduleType; +import com.azure.resourcemanager.oracledatabase.models.CustomerContact; +import com.azure.resourcemanager.oracledatabase.models.DatabaseEditionType; +import com.azure.resourcemanager.oracledatabase.models.DayOfWeekName; +import com.azure.resourcemanager.oracledatabase.models.DayOfWeekUpdate; +import com.azure.resourcemanager.oracledatabase.models.LicenseModel; +import com.azure.resourcemanager.oracledatabase.models.LongTermBackUpScheduleDetails; +import com.azure.resourcemanager.oracledatabase.models.OpenModeType; +import com.azure.resourcemanager.oracledatabase.models.PermissionLevelType; +import com.azure.resourcemanager.oracledatabase.models.RepeatCadenceType; +import com.azure.resourcemanager.oracledatabase.models.RoleType; +import com.azure.resourcemanager.oracledatabase.models.ScheduledOperationsTypeUpdate; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; /** * Samples for AutonomousDatabases Update. */ public final class AutonomousDatabasesUpdateSamples { /* - * x-ms-original-file: 2025-03-01/autonomousDatabase_patch.json + * x-ms-original-file: 2025-09-01/autonomousDatabase_patch.json */ /** * Sample code: AutonomousDatabases_update. @@ -25,4 +42,65 @@ public final class AutonomousDatabasesUpdateSamples { .getValue(); resource.update().apply(); } + + /* + * x-ms-original-file: 2025-09-01/AutonomousDatabases_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Patch Autonomous Database - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchAutonomousDatabaseGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + AutonomousDatabase resource = manager.autonomousDatabases() + .getByResourceGroupWithResponse("rgopenapi", "databasedb1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key9827", "fakeTokenPlaceholder")) + .withProperties(new AutonomousDatabaseUpdateProperties().withAdminPassword("fakeTokenPlaceholder") + .withAutonomousMaintenanceScheduleType(AutonomousMaintenanceScheduleType.EARLY) + .withComputeCount(56.1D) + .withCpuCoreCount(45) + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("dummyemail@microsoft.com"))) + .withDataStorageSizeInTbs(133) + .withDataStorageSizeInGbs(175271) + .withDisplayName("lrdrjpyyvufnxdzpwvlkmfukpstrjftdxcejcxtnqhxqbhvtzeiokllnspotsqeggddxkjjtf") + .withIsAutoScalingEnabled(true) + .withIsAutoScalingForStorageEnabled(true) + .withPeerDbId("qmpfwtvpfvbgmulethqznsyyjlpxmyfqfanrymzqsgraavtmlqqbexpzguyqybngoupbshlzpxv") + .withIsLocalDataGuardEnabled(true) + .withIsMtlsConnectionRequired(true) + .withLicenseModel(LicenseModel.LICENSE_INCLUDED) + .withScheduledOperationsList(Arrays.asList(new ScheduledOperationsTypeUpdate() + .withDayOfWeek(new DayOfWeekUpdate().withName(DayOfWeekName.MONDAY)) + .withScheduledStartTime("lwwvkazgmfremfwhckfb") + .withScheduledStopTime("hjwagzxijpiaogulmnmbuqakpqxhkjvaypjqnvbvtjddc"))) + .withDatabaseEdition(DatabaseEditionType.STANDARD_EDITION) + .withLongTermBackupSchedule( + new LongTermBackUpScheduleDetails().withRepeatCadence(RepeatCadenceType.ONE_TIME) + .withTimeOfBackup(OffsetDateTime.parse("2025-08-01T04:32:58.715Z")) + .withRetentionPeriodInDays(188) + .withIsDisabled(true)) + .withLocalAdgAutoFailoverMaxDataLossLimit(212) + .withOpenMode(OpenModeType.READ_ONLY) + .withPermissionLevel(PermissionLevelType.RESTRICTED) + .withRole(RoleType.PRIMARY) + .withBackupRetentionPeriodInDays(12) + .withWhitelistedIps(Arrays.asList( + "kfierlppwurtqrhfxwgfgrnqtmvraignzwsddwmpdijeveuevuoejfmbjvpnlrmmdflilxcwkkzvdofctsdjfxrrrwctihhnchtrouauesqbmlcqhzwnppnhrtitecenlfyshassvajukbwxudhlwixkvkgsessvshcwmleoqujeemwenhwlsccbcjnnviugzgylsxkssalqoicatcvkahogdvweymhdxboyqwhaxuzlmrdbvgbnnetobkbwygcsflzanwknlybvvzgjzjirpfrksbxwgllgfxwdflcisvxpkjecpgdaxccqkzxofedkrawvhzeabmunpykwd"))) + .apply(); + } + + // 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/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresAddStorageCapacitySamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresAddStorageCapacitySamples.java index b93fe000c36f..ca20a2c1fabf 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresAddStorageCapacitySamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresAddStorageCapacitySamples.java @@ -9,7 +9,37 @@ */ public final class CloudExadataInfrastructuresAddStorageCapacitySamples { /* - * x-ms-original-file: 2025-03-01/exaInfra_addStorageCapacity.json + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_AddStorageCapacity_MaximumSet_Gen.json + */ + /** + * Sample code: Perform add storage capacity on exadata infra - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performAddStorageCapacityOnExadataInfraGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .addStorageCapacity("rgopenapi", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_AddStorageCapacity_MinimumSet_Gen.json + */ + /** + * Sample code: Perform add storage capacity on exadata infra - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void performAddStorageCapacityOnExadataInfraGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .addStorageCapacity("rgopenapi", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/exaInfra_addStorageCapacity.json */ /** * Sample code: CloudExadataInfrastructures_addStorageCapacity. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresConfigureExascaleSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresConfigureExascaleSamples.java new file mode 100644 index 000000000000..c978314a0daa --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresConfigureExascaleSamples.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.resourcemanager.oracledatabase.models.ConfigureExascaleCloudExadataInfrastructureDetails; + +/** + * Samples for CloudExadataInfrastructures ConfigureExascale. + */ +public final class CloudExadataInfrastructuresConfigureExascaleSamples { + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_ConfigureExascale_MaximumSet_Gen.json + */ + /** + * Sample code: CloudExadataInfrastructures_ConfigureExascale_MaximumSet_Gen - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void cloudExadataInfrastructuresConfigureExascaleMaximumSetGenGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .configureExascale("rgopenapi", "Replace this value with a string matching RegExp .*", + new ConfigureExascaleCloudExadataInfrastructureDetails().withTotalStorageInGbs(19), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_ConfigureExascale_MinimumSet_Gen.json + */ + /** + * Sample code: CloudExadataInfrastructures_ConfigureExascale_MaximumSet_Gen - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void cloudExadataInfrastructuresConfigureExascaleMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .configureExascale("rgopenapi", "Replace this value with a string matching RegExp .*", + new ConfigureExascaleCloudExadataInfrastructureDetails().withTotalStorageInGbs(19), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresCreateOrUpdateSamples.java index d0cd09837d9f..b496ba167483 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresCreateOrUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresCreateOrUpdateSamples.java @@ -5,6 +5,14 @@ package com.azure.resourcemanager.oracledatabase.generated; 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; @@ -14,7 +22,7 @@ */ public final class CloudExadataInfrastructuresCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-03-01/exaInfra_create.json + * x-ms-original-file: 2025-09-01/exaInfra_create.json */ /** * Sample code: CloudExadataInfrastructures_createOrUpdate. @@ -36,6 +44,62 @@ public static void cloudExadataInfrastructuresCreateOrUpdate( .create(); } + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: Create Exadata Infrastructure - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void createExadataInfrastructureGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .define("Replace this value with a string matching RegExp .*") + .withRegion("eastus") + .withExistingResourceGroup("rgopenapi") + .withZones(Arrays.asList("1")) + .withTags(mapOf()) + .withProperties(new CloudExadataInfrastructureProperties().withComputeCount(100) + .withStorageCount(10) + .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) + .withMonths(Arrays.asList(new Month().withName(MonthName.JANUARY))) + .withWeeksOfMonth(Arrays.asList(0)) + .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.MONDAY))) + .withHoursOfDay(Arrays.asList(0)) + .withLeadTimeInWeeks(10) + .withPatchingMode(PatchingMode.ROLLING) + .withCustomActionTimeoutInMins(120) + .withIsCustomActionTimeoutEnabled(true) + .withIsMonthlyPatchingEnabled(true)) + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("noreply@oracle.com"))) + .withShape("EXADATA.X9M") + .withDisplayName("infra 1") + .withDatabaseServerType( + "ghnehafjgxkfpirwkmrgzphwhnftkktamoawnawztevnhbszjgkyvqvtxrnmbjqvfsthaptqbjtozuwdswkgrhmifljzjruvedeshwfdyrbzgapyyhkgxrulpttbarqsbgzoigggrsdjjlfmazpinyzmtcpugkgaiitvccklieodrscikvitdfdwczpko") + .withStorageServerType( + "ikmrpsmpkbrnxpaaemmljvtvyxbtcjijsowrpislrwkgjhucszljohrnvfotgbiknehciipnkfcqkrqseqz")) + .create(); + } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_CreateOrUpdate_MinimumSet_Gen.json + */ + /** + * Sample code: Create Exadata Infrastructure - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void createExadataInfrastructureGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .define("Replace this value with a string matching RegExp .*") + .withRegion("eastus") + .withExistingResourceGroup("rgopenapi") + .withZones(Arrays.asList("1")) + .create(); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresDeleteSamples.java index 2e220aedcb89..d38e5f471017 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresDeleteSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class CloudExadataInfrastructuresDeleteSamples { /* - * x-ms-original-file: 2025-03-01/exaInfra_delete.json + * x-ms-original-file: 2025-09-01/exaInfra_delete.json */ /** * Sample code: CloudExadataInfrastructures_delete. @@ -20,4 +20,34 @@ public final class CloudExadataInfrastructuresDeleteSamples { cloudExadataInfrastructuresDelete(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.cloudExadataInfrastructures().delete("rg000", "infra1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: Delete Exadata Infrastructure - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteExadataInfrastructureGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .delete("rgopenapi", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: Delete Exadata Infrastructure - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteExadataInfrastructureGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .delete("rgopenapi", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresGetByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresGetByResourceGroupSamples.java index fb0bc74b1f3b..adfa8e13deb4 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresGetByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresGetByResourceGroupSamples.java @@ -9,7 +9,22 @@ */ public final class CloudExadataInfrastructuresGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/exaInfra_get.json + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get Exadata Infrastructure - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getExadataInfrastructureGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .getByResourceGroupWithResponse("rgopenapi", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/exaInfra_get.json */ /** * Sample code: CloudExadataInfrastructures_get. @@ -21,4 +36,19 @@ public final class CloudExadataInfrastructuresGetByResourceGroupSamples { manager.cloudExadataInfrastructures() .getByResourceGroupWithResponse("rg000", "infra1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get Exadata Infrastructure - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getExadataInfrastructureGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures() + .getByResourceGroupWithResponse("rgopenapi", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListByResourceGroupSamples.java index 8bf8757c5fda..f8f606efd898 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListByResourceGroupSamples.java @@ -9,7 +9,20 @@ */ public final class CloudExadataInfrastructuresListByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/exaInfra_listByResourceGroup.json + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: List Exadata Infrastructure by resource group - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listExadataInfrastructureByResourceGroupGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/exaInfra_listByResourceGroup.json */ /** * Sample code: CloudExadataInfrastructures_listByResourceGroup. @@ -20,4 +33,17 @@ public static void cloudExadataInfrastructuresListByResourceGroup( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.cloudExadataInfrastructures().listByResourceGroup("rg000", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: List Exadata Infrastructure by resource group - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listExadataInfrastructureByResourceGroupGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListSamples.java index aaef84517279..52313b9a6068 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresListSamples.java @@ -9,7 +9,7 @@ */ public final class CloudExadataInfrastructuresListSamples { /* - * x-ms-original-file: 2025-03-01/exaInfra_listBySubscription.json + * x-ms-original-file: 2025-09-01/exaInfra_listBySubscription.json */ /** * Sample code: CloudExadataInfrastructures_listBySubscription. @@ -20,4 +20,30 @@ public static void cloudExadataInfrastructuresListBySubscription( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.cloudExadataInfrastructures().list(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: List Exadata Infrastructure by subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listExadataInfrastructureBySubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: List Exadata Infrastructure by subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listExadataInfrastructureBySubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudExadataInfrastructures().list(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresUpdateSamples.java index 06615ef6fcf3..4c9e1b373993 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresUpdateSamples.java @@ -5,13 +5,74 @@ package com.azure.resourcemanager.oracledatabase.generated; import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructure; +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; /** * Samples for CloudExadataInfrastructures Update. */ public final class CloudExadataInfrastructuresUpdateSamples { /* - * x-ms-original-file: 2025-03-01/exaInfra_patch.json + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Patch Exadata Infrastructure - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchExadataInfrastructureGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + CloudExadataInfrastructure resource = manager.cloudExadataInfrastructures() + .getByResourceGroupWithResponse("rgopenapi", "cloudexaInfra1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key831", "fakeTokenPlaceholder")) + .withZones(Arrays.asList("wl")) + .withProperties(new CloudExadataInfrastructureUpdateProperties().withComputeCount(9) + .withStorageCount(4) + .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) + .withMonths(Arrays.asList(new Month().withName(MonthName.JANUARY))) + .withWeeksOfMonth(Arrays.asList(0)) + .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.MONDAY))) + .withHoursOfDay(Arrays.asList(0)) + .withLeadTimeInWeeks(10) + .withPatchingMode(PatchingMode.ROLLING) + .withCustomActionTimeoutInMins(120) + .withIsCustomActionTimeoutEnabled(true) + .withIsMonthlyPatchingEnabled(true)) + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("dummyemail@microsoft.com"))) + .withDisplayName("displayName")) + .apply(); + } + + /* + * x-ms-original-file: 2025-09-01/CloudExadataInfrastructures_Update_MinimumSet_Gen.json + */ + /** + * Sample code: Patch Exadata Infrastructure - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchExadataInfrastructureGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + CloudExadataInfrastructure resource = manager.cloudExadataInfrastructures() + .getByResourceGroupWithResponse("rgopenapi", "cloudexainfra1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + + /* + * x-ms-original-file: 2025-09-01/exaInfra_patch.json */ /** * Sample code: CloudExadataInfrastructures_update. @@ -25,4 +86,16 @@ public final class CloudExadataInfrastructuresUpdateSamples { .getValue(); resource.update().apply(); } + + // 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/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersAddVmsSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersAddVmsSamples.java index 15954e1ceaba..5d7b5ddf69c5 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersAddVmsSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersAddVmsSamples.java @@ -12,7 +12,23 @@ */ public final class CloudVmClustersAddVmsSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_addVms.json + * x-ms-original-file: 2025-09-01/CloudVmClusters_AddVms_MaximumSet_Gen.json + */ + /** + * Sample code: Add VMs to VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void addVMsToVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .addVms("rgopenapi", "cloudvmcluster1", + new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/vmClusters_addVms.json */ /** * Sample code: CloudVmClusters_addVms. @@ -25,4 +41,20 @@ public static void cloudVmClustersAddVms(com.azure.resourcemanager.oracledatabas new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_AddVms_MinimumSet_Gen.json + */ + /** + * Sample code: Add VMs to VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void addVMsToVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .addVms("rgopenapi", "cloudvmcluster1", + new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersCreateOrUpdateSamples.java index fd9e8047a996..a40e6548243b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersCreateOrUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersCreateOrUpdateSamples.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.oracledatabase.models.CloudVmClusterProperties; import com.azure.resourcemanager.oracledatabase.models.DataCollectionOptions; +import com.azure.resourcemanager.oracledatabase.models.FileSystemConfigurationDetails; import com.azure.resourcemanager.oracledatabase.models.LicenseModel; import com.azure.resourcemanager.oracledatabase.models.NsgCidr; import com.azure.resourcemanager.oracledatabase.models.PortRange; @@ -18,7 +19,82 @@ */ public final class CloudVmClustersCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_create.json + * x-ms-original-file: 2025-09-01/CloudVmClusters_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: Create VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void createVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .define("cloudvmcluster1") + .withRegion("eastus") + .withExistingResourceGroup("rgopenapi") + .withTags(mapOf()) + .withProperties(new CloudVmClusterProperties().withStorageSizeInGbs(1000) + .withFileSystemConfigurationDetails(Arrays.asList( + new FileSystemConfigurationDetails().withMountPoint("gukfhjlmkqfqdgb").withFileSystemSizeGb(20))) + .withDataStorageSizeInTbs(1000.0D) + .withDbNodeStorageSizeInGbs(1000) + .withMemorySizeInGbs(1000) + .withTimeZone("UTC") + .withZoneId("ocid1..aaaa") + .withHostname("hostname1") + .withDomain("domain1") + .withCpuCoreCount(2) + .withOcpuCount(3.0D) + .withClusterName("cluster1") + .withDataStoragePercentage(100) + .withIsLocalBackupEnabled(true) + .withCloudExadataInfrastructureId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1") + .withIsSparseDiskgroupEnabled(true) + .withSystemVersion("v1") + .withSshPublicKeys(Arrays.asList("ssh-key 1")) + .withLicenseModel(LicenseModel.LICENSE_INCLUDED) + .withScanListenerPortTcp(1050) + .withScanListenerPortTcpSsl(1025) + .withVnetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1") + .withGiVersion("19.0.0.0") + .withSubnetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1") + .withBackupSubnetCidr("172.17.5.0/24") + .withNsgCidrs(Arrays.asList( + new NsgCidr().withSource("10.0.0.0/16") + .withDestinationPortRange(new PortRange().withMin(1520).withMax(1522)), + new NsgCidr().withSource("10.10.0.0/24") + .withDestinationPortRange(new PortRange().withMin(9434).withMax(11996)))) + .withDataCollectionOptions(new DataCollectionOptions().withIsDiagnosticsEventsEnabled(true) + .withIsHealthMonitoringEnabled(true) + .withIsIncidentLogsEnabled(true)) + .withDisplayName("cluster 1") + .withComputeNodes(Arrays.asList("ggficcnjgibtuqgdbbrzyckmtlhddecfcvjurboqfufqchgpvwmlcdcyyxnjivpkvsvr")) + .withDbServers(Arrays.asList("ocid1..aaaa"))) + .create(); + } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_CreateOrUpdate_MinimumSet_Gen.json + */ + /** + * Sample code: Create VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void createVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .define("cloudvmcluster1") + .withRegion("eastus") + .withExistingResourceGroup("rgopenapi") + .create(); + } + + /* + * x-ms-original-file: 2025-09-01/vmClusters_create.json */ /** * Sample code: CloudVmClusters_createOrUpdate. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersDeleteSamples.java index c7b5b82c8eed..c13986368a77 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersDeleteSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersDeleteSamples.java @@ -9,7 +9,33 @@ */ public final class CloudVmClustersDeleteSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_delete.json + * x-ms-original-file: 2025-09-01/CloudVmClusters_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: Delete VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters().delete("rgopenapi", "cloudvmcluster1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: Delete VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters().delete("rgopenapi", "cloudvmcluster1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/vmClusters_delete.json */ /** * Sample code: CloudVmClusters_delete. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersGetByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersGetByResourceGroupSamples.java index 89d226ced3c9..c9f07107e0d9 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersGetByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersGetByResourceGroupSamples.java @@ -9,7 +9,21 @@ */ public final class CloudVmClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_get.json + * x-ms-original-file: 2025-09-01/CloudVmClusters_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + getVMClusterGeneratedByMinimumSetRule(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .getByResourceGroupWithResponse("rgopenapi", "cloudvmcluster1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/vmClusters_get.json */ /** * Sample code: CloudVmClusters_get. @@ -19,4 +33,18 @@ public final class CloudVmClustersGetByResourceGroupSamples { public static void cloudVmClustersGet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.cloudVmClusters().getByResourceGroupWithResponse("rg000", "cluster1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + getVMClusterGeneratedByMaximumSetRule(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .getByResourceGroupWithResponse("rgopenapi", "cloudvmcluster1", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListByResourceGroupSamples.java index aa87f2a11d4a..8032d2a8ec7a 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListByResourceGroupSamples.java @@ -9,7 +9,20 @@ */ public final class CloudVmClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_listByResourceGroup.json + * x-ms-original-file: 2025-09-01/CloudVmClusters_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: List VM Clusters by resource group - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listVMClustersByResourceGroupGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/vmClusters_listByResourceGroup.json */ /** * Sample code: CloudVmClusters_listByResourceGroup. @@ -20,4 +33,17 @@ public final class CloudVmClustersListByResourceGroupSamples { cloudVmClustersListByResourceGroup(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.cloudVmClusters().listByResourceGroup("rg000", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: List VM Clusters by resource group - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listVMClustersByResourceGroupGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListPrivateIpAddressesSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListPrivateIpAddressesSamples.java index ae938a1915ca..6a08773671d3 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListPrivateIpAddressesSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListPrivateIpAddressesSamples.java @@ -11,7 +11,7 @@ */ public final class CloudVmClustersListPrivateIpAddressesSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_listPrivateIpAddresses.json + * x-ms-original-file: 2025-09-01/vmClusters_listPrivateIpAddresses.json */ /** * Sample code: CloudVmClusters_listPrivateIpAddresses. @@ -25,4 +25,36 @@ public final class CloudVmClustersListPrivateIpAddressesSamples { new PrivateIpAddressesFilter().withSubnetId("ocid1..aaaaaa").withVnicId("ocid1..aaaaa"), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_ListPrivateIpAddresses_MinimumSet_Gen.json + */ + /** + * Sample code: List Private IP Addresses for VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listPrivateIPAddressesForVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .listPrivateIpAddressesWithResponse("rgopenapi", "cloudvmcluster1", + new PrivateIpAddressesFilter().withSubnetId("ocid1..aaaaaa").withVnicId("ocid1..aaaaa"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_ListPrivateIpAddresses_MaximumSet_Gen.json + */ + /** + * Sample code: List Private IP Addresses for VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listPrivateIPAddressesForVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .listPrivateIpAddressesWithResponse("rgopenapi", "cloudvmcluster1", + new PrivateIpAddressesFilter().withSubnetId("ocid1..aaaaaa").withVnicId("ocid1..aaaaa"), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListSamples.java index 62c615da253e..78388cb71f9d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersListSamples.java @@ -9,7 +9,7 @@ */ public final class CloudVmClustersListSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_listBySubscription.json + * x-ms-original-file: 2025-09-01/vmClusters_listBySubscription.json */ /** * Sample code: CloudVmClusters_listBySubscription. @@ -20,4 +20,30 @@ public final class CloudVmClustersListSamples { cloudVmClustersListBySubscription(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.cloudVmClusters().list(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: List VM Clusters by subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listVMClustersBySubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: List VM Clusters by subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listVMClustersBySubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters().list(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersRemoveVmsSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersRemoveVmsSamples.java index bf352ada78a5..a6bcc712f2ea 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersRemoveVmsSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersRemoveVmsSamples.java @@ -12,7 +12,39 @@ */ public final class CloudVmClustersRemoveVmsSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_removeVms.json + * x-ms-original-file: 2025-09-01/CloudVmClusters_RemoveVms_MaximumSet_Gen.json + */ + /** + * Sample code: Remove VMs from VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void removeVMsFromVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .removeVms("rgopenapi", "cloudvmcluster1", + new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_RemoveVms_MinimumSet_Gen.json + */ + /** + * Sample code: Remove VMs from VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void removeVMsFromVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.cloudVmClusters() + .removeVms("rgopenapi", "cloudvmcluster1", + new AddRemoveDbNode().withDbServers(Arrays.asList("ocid1..aaaa", "ocid1..aaaaaa")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/vmClusters_removeVms.json */ /** * Sample code: CloudVmClusters_removeVms. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersUpdateSamples.java index 51aebeb93fc2..705c0ddb0d9d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/CloudVmClustersUpdateSamples.java @@ -5,13 +5,54 @@ package com.azure.resourcemanager.oracledatabase.generated; import com.azure.resourcemanager.oracledatabase.models.CloudVmCluster; +import com.azure.resourcemanager.oracledatabase.models.CloudVmClusterUpdateProperties; +import com.azure.resourcemanager.oracledatabase.models.DataCollectionOptions; +import com.azure.resourcemanager.oracledatabase.models.FileSystemConfigurationDetails; +import com.azure.resourcemanager.oracledatabase.models.LicenseModel; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; /** * Samples for CloudVmClusters Update. */ public final class CloudVmClustersUpdateSamples { /* - * x-ms-original-file: 2025-03-01/vmClusters_patch.json + * x-ms-original-file: 2025-09-01/CloudVmClusters_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Patch VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + CloudVmCluster resource = manager.cloudVmClusters() + .getByResourceGroupWithResponse("rgopenapi", "cloudvmcluster1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key4668", "fakeTokenPlaceholder")) + .withProperties(new CloudVmClusterUpdateProperties().withStorageSizeInGbs(17) + .withFileSystemConfigurationDetails(Arrays.asList( + new FileSystemConfigurationDetails().withMountPoint("gukfhjlmkqfqdgb").withFileSystemSizeGb(20))) + .withDataStorageSizeInTbs(29.0D) + .withDbNodeStorageSizeInGbs(24) + .withMemorySizeInGbs(9) + .withCpuCoreCount(18) + .withOcpuCount(7.0D) + .withSshPublicKeys(Arrays.asList("hazhcc")) + .withLicenseModel(LicenseModel.LICENSE_INCLUDED) + .withDataCollectionOptions(new DataCollectionOptions().withIsDiagnosticsEventsEnabled(true) + .withIsHealthMonitoringEnabled(true) + .withIsIncidentLogsEnabled(true)) + .withDisplayName("hvdyewkjqjxwzinkqnnsqxbmccteohzumz") + .withComputeNodes( + Arrays.asList("ggficcnjgibtuqgdbbrzyckmtlhddecfcvjurboqfufqchgpvwmlcdcyyxnjivpkvsvr"))) + .apply(); + } + + /* + * x-ms-original-file: 2025-09-01/vmClusters_patch.json */ /** * Sample code: CloudVmClusters_update. @@ -24,4 +65,32 @@ public static void cloudVmClustersUpdate(com.azure.resourcemanager.oracledatabas .getValue(); resource.update().apply(); } + + /* + * x-ms-original-file: 2025-09-01/CloudVmClusters_Update_MinimumSet_Gen.json + */ + /** + * Sample code: Patch VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + CloudVmCluster resource = manager.cloudVmClusters() + .getByResourceGroupWithResponse("rgopenapi", "cloudvmcluster1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + + // 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/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesActionSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesActionSamples.java index 06e67b7f72d6..b0b0866124c0 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesActionSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesActionSamples.java @@ -12,7 +12,22 @@ */ public final class DbNodesActionSamples { /* - * x-ms-original-file: 2025-03-01/dbNodes_action.json + * x-ms-original-file: 2025-09-01/DbNodes_Action_MinimumSet_Gen.json + */ + /** + * Sample code: VM actions on DbNodes of VM Cluster - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void vmActionsOnDbNodesOfVMClusterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbNodes() + .action("rgopenapi", "cloudvmcluster1", "adfedefeewwevkieviect", + new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dbNodes_action.json */ /** * Sample code: DbNodes_Action. @@ -24,4 +39,19 @@ public static void dbNodesAction(com.azure.resourcemanager.oracledatabase.Oracle .action("rg000", "cluster1", "ocid1....aaaaaa", new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/DbNodes_Action_MaximumSet_Gen.json + */ + /** + * Sample code: VM actions on DbNodes of VM Cluster - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void vmActionsOnDbNodesOfVMClusterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbNodes() + .action("rgopenapi", "cloudvmcluster1", "abciderewdidsereq", + new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesGetSamples.java index 17dafc53aa0d..29fbd2302962 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesGetSamples.java @@ -9,7 +9,22 @@ */ public final class DbNodesGetSamples { /* - * x-ms-original-file: 2025-03-01/dbNodes_get.json + * x-ms-original-file: 2025-09-01/DbNodes_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get DbNode - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + getDbNodeGeneratedByMinimumSetRule(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbNodes() + .getWithResponse("rgopenapi", "Replace this value with a string matching RegExp .*", + "Replace this value with a string matching RegExp .*", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dbNodes_get.json */ /** * Sample code: DbNodes_get. @@ -19,4 +34,18 @@ public final class DbNodesGetSamples { public static void dbNodesGet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.dbNodes().getWithResponse("rg000", "cluster1", "ocid1....aaaaaa", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/DbNodes_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get DbNode - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + getDbNodeGeneratedByMaximumSetRule(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbNodes() + .getWithResponse("rgopenapi", "cloudvmcluster1", "weraeefrwlkjejfiepwcd", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesListByCloudVmClusterSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesListByCloudVmClusterSamples.java index 0341a9569218..3b9bb9b84ccc 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesListByCloudVmClusterSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbNodesListByCloudVmClusterSamples.java @@ -9,7 +9,7 @@ */ public final class DbNodesListByCloudVmClusterSamples { /* - * x-ms-original-file: 2025-03-01/dbNodes_listByParent.json + * x-ms-original-file: 2025-09-01/dbNodes_listByParent.json */ /** * Sample code: DbNodes_listByCloudVmCluster. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbServersGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbServersGetSamples.java index 4e1f2f435e24..6fa13c47b43f 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbServersGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbServersGetSamples.java @@ -9,7 +9,22 @@ */ public final class DbServersGetSamples { /* - * x-ms-original-file: 2025-03-01/dbServers_get.json + * x-ms-original-file: 2025-09-01/DbServers_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get DbServer by parent - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getDbServerByParentGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbServers() + .getWithResponse("rgopenapi", "Replace this value with a string matching RegExp .*", + "Replace this value with a string matching RegExp .*", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dbServers_get.json */ /** * Sample code: DbServers_get. @@ -19,4 +34,19 @@ public final class DbServersGetSamples { public static void dbServersGet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.dbServers().getWithResponse("rg000", "infra1", "ocid1....aaaaaa", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/DbServers_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get DbServer by parent - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getDbServerByParentGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbServers() + .getWithResponse("rgopenapi", "Replace this value with a string matching RegExp .*", + "Replace this value with a string matching RegExp .*", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbServersListByCloudExadataInfrastructureSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbServersListByCloudExadataInfrastructureSamples.java index b20e9c919986..c4df2d7d87db 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbServersListByCloudExadataInfrastructureSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbServersListByCloudExadataInfrastructureSamples.java @@ -9,7 +9,7 @@ */ public final class DbServersListByCloudExadataInfrastructureSamples { /* - * x-ms-original-file: 2025-03-01/dbServers_listByParent.json + * x-ms-original-file: 2025-09-01/dbServers_listByParent.json */ /** * Sample code: DbServers_listByCloudExadataInfrastructure. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesGetSamples.java index b565030c534e..9cc9512a31e9 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesGetSamples.java @@ -9,7 +9,35 @@ */ public final class DbSystemShapesGetSamples { /* - * x-ms-original-file: 2025-03-01/dbSystemShapes_get.json + * x-ms-original-file: 2025-09-01/DbSystemShapes_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get a DbSystemShape by name - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getADbSystemShapeByNameGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystemShapes().getWithResponse("eastus", "dbsystemshape1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/DbSystemShapes_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get a DbSystemShape by name - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getADbSystemShapeByNameGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystemShapes() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dbSystemShapes_get.json */ /** * Sample code: DbSystemShapes_get. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesListByLocationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesListByLocationSamples.java index 7d9a819e4c20..0edcdae9fa86 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesListByLocationSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemShapesListByLocationSamples.java @@ -9,7 +9,33 @@ */ public final class DbSystemShapesListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/dbSystemShapes_listByLocation.json + * x-ms-original-file: 2025-09-01/DbSystemShapes_ListByLocation_MinimumSet_Gen.json + */ + /** + * Sample code: List DbSystemShapes by location - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listDbSystemShapesByLocationGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystemShapes().listByLocation("eastus", null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/DbSystemShapes_ListByLocation_MaximumSet_Gen.json + */ + /** + * Sample code: List DbSystemShapes by location - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listDbSystemShapesByLocationGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystemShapes().listByLocation("eastus", "ymedsvqavemtixp", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dbSystemShapes_listByLocation.json */ /** * Sample code: DbSystemShapes_listByLocation. @@ -18,6 +44,6 @@ public final class DbSystemShapesListByLocationSamples { */ public static void dbSystemShapesListByLocation(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.dbSystemShapes().listByLocation("eastus", null, com.azure.core.util.Context.NONE); + manager.dbSystemShapes().listByLocation("eastus", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..8cf6bbd4af37 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsCreateOrUpdateSamples.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.resourcemanager.oracledatabase.models.ComputeModel; +import com.azure.resourcemanager.oracledatabase.models.DbSystemDatabaseEditionType; +import com.azure.resourcemanager.oracledatabase.models.DbSystemOptions; +import com.azure.resourcemanager.oracledatabase.models.DbSystemProperties; +import com.azure.resourcemanager.oracledatabase.models.DiskRedundancyType; +import com.azure.resourcemanager.oracledatabase.models.StorageManagementType; +import com.azure.resourcemanager.oracledatabase.models.StorageVolumePerformanceMode; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for DbSystems CreateOrUpdate. + */ +public final class DbSystemsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-09-01/DbSystems_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: DbSystems_CreateOrUpdate_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + dbSystemsCreateOrUpdateMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystems() + .define("dbsystem1") + .withRegion("uuh") + .withExistingResourceGroup("rgopenapi") + .withTags(mapOf("key2549", "fakeTokenPlaceholder")) + .withProperties(new DbSystemProperties().withResourceAnchorId( + "/subscriptions/00000000-0000-4025-0000-000000000000/resourceGroups/rg001/providers/Oracle.Database/resourceAnchors/resourceanchor1") + .withNetworkAnchorId( + "/subscriptions/00000000-0000-4025-0000-000000000000/resourceGroups/rg001/providers/Oracle.Database/networkAnchors/networkanchor1") + .withClusterName("icshqxm") + .withDisplayName( + "cpvibowyttzngughrisxfglqnffhtbjacuskwmixpczatxyrmrrgjsokonbolesdufrvuganmokwjkziisezqbvhmxtftldjulyixvmrcpmtlhynhbdlufcjdmmlbvcjdwbumjzdgwrxthntbbzscyrgmcfmkkowpujydlofklcrhdhoefeyl") + .withInitialDataStorageSizeInGb(19) + .withDbSystemOptions(new DbSystemOptions().withStorageManagement(StorageManagementType.LVM)) + .withDiskRedundancy(DiskRedundancyType.HIGH) + .withHostname("krixp") + .withNodeCount(24) + .withShape( + "kcknzpixkpolhxpcvpzwhjjvyafciktxguoljnixmztvkfryxaqogtrefbjbibzlbojjnuhrrxninevocnigpzenshgqozclxyhzwkavncfvekfpmbxhinwqvupoacgascnmqvplqckjrqbxsejzprsvgvmvkbuvncffjv") + .withSshPublicKeys(Arrays.asList("qtozhgwrjzkmwvdsggbivnbcwgykjnuvugqwmzompvbyfi")) + .withStorageVolumePerformanceMode(StorageVolumePerformanceMode.BALANCED) + .withTimeZone("gyrlmvdtseawpykcpwlgexrcffciyavsshsekacwcfkubcqdbrliy") + .withComputeModel(ComputeModel.ECPU) + .withComputeCount(28) + .withDatabaseEdition(DbSystemDatabaseEditionType.STANDARD_EDITION) + .withAdminPassword("fakeTokenPlaceholder") + .withDbVersion("nuzcyzulicdscaxxleansibdtqxhf")) + .withZones(Arrays.asList("pstozrrpkhlaffxt")) + .create(); + } + + // 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/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsDeleteSamples.java new file mode 100644 index 000000000000..c8dd6fb434b3 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsDeleteSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for DbSystems Delete. + */ +public final class DbSystemsDeleteSamples { + /* + * x-ms-original-file: 2025-09-01/DbSystems_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: DbSystems_Delete_MinimumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + dbSystemsDeleteMinimumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystems().delete("rgopenapi", "dbsystem1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/DbSystems_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: DbSystems_Delete_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + dbSystemsDeleteMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystems().delete("rgopenapi", "dbsystem1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsGetByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..88c9e99d7f54 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsGetByResourceGroupSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for DbSystems GetByResourceGroup. + */ +public final class DbSystemsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-09-01/DbSystems_Get_MaximumSet_Gen.json + */ + /** + * Sample code: DbSystems_Get_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void dbSystemsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystems().getByResourceGroupWithResponse("rgopenapi", "dbsystem1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsListByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsListByResourceGroupSamples.java new file mode 100644 index 000000000000..cd4eccc35664 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsListByResourceGroupSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for DbSystems ListByResourceGroup. + */ +public final class DbSystemsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-09-01/DbSystems_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: DbSystems_ListByResourceGroup_MaximumSet_Gen - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void dbSystemsListByResourceGroupMaximumSetGenGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystems().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/DbSystems_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: DbSystems_ListByResourceGroup_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + dbSystemsListByResourceGroupMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystems().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsListSamples.java new file mode 100644 index 000000000000..bc7cb12597ab --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsListSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for DbSystems List. + */ +public final class DbSystemsListSamples { + /* + * x-ms-original-file: 2025-09-01/DbSystems_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: DbSystems_ListBySubscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void dbSystemsListBySubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystems().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/DbSystems_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: DbSystems_ListBySubscription_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + dbSystemsListBySubscriptionMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbSystems().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsUpdateSamples.java new file mode 100644 index 000000000000..29a78a6b3184 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemsUpdateSamples.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.resourcemanager.oracledatabase.models.DbSystem; +import com.azure.resourcemanager.oracledatabase.models.DbSystemSourceType; +import com.azure.resourcemanager.oracledatabase.models.DbSystemUpdateProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for DbSystems Update. + */ +public final class DbSystemsUpdateSamples { + /* + * x-ms-original-file: 2025-09-01/DbSystems_Update_MaximumSet_Gen.json + */ + /** + * Sample code: DbSystems_Update_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + dbSystemsUpdateMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + DbSystem resource = manager.dbSystems() + .getByResourceGroupWithResponse("rgopenapi", "dbsystem1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key5457", "fakeTokenPlaceholder")) + .withZones(Arrays.asList("zone1")) + .withProperties(new DbSystemUpdateProperties().withSource(DbSystemSourceType.NONE)) + .apply(); + } + + // 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/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsGetSamples.java new file mode 100644 index 000000000000..424b28c86b7a --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsGetSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for DbVersions Get. + */ +public final class DbVersionsGetSamples { + /* + * x-ms-original-file: 2025-09-01/DbVersions_Get_MaximumSet_Gen.json + */ + /** + * Sample code: DbVersions_Get_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void dbVersionsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbVersions().getWithResponse("eastus", "23.0.0.0.0", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsListByLocationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsListByLocationSamples.java new file mode 100644 index 000000000000..e91cc1cffea1 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsListByLocationSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.resourcemanager.oracledatabase.models.BaseDbSystemShapes; +import com.azure.resourcemanager.oracledatabase.models.ShapeFamilyType; +import com.azure.resourcemanager.oracledatabase.models.StorageManagementType; + +/** + * Samples for DbVersions ListByLocation. + */ +public final class DbVersionsListByLocationSamples { + /* + * x-ms-original-file: 2025-09-01/DbVersions_ListByLocation_MaximumSet_Gen.json + */ + /** + * Sample code: DbVersions_ListByLocation_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + dbVersionsListByLocationMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dbVersions() + .listByLocation("eastus", BaseDbSystemShapes.VMSTANDARD_X86, + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Oracle.Database/dbSystems/dbsystem1", + StorageManagementType.LVM, true, true, ShapeFamilyType.VIRTUAL_MACHINE, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsGetSamples.java index 0b5354870fa8..636de0baa5f7 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsGetSamples.java @@ -9,7 +9,22 @@ */ public final class DnsPrivateViewsGetSamples { /* - * x-ms-original-file: 2025-03-01/dnsPrivateViews_get.json + * x-ms-original-file: 2025-09-01/DnsPrivateViews_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get a DnsPrivateView by name - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getADnsPrivateViewByNameGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dnsPrivateViews() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dnsPrivateViews_get.json */ /** * Sample code: DnsPrivateViews_get. @@ -19,4 +34,18 @@ public final class DnsPrivateViewsGetSamples { public static void dnsPrivateViewsGet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.dnsPrivateViews().getWithResponse("eastus", "ocid1....aaaaaa", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/DnsPrivateViews_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get a DnsPrivateView by name - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getADnsPrivateViewByNameGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dnsPrivateViews() + .getWithResponse("eastus", "weasefewawelkrlweircicceiwpdic", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsListByLocationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsListByLocationSamples.java index 4b6b18838b66..2aa110bfc7df 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsListByLocationSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateViewsListByLocationSamples.java @@ -9,7 +9,33 @@ */ public final class DnsPrivateViewsListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/dnsPrivateViews_listByLocation.json + * x-ms-original-file: 2025-09-01/DnsPrivateViews_ListByLocation_MaximumSet_Gen.json + */ + /** + * Sample code: List DnsPrivateViews by location - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listDnsPrivateViewsByLocationGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dnsPrivateViews().listByLocation("eastus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/DnsPrivateViews_ListByLocation_MinimumSet_Gen.json + */ + /** + * Sample code: List DnsPrivateViews by location - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listDnsPrivateViewsByLocationGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dnsPrivateViews().listByLocation("eastus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dnsPrivateViews_listByLocation.json */ /** * Sample code: DnsPrivateViews_listByLocation. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesGetSamples.java index 2ebe0dde9473..57aad6a3671b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesGetSamples.java @@ -9,7 +9,33 @@ */ public final class DnsPrivateZonesGetSamples { /* - * x-ms-original-file: 2025-03-01/dnsPrivateZones_get.json + * x-ms-original-file: 2025-09-01/DnsPrivateZones_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get a DnsPrivateZone by name - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getADnsPrivateZoneByNameGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dnsPrivateZones().getWithResponse("eastus", "dnsprivatezone1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/DnsPrivateZones_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get a DnsPrivateZone by name - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getADnsPrivateZoneByNameGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dnsPrivateZones().getWithResponse("eastus", "dnsprivatezone1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dnsPrivateZones_get.json */ /** * Sample code: DnsPrivateZones_get. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesListByLocationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesListByLocationSamples.java index 6f0e3ad351c8..4c93bb618cba 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesListByLocationSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/DnsPrivateZonesListByLocationSamples.java @@ -9,7 +9,33 @@ */ public final class DnsPrivateZonesListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/dnsPrivateZones_listByLocation.json + * x-ms-original-file: 2025-09-01/DnsPrivateZones_ListByLocation_MinimumSet_Gen.json + */ + /** + * Sample code: List DnsPrivateZones by location - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listDnsPrivateZonesByLocationGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dnsPrivateZones().listByLocation("eastus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/DnsPrivateZones_ListByLocation_MaximumSet_Gen.json + */ + /** + * Sample code: List DnsPrivateZones by location - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listDnsPrivateZonesByLocationGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.dnsPrivateZones().listByLocation("eastus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/dnsPrivateZones_listByLocation.json */ /** * Sample code: DnsPrivateZones_listByLocation. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersCreateOrUpdateSamples.java index 80804792765b..a2e9372f2a87 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersCreateOrUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersCreateOrUpdateSamples.java @@ -19,7 +19,24 @@ */ public final class ExadbVmClustersCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-03-01/ExadbVmClusters_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExadbVmClusters_CreateOrUpdate_MinimumSet_Gen.json + */ + /** + * Sample code: ExadbVmClusters_CreateOrUpdate_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exadbVmClustersCreateOrUpdateMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exadbVmClusters() + .define("exadbVmClusterName1") + .withRegion("eastus") + .withExistingResourceGroup("rgopenapi") + .create(); + } + + /* + * x-ms-original-file: 2025-09-01/ExadbVmClusters_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: ExadbVmClusters_CreateOrUpdate_MaximumSet. @@ -29,12 +46,12 @@ public final class ExadbVmClustersCreateOrUpdateSamples { public static void exadbVmClustersCreateOrUpdateMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exadbVmClusters() - .define("clusterName") - .withRegion("xojp") + .define("vmcluster1") + .withRegion("dsmvbplxdvesmvsgdvorgxalwpqxwt") .withExistingResourceGroup("rgopenapi") - .withTags(mapOf("key9683", "fakeTokenPlaceholder")) - .withProperties(new ExadbVmClusterProperties().withClusterName("hssswln") - .withBackupSubnetCidr("fr") + .withTags(mapOf("key8577", "fakeTokenPlaceholder")) + .withProperties(new ExadbVmClusterProperties().withClusterName("p") + .withBackupSubnetCidr("ca") .withVnetId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1") .withSubnetId( @@ -43,29 +60,28 @@ public static void exadbVmClustersCreateOrUpdateMaximumSet( .withIsHealthMonitoringEnabled(true) .withIsIncidentLogsEnabled(true)) .withDisplayName( - "dyhkncxzzgcwlfkfygvqlvqbxekvkbhjprmuxtaukewjnfrrnfqgrqsjfgsayrezkspqplrduuomuvtpkqurcoqjdnadlvedgfngglcgafbxtcewxlgckvehhqgfwkokbjoqftunjsgfjwbdaftxoytsphydwogtlnfxxuzzjvqcrin") - .withDomain("vzfak") + "zvnuzwcpevcsnhaheojscyiytcgxvtsuownoyrjddolqzpaalbyrgqgactzrafocjglzjzosrqewmsvdovubrczmlrjoahwgckbbhvimqfhmnrpuszndasfutdyyrvszdawdxvyfpgtoaemjvqpavsfsedbdhbqmqqtxxjthmjbswjbaymibfpbpzuy") + .withDomain("akltvmctvumwfuqi") .withEnabledEcpuCount(0) .withExascaleDbStorageVaultId( "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/exascaleDbStorageVaults/storageVaultName") - .withGridImageOcid("ocid1.dbpatch.oc1..aaaaa3klq") - .withHostname("tdn") + .withGridImageOcid("ocid1.autonomousdatabase.oc1..aaaaa3klq") + .withHostname("uwrzwwhrr") .withLicenseModel(LicenseModel.LICENSE_INCLUDED) - .withNodeCount(8) + .withNodeCount(30) .withNsgCidrs(Arrays.asList(new NsgCidr().withSource("10.0.0.0/16") .withDestinationPortRange(new PortRange().withMin(1520).withMax(1522)))) .withPrivateZoneOcid("ocid1.autonomousdatabase.oc1..aaaaa3klq") - .withScanListenerPortTcp(9) - .withScanListenerPortTcpSsl(18) - .withShape("evenjblxxfsztdxlcr") - .withSshPublicKeys(Arrays.asList("wiseakllkohemfmnoyteg")) - .withSystemVersion( - "udwsykstqawwjrvzebfyyccnjzhxtijvywlgnrkqxnboibyppistnbvqqsnsxmjnzeumgnatmarzfnjhglmtrknszthrxtwewwqjbkwytbhtjbgondtktkpvjmxdcuyjupr") + .withScanListenerPortTcp(30) + .withScanListenerPortTcpSsl(14) + .withShape("pzfyfjznebdsakeira") + .withSshPublicKeys(Arrays.asList("wzzayf")) + .withSystemVersion("ssqzevdtjtcnxpdspcyqzgdtmonqjj") .withTimeZone( - "ayuqnpfkasdzmxlfnkjzrenyogbvcysdbkstjhyjdgxygitlykihtwdiktilukyplgxovaonrqcqaviyaqgyrqfrklqvqyobnxgmzpqbgjhdtjdquhyqnvhavnqpfupaqhdedgdvfomeueeuwjjfiqiyxspybpyj") - .withTotalEcpuCount(56) - .withVmFileSystemStorage(new ExadbVmClusterStorageDetails().withTotalSizeInGbs(10))) - .withZones(Arrays.asList("iupjvcfsbvfhrebwf")) + "lkqvpvoczhoytxmeukzepgqgpdvdnigwxfojzfanqhracxsvgchwahzcifrkxlknixdrsopatguwccnejgyehnwfrvfedlefgneiudaqxbqnjkjedmcjocfvjdabwlyridcjvhzmlomgotwvnqqsrdjufsmebedckwwurmdoddknnfsm") + .withTotalEcpuCount(10) + .withVmFileSystemStorage(new ExadbVmClusterStorageDetails().withTotalSizeInGbs(18))) + .withZones(Arrays.asList("ozwhowofqaq")) .create(); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersDeleteSamples.java index 752e6ec56daf..780f840c20e1 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersDeleteSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ExadbVmClustersDeleteSamples { /* - * x-ms-original-file: 2025-03-01/ExadbVmClusters_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExadbVmClusters_Delete_MaximumSet_Gen.json */ /** * Sample code: ExadbVmClusters_Delete_MaximumSet. @@ -18,6 +18,19 @@ public final class ExadbVmClustersDeleteSamples { */ public static void exadbVmClustersDeleteMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.exadbVmClusters().delete("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE); + manager.exadbVmClusters().delete("rgopenapi", "exadaVmClusterName1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExadbVmClusters_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: ExadbVmClusters_Delete_MinimumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + exadbVmClustersDeleteMinimumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exadbVmClusters().delete("rgopenapi", "exadaVmClusterName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersGetByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersGetByResourceGroupSamples.java index bd1247a60fec..acdfbe6251f4 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersGetByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ExadbVmClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/ExadbVmClusters_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExadbVmClusters_Get_MaximumSet_Gen.json */ /** * Sample code: ExadbVmClusters_Get_MaximumSet. @@ -19,6 +19,20 @@ public final class ExadbVmClustersGetByResourceGroupSamples { public static void exadbVmClustersGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exadbVmClusters() - .getByResourceGroupWithResponse("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE); + .getByResourceGroupWithResponse("rgopenapi", "exadbVmClusterName1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExadbVmClusters_Get_MinimumSet_Gen.json + */ + /** + * Sample code: ExadbVmClusters_Get_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exadbVmClustersGetMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exadbVmClusters() + .getByResourceGroupWithResponse("rgopenapi", "exadbVmClusterName1*", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersListByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersListByResourceGroupSamples.java index 353c3ec996ac..946a78a57a89 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersListByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ExadbVmClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/ExadbVmClusters_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExadbVmClusters_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: ExadbVmClusters_ListByResourceGroup_MaximumSet. @@ -20,4 +20,17 @@ public static void exadbVmClustersListByResourceGroupMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exadbVmClusters().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/ExadbVmClusters_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: ExadbVmClusters_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exadbVmClustersListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exadbVmClusters().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersListSamples.java index ac85a45e3d8a..f77312823c4f 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersListSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersListSamples.java @@ -9,7 +9,7 @@ */ public final class ExadbVmClustersListSamples { /* - * x-ms-original-file: 2025-03-01/ExadbVmClusters_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExadbVmClusters_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: ExadbVmClusters_ListBySubscription_MaximumSet. @@ -20,4 +20,17 @@ public static void exadbVmClustersListBySubscriptionMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exadbVmClusters().list(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/ExadbVmClusters_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: ExadbVmClusters_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exadbVmClustersListBySubscriptionMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exadbVmClusters().list(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersRemoveVmsSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersRemoveVmsSamples.java index f21546866f2f..b3fb543ab04c 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersRemoveVmsSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersRemoveVmsSamples.java @@ -13,7 +13,7 @@ */ public final class ExadbVmClustersRemoveVmsSamples { /* - * x-ms-original-file: 2025-03-01/ExadbVmClusters_RemoveVms_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExadbVmClusters_RemoveVms_MaximumSet_Gen.json */ /** * Sample code: ExadbVmClusters_RemoveVms_MaximumSet. @@ -23,7 +23,24 @@ public final class ExadbVmClustersRemoveVmsSamples { public static void exadbVmClustersRemoveVmsMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exadbVmClusters() - .removeVms("rgopenapi", "vmClusterName", new RemoveVirtualMachineFromExadbVmClusterDetails() + .removeVms("rgopenapi", "exadbVmClusterName1", new RemoveVirtualMachineFromExadbVmClusterDetails() + .withDbNodes(Arrays.asList(new DbNodeDetails().withDbNodeId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Oracle.Database/exadbVmClusters/vmCluster/dbNodes/dbNodeName"))), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExadbVmClusters_RemoveVms_MinimumSet_Gen.json + */ + /** + * Sample code: ExadbVmClusters_RemoveVms_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exadbVmClustersRemoveVmsMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exadbVmClusters() + .removeVms("rgopenapi", "vmCluster1", new RemoveVirtualMachineFromExadbVmClusterDetails() .withDbNodes(Arrays.asList(new DbNodeDetails().withDbNodeId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Oracle.Database/exadbVmClusters/vmCluster/dbNodes/dbNodeName"))), com.azure.core.util.Context.NONE); diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersUpdateSamples.java index 93fe8135c336..3b4546f87e57 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClustersUpdateSamples.java @@ -15,7 +15,23 @@ */ public final class ExadbVmClustersUpdateSamples { /* - * x-ms-original-file: 2025-03-01/ExadbVmClusters_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExadbVmClusters_Update_MinimumSet_Gen.json + */ + /** + * Sample code: ExadbVmClusters_Update_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exadbVmClustersUpdateMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + ExadbVmCluster resource = manager.exadbVmClusters() + .getByResourceGroupWithResponse("rgopenapi", "exadbvmclusterq", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); + } + + /* + * x-ms-original-file: 2025-09-01/ExadbVmClusters_Update_MaximumSet_Gen.json */ /** * Sample code: ExadbVmClusters_Update_MaximumSet. @@ -25,12 +41,12 @@ public final class ExadbVmClustersUpdateSamples { public static void exadbVmClustersUpdateMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { ExadbVmCluster resource = manager.exadbVmClusters() - .getByResourceGroupWithResponse("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rgopenapi", "exadbvmcluster1", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("key6027", "fakeTokenPlaceholder")) - .withZones(Arrays.asList("zcqfxmpauiqjphmhwwt")) - .withProperties(new ExadbVmClusterUpdateProperties().withNodeCount(9)) + .withTags(mapOf("key4195", "fakeTokenPlaceholder")) + .withZones(Arrays.asList("yd")) + .withProperties(new ExadbVmClusterUpdateProperties().withNodeCount(17)) .apply(); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesActionSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesActionSamples.java index ef96321c1cb1..4922c1ac38d5 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesActionSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesActionSamples.java @@ -12,7 +12,7 @@ */ public final class ExascaleDbNodesActionSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbNodes_Action_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_Action_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbNodes_Action_MaximumSet. @@ -22,7 +22,22 @@ public final class ExascaleDbNodesActionSamples { public static void exascaleDbNodesActionMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exascaleDbNodes() - .action("rgopenapi", "vmClusterName", "dbNodeName", new DbNodeAction().withAction(DbNodeActionEnum.START), - com.azure.core.util.Context.NONE); + .action("rgopenapi", "exadbvmcluster1", "exascaledbnode1", + new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_Action_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbNodes_Action_MinimumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + exascaleDbNodesActionMinimumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbNodes() + .action("rgopenapi", "exadbvmcluster1", "exascaledbnode1", + new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesGetSamples.java index 3bb7ebb70e3f..4adef80a814d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesGetSamples.java @@ -9,7 +9,21 @@ */ public final class ExascaleDbNodesGetSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbNodes_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_Get_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbNodes_Get_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbNodesGetMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbNodes() + .getWithResponse("rgopenapi", "vmcluster", "exascaledbnode1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_Get_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbNodes_Get_MaximumSet. @@ -19,6 +33,6 @@ public final class ExascaleDbNodesGetSamples { public static void exascaleDbNodesGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exascaleDbNodes() - .getWithResponse("rgopenapi", "vmClusterName", "dbNodeName", com.azure.core.util.Context.NONE); + .getWithResponse("rgopenapi", "exadbvmcluster1", "exascaledbnode1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesListByParentSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesListByParentSamples.java index 5c83e395ea2e..4007ead932f6 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesListByParentSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesListByParentSamples.java @@ -9,7 +9,7 @@ */ public final class ExascaleDbNodesListByParentSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbNodes_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_ListByParent_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbNodes_ListByParent_MaximumSet. @@ -18,6 +18,19 @@ public final class ExascaleDbNodesListByParentSamples { */ public static void exascaleDbNodesListByParentMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.exascaleDbNodes().listByParent("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE); + manager.exascaleDbNodes().listByParent("rgopenapi", "vmcluster", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbNodes_ListByParent_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbNodes_ListByParent_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbNodesListByParentMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbNodes().listByParent("rgopenapi", "vmcluster", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsCreateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsCreateSamples.java index 82f07833184e..8c71832d8692 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsCreateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsCreateSamples.java @@ -15,7 +15,24 @@ */ public final class ExascaleDbStorageVaultsCreateSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_Create_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Create_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_Create_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsCreateMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults() + .define("storagevault1") + .withRegion("odxgtv") + .withExistingResourceGroup("rgopenapi") + .create(); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Create_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_Create_MaximumSet. @@ -25,18 +42,17 @@ public final class ExascaleDbStorageVaultsCreateSamples { public static void exascaleDbStorageVaultsCreateMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exascaleDbStorageVaults() - .define("vmClusterName") - .withRegion("ltguhzffucaytqg") + .define("storagevault1") + .withRegion("zuoudqbvlxerpjtlfooyqlb") .withExistingResourceGroup("rgopenapi") - .withTags(mapOf("key7827", "fakeTokenPlaceholder")) + .withTags(mapOf("key4521", "fakeTokenPlaceholder")) .withProperties(new ExascaleDbStorageVaultProperties().withAdditionalFlashCacheInPercent(0) - .withDescription("dmnvnnduldfmrmkkvvsdtuvmsmruxzzpsfdydgytlckutfozephjygjetrauvbdfcwmti") - .withDisplayName( - "hbsybtelyvhpalemszcvartlhwvskrnpiveqfblvkdihoytqaotdgsgauvgivzaftfgeiwlyeqzssicwrrnlxtsmeakbcsxabjlt") - .withHighCapacityDatabaseStorageInput(new ExascaleDbStorageInputDetails().withTotalSizeInGbs(21)) - .withTimeZone( - "ltrbozwxjunncicrtzjrpqnqrcjgghohztrdlbfjrbkpenopyldwolslwgrgumjfkyovvkzcuxjujuxtjjzubvqvnhrswnbdgcbslopeofmtepbrrlymqwwszvsglmyuvlcuejshtpokirwklnwpcykhyinjmlqvxtyixlthtdishhmtipbygsayvgqzfrprgppylydlcskbmvwctxifdltippfvsxiughqbojqpqrekxsotnqsk")) - .withZones(Arrays.asList("qk")) + .withDescription( + "kgqvxvtegzwyppegpvqxnlslvetbjlgveofcpjddenhbpocyzwtswaeaetqkipcxyhedsymuljalirryldlbviuvidhssyiwodacajjnbpkbvbvzwzsjctsidchalyjkievnivikwnnypaojcvhmokddstxwiqxmbfmbvglfimseguwyvibwzllggjtwejdfgezoeuvjjbsyfozswihydzuscjrqnklewongumiljeordhqlsclwlmftzdoey") + .withDisplayName("storagevault1") + .withHighCapacityDatabaseStorageInput(new ExascaleDbStorageInputDetails().withTotalSizeInGbs(1)) + .withTimeZone("hyjcftlal")) + .withZones(Arrays.asList("npqjhyekyumfybqas")) .create(); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsDeleteSamples.java index d239a5cf91b8..45c94485a6e1 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsDeleteSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ExascaleDbStorageVaultsDeleteSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Delete_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_Delete_MaximumSet. @@ -18,6 +18,19 @@ public final class ExascaleDbStorageVaultsDeleteSamples { */ public static void exascaleDbStorageVaultsDeleteMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.exascaleDbStorageVaults().delete("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE); + manager.exascaleDbStorageVaults().delete("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_Delete_MinimumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsDeleteMinimumSet( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults().delete("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsGetByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsGetByResourceGroupSamples.java index 4a97677ed45f..395016ce7e6b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsGetByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ExascaleDbStorageVaultsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Get_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_Get_MaximumSet. @@ -19,6 +19,20 @@ public final class ExascaleDbStorageVaultsGetByResourceGroupSamples { public static void exascaleDbStorageVaultsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exascaleDbStorageVaults() - .getByResourceGroupWithResponse("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE); + .getByResourceGroupWithResponse("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Get_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_Get_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsGetMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults() + .getByResourceGroupWithResponse("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListByResourceGroupSamples.java index 3e64a448127b..15a6e9671d0c 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListByResourceGroupSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ExascaleDbStorageVaultsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_ListByResourceGroup_MaximumSet. @@ -20,4 +20,17 @@ public static void exascaleDbStorageVaultsListByResourceGroupMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.exascaleDbStorageVaults().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListSamples.java index fcd3f0f055f4..548ee3fae85b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListSamples.java @@ -9,7 +9,20 @@ */ public final class ExascaleDbStorageVaultsListSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.exascaleDbStorageVaults().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_ListBySubscription_MaximumSet. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsUpdateSamples.java index 137ab7079a6e..ec6c5bd200e4 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ExascaleDbStorageVaultsUpdateSamples { /* - * x-ms-original-file: 2025-03-01/ExascaleDbStorageVaults_Update_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Update_MaximumSet_Gen.json */ /** * Sample code: ExascaleDbStorageVaults_Update_MaximumSet. @@ -23,9 +23,25 @@ public final class ExascaleDbStorageVaultsUpdateSamples { public static void exascaleDbStorageVaultsUpdateMaximumSet( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { ExascaleDbStorageVault resource = manager.exascaleDbStorageVaults() - .getByResourceGroupWithResponse("rgopenapi", "vmClusterName", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE) .getValue(); - resource.update().withTags(mapOf("key6179", "fakeTokenPlaceholder")).apply(); + resource.update().withTags(mapOf("key6486", "fakeTokenPlaceholder")).apply(); + } + + /* + * x-ms-original-file: 2025-09-01/ExascaleDbStorageVaults_Update_MinimumSet_Gen.json + */ + /** + * Sample code: ExascaleDbStorageVaults_Update_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void exascaleDbStorageVaultsUpdateMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + ExascaleDbStorageVault resource = manager.exascaleDbStorageVaults() + .getByResourceGroupWithResponse("rgopenapi", "storagevault1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().apply(); } // Use "Map.of" if available diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsGetSamples.java index d25f6a33b266..29e5483244e1 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class FlexComponentsGetSamples { /* - * x-ms-original-file: 2025-03-01/FlexComponents_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/FlexComponents_Get_MaximumSet_Gen.json */ /** * Sample code: FlexComponents_Get_MaximumSet. @@ -18,6 +18,6 @@ public final class FlexComponentsGetSamples { */ public static void flexComponentsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.flexComponents().getWithResponse("eastus", "flexComponent", com.azure.core.util.Context.NONE); + manager.flexComponents().getWithResponse("eastus", "flexname1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsListByParentSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsListByParentSamples.java index 88a18b46a52b..2eb6c3edc39b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsListByParentSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsListByParentSamples.java @@ -11,7 +11,7 @@ */ public final class FlexComponentsListByParentSamples { /* - * x-ms-original-file: 2025-03-01/FlexComponents_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/FlexComponents_ListByParent_MaximumSet_Gen.json */ /** * Sample code: FlexComponents_ListByParent_MaximumSet. @@ -20,6 +20,19 @@ public final class FlexComponentsListByParentSamples { */ public static void flexComponentsListByParentMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.flexComponents().listByParent("eastus", SystemShapes.EXADATA_X11M, com.azure.core.util.Context.NONE); + manager.flexComponents().listByParent("eastus", SystemShapes.EXADATA_X9M, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/FlexComponents_ListByParent_MinimumSet_Gen.json + */ + /** + * Sample code: FlexComponents_ListByParent_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void flexComponentsListByParentMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.flexComponents().listByParent("eastus", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsGetSamples.java index 62bef0800031..15ba811909aa 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class GiMinorVersionsGetSamples { /* - * x-ms-original-file: 2025-03-01/GiMinorVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiMinorVersions_Get_MaximumSet_Gen.json */ /** * Sample code: GiMinorVersions_Get_MaximumSet. @@ -19,6 +19,6 @@ public final class GiMinorVersionsGetSamples { public static void giMinorVersionsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.giMinorVersions() - .getWithResponse("eastus", "giVersionName", "giMinorVersionName", com.azure.core.util.Context.NONE); + .getWithResponse("eastus", "19.0.0.0", "minorversion", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsListByParentSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsListByParentSamples.java index c9b820f27632..9d8b33016a02 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsListByParentSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsListByParentSamples.java @@ -11,7 +11,7 @@ */ public final class GiMinorVersionsListByParentSamples { /* - * x-ms-original-file: 2025-03-01/GiMinorVersions_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiMinorVersions_ListByParent_MaximumSet_Gen.json */ /** * Sample code: GiMinorVersions_ListByParent_MaximumSet. @@ -21,7 +21,20 @@ public final class GiMinorVersionsListByParentSamples { public static void giMinorVersionsListByParentMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.giMinorVersions() - .listByParent("eastus", "giVersionName", ShapeFamily.fromString("rtfcosvtlpeeqoicsjqggtgc"), null, - com.azure.core.util.Context.NONE); + .listByParent("eastus", "name1", ShapeFamily.EXADATA, "zone1", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/GiMinorVersions_ListByParent_MinimumSet_Gen.json + */ + /** + * Sample code: GiMinorVersions_ListByParent_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void giMinorVersionsListByParentMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.giMinorVersions() + .listByParent("eastus", "giMinorVersionName", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsGetSamples.java index bb871d64d503..b519544a92b4 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class GiVersionsGetSamples { /* - * x-ms-original-file: 2025-03-01/GiVersions_Get_MinimumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiVersions_Get_MinimumSet_Gen.json */ /** * Sample code: Get a GiVersion by name - generated by [MinimumSet] rule. @@ -18,11 +18,13 @@ public final class GiVersionsGetSamples { */ public static void getAGiVersionByNameGeneratedByMinimumSetRule( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.giVersions().getWithResponse("eastus", "giVersionName", com.azure.core.util.Context.NONE); + manager.giVersions() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-03-01/giVersions_get.json + * x-ms-original-file: 2025-09-01/giVersions_get.json */ /** * Sample code: GiVersions_get. @@ -34,7 +36,7 @@ public static void giVersionsGet(com.azure.resourcemanager.oracledatabase.Oracle } /* - * x-ms-original-file: 2025-03-01/GiVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiVersions_Get_MaximumSet_Gen.json */ /** * Sample code: Get a GiVersion by name - generated by [MaximumSet] rule. @@ -43,6 +45,6 @@ public static void giVersionsGet(com.azure.resourcemanager.oracledatabase.Oracle */ public static void getAGiVersionByNameGeneratedByMaximumSetRule( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.giVersions().getWithResponse("eastus", "giVersionName", com.azure.core.util.Context.NONE); + manager.giVersions().getWithResponse("eastus", "giversion1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsListByLocationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsListByLocationSamples.java index 5e2b36ed078a..ee50e5bb6c8a 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsListByLocationSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/GiVersionsListByLocationSamples.java @@ -11,31 +11,29 @@ */ public final class GiVersionsListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/GiVersions_ListByLocation_MaximumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiVersions_ListByLocation_MinimumSet_Gen.json */ /** - * Sample code: List GiVersions by location - generated by [MaximumSet] rule. + * Sample code: GiVersions_ListByLocation_MinimumSet. * * @param manager Entry point to OracleDatabaseManager. */ - public static void listGiVersionsByLocationGeneratedByMaximumSetRule( - com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.giVersions() - .listByLocation("eastus", SystemShapes.fromString( - "osixsklyaauhoqnkxvnvsqeqenhzogntqnpubldrrfvqncwetdtwqwjjcvspwhgecbimdlulwcubikebrdzmidrucgtsuqvytkqutmbyrvvyioxpocpmuwiivyanjzucaegihztluuvpznzaoakfsselumhhsvrtrbzwpjhcihsvyouonlxdluwhqfxoqvgthkaxppbydtqjntscgzbivfdcaobbkthrbdjwpejirqmbly"), - null, com.azure.core.util.Context.NONE); + public static void + giVersionsListByLocationMinimumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.giVersions().listByLocation("eastus", null, null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-03-01/GiVersions_ListByLocation_MinimumSet_Gen.json + * x-ms-original-file: 2025-09-01/GiVersions_ListByLocation_MaximumSet_Gen.json */ /** - * Sample code: List GiVersions by location - generated by [MinimumSet] rule. + * Sample code: GiVersions_ListByLocation_MaximumSet. * * @param manager Entry point to OracleDatabaseManager. */ - public static void listGiVersionsByLocationGeneratedByMinimumSetRule( - com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { - manager.giVersions().listByLocation("eastus", null, null, com.azure.core.util.Context.NONE); + public static void + giVersionsListByLocationMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.giVersions() + .listByLocation("eastus", SystemShapes.EXADATA_X9M, "hpzuyaemum", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..723e6346fe12 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsCreateOrUpdateSamples.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.resourcemanager.oracledatabase.models.DnsForwardingRule; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkAnchors CreateOrUpdate. + */ +public final class NetworkAnchorsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-09-01/NetworkAnchors_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: NetworkAnchors_CreateOrUpdate_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + networkAnchorsCreateOrUpdateMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.networkAnchors() + .define("networkAnchor1") + .withRegion("igamtwfkkmjnkcceh") + .withExistingResourceGroup("rgopenapi") + .withTags(mapOf("key4863", "fakeTokenPlaceholder")) + .withProperties(new NetworkAnchorProperties().withResourceAnchorId("ivxnsdkelptazxrbzzrs") + .withSubnetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1") + .withOciVcnDnsLabel("taqimtjhlsshwakiaocbsrewvkq") + .withOciBackupCidrBlock("i") + .withIsOracleToAzureDnsZoneSyncEnabled(true) + .withIsOracleDnsListeningEndpointEnabled(true) + .withIsOracleDnsForwardingEndpointEnabled(true) + .withDnsForwardingRules(Arrays + .asList(new DnsForwardingRule().withDomainNames("domain1, domain2").withForwardingIpAddress("qe")))) + .withZones(Arrays.asList("qwrgwcmycokwbhdafhoheaxzoxx")) + .create(); + } + + // 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/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsDeleteSamples.java new file mode 100644 index 000000000000..9da797d8dc63 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsDeleteSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for NetworkAnchors Delete. + */ +public final class NetworkAnchorsDeleteSamples { + /* + * x-ms-original-file: 2025-09-01/NetworkAnchors_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: NetworkAnchors_Delete_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + networkAnchorsDeleteMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.networkAnchors().delete("rgopenapi", "networkAnchor1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsGetByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..66d75f32645e --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for NetworkAnchors GetByResourceGroup. + */ +public final class NetworkAnchorsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-09-01/NetworkAnchors_Get_MaximumSet_Gen.json + */ + /** + * Sample code: NetworkAnchors_Get_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + networkAnchorsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.networkAnchors() + .getByResourceGroupWithResponse("rgopenapi", "networkanchor1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListByResourceGroupSamples.java new file mode 100644 index 000000000000..1772f7d3c4a0 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListByResourceGroupSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for NetworkAnchors ListByResourceGroup. + */ +public final class NetworkAnchorsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-09-01/NetworkAnchors_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: NetworkAnchors_ListByResourceGroup_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void networkAnchorsListByResourceGroupMaximumSet( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.networkAnchors().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/NetworkAnchors_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: NetworkAnchors_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void networkAnchorsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.networkAnchors().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListSamples.java new file mode 100644 index 000000000000..77d3a3303c3b --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for NetworkAnchors List. + */ +public final class NetworkAnchorsListSamples { + /* + * x-ms-original-file: 2025-09-01/NetworkAnchors_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: NetworkAnchors_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void networkAnchorsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.networkAnchors().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/NetworkAnchors_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: NetworkAnchors_ListBySubscription_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void networkAnchorsListBySubscriptionMaximumSet( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.networkAnchors().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsUpdateSamples.java new file mode 100644 index 000000000000..b3ec614f146e --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsUpdateSamples.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchor; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdateProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for NetworkAnchors Update. + */ +public final class NetworkAnchorsUpdateSamples { + /* + * x-ms-original-file: 2025-09-01/NetworkAnchors_Update_MaximumSet_Gen.json + */ + /** + * Sample code: NetworkAnchors_Update_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + networkAnchorsUpdateMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + NetworkAnchor resource = manager.networkAnchors() + .getByResourceGroupWithResponse("rgopenapi", "networkanchor1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("key8038", "fakeTokenPlaceholder")) + .withZones(Arrays.asList("zone1")) + .withProperties(new NetworkAnchorUpdateProperties().withOciBackupCidrBlock("waoztwkdpplgjtkiwkfnnohu") + .withIsOracleToAzureDnsZoneSyncEnabled(true) + .withIsOracleDnsListeningEndpointEnabled(true) + .withIsOracleDnsForwardingEndpointEnabled(true)) + .apply(); + } + + // 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/samples/java/com/azure/resourcemanager/oracledatabase/generated/OperationsListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OperationsListSamples.java index 4f0490985f54..c94a9bd1f720 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OperationsListSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OperationsListSamples.java @@ -9,7 +9,20 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-03-01/operations_list.json + * x-ms-original-file: 2025-09-01/Operations_List_MaximumSet_Gen.json + */ + /** + * Sample code: List Operations - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listOperationsGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/operations_list.json */ /** * Sample code: Operations_list. @@ -19,4 +32,17 @@ public final class OperationsListSamples { public static void operationsList(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/Operations_List_MinimumSet_Gen.json + */ + /** + * Sample code: List Operations - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listOperationsGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsAddAzureSubscriptionsSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsAddAzureSubscriptionsSamples.java index 7ed4330a6114..d52f562bce25 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsAddAzureSubscriptionsSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsAddAzureSubscriptionsSamples.java @@ -12,7 +12,7 @@ */ public final class OracleSubscriptionsAddAzureSubscriptionsSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_addAzureSubscriptions.json + * x-ms-original-file: 2025-09-01/oracleSubscriptions_addAzureSubscriptions.json */ /** * Sample code: OracleSubscriptions_addAzureSubscriptions. @@ -25,4 +25,34 @@ public static void oracleSubscriptionsAddAzureSubscriptions( .addAzureSubscriptions(new AzureSubscriptions().withAzureSubscriptionIds( Arrays.asList("00000000-0000-0000-0000-000000000001")), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_AddAzureSubscriptions_MaximumSet_Gen.json + */ + /** + * Sample code: Add Azure Subscriptions to the OracleSubscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void addAzureSubscriptionsToTheOracleSubscriptionGeneratedByMaximumSetRule( + 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); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_AddAzureSubscriptions_MinimumSet_Gen.json + */ + /** + * Sample code: Add Azure Subscriptions to the OracleSubscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void addAzureSubscriptionsToTheOracleSubscriptionGeneratedByMinimumSetRule( + 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); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsCreateOrUpdateSamples.java index adf643d2ebdd..7254a00a265d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsCreateOrUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsCreateOrUpdateSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.oracledatabase.generated; import com.azure.resourcemanager.oracledatabase.fluent.models.OracleSubscriptionInner; +import com.azure.resourcemanager.oracledatabase.models.Intent; import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionProperties; import com.azure.resourcemanager.oracledatabase.models.Plan; @@ -13,7 +14,20 @@ */ public final class OracleSubscriptionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_create.json + * x-ms-original-file: 2025-09-01/OracleSubscriptions_CreateOrUpdate_MinimumSet_Gen.json + */ + /** + * Sample code: Create or Update Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void createOrUpdateOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().createOrUpdate(new OracleSubscriptionInner(), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/oracleSubscriptions_create.json */ /** * Sample code: OracleSubscriptions_createOrUpdate. @@ -31,4 +45,27 @@ public final class OracleSubscriptionsCreateOrUpdateSamples { .withVersion("alpha")), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: Create or Update Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void createOrUpdateOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions() + .createOrUpdate(new OracleSubscriptionInner() + .withProperties(new OracleSubscriptionProperties().withTermUnit("akzq") + .withProductCode("fakeTokenPlaceholder") + .withIntent(Intent.RETAIN)) + .withPlan(new Plan().withName("plan1") + .withPublisher("publisher1") + .withProduct("product1") + .withPromotionCode("fakeTokenPlaceholder") + .withVersion("alpha")), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsDeleteSamples.java index 73b70fdac267..e0c5c627f64b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsDeleteSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsDeleteSamples.java @@ -9,7 +9,33 @@ */ public final class OracleSubscriptionsDeleteSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_delete.json + * x-ms-original-file: 2025-09-01/OracleSubscriptions_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: Delete Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().delete(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: Delete Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().delete(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/oracleSubscriptions_delete.json */ /** * Sample code: OracleSubscriptions_delete. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsGetSamples.java index a105d159df83..f9649c369bda 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsGetSamples.java @@ -9,7 +9,33 @@ */ public final class OracleSubscriptionsGetSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_get.json + * x-ms-original-file: 2025-09-01/OracleSubscriptions_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().getWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().getWithResponse(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/oracleSubscriptions_get.json */ /** * Sample code: OracleSubscriptions_get. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListActivationLinksSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListActivationLinksSamples.java index 44f786e57e87..a3e4ee41fee8 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListActivationLinksSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListActivationLinksSamples.java @@ -9,7 +9,33 @@ */ public final class OracleSubscriptionsListActivationLinksSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_listActivationLinks.json + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListActivationLinks_MaximumSet_Gen.json + */ + /** + * Sample code: List Activation Links for the Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listActivationLinksForTheOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listActivationLinks(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListActivationLinks_MinimumSet_Gen.json + */ + /** + * Sample code: List Activation Links for the Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listActivationLinksForTheOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listActivationLinks(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/oracleSubscriptions_listActivationLinks.json */ /** * Sample code: OracleSubscriptions_listActivationLinks. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListCloudAccountDetailsSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListCloudAccountDetailsSamples.java index 2f5985c82a81..91f5bd853627 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListCloudAccountDetailsSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListCloudAccountDetailsSamples.java @@ -9,7 +9,7 @@ */ public final class OracleSubscriptionsListCloudAccountDetailsSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_listCloudAccountDetails.json + * x-ms-original-file: 2025-09-01/oracleSubscriptions_listCloudAccountDetails.json */ /** * Sample code: OracleSubscriptions_listCloudAccountDetails. @@ -20,4 +20,30 @@ public static void oracleSubscriptionsListCloudAccountDetails( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.oracleSubscriptions().listCloudAccountDetails(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListCloudAccountDetails_MaximumSet_Gen.json + */ + /** + * Sample code: List Cloud Account details for the Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listCloudAccountDetailsForTheOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listCloudAccountDetails(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListCloudAccountDetails_MinimumSet_Gen.json + */ + /** + * Sample code: List Cloud Account details for the Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listCloudAccountDetailsForTheOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listCloudAccountDetails(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSaasSubscriptionDetailsSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSaasSubscriptionDetailsSamples.java index 63896db9aba9..6887336f6a02 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSaasSubscriptionDetailsSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSaasSubscriptionDetailsSamples.java @@ -9,7 +9,7 @@ */ public final class OracleSubscriptionsListSaasSubscriptionDetailsSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_listSaasSubscriptionDetails.json + * x-ms-original-file: 2025-09-01/oracleSubscriptions_listSaasSubscriptionDetails.json */ /** * Sample code: OracleSubscriptions_listSaasSubscriptionDetails. @@ -20,4 +20,30 @@ public static void oracleSubscriptionsListSaasSubscriptionDetails( com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.oracleSubscriptions().listSaasSubscriptionDetails(com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListSaasSubscriptionDetails_MaximumSet_Gen.json + */ + /** + * Sample code: List Saas Subscription details for the Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listSaasSubscriptionDetailsForTheOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listSaasSubscriptionDetails(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListSaasSubscriptionDetails_MinimumSet_Gen.json + */ + /** + * Sample code: List Saas Subscription details for the Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listSaasSubscriptionDetailsForTheOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().listSaasSubscriptionDetails(com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSamples.java index a75d8e798700..22d6e946d76a 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsListSamples.java @@ -9,7 +9,33 @@ */ public final class OracleSubscriptionsListSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_listBySubscription.json + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: List Oracle Subscriptions by subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listOracleSubscriptionsBySubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: List Oracle Subscriptions by subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listOracleSubscriptionsBySubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/oracleSubscriptions_listBySubscription.json */ /** * Sample code: OracleSubscriptions_listBySubscription. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsUpdateSamples.java index 4ae022c5c9da..c13dd9e2ca73 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/OracleSubscriptionsUpdateSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.oracledatabase.generated; +import com.azure.resourcemanager.oracledatabase.models.Intent; import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdate; +import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdateProperties; +import com.azure.resourcemanager.oracledatabase.models.PlanUpdate; /** * Samples for OracleSubscriptions Update. */ public final class OracleSubscriptionsUpdateSamples { /* - * x-ms-original-file: 2025-03-01/oracleSubscriptions_patch.json + * x-ms-original-file: 2025-09-01/oracleSubscriptions_patch.json */ /** * Sample code: OracleSubscriptions_update. @@ -22,4 +25,39 @@ public final class OracleSubscriptionsUpdateSamples { oracleSubscriptionsUpdate(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.oracleSubscriptions().update(new OracleSubscriptionUpdate(), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_Update_MinimumSet_Gen.json + */ + /** + * Sample code: Patch Oracle Subscription - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchOracleSubscriptionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions().update(new OracleSubscriptionUpdate(), com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/OracleSubscriptions_Update_MaximumSet_Gen.json + */ + /** + * Sample code: Patch Oracle Subscription - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void patchOracleSubscriptionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.oracleSubscriptions() + .update(new OracleSubscriptionUpdate() + .withPlan(new PlanUpdate().withName("klnnbggrxhvvaiajvjx") + .withPublisher("xvsarzadrjqergudsohjk") + .withProduct("hivkczjyrimjilbmqj") + .withPromotionCode("fakeTokenPlaceholder") + .withVersion("ueudckjmuqpjvsmmenzyflgpa")) + .withProperties(new OracleSubscriptionUpdateProperties().withProductCode("fakeTokenPlaceholder") + .withIntent(Intent.RETAIN)), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..bc4f96bb8ef1 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsCreateOrUpdateSamples.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorProperties; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ResourceAnchors CreateOrUpdate. + */ +public final class ResourceAnchorsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2025-09-01/ResourceAnchors_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: ResourceAnchors_CreateOrUpdate_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void resourceAnchorsCreateOrUpdateMaximumSet( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.resourceAnchors() + .define("resourceanchor1") + .withRegion("at") + .withExistingResourceGroup("rgopenapi") + .withTags(mapOf("key236", "fakeTokenPlaceholder")) + .withProperties(new ResourceAnchorProperties()) + .create(); + } + + // 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/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsDeleteSamples.java new file mode 100644 index 000000000000..02536e885b75 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsDeleteSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for ResourceAnchors Delete. + */ +public final class ResourceAnchorsDeleteSamples { + /* + * x-ms-original-file: 2025-09-01/ResourceAnchors_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: ResourceAnchors_Delete_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + resourceAnchorsDeleteMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.resourceAnchors().delete("rgopenapi", "resourceanchor1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsGetByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsGetByResourceGroupSamples.java new file mode 100644 index 000000000000..41ff07f7e337 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsGetByResourceGroupSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for ResourceAnchors GetByResourceGroup. + */ +public final class ResourceAnchorsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2025-09-01/ResourceAnchors_Get_MaximumSet_Gen.json + */ + /** + * Sample code: ResourceAnchors_Get_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + resourceAnchorsGetMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.resourceAnchors() + .getByResourceGroupWithResponse("rgopenapi", "resourceanchor1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListByResourceGroupSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListByResourceGroupSamples.java new file mode 100644 index 000000000000..0e6b9cec72b8 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListByResourceGroupSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for ResourceAnchors ListByResourceGroup. + */ +public final class ResourceAnchorsListByResourceGroupSamples { + /* + * x-ms-original-file: 2025-09-01/ResourceAnchors_ListByResourceGroup_MaximumSet_Gen.json + */ + /** + * Sample code: ResourceAnchors_ListByResourceGroup_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void resourceAnchorsListByResourceGroupMaximumSet( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.resourceAnchors().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ResourceAnchors_ListByResourceGroup_MinimumSet_Gen.json + */ + /** + * Sample code: ResourceAnchors_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void resourceAnchorsListByResourceGroupMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.resourceAnchors().listByResourceGroup("rgopenapi", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListSamples.java new file mode 100644 index 000000000000..c1d4707485bb --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +/** + * Samples for ResourceAnchors List. + */ +public final class ResourceAnchorsListSamples { + /* + * x-ms-original-file: 2025-09-01/ResourceAnchors_ListBySubscription_MaximumSet_Gen.json + */ + /** + * Sample code: ResourceAnchors_ListBySubscription_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void resourceAnchorsListBySubscriptionMaximumSet( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.resourceAnchors().list(com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/ResourceAnchors_ListBySubscription_MinimumSet_Gen.json + */ + /** + * Sample code: ResourceAnchors_ListBySubscription_MaximumSet - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void resourceAnchorsListBySubscriptionMaximumSetGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.resourceAnchors().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsUpdateSamples.java new file mode 100644 index 000000000000..e7f306cf574c --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsUpdateSamples.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchor; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ResourceAnchors Update. + */ +public final class ResourceAnchorsUpdateSamples { + /* + * x-ms-original-file: 2025-09-01/ResourceAnchors_Update_MaximumSet_Gen.json + */ + /** + * Sample code: ResourceAnchors_Update_MaximumSet. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void + resourceAnchorsUpdateMaximumSet(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + ResourceAnchor resource = manager.resourceAnchors() + .getByResourceGroupWithResponse("rgopenapi", "resourceanchor1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key3998", "fakeTokenPlaceholder")).apply(); + } + + // 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/samples/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsGetSamples.java index b707898f307a..a4ac73cb3bde 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class SystemVersionsGetSamples { /* - * x-ms-original-file: 2025-03-01/systemVersions_get.json + * x-ms-original-file: 2025-09-01/systemVersions_get.json */ /** * Sample code: systemVersions_listSystemVersions. @@ -20,4 +20,34 @@ public final class SystemVersionsGetSamples { systemVersionsListSystemVersions(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.systemVersions().getWithResponse("eastus", "22.x", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/SystemVersions_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get Exadata System Version - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getExadataSystemVersionGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.systemVersions() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/SystemVersions_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get Exadata System Version - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getExadataSystemVersionGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.systemVersions() + .getWithResponse("eastus", "Replace this value with a string matching RegExp .*", + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsListByLocationSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsListByLocationSamples.java index 619826da23f3..bb2383cf158d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsListByLocationSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/SystemVersionsListByLocationSamples.java @@ -9,7 +9,7 @@ */ public final class SystemVersionsListByLocationSamples { /* - * x-ms-original-file: 2025-03-01/systemVersions_listByLocation.json + * x-ms-original-file: 2025-09-01/systemVersions_listByLocation.json */ /** * Sample code: systemVersions_listByLocation. @@ -20,4 +20,30 @@ public final class SystemVersionsListByLocationSamples { systemVersionsListByLocation(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.systemVersions().listByLocation("eastus", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/SystemVersions_ListByLocation_MaximumSet_Gen.json + */ + /** + * Sample code: List Exadata System Versions by the provided filter - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listExadataSystemVersionsByTheProvidedFilterGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.systemVersions().listByLocation("eastus", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/SystemVersions_ListByLocation_MinimumSet_Gen.json + */ + /** + * Sample code: List Exadata System Versions by the provided filter - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void listExadataSystemVersionsByTheProvidedFilterGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.systemVersions().listByLocation("eastus", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesCreateOrUpdateSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesCreateOrUpdateSamples.java index 847f0e644f4d..1f4069d3b276 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesCreateOrUpdateSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualNetworkAddressesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-03-01/virtualNetworkAddresses_create.json + * x-ms-original-file: 2025-09-01/virtualNetworkAddresses_create.json */ /** * Sample code: VirtualNetworkAddresses_createOrUpdate. @@ -27,4 +27,38 @@ public final class VirtualNetworkAddressesCreateOrUpdateSamples { new VirtualNetworkAddressProperties().withIpAddress("192.168.0.1").withVmOcid("ocid1..aaaa")) .create(); } + + /* + * x-ms-original-file: 2025-09-01/VirtualNetworkAddresses_CreateOrUpdate_MaximumSet_Gen.json + */ + /** + * Sample code: Create Virtual Network Address - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void createVirtualNetworkAddressGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.virtualNetworkAddresses() + .define("Replace this value with a string matching RegExp .*") + .withExistingCloudVmCluster("rgopenapi", "Replace this value with a string matching RegExp .*") + .withProperties( + new VirtualNetworkAddressProperties().withIpAddress("192.168.0.1").withVmOcid("ocid1..aaaa")) + .create(); + } + + /* + * x-ms-original-file: 2025-09-01/VirtualNetworkAddresses_CreateOrUpdate_MinimumSet_Gen.json + */ + /** + * Sample code: Create Virtual Network Address - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void createVirtualNetworkAddressGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.virtualNetworkAddresses() + .define("Replace this value with a string matching RegExp .*") + .withExistingCloudVmCluster("rgopenapi", "Replace this value with a string matching RegExp .*") + .create(); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesDeleteSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesDeleteSamples.java index a22605f0f2fd..a5510a2bfb20 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesDeleteSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesDeleteSamples.java @@ -9,7 +9,22 @@ */ public final class VirtualNetworkAddressesDeleteSamples { /* - * x-ms-original-file: 2025-03-01/virtualNetworkAddresses_delete.json + * x-ms-original-file: 2025-09-01/VirtualNetworkAddresses_Delete_MinimumSet_Gen.json + */ + /** + * Sample code: Delete Virtual Network Address - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteVirtualNetworkAddressGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.virtualNetworkAddresses() + .delete("rgopenapi", "Replace this value with a string matching RegExp .*", + "Replace this value with a string matching RegExp .*", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/virtualNetworkAddresses_delete.json */ /** * Sample code: VirtualNetworkAddresses_delete. @@ -20,4 +35,19 @@ public final class VirtualNetworkAddressesDeleteSamples { virtualNetworkAddressesDelete(com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { manager.virtualNetworkAddresses().delete("rg000", "cluster1", "hostname1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/VirtualNetworkAddresses_Delete_MaximumSet_Gen.json + */ + /** + * Sample code: Delete Virtual Network Address - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void deleteVirtualNetworkAddressGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.virtualNetworkAddresses() + .delete("rgopenapi", "Replace this value with a string matching RegExp .*", + "Replace this value with a string matching RegExp .*", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesGetSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesGetSamples.java index 554034688df5..362a1d2418b5 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesGetSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesGetSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualNetworkAddressesGetSamples { /* - * x-ms-original-file: 2025-03-01/virtualNetworkAddresses_get.json + * x-ms-original-file: 2025-09-01/virtualNetworkAddresses_get.json */ /** * Sample code: VirtualNetworkAddresses_get. @@ -21,4 +21,34 @@ public final class VirtualNetworkAddressesGetSamples { manager.virtualNetworkAddresses() .getWithResponse("rg000", "cluster1", "hostname1", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2025-09-01/VirtualNetworkAddresses_Get_MinimumSet_Gen.json + */ + /** + * Sample code: Get Virtual Network Address - generated by [MinimumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getVirtualNetworkAddressGeneratedByMinimumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.virtualNetworkAddresses() + .getWithResponse("rgopenapi", "Replace this value with a string matching RegExp .*", + "Replace this value with a string matching RegExp .*", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2025-09-01/VirtualNetworkAddresses_Get_MaximumSet_Gen.json + */ + /** + * Sample code: Get Virtual Network Address - generated by [MaximumSet] rule. + * + * @param manager Entry point to OracleDatabaseManager. + */ + public static void getVirtualNetworkAddressGeneratedByMaximumSetRule( + com.azure.resourcemanager.oracledatabase.OracleDatabaseManager manager) { + manager.virtualNetworkAddresses() + .getWithResponse("rgopenapi", "Replace this value with a string matching RegExp .*", + "Replace this value with a string matching RegExp .*", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesListByCloudVmClusterSamples.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesListByCloudVmClusterSamples.java index c1a25c3d00e4..b1259f5bbc71 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesListByCloudVmClusterSamples.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/samples/java/com/azure/resourcemanager/oracledatabase/generated/VirtualNetworkAddressesListByCloudVmClusterSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualNetworkAddressesListByCloudVmClusterSamples { /* - * x-ms-original-file: 2025-03-01/virtualNetworkAddresses_listByParent.json + * x-ms-original-file: 2025-09-01/virtualNetworkAddresses_listByParent.json */ /** * Sample code: VirtualNetworkAddresses_listByCloudVmCluster. diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ActivationLinksInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ActivationLinksInnerTests.java index efe21f8c9edb..d598bf6d7b2f 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ActivationLinksInnerTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ActivationLinksInnerTests.java @@ -10,8 +10,8 @@ public final class ActivationLinksInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ActivationLinksInner model = BinaryData - .fromString("{\"newCloudAccountActivationLink\":\"lwwrl\",\"existingCloudAccountActivationLink\":\"m\"}") + ActivationLinksInner model = BinaryData.fromString( + "{\"newCloudAccountActivationLink\":\"mnpkukghimdblxg\",\"existingCloudAccountActivationLink\":\"mfnjh\"}") .toObject(ActivationLinksInner.class); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AddRemoveDbNodeTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AddRemoveDbNodeTests.java index 1e063f978bbc..87303444c692 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AddRemoveDbNodeTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AddRemoveDbNodeTests.java @@ -12,15 +12,17 @@ public final class AddRemoveDbNodeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AddRemoveDbNode model = BinaryData.fromString("{\"dbServers\":[\"duhavhqlkt\",\"umaq\",\"lbg\",\"cdui\"]}") + AddRemoveDbNode model = BinaryData + .fromString("{\"dbServers\":[\"ievseotgqrllt\",\"u\",\"lauwzizxbmpgcjef\",\"zmuvpbttdumorppx\"]}") .toObject(AddRemoveDbNode.class); - Assertions.assertEquals("duhavhqlkt", model.dbServers().get(0)); + Assertions.assertEquals("ievseotgqrllt", model.dbServers().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AddRemoveDbNode model = new AddRemoveDbNode().withDbServers(Arrays.asList("duhavhqlkt", "umaq", "lbg", "cdui")); + AddRemoveDbNode model = new AddRemoveDbNode() + .withDbServers(Arrays.asList("ievseotgqrllt", "u", "lauwzizxbmpgcjef", "zmuvpbttdumorppx")); model = BinaryData.fromObject(model).toObject(AddRemoveDbNode.class); - Assertions.assertEquals("duhavhqlkt", model.dbServers().get(0)); + Assertions.assertEquals("ievseotgqrllt", model.dbServers().get(0)); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AllConnectionStringTypeTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AllConnectionStringTypeTests.java index ea6540fd76ab..dacb4f07312b 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AllConnectionStringTypeTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AllConnectionStringTypeTests.java @@ -12,10 +12,10 @@ public final class AllConnectionStringTypeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AllConnectionStringType model - = BinaryData.fromString("{\"high\":\"xmrhu\",\"low\":\"wp\",\"medium\":\"sutrgjup\"}") + = BinaryData.fromString("{\"high\":\"pvruudlg\",\"low\":\"bth\",\"medium\":\"tgk\"}") .toObject(AllConnectionStringType.class); - Assertions.assertEquals("xmrhu", model.high()); - Assertions.assertEquals("wp", model.low()); - Assertions.assertEquals("sutrgjup", model.medium()); + Assertions.assertEquals("pvruudlg", model.high()); + Assertions.assertEquals("bth", model.low()); + Assertions.assertEquals("tgk", model.medium()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ApexDetailsTypeTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ApexDetailsTypeTests.java index 39d83d12d3a9..b142f63bbb80 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ApexDetailsTypeTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ApexDetailsTypeTests.java @@ -11,9 +11,10 @@ public final class ApexDetailsTypeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ApexDetailsType model = BinaryData.fromString("{\"apexVersion\":\"ydxtqm\",\"ordsVersion\":\"ox\"}") - .toObject(ApexDetailsType.class); - Assertions.assertEquals("ydxtqm", model.apexVersion()); - Assertions.assertEquals("ox", model.ordsVersion()); + ApexDetailsType model + = BinaryData.fromString("{\"apexVersion\":\"qnrnrpxehuwryk\",\"ordsVersion\":\"aifmvikl\"}") + .toObject(ApexDetailsType.class); + Assertions.assertEquals("qnrnrpxehuwryk", model.apexVersion()); + Assertions.assertEquals("aifmvikl", model.ordsVersion()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupInnerTests.java index 3fd9c4ef157c..ace2fdb59d33 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupInnerTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupInnerTests.java @@ -13,19 +13,18 @@ public final class AutonomousDatabaseBackupInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDatabaseBackupInner model = BinaryData.fromString( - "{\"properties\":{\"autonomousDatabaseOcid\":\"pvruudlg\",\"databaseSizeInTbs\":17.853765649649766,\"dbVersion\":\"ostgkts\",\"displayName\":\"dxeclzedqbcvh\",\"ocid\":\"h\",\"isAutomatic\":true,\"isRestorable\":false,\"lifecycleDetails\":\"dlwwqfbumlkxt\",\"lifecycleState\":\"Active\",\"retentionPeriodInDays\":2076050898,\"sizeInTbs\":79.85167278535754,\"timeAvailableTil\":\"2021-08-23T05:36:57Z\",\"timeStarted\":\"hwgfwsrt\",\"timeEnded\":\"coezbrhubskh\",\"backupType\":\"Incremental\",\"provisioningState\":\"Failed\"},\"id\":\"okkqfqjbvleo\",\"name\":\"fmluiqtqzfavyvn\",\"type\":\"qybaryeua\"}") + "{\"properties\":{\"autonomousDatabaseOcid\":\"a\",\"databaseSizeInTbs\":82.40192998154433,\"dbVersion\":\"hminyflnorwmduv\",\"displayName\":\"klvxwmyg\",\"ocid\":\"pgpqchiszepnnb\",\"isAutomatic\":false,\"isRestorable\":false,\"lifecycleDetails\":\"bbdaxco\",\"lifecycleState\":\"Deleting\",\"retentionPeriodInDays\":536315027,\"sizeInTbs\":62.79288188149956,\"timeAvailableTil\":\"2021-03-03T08:46:38Z\",\"timeStarted\":\"okwbqplh\",\"timeEnded\":\"nuuepzlrp\",\"backupType\":\"Incremental\",\"provisioningState\":\"Canceled\"},\"id\":\"dweyuqdunv\",\"name\":\"nnrwrbiork\",\"type\":\"alywjhhgdn\"}") .toObject(AutonomousDatabaseBackupInner.class); - Assertions.assertEquals("dxeclzedqbcvh", model.properties().displayName()); - Assertions.assertEquals(2076050898, model.properties().retentionPeriodInDays()); + Assertions.assertEquals("klvxwmyg", model.properties().displayName()); + Assertions.assertEquals(536315027, model.properties().retentionPeriodInDays()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AutonomousDatabaseBackupInner model = new AutonomousDatabaseBackupInner() - .withProperties(new AutonomousDatabaseBackupProperties().withDisplayName("dxeclzedqbcvh") - .withRetentionPeriodInDays(2076050898)); + AutonomousDatabaseBackupInner model = new AutonomousDatabaseBackupInner().withProperties( + new AutonomousDatabaseBackupProperties().withDisplayName("klvxwmyg").withRetentionPeriodInDays(536315027)); model = BinaryData.fromObject(model).toObject(AutonomousDatabaseBackupInner.class); - Assertions.assertEquals("dxeclzedqbcvh", model.properties().displayName()); - Assertions.assertEquals(2076050898, model.properties().retentionPeriodInDays()); + Assertions.assertEquals("klvxwmyg", model.properties().displayName()); + Assertions.assertEquals(536315027, model.properties().retentionPeriodInDays()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupListResultTests.java index 550782978da4..bd2d232814f3 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupListResultTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupListResultTests.java @@ -12,10 +12,10 @@ public final class AutonomousDatabaseBackupListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDatabaseBackupListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"autonomousDatabaseOcid\":\"aufactkahzovajjz\",\"databaseSizeInTbs\":58.101849517808134,\"dbVersion\":\"s\",\"displayName\":\"eekulfgslqubkwd\",\"ocid\":\"nrdsutujbazpjuoh\",\"isAutomatic\":false,\"isRestorable\":true,\"lifecycleDetails\":\"norwmduvwpklvx\",\"lifecycleState\":\"Updating\",\"retentionPeriodInDays\":1917702529,\"sizeInTbs\":85.42979852196028,\"timeAvailableTil\":\"2021-01-04T00:18:57Z\",\"timeStarted\":\"hiszepnnbjcrxgib\",\"timeEnded\":\"axconfozauo\",\"backupType\":\"LongTerm\",\"provisioningState\":\"Failed\"},\"id\":\"wbqpl\",\"name\":\"lvnuuepzlrph\",\"type\":\"zsoldwey\"},{\"properties\":{\"autonomousDatabaseOcid\":\"unvmnnr\",\"databaseSizeInTbs\":46.880625215979464,\"dbVersion\":\"rk\",\"displayName\":\"lywjhh\",\"ocid\":\"nhxmsi\",\"isAutomatic\":false,\"isRestorable\":true,\"lifecycleDetails\":\"ox\",\"lifecycleState\":\"Active\",\"retentionPeriodInDays\":524951220,\"sizeInTbs\":1.7481186593642062,\"timeAvailableTil\":\"2021-09-12T11:48:09Z\",\"timeStarted\":\"uzaofjchvcyyy\",\"timeEnded\":\"gdotcubiipuipwo\",\"backupType\":\"LongTerm\",\"provisioningState\":\"Failed\"},\"id\":\"jeknizshq\",\"name\":\"cimpevfg\",\"type\":\"b\"},{\"properties\":{\"autonomousDatabaseOcid\":\"ilbywdxsm\",\"databaseSizeInTbs\":31.605477205960717,\"dbVersion\":\"wfscjfn\",\"displayName\":\"szqujizdvoq\",\"ocid\":\"ibyowbblgyavutp\",\"isAutomatic\":false,\"isRestorable\":false,\"lifecycleDetails\":\"ismsksbpimlqolj\",\"lifecycleState\":\"Deleting\",\"retentionPeriodInDays\":1266653897,\"sizeInTbs\":31.413313090178196,\"timeAvailableTil\":\"2021-11-22T22:55:42Z\",\"timeStarted\":\"gcvizqzdwlvwlyou\",\"timeEnded\":\"gfbkjubdyh\",\"backupType\":\"LongTerm\",\"provisioningState\":\"Succeeded\"},\"id\":\"sgow\",\"name\":\"fttsttk\",\"type\":\"lahb\"},{\"properties\":{\"autonomousDatabaseOcid\":\"tx\",\"databaseSizeInTbs\":78.56374425211347,\"dbVersion\":\"xitmmqtgqqq\",\"displayName\":\"rnxrxcpj\",\"ocid\":\"savokqdzf\",\"isAutomatic\":false,\"isRestorable\":false,\"lifecycleDetails\":\"l\",\"lifecycleState\":\"Active\",\"retentionPeriodInDays\":234618918,\"sizeInTbs\":47.08657793645696,\"timeAvailableTil\":\"2021-09-28T07:29:49Z\",\"timeStarted\":\"tnwxy\",\"timeEnded\":\"pidkqqfkuvscxkdm\",\"backupType\":\"LongTerm\",\"provisioningState\":\"Provisioning\"},\"id\":\"brxk\",\"name\":\"mloazuru\",\"type\":\"cbgoor\"}],\"nextLink\":\"eoybfhjxakvvjgs\"}") + "{\"value\":[{\"properties\":{\"autonomousDatabaseOcid\":\"fnynszqujizdvoqy\",\"databaseSizeInTbs\":86.6445080916979,\"dbVersion\":\"wb\",\"displayName\":\"gyavu\",\"ocid\":\"thjoxoism\",\"isAutomatic\":false,\"isRestorable\":false,\"lifecycleDetails\":\"mlqoljx\",\"lifecycleState\":\"Updating\",\"retentionPeriodInDays\":601502455,\"sizeInTbs\":55.95818854752517,\"timeAvailableTil\":\"2021-01-05T13:36:37Z\",\"timeStarted\":\"cvizqzdwlvw\",\"timeEnded\":\"oupfgfb\",\"backupType\":\"Incremental\",\"provisioningState\":\"Canceled\"},\"id\":\"hgkfmin\",\"name\":\"g\",\"type\":\"wzf\"},{\"properties\":{\"autonomousDatabaseOcid\":\"ttktlahbq\",\"databaseSizeInTbs\":11.302462171145955,\"dbVersion\":\"gzukxitmm\",\"displayName\":\"gqqqxh\",\"ocid\":\"xrxc\",\"isAutomatic\":false,\"isRestorable\":true,\"lifecycleDetails\":\"vokqdzfv\",\"lifecycleState\":\"Updating\",\"retentionPeriodInDays\":1224292307,\"sizeInTbs\":82.5578507505425,\"timeAvailableTil\":\"2021-01-02T17:49:26Z\",\"timeStarted\":\"bajlka\",\"timeEnded\":\"wxyiopidkqq\",\"backupType\":\"LongTerm\",\"provisioningState\":\"Succeeded\"},\"id\":\"xkdmligo\",\"name\":\"ibrxkp\",\"type\":\"loazuruocbgoo\"}],\"nextLink\":\"te\"}") .toObject(AutonomousDatabaseBackupListResult.class); - Assertions.assertEquals("eekulfgslqubkwd", model.value().get(0).properties().displayName()); - Assertions.assertEquals(1917702529, model.value().get(0).properties().retentionPeriodInDays()); - Assertions.assertEquals("eoybfhjxakvvjgs", model.nextLink()); + Assertions.assertEquals("gyavu", model.value().get(0).properties().displayName()); + Assertions.assertEquals(601502455, model.value().get(0).properties().retentionPeriodInDays()); + Assertions.assertEquals("te", model.nextLink()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupPropertiesTests.java index 6f3f09ce9806..dcd4fe93c3f3 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupPropertiesTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupPropertiesTests.java @@ -12,18 +12,18 @@ public final class AutonomousDatabaseBackupPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDatabaseBackupProperties model = BinaryData.fromString( - "{\"autonomousDatabaseOcid\":\"kq\",\"databaseSizeInTbs\":42.18581462849447,\"dbVersion\":\"slesjcbhernnt\",\"displayName\":\"w\",\"ocid\":\"cv\",\"isAutomatic\":true,\"isRestorable\":false,\"lifecycleDetails\":\"ehwagoh\",\"lifecycleState\":\"Active\",\"retentionPeriodInDays\":569382071,\"sizeInTbs\":59.088246772904384,\"timeAvailableTil\":\"2021-11-12T21:50:06Z\",\"timeStarted\":\"vhmxtdrjfu\",\"timeEnded\":\"coebjvewzcj\",\"backupType\":\"Full\",\"provisioningState\":\"Provisioning\"}") + "{\"autonomousDatabaseOcid\":\"msi\",\"databaseSizeInTbs\":17.68460269000731,\"dbVersion\":\"loxggdufiqn\",\"displayName\":\"euzaof\",\"ocid\":\"hvcyyysfg\",\"isAutomatic\":true,\"isRestorable\":true,\"lifecycleDetails\":\"iipuipwoqonm\",\"lifecycleState\":\"Updating\",\"retentionPeriodInDays\":167629289,\"sizeInTbs\":20.112407568905265,\"timeAvailableTil\":\"2021-10-27T20:39:18Z\",\"timeStarted\":\"vcimpev\",\"timeEnded\":\"mblrrilbywd\",\"backupType\":\"Incremental\",\"provisioningState\":\"Succeeded\"}") .toObject(AutonomousDatabaseBackupProperties.class); - Assertions.assertEquals("w", model.displayName()); - Assertions.assertEquals(569382071, model.retentionPeriodInDays()); + Assertions.assertEquals("euzaof", model.displayName()); + Assertions.assertEquals(167629289, model.retentionPeriodInDays()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AutonomousDatabaseBackupProperties model - = new AutonomousDatabaseBackupProperties().withDisplayName("w").withRetentionPeriodInDays(569382071); + = new AutonomousDatabaseBackupProperties().withDisplayName("euzaof").withRetentionPeriodInDays(167629289); model = BinaryData.fromObject(model).toObject(AutonomousDatabaseBackupProperties.class); - Assertions.assertEquals("w", model.displayName()); - Assertions.assertEquals(569382071, model.retentionPeriodInDays()); + Assertions.assertEquals("euzaof", model.displayName()); + Assertions.assertEquals(167629289, model.retentionPeriodInDays()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupUpdatePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupUpdatePropertiesTests.java index 5112d68f77a5..aca9e3ef7cb8 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupUpdatePropertiesTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupUpdatePropertiesTests.java @@ -11,16 +11,16 @@ public final class AutonomousDatabaseBackupUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AutonomousDatabaseBackupUpdateProperties model = BinaryData.fromString("{\"retentionPeriodInDays\":1356128244}") + AutonomousDatabaseBackupUpdateProperties model = BinaryData.fromString("{\"retentionPeriodInDays\":1445033324}") .toObject(AutonomousDatabaseBackupUpdateProperties.class); - Assertions.assertEquals(1356128244, model.retentionPeriodInDays()); + Assertions.assertEquals(1445033324, model.retentionPeriodInDays()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AutonomousDatabaseBackupUpdateProperties model - = new AutonomousDatabaseBackupUpdateProperties().withRetentionPeriodInDays(1356128244); + = new AutonomousDatabaseBackupUpdateProperties().withRetentionPeriodInDays(1445033324); model = BinaryData.fromObject(model).toObject(AutonomousDatabaseBackupUpdateProperties.class); - Assertions.assertEquals(1356128244, model.retentionPeriodInDays()); + Assertions.assertEquals(1445033324, model.retentionPeriodInDays()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupUpdateTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupUpdateTests.java index abcc912d30b8..57ccd4eb588e 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupUpdateTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupUpdateTests.java @@ -13,16 +13,16 @@ public final class AutonomousDatabaseBackupUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDatabaseBackupUpdate model - = BinaryData.fromString("{\"properties\":{\"retentionPeriodInDays\":2030279992}}") + = BinaryData.fromString("{\"properties\":{\"retentionPeriodInDays\":1866560405}}") .toObject(AutonomousDatabaseBackupUpdate.class); - Assertions.assertEquals(2030279992, model.properties().retentionPeriodInDays()); + Assertions.assertEquals(1866560405, model.properties().retentionPeriodInDays()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AutonomousDatabaseBackupUpdate model = new AutonomousDatabaseBackupUpdate() - .withProperties(new AutonomousDatabaseBackupUpdateProperties().withRetentionPeriodInDays(2030279992)); + .withProperties(new AutonomousDatabaseBackupUpdateProperties().withRetentionPeriodInDays(1866560405)); model = BinaryData.fromObject(model).toObject(AutonomousDatabaseBackupUpdate.class); - Assertions.assertEquals(2030279992, model.properties().retentionPeriodInDays()); + Assertions.assertEquals(1866560405, model.properties().retentionPeriodInDays()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsCreateOrUpdateMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsCreateOrUpdateMockTests.java index 75a66e3f6336..c41c22a2959c 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsCreateOrUpdateMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseBackupsCreateOrUpdateMockTests.java @@ -22,7 +22,7 @@ public final class AutonomousDatabaseBackupsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"autonomousDatabaseOcid\":\"jvaannggiycwkd\",\"databaseSizeInTbs\":38.89668532297505,\"dbVersion\":\"wfekaumrrqmb\",\"displayName\":\"qkratbnxwbjsid\",\"ocid\":\"rkfpks\",\"isAutomatic\":false,\"isRestorable\":false,\"lifecycleDetails\":\"ewijymrhbguz\",\"lifecycleState\":\"Active\",\"retentionPeriodInDays\":901614269,\"sizeInTbs\":40.12606897846549,\"timeAvailableTil\":\"2021-11-24T21:17:03Z\",\"timeStarted\":\"hhqosmffjku\",\"timeEnded\":\"cyar\",\"backupType\":\"Incremental\",\"provisioningState\":\"Succeeded\"},\"id\":\"uabzoghkt\",\"name\":\"pyc\",\"type\":\"hcoeocnhzq\"}"; + = "{\"properties\":{\"autonomousDatabaseOcid\":\"f\",\"databaseSizeInTbs\":93.10834441563006,\"dbVersion\":\"xhmw\",\"displayName\":\"bckyoikxk\",\"ocid\":\"negknjzrb\",\"isAutomatic\":false,\"isRestorable\":true,\"lifecycleDetails\":\"vukaobrlbpgsnb\",\"lifecycleState\":\"Active\",\"retentionPeriodInDays\":1428881069,\"sizeInTbs\":6.319268088247442,\"timeAvailableTil\":\"2021-09-17T17:45:32Z\",\"timeStarted\":\"owa\",\"timeEnded\":\"wa\",\"backupType\":\"Incremental\",\"provisioningState\":\"Succeeded\"},\"id\":\"cgqtag\",\"name\":\"rclsso\",\"type\":\"jomevtfycnlb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AutonomousDatabaseBackup response = manager.autonomousDatabaseBackups() - .define("swyskbruffg") - .withExistingAutonomousDatabase("ttxpnrupza", "mrdixtreki") - .withProperties(new AutonomousDatabaseBackupProperties().withDisplayName("vmblcouqe") - .withRetentionPeriodInDays(2060643943)) + .define("kb") + .withExistingAutonomousDatabase("trpc", "qkio") + .withProperties( + new AutonomousDatabaseBackupProperties().withDisplayName("sqxutr").withRetentionPeriodInDays(191200387)) .create(); - Assertions.assertEquals("qkratbnxwbjsid", response.properties().displayName()); - Assertions.assertEquals(901614269, response.properties().retentionPeriodInDays()); + Assertions.assertEquals("bckyoikxk", response.properties().displayName()); + Assertions.assertEquals(1428881069, 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 index 9800e1d8ba6a..b044a4aaddae 100644 --- 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 @@ -21,7 +21,7 @@ public final class AutonomousDatabaseBackupsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"autonomousDatabaseOcid\":\"illcecfehu\",\"databaseSizeInTbs\":41.80036188758282,\"dbVersion\":\"uhicqllizstacsjv\",\"displayName\":\"weftkwq\",\"ocid\":\"pmvssehaep\",\"isAutomatic\":false,\"isRestorable\":true,\"lifecycleDetails\":\"czhupeukni\",\"lifecycleState\":\"Updating\",\"retentionPeriodInDays\":1251720208,\"sizeInTbs\":21.732626018932322,\"timeAvailableTil\":\"2021-07-13T08:05:36Z\",\"timeStarted\":\"fbocyvhh\",\"timeEnded\":\"rtywi\",\"backupType\":\"Incremental\",\"provisioningState\":\"Provisioning\"},\"id\":\"kuflgbh\",\"name\":\"auacdixmxufrsr\",\"type\":\"jqgdkfnozoeo\"}"; + = "{\"properties\":{\"autonomousDatabaseOcid\":\"ltrfowtdvrf\",\"databaseSizeInTbs\":66.01458357505724,\"dbVersion\":\"cvjdrqcrjidhft\",\"displayName\":\"vhdxlwyo\",\"ocid\":\"fqz\",\"isAutomatic\":false,\"isRestorable\":false,\"lifecycleDetails\":\"ixh\",\"lifecycleState\":\"Deleting\",\"retentionPeriodInDays\":1416309389,\"sizeInTbs\":48.794259649277116,\"timeAvailableTil\":\"2021-03-01T22:13:55Z\",\"timeStarted\":\"oum\",\"timeEnded\":\"n\",\"backupType\":\"Full\",\"provisioningState\":\"Failed\"},\"id\":\"huzgfxo\",\"name\":\"jtpusllywpvtiotz\",\"type\":\"pdbollg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AutonomousDatabaseBackup response = manager.autonomousDatabaseBackups() - .getWithResponse("gctmgxuupbezq", "cydrtceukdqkk", "ihztgeqmgqzgwldo", com.azure.core.util.Context.NONE) + .getWithResponse("lnwy", "mouvbl", "mo", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("weftkwq", response.properties().displayName()); - Assertions.assertEquals(1251720208, response.properties().retentionPeriodInDays()); + Assertions.assertEquals("vhdxlwyo", response.properties().displayName()); + Assertions.assertEquals(1416309389, 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 index 044113ae93fe..f9e86c84a841 100644 --- 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 @@ -22,7 +22,7 @@ public final class AutonomousDatabaseBackupsListByAutonomousDatabaseMockTests { @Test public void testListByAutonomousDatabase() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"autonomousDatabaseOcid\":\"ps\",\"databaseSizeInTbs\":83.35540295555349,\"dbVersion\":\"fkyjpmspbpssdfpp\",\"displayName\":\"gt\",\"ocid\":\"yujtvczkcnyx\",\"isAutomatic\":true,\"isRestorable\":true,\"lifecycleDetails\":\"d\",\"lifecycleState\":\"Updating\",\"retentionPeriodInDays\":937586674,\"sizeInTbs\":24.883832140034677,\"timeAvailableTil\":\"2021-05-29T00:39:17Z\",\"timeStarted\":\"aglqivbgkcvkh\",\"timeEnded\":\"vuqd\",\"backupType\":\"Full\",\"provisioningState\":\"Canceled\"},\"id\":\"yp\",\"name\":\"pubcpzgpxtivhjk\",\"type\":\"idibgqjxgpn\"}]}"; + = "{\"value\":[{\"properties\":{\"autonomousDatabaseOcid\":\"mtqjkqevadrmm\",\"databaseSizeInTbs\":50.16402116378394,\"dbVersion\":\"vcmjzkxiidisczsk\",\"displayName\":\"woqiqazugamxzkrr\",\"ocid\":\"iisb\",\"isAutomatic\":false,\"isRestorable\":true,\"lifecycleDetails\":\"cekuz\",\"lifecycleState\":\"Failed\",\"retentionPeriodInDays\":864478942,\"sizeInTbs\":93.55106326577133,\"timeAvailableTil\":\"2021-04-13T20:07:26Z\",\"timeStarted\":\"kzxuiz\",\"timeEnded\":\"hnepkpeti\",\"backupType\":\"Full\",\"provisioningState\":\"Canceled\"},\"id\":\"bxdukecpxdazvd\",\"name\":\"ctmmkoszudbl\",\"type\":\"s\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListByAutonomousDatabase() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.autonomousDatabaseBackups() - .listByAutonomousDatabase("hxqszdtmaajquh", "xylrjvmtygjbmz", com.azure.core.util.Context.NONE); + .listByAutonomousDatabase("yfqiuasig", "owsocnequygdjbo", com.azure.core.util.Context.NONE); - Assertions.assertEquals("gt", response.iterator().next().properties().displayName()); - Assertions.assertEquals(937586674, response.iterator().next().properties().retentionPeriodInDays()); + Assertions.assertEquals("woqiqazugamxzkrr", response.iterator().next().properties().displayName()); + Assertions.assertEquals(864478942, 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 index d99589c2af09..df87112d8af4 100644 --- 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 @@ -12,8 +12,8 @@ public final class AutonomousDatabaseCharacterSetInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDatabaseCharacterSetInner model = BinaryData.fromString( - "{\"properties\":{\"characterSet\":\"r\"},\"id\":\"lmywwtkgkxnyed\",\"name\":\"b\",\"type\":\"yvudtjuewbci\"}") + "{\"properties\":{\"characterSet\":\"bfhjxakvvjgsl\"},\"id\":\"dilmyww\",\"name\":\"kgkxn\",\"type\":\"edabgyvudtjue\"}") .toObject(AutonomousDatabaseCharacterSetInner.class); - Assertions.assertEquals("r", model.properties().characterSet()); + Assertions.assertEquals("bfhjxakvvjgsl", model.properties().characterSet()); } } 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 index 2660604af3df..2d2ecb6e1e73 100644 --- 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 @@ -12,9 +12,9 @@ public final class AutonomousDatabaseCharacterSetListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDatabaseCharacterSetListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"characterSet\":\"cybvpayakkudzpxg\"},\"id\":\"plmag\",\"name\":\"tcyohpfkyrk\",\"type\":\"bdgiogsjk\"},{\"properties\":{\"characterSet\":\"wqjnob\"},\"id\":\"yhddvia\",\"name\":\"egfnmntfpmvmemfn\",\"type\":\"zdwvvbalxl\"}],\"nextLink\":\"chp\"}") + "{\"value\":[{\"properties\":{\"characterSet\":\"ccybvp\"},\"id\":\"akkud\",\"name\":\"px\",\"type\":\"wjplma\"},{\"properties\":{\"characterSet\":\"tcyohpfkyrk\"},\"id\":\"dg\",\"name\":\"ogsjkmnwqjno\",\"type\":\"aiy\"}],\"nextLink\":\"d\"}") .toObject(AutonomousDatabaseCharacterSetListResult.class); - Assertions.assertEquals("cybvpayakkudzpxg", model.value().get(0).properties().characterSet()); - Assertions.assertEquals("chp", model.nextLink()); + Assertions.assertEquals("ccybvp", model.value().get(0).properties().characterSet()); + Assertions.assertEquals("d", 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 index a2c02a7f67be..3e8b411d34dc 100644 --- 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 @@ -11,8 +11,8 @@ public final class AutonomousDatabaseCharacterSetPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AutonomousDatabaseCharacterSetProperties model = BinaryData.fromString("{\"characterSet\":\"xuuwhcj\"}") + AutonomousDatabaseCharacterSetProperties model = BinaryData.fromString("{\"characterSet\":\"bcihxuuwhc\"}") .toObject(AutonomousDatabaseCharacterSetProperties.class); - Assertions.assertEquals("xuuwhcj", model.characterSet()); + Assertions.assertEquals("bcihxuuwhc", model.characterSet()); } } 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 index a12baaec0da8..8653861ce6cb 100644 --- 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 @@ -21,7 +21,7 @@ public final class AutonomousDatabaseCharacterSetsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"characterSet\":\"h\"},\"id\":\"qinfszpyglqd\",\"name\":\"mrjzral\",\"type\":\"xpjb\"}"; + = "{\"properties\":{\"characterSet\":\"iiy\"},\"id\":\"sik\",\"name\":\"z\",\"type\":\"cufqbvntnrgmqs\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AutonomousDatabaseCharacterSet response = manager.autonomousDatabaseCharacterSets() - .getWithResponse("ot", "jzcfyjzptwr", com.azure.core.util.Context.NONE) + .getWithResponse("gjco", "kk", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("h", response.properties().characterSet()); + Assertions.assertEquals("iiy", response.properties().characterSet()); } } 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 index be74d8532e5b..0a5238b4cc79 100644 --- 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 @@ -22,7 +22,7 @@ public final class AutonomousDatabaseCharacterSetsListByLocationMockTests { @Test public void testListByLocation() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"characterSet\":\"enky\"},\"id\":\"qzvs\",\"name\":\"xfxjelgcmpzqj\",\"type\":\"hhqxuwyvcacoyviv\"}]}"; + = "{\"value\":[{\"properties\":{\"characterSet\":\"xcpwzvmdok\"},\"id\":\"dt\",\"name\":\"wlwxlboncqbazqic\",\"type\":\"chygtvxbyjane\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testListByLocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.autonomousDatabaseCharacterSets().listByLocation("ypsjoq", com.azure.core.util.Context.NONE); + = manager.autonomousDatabaseCharacterSets().listByLocation("rhcekxgnly", com.azure.core.util.Context.NONE); - Assertions.assertEquals("enky", response.iterator().next().properties().characterSet()); + Assertions.assertEquals("xcpwzvmdok", response.iterator().next().properties().characterSet()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseLifecycleActionTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseLifecycleActionTests.java new file mode 100644 index 000000000000..32d21eac8f7a --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AutonomousDatabaseLifecycleActionTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleAction; +import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseLifecycleActionEnum; +import org.junit.jupiter.api.Assertions; + +public final class AutonomousDatabaseLifecycleActionTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + AutonomousDatabaseLifecycleAction model + = BinaryData.fromString("{\"action\":\"Start\"}").toObject(AutonomousDatabaseLifecycleAction.class); + Assertions.assertEquals(AutonomousDatabaseLifecycleActionEnum.START, model.action()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + AutonomousDatabaseLifecycleAction model + = new AutonomousDatabaseLifecycleAction().withAction(AutonomousDatabaseLifecycleActionEnum.START); + model = BinaryData.fromObject(model).toObject(AutonomousDatabaseLifecycleAction.class); + Assertions.assertEquals(AutonomousDatabaseLifecycleActionEnum.START, model.action()); + } +} 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 index 70beab19981a..da35d07e5a5b 100644 --- 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 @@ -12,8 +12,8 @@ public final class AutonomousDatabaseNationalCharacterSetInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDatabaseNationalCharacterSetInner model = BinaryData.fromString( - "{\"properties\":{\"characterSet\":\"bzevwrd\"},\"id\":\"fukuvsjcswsmystu\",\"name\":\"uqypfcvle\",\"type\":\"chpqbmfpjba\"}") + "{\"properties\":{\"characterSet\":\"acegfnmntf\"},\"id\":\"vm\",\"name\":\"mfnczd\",\"type\":\"vvbalx\"}") .toObject(AutonomousDatabaseNationalCharacterSetInner.class); - Assertions.assertEquals("bzevwrd", model.properties().characterSet()); + Assertions.assertEquals("acegfnmntf", model.properties().characterSet()); } } 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 index 5e6295168fac..62c067ffffe1 100644 --- 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 @@ -12,9 +12,9 @@ public final class AutonomousDatabaseNationalCharacterSetListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDatabaseNationalCharacterSetListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"characterSet\":\"spuunnoxyhkxgq\"},\"id\":\"rihpfhoq\",\"name\":\"aaewdaomdjv\",\"type\":\"pjxxkzb\"},{\"properties\":{\"characterSet\":\"sgeivsiy\"},\"id\":\"kdncj\",\"name\":\"xonbzoggculapz\",\"type\":\"y\"},{\"properties\":{\"characterSet\":\"gogtqxepnylbf\"},\"id\":\"jlyjtlvofq\",\"name\":\"hvfcibyfmow\",\"type\":\"xrkjpvdw\"},{\"properties\":{\"characterSet\":\"zwiivwzjbhyzs\"},\"id\":\"rkambt\",\"name\":\"negvmnvuqe\",\"type\":\"vldspa\"}],\"nextLink\":\"jbkkdmflvestmjl\"}") + "{\"value\":[{\"properties\":{\"characterSet\":\"podbzevwrdnh\"},\"id\":\"kuvsjcswsm\",\"name\":\"stul\",\"type\":\"qypfcv\"}],\"nextLink\":\"rchpqbmfpjbabwid\"}") .toObject(AutonomousDatabaseNationalCharacterSetListResult.class); - Assertions.assertEquals("spuunnoxyhkxgq", model.value().get(0).properties().characterSet()); - Assertions.assertEquals("jbkkdmflvestmjl", model.nextLink()); + Assertions.assertEquals("podbzevwrdnh", model.value().get(0).properties().characterSet()); + Assertions.assertEquals("rchpqbmfpjbabwid", 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 index 3239d063e4d8..65c823776c73 100644 --- 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 @@ -11,8 +11,8 @@ public final class AutonomousDatabaseNationalCharacterSetPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AutonomousDatabaseNationalCharacterSetProperties model = BinaryData.fromString("{\"characterSet\":\"widf\"}") + AutonomousDatabaseNationalCharacterSetProperties model = BinaryData.fromString("{\"characterSet\":\"l\"}") .toObject(AutonomousDatabaseNationalCharacterSetProperties.class); - Assertions.assertEquals("widf", model.characterSet()); + Assertions.assertEquals("l", model.characterSet()); } } 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 index c87101e03e27..f0397c5fdfd4 100644 --- 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 @@ -21,7 +21,7 @@ public final class AutonomousDatabaseNationalCharacterSetsGetWithResponseMockTes @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"characterSet\":\"scmnlziji\"},\"id\":\"ehgmvflnwyv\",\"name\":\"kxrerlniylylyfwx\",\"type\":\"utgqztwh\"}"; + = "{\"properties\":{\"characterSet\":\"vohkxdxuws\"},\"id\":\"fmcwnosb\",\"name\":\"lehgcvkbc\",\"type\":\"njolgjyyxpv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AutonomousDatabaseNationalCharacterSet response = manager.autonomousDatabaseNationalCharacterSets() - .getWithResponse("s", "zusjsz", com.azure.core.util.Context.NONE) + .getWithResponse("ubdpkxyqvgxi", "od", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("scmnlziji", response.properties().characterSet()); + Assertions.assertEquals("vohkxdxuws", response.properties().characterSet()); } } 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 index d76bd5e0a3d2..6f1801fab646 100644 --- 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 @@ -22,7 +22,7 @@ public final class AutonomousDatabaseNationalCharacterSetsListByLocationMockTest @Test public void testListByLocation() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"characterSet\":\"tabenbbk\"},\"id\":\"pxzuca\",\"name\":\"e\",\"type\":\"dwwnl\"}]}"; + = "{\"value\":[{\"properties\":{\"characterSet\":\"eintxwaljglzobl\"},\"id\":\"aafrqulhmzyqbhd\",\"name\":\"afjrqpjiyrqjcrg\",\"type\":\"xwmzwdfkbnrz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,8 +33,8 @@ public void testListByLocation() throws Exception { PagedIterable response = manager.autonomousDatabaseNationalCharacterSets() - .listByLocation("hmupgxyjtcdxabbu", com.azure.core.util.Context.NONE); + .listByLocation("lszerqzevx", com.azure.core.util.Context.NONE); - Assertions.assertEquals("tabenbbk", response.iterator().next().properties().characterSet()); + Assertions.assertEquals("eintxwaljglzobl", response.iterator().next().properties().characterSet()); } } 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 index 6563e445b001..3b5cfd5300b6 100644 --- 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 @@ -13,12 +13,12 @@ public final class AutonomousDatabaseStandbySummaryTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDatabaseStandbySummary model = BinaryData.fromString( - "{\"lagTimeInSeconds\":1245185583,\"lifecycleState\":\"BackupInProgress\",\"lifecycleDetails\":\"svbuswdvzyy\",\"timeDataGuardRoleChanged\":\"cnunvjsr\",\"timeDisasterRecoveryRoleChanged\":\"f\"}") + "{\"lagTimeInSeconds\":1233687153,\"lifecycleState\":\"Terminated\",\"lifecycleDetails\":\"acvlhv\",\"timeDataGuardRoleChanged\":\"dyftumrtwna\",\"timeDisasterRecoveryRoleChanged\":\"slbi\"}") .toObject(AutonomousDatabaseStandbySummary.class); - Assertions.assertEquals(1245185583, model.lagTimeInSeconds()); - Assertions.assertEquals(AutonomousDatabaseLifecycleState.BACKUP_IN_PROGRESS, model.lifecycleState()); - Assertions.assertEquals("svbuswdvzyy", model.lifecycleDetails()); - Assertions.assertEquals("cnunvjsr", model.timeDataGuardRoleChanged()); - Assertions.assertEquals("f", model.timeDisasterRecoveryRoleChanged()); + Assertions.assertEquals(1233687153, model.lagTimeInSeconds()); + Assertions.assertEquals(AutonomousDatabaseLifecycleState.TERMINATED, model.lifecycleState()); + Assertions.assertEquals("acvlhv", model.lifecycleDetails()); + Assertions.assertEquals("dyftumrtwna", model.timeDataGuardRoleChanged()); + Assertions.assertEquals("slbi", 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 index a072914ec84c..482b28eaa1fa 100644 --- 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 @@ -22,7 +22,7 @@ public final class AutonomousDatabaseVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"version\":\"ookrtalvnbw\",\"dbWorkload\":\"AJD\",\"isDefaultForFree\":true,\"isDefaultForPaid\":true,\"isFreeTierEnabled\":true,\"isPaidEnabled\":true},\"id\":\"jjukyrdnqodxah\",\"name\":\"xhqf\",\"type\":\"qnvzoqgyipemch\"}"; + = "{\"properties\":{\"version\":\"dgvpyig\",\"dbWorkload\":\"OLTP\",\"isDefaultForFree\":true,\"isDefaultForPaid\":true,\"isFreeTierEnabled\":true,\"isPaidEnabled\":true},\"id\":\"joedx\",\"name\":\"gucaif\",\"type\":\"aurwwgilfjq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AutonomousDbVersion response = manager.autonomousDatabaseVersions() - .getWithResponse("a", "wxudgn", com.azure.core.util.Context.NONE) + .getWithResponse("rpdltbq", "tqjfgxxsaet", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ookrtalvnbw", response.properties().version()); - Assertions.assertEquals(WorkloadType.AJD, response.properties().dbWorkload()); + Assertions.assertEquals("dgvpyig", response.properties().version()); + Assertions.assertEquals(WorkloadType.OLTP, response.properties().dbWorkload()); Assertions.assertTrue(response.properties().isDefaultForFree()); Assertions.assertTrue(response.properties().isDefaultForPaid()); Assertions.assertTrue(response.properties().isFreeTierEnabled()); 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 index 8bd57b264fdf..603faad4dcb5 100644 --- 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 @@ -23,7 +23,7 @@ public final class AutonomousDatabaseVersionsListByLocationMockTests { @Test public void testListByLocation() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"version\":\"ghwzhomewjjstli\",\"dbWorkload\":\"AJD\",\"isDefaultForFree\":true,\"isDefaultForPaid\":true,\"isFreeTierEnabled\":false,\"isPaidEnabled\":true},\"id\":\"znvodrrslblxydk\",\"name\":\"rxvvbxi\",\"type\":\"kgfbqljnqkhy\"}]}"; + = "{\"value\":[{\"properties\":{\"version\":\"mkxwxdcvjwcyziak\",\"dbWorkload\":\"OLTP\",\"isDefaultForFree\":true,\"isDefaultForPaid\":false,\"isFreeTierEnabled\":false,\"isPaidEnabled\":false},\"id\":\"dsiwdfmmp\",\"name\":\"hzzwvywrgyngy\",\"type\":\"grpxncakiqaondjr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,13 @@ public void testListByLocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.autonomousDatabaseVersions().listByLocation("avsczuejdtxp", com.azure.core.util.Context.NONE); + = manager.autonomousDatabaseVersions().listByLocation("a", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ghwzhomewjjstli", response.iterator().next().properties().version()); - Assertions.assertEquals(WorkloadType.AJD, response.iterator().next().properties().dbWorkload()); + Assertions.assertEquals("mkxwxdcvjwcyziak", response.iterator().next().properties().version()); + Assertions.assertEquals(WorkloadType.OLTP, response.iterator().next().properties().dbWorkload()); Assertions.assertTrue(response.iterator().next().properties().isDefaultForFree()); - Assertions.assertTrue(response.iterator().next().properties().isDefaultForPaid()); + Assertions.assertFalse(response.iterator().next().properties().isDefaultForPaid()); Assertions.assertFalse(response.iterator().next().properties().isFreeTierEnabled()); - Assertions.assertTrue(response.iterator().next().properties().isPaidEnabled()); + Assertions.assertFalse(response.iterator().next().properties().isPaidEnabled()); } } 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 index 5c3d9f8c960a..f7ffa5eca9d3 100644 --- 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 @@ -11,8 +11,8 @@ public final class AutonomousDatabaseWalletFileInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AutonomousDatabaseWalletFileInner model - = BinaryData.fromString("{\"walletFiles\":\"kpyklyhp\"}").toObject(AutonomousDatabaseWalletFileInner.class); - Assertions.assertEquals("kpyklyhp", model.walletFiles()); + AutonomousDatabaseWalletFileInner model = BinaryData.fromString("{\"walletFiles\":\"bkwdlenrds\"}") + .toObject(AutonomousDatabaseWalletFileInner.class); + Assertions.assertEquals("bkwdlenrds", 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 index bfc06fbba52d..78396090e4bf 100644 --- 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 @@ -13,13 +13,13 @@ public final class AutonomousDbVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDbVersionInner model = BinaryData.fromString( - "{\"properties\":{\"version\":\"ril\",\"dbWorkload\":\"AJD\",\"isDefaultForFree\":true,\"isDefaultForPaid\":false,\"isFreeTierEnabled\":true,\"isPaidEnabled\":true},\"id\":\"ktwkuziyc\",\"name\":\"levufuztcktyhj\",\"type\":\"qedcgzulwm\"}") + "{\"properties\":{\"version\":\"xsspuunnoxyhk\",\"dbWorkload\":\"APEX\",\"isDefaultForFree\":true,\"isDefaultForPaid\":false,\"isFreeTierEnabled\":true,\"isPaidEnabled\":false},\"id\":\"qcaaewdaomdjvl\",\"name\":\"jxxkzbrmsgei\",\"type\":\"siykzkdncjdxonbz\"}") .toObject(AutonomousDbVersionInner.class); - Assertions.assertEquals("ril", model.properties().version()); - Assertions.assertEquals(WorkloadType.AJD, model.properties().dbWorkload()); + Assertions.assertEquals("xsspuunnoxyhk", model.properties().version()); + Assertions.assertEquals(WorkloadType.APEX, model.properties().dbWorkload()); Assertions.assertTrue(model.properties().isDefaultForFree()); Assertions.assertFalse(model.properties().isDefaultForPaid()); Assertions.assertTrue(model.properties().isFreeTierEnabled()); - Assertions.assertTrue(model.properties().isPaidEnabled()); + Assertions.assertFalse(model.properties().isPaidEnabled()); } } 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 index 135581be5d5a..d3e5ad2cb507 100644 --- 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 @@ -13,14 +13,14 @@ public final class AutonomousDbVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDbVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"version\":\"vqeevtoep\",\"dbWorkload\":\"APEX\",\"isDefaultForFree\":false,\"isDefaultForPaid\":false,\"isFreeTierEnabled\":false,\"isPaidEnabled\":true},\"id\":\"o\",\"name\":\"zvfvaawz\",\"type\":\"adflgzu\"}],\"nextLink\":\"glae\"}") + "{\"value\":[{\"properties\":{\"version\":\"pnylb\",\"dbWorkload\":\"APEX\",\"isDefaultForFree\":false,\"isDefaultForPaid\":true,\"isFreeTierEnabled\":true,\"isPaidEnabled\":false},\"id\":\"qzhv\",\"name\":\"cib\",\"type\":\"fmo\"},{\"properties\":{\"version\":\"xrkjpvdw\",\"dbWorkload\":\"APEX\",\"isDefaultForFree\":true,\"isDefaultForPaid\":false,\"isFreeTierEnabled\":false,\"isPaidEnabled\":false},\"id\":\"yzsxjrkambtrne\",\"name\":\"vmnvu\",\"type\":\"eqvldspast\"}],\"nextLink\":\"kkdmfl\"}") .toObject(AutonomousDbVersionListResult.class); - Assertions.assertEquals("vqeevtoep", model.value().get(0).properties().version()); + Assertions.assertEquals("pnylb", model.value().get(0).properties().version()); Assertions.assertEquals(WorkloadType.APEX, model.value().get(0).properties().dbWorkload()); Assertions.assertFalse(model.value().get(0).properties().isDefaultForFree()); - Assertions.assertFalse(model.value().get(0).properties().isDefaultForPaid()); - Assertions.assertFalse(model.value().get(0).properties().isFreeTierEnabled()); - Assertions.assertTrue(model.value().get(0).properties().isPaidEnabled()); - Assertions.assertEquals("glae", model.nextLink()); + Assertions.assertTrue(model.value().get(0).properties().isDefaultForPaid()); + Assertions.assertTrue(model.value().get(0).properties().isFreeTierEnabled()); + Assertions.assertFalse(model.value().get(0).properties().isPaidEnabled()); + Assertions.assertEquals("kkdmfl", 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 index 33753e8d282b..0fb1718ae881 100644 --- 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 @@ -13,12 +13,12 @@ public final class AutonomousDbVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AutonomousDbVersionProperties model = BinaryData.fromString( - "{\"version\":\"rqzz\",\"dbWorkload\":\"AJD\",\"isDefaultForFree\":false,\"isDefaultForPaid\":false,\"isFreeTierEnabled\":false,\"isPaidEnabled\":true}") + "{\"version\":\"ggcula\",\"dbWorkload\":\"APEX\",\"isDefaultForFree\":true,\"isDefaultForPaid\":true,\"isFreeTierEnabled\":false,\"isPaidEnabled\":true}") .toObject(AutonomousDbVersionProperties.class); - Assertions.assertEquals("rqzz", model.version()); - Assertions.assertEquals(WorkloadType.AJD, model.dbWorkload()); - Assertions.assertFalse(model.isDefaultForFree()); - Assertions.assertFalse(model.isDefaultForPaid()); + Assertions.assertEquals("ggcula", model.version()); + Assertions.assertEquals(WorkloadType.APEX, model.dbWorkload()); + Assertions.assertTrue(model.isDefaultForFree()); + Assertions.assertTrue(model.isDefaultForPaid()); Assertions.assertFalse(model.isFreeTierEnabled()); Assertions.assertTrue(model.isPaidEnabled()); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AzureSubscriptionsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AzureSubscriptionsTests.java index 8915de46d8b0..86d7eccab3d4 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AzureSubscriptionsTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/AzureSubscriptionsTests.java @@ -13,16 +13,14 @@ public final class AzureSubscriptionsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureSubscriptions model - = BinaryData.fromString("{\"azureSubscriptionIds\":[\"cvokotllxdyhg\",\"y\",\"cogjltdtbn\",\"hadoocrk\"]}") - .toObject(AzureSubscriptions.class); - Assertions.assertEquals("cvokotllxdyhg", model.azureSubscriptionIds().get(0)); + = BinaryData.fromString("{\"azureSubscriptionIds\":[\"xw\"]}").toObject(AzureSubscriptions.class); + Assertions.assertEquals("xw", model.azureSubscriptionIds().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureSubscriptions model = new AzureSubscriptions() - .withAzureSubscriptionIds(Arrays.asList("cvokotllxdyhg", "y", "cogjltdtbn", "hadoocrk")); + AzureSubscriptions model = new AzureSubscriptions().withAzureSubscriptionIds(Arrays.asList("xw")); model = BinaryData.fromObject(model).toObject(AzureSubscriptions.class); - Assertions.assertEquals("cvokotllxdyhg", model.azureSubscriptionIds().get(0)); + Assertions.assertEquals("xw", model.azureSubscriptionIds().get(0)); } } 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 index 189f15d69536..8749743801c8 100644 --- 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 @@ -11,7 +11,7 @@ public final class CloudAccountDetailsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudAccountDetailsInner model - = BinaryData.fromString("{\"cloudAccountName\":\"huopxodlqiynto\",\"cloudAccountHomeRegion\":\"ihleos\"}") + = BinaryData.fromString("{\"cloudAccountName\":\"xkalla\",\"cloudAccountHomeRegion\":\"elwuipi\"}") .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 index ae277b3f803a..28032ebd2747 100644 --- 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 @@ -24,78 +24,79 @@ public final class CloudExadataInfrastructureInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudExadataInfrastructureInner model = BinaryData.fromString( - "{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":86962705,\"mountPoint\":\"aqw\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":804356907,\"mountPoint\":\"qvpkvlrxnjeaseip\"},{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":1111118193,\"mountPoint\":\"yyien\"}],\"ocid\":\"dlwtgrhpdj\",\"computeCount\":523400535,\"storageCount\":1984471736,\"totalStorageSizeInGbs\":1012728769,\"availableStorageSizeInGbs\":271162944,\"timeCreated\":\"pqyegualhbxxh\",\"lifecycleDetails\":\"jzzvdud\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"December\"},{\"name\":\"June\"}],\"weeksOfMonth\":[743935236],\"daysOfWeek\":[{\"name\":\"Monday\"},{\"name\":\"Friday\"}],\"hoursOfDay\":[1264549438,991937495,420824086,1848552059],\"leadTimeInWeeks\":1185214536,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1348050771,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1194387790,\"estimatedNetworkSwitchesPatchingTime\":1099330569,\"estimatedStorageServerPatchingTime\":737203180,\"totalEstimatedPatchingTime\":1772029927},\"customerContacts\":[{\"email\":\"uesnzwdejbavo\"},{\"email\":\"xzdmohctb\"}],\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"xdn\",\"ociUrl\":\"vo\",\"cpuCount\":999513360,\"maxCpuCount\":884625398,\"memorySizeInGbs\":408024361,\"maxMemoryInGbs\":1929800645,\"dbNodeStorageSizeInGbs\":1738162864,\"maxDbNodeStorageSizeInGbs\":1440300304,\"dataStorageSizeInTbs\":45.07384888214448,\"maxDataStorageInTbs\":12.228123099703847,\"dbServerVersion\":\"yggdtjixh\",\"storageServerVersion\":\"uofqwe\",\"activatedStorageCount\":1965159297,\"additionalStorageCount\":1807410645,\"displayName\":\"n\",\"lastMaintenanceRunId\":\"fyexfwhy\",\"nextMaintenanceRunId\":\"i\",\"monthlyDbServerVersion\":\"yvdcsitynnaa\",\"monthlyStorageServerVersion\":\"ectehf\",\"databaseServerType\":\"scjeypv\",\"storageServerType\":\"zrkgqhcjrefovg\",\"computeModel\":\"ECPU\"},\"zones\":[\"leyyvx\"],\"location\":\"jpkcattpng\",\"tags\":{\"jh\":\"cczsq\",\"ysou\":\"mdajv\",\"canoaeupf\":\"q\"},\"id\":\"yhltrpmopjmcm\",\"name\":\"tuo\",\"type\":\"thfuiuaodsfcpkvx\"}") + "{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":635672501,\"mountPoint\":\"eipheoflokeyy\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":147839675,\"mountPoint\":\"tgrhpdjpjumas\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1063088657,\"mountPoint\":\"gual\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":344964368,\"mountPoint\":\"zzvdudgwds\"}],\"ocid\":\"hotwmcynpwlbjnp\",\"computeCount\":1690822953,\"storageCount\":1625524147,\"totalStorageSizeInGbs\":1405360141,\"availableStorageSizeInGbs\":55863349,\"timeCreated\":\"nltyfsoppusuesnz\",\"lifecycleDetails\":\"ej\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"October\"},{\"name\":\"February\"},{\"name\":\"April\"}],\"weeksOfMonth\":[226877862,1623917209,780236043],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Tuesday\"}],\"hoursOfDay\":[1758852414],\"leadTimeInWeeks\":1492638603,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":202688177,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":247911704,\"estimatedNetworkSwitchesPatchingTime\":175400299,\"estimatedStorageServerPatchingTime\":2105007169,\"totalEstimatedPatchingTime\":1100840258},\"customerContacts\":[{\"email\":\"azjdyggd\"},{\"email\":\"jixhbk\"},{\"email\":\"ofqweykhmenevfye\"},{\"email\":\"fwhybcibvy\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Terminating\",\"shape\":\"tynnaamdectehfi\",\"ociUrl\":\"cj\",\"cpuCount\":1266013577,\"maxCpuCount\":1797610507,\"memorySizeInGbs\":1363658384,\"maxMemoryInGbs\":902064602,\"dbNodeStorageSizeInGbs\":177141497,\"maxDbNodeStorageSizeInGbs\":61185346,\"dataStorageSizeInTbs\":93.9889586513849,\"maxDataStorageInTbs\":3.033752731716688,\"dbServerVersion\":\"mkqsleyyv\",\"storageServerVersion\":\"qjpkcattpngjcrc\",\"activatedStorageCount\":957799467,\"additionalStorageCount\":822789925,\"displayName\":\"jh\",\"lastMaintenanceRunId\":\"daj\",\"nextMaintenanceRunId\":\"ysou\",\"monthlyDbServerVersion\":\"e\",\"monthlyStorageServerVersion\":\"noae\",\"databaseServerType\":\"fhyhltrpmopjmcma\",\"storageServerType\":\"okth\",\"computeModel\":\"ECPU\",\"exascaleConfig\":{\"totalStorageInGbs\":94424945,\"availableStorageInGbs\":1445775245}},\"zones\":[\"fcp\",\"vxodpu\",\"zmyzydagf\",\"axbezyiuo\"],\"location\":\"twhrdxwzywqsm\",\"tags\":{\"ksymd\":\"reximoryocfs\",\"kiiuxhqyudxor\":\"ys\",\"poczvyifqrvkdvjs\":\"qn\",\"d\":\"lrmv\"},\"id\":\"watkpnpulexxb\",\"name\":\"zwtruwiqzbqjvsov\",\"type\":\"yokacspkw\"}") .toObject(CloudExadataInfrastructureInner.class); - Assertions.assertEquals("jpkcattpng", model.location()); - Assertions.assertEquals("cczsq", model.tags().get("jh")); - Assertions.assertEquals(523400535, model.properties().computeCount()); - Assertions.assertEquals(1984471736, model.properties().storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, model.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.DECEMBER, model.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(743935236, model.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.MONDAY, + Assertions.assertEquals("twhrdxwzywqsm", model.location()); + Assertions.assertEquals("reximoryocfs", model.tags().get("ksymd")); + Assertions.assertEquals(1690822953, model.properties().computeCount()); + Assertions.assertEquals(1625524147, model.properties().storageCount()); + Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.properties().maintenanceWindow().preference()); + Assertions.assertEquals(MonthName.OCTOBER, model.properties().maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(226877862, model.properties().maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.SUNDAY, model.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(1264549438, model.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1185214536, model.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1348050771, model.properties().maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertEquals(1758852414, model.properties().maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(1492638603, model.properties().maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(PatchingMode.ROLLING, model.properties().maintenanceWindow().patchingMode()); + Assertions.assertEquals(202688177, model.properties().maintenanceWindow().customActionTimeoutInMins()); Assertions.assertTrue(model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); Assertions.assertTrue(model.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("uesnzwdejbavo", model.properties().customerContacts().get(0).email()); - Assertions.assertEquals("xdn", model.properties().shape()); - Assertions.assertEquals("n", model.properties().displayName()); - Assertions.assertEquals("scjeypv", model.properties().databaseServerType()); - Assertions.assertEquals("zrkgqhcjrefovg", model.properties().storageServerType()); - Assertions.assertEquals("leyyvx", model.zones().get(0)); + Assertions.assertEquals("azjdyggd", model.properties().customerContacts().get(0).email()); + Assertions.assertEquals("tynnaamdectehfi", model.properties().shape()); + Assertions.assertEquals("jh", model.properties().displayName()); + Assertions.assertEquals("fhyhltrpmopjmcma", model.properties().databaseServerType()); + Assertions.assertEquals("okth", model.properties().storageServerType()); + Assertions.assertEquals("fcp", model.zones().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudExadataInfrastructureInner model = new CloudExadataInfrastructureInner().withLocation("jpkcattpng") - .withTags(mapOf("jh", "cczsq", "ysou", "mdajv", "canoaeupf", "q")) - .withProperties(new CloudExadataInfrastructureProperties().withComputeCount(523400535) - .withStorageCount(1984471736) - .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) - .withMonths( - Arrays.asList(new Month().withName(MonthName.DECEMBER), new Month().withName(MonthName.JUNE))) - .withWeeksOfMonth(Arrays.asList(743935236)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.MONDAY), - new DayOfWeek().withName(DayOfWeekName.FRIDAY))) - .withHoursOfDay(Arrays.asList(1264549438, 991937495, 420824086, 1848552059)) - .withLeadTimeInWeeks(1185214536) - .withPatchingMode(PatchingMode.NON_ROLLING) - .withCustomActionTimeoutInMins(1348050771) + CloudExadataInfrastructureInner model = new CloudExadataInfrastructureInner().withLocation("twhrdxwzywqsm") + .withTags(mapOf("ksymd", "reximoryocfs", "kiiuxhqyudxor", "ys", "poczvyifqrvkdvjs", "qn", "d", "lrmv")) + .withProperties(new CloudExadataInfrastructureProperties().withComputeCount(1690822953) + .withStorageCount(1625524147) + .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.CUSTOM_PREFERENCE) + .withMonths(Arrays.asList(new Month().withName(MonthName.OCTOBER), + new Month().withName(MonthName.FEBRUARY), new Month().withName(MonthName.APRIL))) + .withWeeksOfMonth(Arrays.asList(226877862, 1623917209, 780236043)) + .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.SUNDAY), + new DayOfWeek().withName(DayOfWeekName.TUESDAY))) + .withHoursOfDay(Arrays.asList(1758852414)) + .withLeadTimeInWeeks(1492638603) + .withPatchingMode(PatchingMode.ROLLING) + .withCustomActionTimeoutInMins(202688177) .withIsCustomActionTimeoutEnabled(true) .withIsMonthlyPatchingEnabled(true)) - .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("uesnzwdejbavo"), - new CustomerContact().withEmail("xzdmohctb"))) - .withShape("xdn") - .withDisplayName("n") - .withDatabaseServerType("scjeypv") - .withStorageServerType("zrkgqhcjrefovg")) - .withZones(Arrays.asList("leyyvx")); + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("azjdyggd"), + new CustomerContact().withEmail("jixhbk"), new CustomerContact().withEmail("ofqweykhmenevfye"), + new CustomerContact().withEmail("fwhybcibvy"))) + .withShape("tynnaamdectehfi") + .withDisplayName("jh") + .withDatabaseServerType("fhyhltrpmopjmcma") + .withStorageServerType("okth")) + .withZones(Arrays.asList("fcp", "vxodpu", "zmyzydagf", "axbezyiuo")); model = BinaryData.fromObject(model).toObject(CloudExadataInfrastructureInner.class); - Assertions.assertEquals("jpkcattpng", model.location()); - Assertions.assertEquals("cczsq", model.tags().get("jh")); - Assertions.assertEquals(523400535, model.properties().computeCount()); - Assertions.assertEquals(1984471736, model.properties().storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, model.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.DECEMBER, model.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(743935236, model.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.MONDAY, + Assertions.assertEquals("twhrdxwzywqsm", model.location()); + Assertions.assertEquals("reximoryocfs", model.tags().get("ksymd")); + Assertions.assertEquals(1690822953, model.properties().computeCount()); + Assertions.assertEquals(1625524147, model.properties().storageCount()); + Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.properties().maintenanceWindow().preference()); + Assertions.assertEquals(MonthName.OCTOBER, model.properties().maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(226877862, model.properties().maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.SUNDAY, model.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(1264549438, model.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1185214536, model.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1348050771, model.properties().maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertEquals(1758852414, model.properties().maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(1492638603, model.properties().maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(PatchingMode.ROLLING, model.properties().maintenanceWindow().patchingMode()); + Assertions.assertEquals(202688177, model.properties().maintenanceWindow().customActionTimeoutInMins()); Assertions.assertTrue(model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); Assertions.assertTrue(model.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("uesnzwdejbavo", model.properties().customerContacts().get(0).email()); - Assertions.assertEquals("xdn", model.properties().shape()); - Assertions.assertEquals("n", model.properties().displayName()); - Assertions.assertEquals("scjeypv", model.properties().databaseServerType()); - Assertions.assertEquals("zrkgqhcjrefovg", model.properties().storageServerType()); - Assertions.assertEquals("leyyvx", model.zones().get(0)); + Assertions.assertEquals("azjdyggd", model.properties().customerContacts().get(0).email()); + Assertions.assertEquals("tynnaamdectehfi", model.properties().shape()); + Assertions.assertEquals("jh", model.properties().displayName()); + Assertions.assertEquals("fhyhltrpmopjmcma", model.properties().databaseServerType()); + Assertions.assertEquals("okth", model.properties().storageServerType()); + Assertions.assertEquals("fcp", model.zones().get(0)); } // Use "Map.of" if available 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 index 914146d2ab8b..0d0333b7fa25 100644 --- 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 @@ -16,10 +16,10 @@ public final class CloudExadataInfrastructureListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudExadataInfrastructureListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1041467339,\"mountPoint\":\"symglzufcyz\"},{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":1730607260,\"mountPoint\":\"nufhf\"}],\"ocid\":\"jysagith\",\"computeCount\":731883185,\"storageCount\":676674728,\"totalStorageSizeInGbs\":135475125,\"availableStorageSizeInGbs\":1105410727,\"timeCreated\":\"xwczbyscnp\",\"lifecycleDetails\":\"uhivyqniw\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"August\"}],\"weeksOfMonth\":[832798449,920256064,1629282531],\"daysOfWeek\":[{\"name\":\"Friday\"},{\"name\":\"Sunday\"},{\"name\":\"Saturday\"}],\"hoursOfDay\":[2033205532],\"leadTimeInWeeks\":224471404,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":300178324,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1290060857,\"estimatedNetworkSwitchesPatchingTime\":1518133549,\"estimatedStorageServerPatchingTime\":1617618462,\"totalEstimatedPatchingTime\":1833864756},\"customerContacts\":[{\"email\":\"tnapczwlokjyemkk\"},{\"email\":\"ni\"},{\"email\":\"joxzjnchgejspodm\"},{\"email\":\"ilzyd\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Provisioning\",\"shape\":\"yahux\",\"ociUrl\":\"pmqnja\",\"cpuCount\":1876507017,\"maxCpuCount\":1052966015,\"memorySizeInGbs\":2020254457,\"maxMemoryInGbs\":1750576238,\"dbNodeStorageSizeInGbs\":2136786806,\"maxDbNodeStorageSizeInGbs\":750883620,\"dataStorageSizeInTbs\":49.21394749789002,\"maxDataStorageInTbs\":40.087762783830804,\"dbServerVersion\":\"mfdatscmdvpj\",\"storageServerVersion\":\"lsuuvmkjozkrwfnd\",\"activatedStorageCount\":1567164641,\"additionalStorageCount\":418817666,\"displayName\":\"slwejdpvw\",\"lastMaintenanceRunId\":\"oqpsoa\",\"nextMaintenanceRunId\":\"tazak\",\"monthlyDbServerVersion\":\"lahbcryff\",\"monthlyStorageServerVersion\":\"dosyg\",\"databaseServerType\":\"paojakhmsbzjh\",\"storageServerType\":\"zevdphlx\",\"computeModel\":\"OCPU\"},\"zones\":[\"hqtrgqjbpf\"],\"location\":\"s\",\"tags\":{\"wzo\":\"gvfcj\",\"np\":\"xjtfelluwfzit\",\"lxofpdvhpfxxypin\":\"qfpjk\"},\"id\":\"nmayhuybb\",\"name\":\"podepoo\",\"type\":\"inuvamiheogn\"},{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":1638968400,\"mountPoint\":\"si\"},{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":1323562973,\"mountPoint\":\"ihnhun\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":1547644863,\"mountPoint\":\"ygxgispemvtz\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1861825815,\"mountPoint\":\"ofx\"}],\"ocid\":\"ofjaeqjhqjb\",\"computeCount\":91789189,\"storageCount\":1818222173,\"totalStorageSizeInGbs\":928331689,\"availableStorageSizeInGbs\":2070892597,\"timeCreated\":\"ngsntnbybk\",\"lifecycleDetails\":\"cwrwclxxwrljdous\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"July\"},{\"name\":\"November\"}],\"weeksOfMonth\":[1012894603,747491790,1553776793],\"daysOfWeek\":[{\"name\":\"Saturday\"}],\"hoursOfDay\":[1728330738,1299495603,1272736991,1320429450],\"leadTimeInWeeks\":703766696,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1218196264,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":229383056,\"estimatedNetworkSwitchesPatchingTime\":1191449994,\"estimatedStorageServerPatchingTime\":1077635314,\"totalEstimatedPatchingTime\":2145631458},\"customerContacts\":[{\"email\":\"mppeebvmgxs\"},{\"email\":\"bkyqduu\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Failed\",\"shape\":\"czdzev\",\"ociUrl\":\"hkr\",\"cpuCount\":7278367,\"maxCpuCount\":923544052,\"memorySizeInGbs\":681393134,\"maxMemoryInGbs\":264024813,\"dbNodeStorageSizeInGbs\":253055122,\"maxDbNodeStorageSizeInGbs\":1615541658,\"dataStorageSizeInTbs\":76.41479729813713,\"maxDataStorageInTbs\":48.28691258830874,\"dbServerVersion\":\"nhutjeltmrldhugj\",\"storageServerVersion\":\"datqxhocdgeabl\",\"activatedStorageCount\":743985587,\"additionalStorageCount\":388527245,\"displayName\":\"icndvkaozwyifty\",\"lastMaintenanceRunId\":\"hurokftyxoln\",\"nextMaintenanceRunId\":\"pwcukjfkgiawxk\",\"monthlyDbServerVersion\":\"ypl\",\"monthlyStorageServerVersion\":\"kbasyypn\",\"databaseServerType\":\"hsgcbacphejkot\",\"storageServerType\":\"qgoulznd\",\"computeModel\":\"ECPU\"},\"zones\":[\"yqkgfg\",\"bmadgak\",\"qsrxybzqqed\"],\"location\":\"tbciqfouflmm\",\"tags\":{\"b\":\"smodmgloug\"},\"id\":\"wtmutduq\",\"name\":\"ta\",\"type\":\"spwgcuertumkdosv\"},{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":398280406,\"mountPoint\":\"ddgmb\"}],\"ocid\":\"ex\",\"computeCount\":1535190702,\"storageCount\":388497474,\"totalStorageSizeInGbs\":1830936153,\"availableStorageSizeInGbs\":367130174,\"timeCreated\":\"fpfpsalgbquxigj\",\"lifecycleDetails\":\"gzjaoyfhrtxilne\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"May\"}],\"weeksOfMonth\":[969433721],\"daysOfWeek\":[{\"name\":\"Saturday\"},{\"name\":\"Sunday\"},{\"name\":\"Thursday\"},{\"name\":\"Sunday\"}],\"hoursOfDay\":[1718797623,1242969129,1113809263,1106115756],\"leadTimeInWeeks\":658406237,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1705333634,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1017472579,\"estimatedNetworkSwitchesPatchingTime\":928932995,\"estimatedStorageServerPatchingTime\":1198925267,\"totalEstimatedPatchingTime\":1314012997},\"customerContacts\":[{\"email\":\"nruj\"},{\"email\":\"guhmuouqfpr\"},{\"email\":\"zw\"},{\"email\":\"nguitnwuizgazxu\"}],\"provisioningState\":\"Failed\",\"lifecycleState\":\"Terminated\",\"shape\":\"kyfi\",\"ociUrl\":\"fidfvzw\",\"cpuCount\":537623059,\"maxCpuCount\":881303294,\"memorySizeInGbs\":1424073065,\"maxMemoryInGbs\":1847084741,\"dbNodeStorageSizeInGbs\":396497881,\"maxDbNodeStorageSizeInGbs\":1072165585,\"dataStorageSizeInTbs\":61.41952663964281,\"maxDataStorageInTbs\":46.82535460983207,\"dbServerVersion\":\"eiwaopvkmi\",\"storageServerVersion\":\"mmxdcu\",\"activatedStorageCount\":1044179724,\"additionalStorageCount\":723507577,\"displayName\":\"pymzidnsezcxtbzs\",\"lastMaintenanceRunId\":\"yc\",\"nextMaintenanceRunId\":\"newmdwzjeiachbo\",\"monthlyDbServerVersion\":\"flnrosfqpteehzz\",\"monthlyStorageServerVersion\":\"pyqr\",\"databaseServerType\":\"z\",\"storageServerType\":\"pvswjdkirso\",\"computeModel\":\"ECPU\"},\"zones\":[\"hc\"],\"location\":\"nohjt\",\"tags\":{\"soifiyipjxsqw\":\"h\",\"bznorcjxvsnby\":\"gr\",\"cyshurzafbljjgp\":\"qabnmoc\"},\"id\":\"toqcjmklja\",\"name\":\"bqidtqaj\",\"type\":\"yulpkudjkr\"},{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":98964950,\"mountPoint\":\"gqexzlocxs\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":2010275395,\"mountPoint\":\"bcsglumma\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1291201271,\"mountPoint\":\"bnbdxkqpxokajion\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":1127619232,\"mountPoint\":\"xgcp\"}],\"ocid\":\"gmaajrm\",\"computeCount\":1305884847,\"storageCount\":2081594756,\"totalStorageSizeInGbs\":1277488223,\"availableStorageSizeInGbs\":1274470316,\"timeCreated\":\"clwhijcoejctbz\",\"lifecycleDetails\":\"s\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"March\"},{\"name\":\"June\"}],\"weeksOfMonth\":[1357856800,1619207085,395689109],\"daysOfWeek\":[{\"name\":\"Monday\"},{\"name\":\"Thursday\"},{\"name\":\"Thursday\"},{\"name\":\"Saturday\"}],\"hoursOfDay\":[1211894174],\"leadTimeInWeeks\":1878270858,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":825369958,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":263932996,\"estimatedNetworkSwitchesPatchingTime\":217282590,\"estimatedStorageServerPatchingTime\":1680873734,\"totalEstimatedPatchingTime\":256483207},\"customerContacts\":[{\"email\":\"uexhdzx\"}],\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Terminating\",\"shape\":\"jnxqbzvddntwn\",\"ociUrl\":\"icbtwnpzao\",\"cpuCount\":1330155911,\"maxCpuCount\":114023042,\"memorySizeInGbs\":569590311,\"maxMemoryInGbs\":1387185134,\"dbNodeStorageSizeInGbs\":331700984,\"maxDbNodeStorageSizeInGbs\":848102718,\"dataStorageSizeInTbs\":40.2097009387695,\"maxDataStorageInTbs\":0.2837749257303068,\"dbServerVersion\":\"qkwpyeicxmqc\",\"storageServerVersion\":\"q\",\"activatedStorageCount\":1200172783,\"additionalStorageCount\":1191010695,\"displayName\":\"xuigdtopbobj\",\"lastMaintenanceRunId\":\"hm\",\"nextMaintenanceRunId\":\"u\",\"monthlyDbServerVersion\":\"a\",\"monthlyStorageServerVersion\":\"rzayv\",\"databaseServerType\":\"pgvdf\",\"storageServerType\":\"otkftutqxlngx\",\"computeModel\":\"OCPU\"},\"zones\":[\"ugnxkrxdqmi\"],\"location\":\"thz\",\"tags\":{\"oqfbowskanyk\":\"drabhjybige\",\"nhzgpphrcgyn\":\"zlcuiywgqywgndrv\",\"fsxlzevgbmqjqa\":\"ocpecfvmmco\",\"pmivkwlzu\":\"c\"},\"id\":\"ccfwnfnbacfion\",\"name\":\"ebxetqgtzxdp\",\"type\":\"qbqqwxr\"}],\"nextLink\":\"eallnwsubisnj\"}") + "{\"value\":[{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1041467339,\"mountPoint\":\"symglzufcyz\"},{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":1730607260,\"mountPoint\":\"nufhf\"}],\"ocid\":\"jysagith\",\"computeCount\":731883185,\"storageCount\":676674728,\"totalStorageSizeInGbs\":135475125,\"availableStorageSizeInGbs\":1105410727,\"timeCreated\":\"xwczbyscnp\",\"lifecycleDetails\":\"uhivyqniw\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"August\"}],\"weeksOfMonth\":[832798449,920256064,1629282531],\"daysOfWeek\":[{\"name\":\"Friday\"},{\"name\":\"Sunday\"},{\"name\":\"Saturday\"}],\"hoursOfDay\":[2033205532],\"leadTimeInWeeks\":224471404,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":300178324,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1290060857,\"estimatedNetworkSwitchesPatchingTime\":1518133549,\"estimatedStorageServerPatchingTime\":1617618462,\"totalEstimatedPatchingTime\":1833864756},\"customerContacts\":[{\"email\":\"tnapczwlokjyemkk\"},{\"email\":\"ni\"},{\"email\":\"joxzjnchgejspodm\"},{\"email\":\"ilzyd\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Provisioning\",\"shape\":\"yahux\",\"ociUrl\":\"pmqnja\",\"cpuCount\":1876507017,\"maxCpuCount\":1052966015,\"memorySizeInGbs\":2020254457,\"maxMemoryInGbs\":1750576238,\"dbNodeStorageSizeInGbs\":2136786806,\"maxDbNodeStorageSizeInGbs\":750883620,\"dataStorageSizeInTbs\":49.21394749789002,\"maxDataStorageInTbs\":40.087762783830804,\"dbServerVersion\":\"mfdatscmdvpj\",\"storageServerVersion\":\"lsuuvmkjozkrwfnd\",\"activatedStorageCount\":1567164641,\"additionalStorageCount\":418817666,\"displayName\":\"slwejdpvw\",\"lastMaintenanceRunId\":\"oqpsoa\",\"nextMaintenanceRunId\":\"tazak\",\"monthlyDbServerVersion\":\"lahbcryff\",\"monthlyStorageServerVersion\":\"dosyg\",\"databaseServerType\":\"paojakhmsbzjh\",\"storageServerType\":\"zevdphlx\",\"computeModel\":\"OCPU\",\"exascaleConfig\":{\"totalStorageInGbs\":527902610,\"availableStorageInGbs\":578472109}},\"zones\":[\"gqjbpfzfsin\",\"gvfcj\",\"wzo\",\"xjtfelluwfzit\"],\"location\":\"peqfpjkjl\",\"tags\":{\"nmayhuybb\":\"pdvhpfxxypin\",\"inuvamiheogn\":\"podepoo\",\"usivye\":\"rxzxtheo\"},\"id\":\"cciqihnhungbwjz\",\"name\":\"nfygxgispemvtz\",\"type\":\"kufubljo\"},{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1887671612,\"mountPoint\":\"hqjbasvmsmj\"},{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":186594005,\"mountPoint\":\"nbybkzgcwrwcl\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":2010758823,\"mountPoint\":\"uskcqvkocrcj\"}],\"ocid\":\"wtnhxbnjbiksqr\",\"computeCount\":1154463022,\"storageCount\":1356626713,\"totalStorageSizeInGbs\":1437691312,\"availableStorageSizeInGbs\":229383056,\"timeCreated\":\"wnzlljfmppeeb\",\"lifecycleDetails\":\"gxsabkyq\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"June\"}],\"weeksOfMonth\":[1939991929,372276294],\"daysOfWeek\":[{\"name\":\"Friday\"},{\"name\":\"Thursday\"}],\"hoursOfDay\":[1700892403],\"leadTimeInWeeks\":968287955,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":923544052,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1130701644,\"estimatedNetworkSwitchesPatchingTime\":1278778169,\"estimatedStorageServerPatchingTime\":1695148564,\"totalEstimatedPatchingTime\":2073907119},\"customerContacts\":[{\"email\":\"nhutjeltmrldhugj\"}],\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"qxhocdgeablgphut\",\"ociUrl\":\"ndv\",\"cpuCount\":1455747257,\"maxCpuCount\":563001635,\"memorySizeInGbs\":191194169,\"maxMemoryInGbs\":629729450,\"dbNodeStorageSizeInGbs\":655079148,\"maxDbNodeStorageSizeInGbs\":979075419,\"dataStorageSizeInTbs\":30.237473457567386,\"maxDataStorageInTbs\":55.429143652657764,\"dbServerVersion\":\"xolniwpwcukjfk\",\"storageServerVersion\":\"awxklr\",\"activatedStorageCount\":1861456902,\"additionalStorageCount\":727805488,\"displayName\":\"kbasyypn\",\"lastMaintenanceRunId\":\"hsgcbacphejkot\",\"nextMaintenanceRunId\":\"qgoulznd\",\"monthlyDbServerVersion\":\"kwy\",\"monthlyStorageServerVersion\":\"gfgibm\",\"databaseServerType\":\"gakeqsr\",\"storageServerType\":\"bzqqedqytbciq\",\"computeModel\":\"ECPU\",\"exascaleConfig\":{\"totalStorageInGbs\":1485441711,\"availableStorageInGbs\":2066415804}},\"zones\":[\"kzsmodm\",\"lougpbkw\",\"mutduqktaps\"],\"location\":\"gcue\",\"tags\":{\"vqwhbmdgbbjfd\":\"mkdo\",\"q\":\"gmbmbexppbh\",\"algbquxigjyjg\":\"rolfpfp\",\"lnerkujysvleju\":\"jaoyfhrtx\"},\"id\":\"fqawrlyxw\",\"name\":\"kcprbnw\",\"type\":\"xgjvtbv\"},{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":308759192,\"mountPoint\":\"guhmuouqfpr\"},{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":2100303933,\"mountPoint\":\"tnwu\"}],\"ocid\":\"gazxuf\",\"computeCount\":1325323583,\"storageCount\":935270600,\"totalStorageSizeInGbs\":1585023957,\"availableStorageSizeInGbs\":284238049,\"timeCreated\":\"fidfvzw\",\"lifecycleDetails\":\"uht\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"February\"},{\"name\":\"May\"},{\"name\":\"June\"}],\"weeksOfMonth\":[404172620,2011133690,183094185],\"daysOfWeek\":[{\"name\":\"Wednesday\"},{\"name\":\"Wednesday\"},{\"name\":\"Wednesday\"}],\"hoursOfDay\":[1147717382,269791591,1562310773,1582483628],\"leadTimeInWeeks\":93191871,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":962982014,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":723507577,\"estimatedNetworkSwitchesPatchingTime\":1460749034,\"estimatedStorageServerPatchingTime\":2146966484,\"totalEstimatedPatchingTime\":560653281},\"customerContacts\":[{\"email\":\"ezcxtbzsgfyccsne\"},{\"email\":\"mdwzjeiachboo\"}],\"provisioningState\":\"Failed\",\"lifecycleState\":\"Terminating\",\"shape\":\"osfqpteehzzv\",\"ociUrl\":\"yqrimzin\",\"cpuCount\":11335031,\"maxCpuCount\":694156912,\"memorySizeInGbs\":541162578,\"maxMemoryInGbs\":1577087193,\"dbNodeStorageSizeInGbs\":158859960,\"maxDbNodeStorageSizeInGbs\":1909707701,\"dataStorageSizeInTbs\":20.800987021581484,\"maxDataStorageInTbs\":34.670517161184435,\"dbServerVersion\":\"ohjtckw\",\"storageServerVersion\":\"soifiyipjxsqw\",\"activatedStorageCount\":629629065,\"additionalStorageCount\":1124714443,\"displayName\":\"znorcj\",\"lastMaintenanceRunId\":\"snb\",\"nextMaintenanceRunId\":\"qabnmoc\",\"monthlyDbServerVersion\":\"ysh\",\"monthlyStorageServerVersion\":\"zafb\",\"databaseServerType\":\"j\",\"storageServerType\":\"btoqcjmkljavbqid\",\"computeModel\":\"ECPU\",\"exascaleConfig\":{\"totalStorageInGbs\":1134924822,\"availableStorageInGbs\":303743621}},\"zones\":[\"pku\"],\"location\":\"krlkhbzhfepg\",\"tags\":{\"zloc\":\"e\"},\"id\":\"scpai\",\"name\":\"rhhbcs\",\"type\":\"l\"},{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":865429737,\"mountPoint\":\"obnbdxkqpxokaj\"}],\"ocid\":\"npime\",\"computeCount\":1127619232,\"storageCount\":971264827,\"totalStorageSizeInGbs\":373468277,\"availableStorageSizeInGbs\":1489591694,\"timeCreated\":\"gmaajrm\",\"lifecycleDetails\":\"jwzrl\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"November\"},{\"name\":\"October\"},{\"name\":\"March\"},{\"name\":\"April\"}],\"weeksOfMonth\":[1526151596,1491222167,1742437249,1583993126],\"daysOfWeek\":[{\"name\":\"Tuesday\"},{\"name\":\"Tuesday\"},{\"name\":\"Tuesday\"}],\"hoursOfDay\":[1712979680],\"leadTimeInWeeks\":1302368966,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":544085929,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1238498062,\"estimatedNetworkSwitchesPatchingTime\":1041117095,\"estimatedStorageServerPatchingTime\":922056801,\"totalEstimatedPatchingTime\":2119531336},\"customerContacts\":[{\"email\":\"c\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"dtocj\",\"ociUrl\":\"hvpmoue\",\"cpuCount\":1945947631,\"maxCpuCount\":9507758,\"memorySizeInGbs\":738311617,\"maxMemoryInGbs\":996013729,\"dbNodeStorageSizeInGbs\":1074421821,\"maxDbNodeStorageSizeInGbs\":954835443,\"dataStorageSizeInTbs\":12.802907776871598,\"maxDataStorageInTbs\":52.78354694339231,\"dbServerVersion\":\"t\",\"storageServerVersion\":\"deicbtwnpzao\",\"activatedStorageCount\":1330155911,\"additionalStorageCount\":114023042,\"displayName\":\"hcffcyddglmjthjq\",\"lastMaintenanceRunId\":\"pyeicxm\",\"nextMaintenanceRunId\":\"iwqvhkh\",\"monthlyDbServerVersion\":\"uigdtopbobjog\",\"monthlyStorageServerVersion\":\"e\",\"databaseServerType\":\"a\",\"storageServerType\":\"uhrzayvvt\",\"computeModel\":\"ECPU\",\"exascaleConfig\":{\"totalStorageInGbs\":266379679,\"availableStorageInGbs\":723087340}},\"zones\":[\"tkftutqxlngx\",\"efgugnxk\",\"xdqmidtthzrvqdra\",\"hjybigehoqfbo\"],\"location\":\"kanyktzlcuiywg\",\"tags\":{\"gpphrcgyn\":\"gndrvynh\",\"fsxlzevgbmqjqa\":\"ocpecfvmmco\",\"pmivkwlzu\":\"c\",\"ebxetqgtzxdp\":\"ccfwnfnbacfion\"},\"id\":\"qbqqwxr\",\"name\":\"feallnwsu\",\"type\":\"isnjampmngnz\"}],\"nextLink\":\"xaqwoochcbonqv\"}") .toObject(CloudExadataInfrastructureListResult.class); - Assertions.assertEquals("s", model.value().get(0).location()); - Assertions.assertEquals("gvfcj", model.value().get(0).tags().get("wzo")); + Assertions.assertEquals("peqfpjkjl", model.value().get(0).location()); + Assertions.assertEquals("pdvhpfxxypin", model.value().get(0).tags().get("nmayhuybb")); Assertions.assertEquals(731883185, model.value().get(0).properties().computeCount()); Assertions.assertEquals(676674728, model.value().get(0).properties().storageCount()); Assertions.assertEquals(Preference.NO_PREFERENCE, @@ -43,7 +43,7 @@ public void testDeserialize() throws Exception { Assertions.assertEquals("slwejdpvw", model.value().get(0).properties().displayName()); Assertions.assertEquals("paojakhmsbzjh", model.value().get(0).properties().databaseServerType()); Assertions.assertEquals("zevdphlx", model.value().get(0).properties().storageServerType()); - Assertions.assertEquals("hqtrgqjbpf", model.value().get(0).zones().get(0)); - Assertions.assertEquals("eallnwsubisnj", model.nextLink()); + Assertions.assertEquals("gqjbpfzfsin", model.value().get(0).zones().get(0)); + Assertions.assertEquals("xaqwoochcbonqv", 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 index e49ae92e4d8e..eb3e1ddad370 100644 --- 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 @@ -21,68 +21,66 @@ public final class CloudExadataInfrastructurePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudExadataInfrastructureProperties model = BinaryData.fromString( - "{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":2044584540,\"mountPoint\":\"dagfuaxbezyiuok\"},{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":291798162,\"mountPoint\":\"zywqsmbsu\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1115871957,\"mountPoint\":\"ocfs\"}],\"ocid\":\"s\",\"computeCount\":1143177413,\"storageCount\":376493890,\"totalStorageSizeInGbs\":666664165,\"availableStorageSizeInGbs\":30564685,\"timeCreated\":\"uxh\",\"lifecycleDetails\":\"udxorrqn\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"December\"},{\"name\":\"January\"},{\"name\":\"January\"},{\"name\":\"April\"}],\"weeksOfMonth\":[1661944066],\"daysOfWeek\":[{\"name\":\"Wednesday\"},{\"name\":\"Monday\"},{\"name\":\"Monday\"}],\"hoursOfDay\":[952204067],\"leadTimeInWeeks\":31465947,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":1391003633,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":608072417,\"estimatedNetworkSwitchesPatchingTime\":1948903121,\"estimatedStorageServerPatchingTime\":825397815,\"totalEstimatedPatchingTime\":2143826704},\"customerContacts\":[{\"email\":\"ruwiqzbqjvsov\"},{\"email\":\"yokacspkw\"}],\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Terminating\",\"shape\":\"bpxjmfl\",\"ociUrl\":\"vnchrkcci\",\"cpuCount\":480188509,\"maxCpuCount\":970071122,\"memorySizeInGbs\":962380204,\"maxMemoryInGbs\":734048187,\"dbNodeStorageSizeInGbs\":1786560396,\"maxDbNodeStorageSizeInGbs\":2114864042,\"dataStorageSizeInTbs\":6.714905965653417,\"maxDataStorageInTbs\":77.08143476611616,\"dbServerVersion\":\"kg\",\"storageServerVersion\":\"auu\",\"activatedStorageCount\":1525008184,\"additionalStorageCount\":981074224,\"displayName\":\"xieduugidyjrr\",\"lastMaintenanceRunId\":\"y\",\"nextMaintenanceRunId\":\"svexcsonpclhoco\",\"monthlyDbServerVersion\":\"lkevle\",\"monthlyStorageServerVersion\":\"zfbuhf\",\"databaseServerType\":\"faxkffeii\",\"storageServerType\":\"lvmezyvshxmzsbbz\",\"computeModel\":\"ECPU\"}") + "{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":432282678,\"mountPoint\":\"flbvvnchrkcciwwz\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":330822059,\"mountPoint\":\"jiwkuofoskghsau\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":1194326763,\"mountPoint\":\"eduugi\"},{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":857489891,\"mountPoint\":\"aos\"}],\"ocid\":\"xc\",\"computeCount\":635298433,\"storageCount\":66931546,\"totalStorageSizeInGbs\":316608134,\"availableStorageSizeInGbs\":1879062252,\"timeCreated\":\"hslkevleggzf\",\"lifecycleDetails\":\"hfmvfaxkffe\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"February\"},{\"name\":\"November\"}],\"weeksOfMonth\":[72720177,2122365511],\"daysOfWeek\":[{\"name\":\"Monday\"},{\"name\":\"Friday\"},{\"name\":\"Tuesday\"}],\"hoursOfDay\":[2042967034,820071175,681165656],\"leadTimeInWeeks\":1542879301,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":2011180934,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1552581674,\"estimatedNetworkSwitchesPatchingTime\":2030028307,\"estimatedStorageServerPatchingTime\":1875025396,\"totalEstimatedPatchingTime\":655244901},\"customerContacts\":[{\"email\":\"koen\"}],\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Provisioning\",\"shape\":\"vudwtiukbldng\",\"ociUrl\":\"ocipazyxoeg\",\"cpuCount\":245724981,\"maxCpuCount\":1764023919,\"memorySizeInGbs\":799434019,\"maxMemoryInGbs\":1445231933,\"dbNodeStorageSizeInGbs\":2007054909,\"maxDbNodeStorageSizeInGbs\":846419016,\"dataStorageSizeInTbs\":39.61017052503307,\"maxDataStorageInTbs\":96.58484617586141,\"dbServerVersion\":\"mrbpizcdrqj\",\"storageServerVersion\":\"pyd\",\"activatedStorageCount\":1305817330,\"additionalStorageCount\":229483686,\"displayName\":\"de\",\"lastMaintenanceRunId\":\"jzicwifsjt\",\"nextMaintenanceRunId\":\"zfbishcbkhaj\",\"monthlyDbServerVersion\":\"yeamdphagalpb\",\"monthlyStorageServerVersion\":\"wgipwhono\",\"databaseServerType\":\"gshwankixz\",\"storageServerType\":\"njeputtmrywn\",\"computeModel\":\"OCPU\",\"exascaleConfig\":{\"totalStorageInGbs\":643142457,\"availableStorageInGbs\":1790198839}}") .toObject(CloudExadataInfrastructureProperties.class); - Assertions.assertEquals(1143177413, model.computeCount()); - Assertions.assertEquals(376493890, model.storageCount()); + Assertions.assertEquals(635298433, model.computeCount()); + Assertions.assertEquals(66931546, model.storageCount()); Assertions.assertEquals(Preference.NO_PREFERENCE, model.maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.DECEMBER, model.maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1661944066, model.maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.WEDNESDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(952204067, model.maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(31465947, model.maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(MonthName.FEBRUARY, model.maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(72720177, model.maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.MONDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); + Assertions.assertEquals(2042967034, model.maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(1542879301, model.maintenanceWindow().leadTimeInWeeks()); Assertions.assertEquals(PatchingMode.ROLLING, model.maintenanceWindow().patchingMode()); - Assertions.assertEquals(1391003633, model.maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertTrue(model.maintenanceWindow().isCustomActionTimeoutEnabled()); + Assertions.assertEquals(2011180934, model.maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertFalse(model.maintenanceWindow().isCustomActionTimeoutEnabled()); Assertions.assertFalse(model.maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("ruwiqzbqjvsov", model.customerContacts().get(0).email()); - Assertions.assertEquals("bpxjmfl", model.shape()); - Assertions.assertEquals("xieduugidyjrr", model.displayName()); - Assertions.assertEquals("faxkffeii", model.databaseServerType()); - Assertions.assertEquals("lvmezyvshxmzsbbz", model.storageServerType()); + Assertions.assertEquals("koen", model.customerContacts().get(0).email()); + Assertions.assertEquals("vudwtiukbldng", model.shape()); + Assertions.assertEquals("de", model.displayName()); + Assertions.assertEquals("gshwankixz", model.databaseServerType()); + Assertions.assertEquals("njeputtmrywn", model.storageServerType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudExadataInfrastructureProperties model - = new CloudExadataInfrastructureProperties().withComputeCount(1143177413) - .withStorageCount(376493890) - .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) - .withMonths( - Arrays.asList(new Month().withName(MonthName.DECEMBER), new Month().withName(MonthName.JANUARY), - new Month().withName(MonthName.JANUARY), new Month().withName(MonthName.APRIL))) - .withWeeksOfMonth(Arrays.asList(1661944066)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.WEDNESDAY), - new DayOfWeek().withName(DayOfWeekName.MONDAY), new DayOfWeek().withName(DayOfWeekName.MONDAY))) - .withHoursOfDay(Arrays.asList(952204067)) - .withLeadTimeInWeeks(31465947) - .withPatchingMode(PatchingMode.ROLLING) - .withCustomActionTimeoutInMins(1391003633) - .withIsCustomActionTimeoutEnabled(true) - .withIsMonthlyPatchingEnabled(false)) - .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("ruwiqzbqjvsov"), - new CustomerContact().withEmail("yokacspkw"))) - .withShape("bpxjmfl") - .withDisplayName("xieduugidyjrr") - .withDatabaseServerType("faxkffeii") - .withStorageServerType("lvmezyvshxmzsbbz"); + CloudExadataInfrastructureProperties model = new CloudExadataInfrastructureProperties() + .withComputeCount(635298433) + .withStorageCount(66931546) + .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) + .withMonths( + Arrays.asList(new Month().withName(MonthName.FEBRUARY), new Month().withName(MonthName.NOVEMBER))) + .withWeeksOfMonth(Arrays.asList(72720177, 2122365511)) + .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.MONDAY), + new DayOfWeek().withName(DayOfWeekName.FRIDAY), new DayOfWeek().withName(DayOfWeekName.TUESDAY))) + .withHoursOfDay(Arrays.asList(2042967034, 820071175, 681165656)) + .withLeadTimeInWeeks(1542879301) + .withPatchingMode(PatchingMode.ROLLING) + .withCustomActionTimeoutInMins(2011180934) + .withIsCustomActionTimeoutEnabled(false) + .withIsMonthlyPatchingEnabled(false)) + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("koen"))) + .withShape("vudwtiukbldng") + .withDisplayName("de") + .withDatabaseServerType("gshwankixz") + .withStorageServerType("njeputtmrywn"); model = BinaryData.fromObject(model).toObject(CloudExadataInfrastructureProperties.class); - Assertions.assertEquals(1143177413, model.computeCount()); - Assertions.assertEquals(376493890, model.storageCount()); + Assertions.assertEquals(635298433, model.computeCount()); + Assertions.assertEquals(66931546, model.storageCount()); Assertions.assertEquals(Preference.NO_PREFERENCE, model.maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.DECEMBER, model.maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1661944066, model.maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.WEDNESDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(952204067, model.maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(31465947, model.maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(MonthName.FEBRUARY, model.maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(72720177, model.maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.MONDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); + Assertions.assertEquals(2042967034, model.maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(1542879301, model.maintenanceWindow().leadTimeInWeeks()); Assertions.assertEquals(PatchingMode.ROLLING, model.maintenanceWindow().patchingMode()); - Assertions.assertEquals(1391003633, model.maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertTrue(model.maintenanceWindow().isCustomActionTimeoutEnabled()); + Assertions.assertEquals(2011180934, model.maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertFalse(model.maintenanceWindow().isCustomActionTimeoutEnabled()); Assertions.assertFalse(model.maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("ruwiqzbqjvsov", model.customerContacts().get(0).email()); - Assertions.assertEquals("bpxjmfl", model.shape()); - Assertions.assertEquals("xieduugidyjrr", model.displayName()); - Assertions.assertEquals("faxkffeii", model.databaseServerType()); - Assertions.assertEquals("lvmezyvshxmzsbbz", model.storageServerType()); + Assertions.assertEquals("koen", model.customerContacts().get(0).email()); + Assertions.assertEquals("vudwtiukbldng", model.shape()); + Assertions.assertEquals("de", model.displayName()); + Assertions.assertEquals("gshwankixz", model.databaseServerType()); + Assertions.assertEquals("njeputtmrywn", model.storageServerType()); } } 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 index 2b3f6f595722..e0d9b204897c 100644 --- 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 @@ -21,58 +21,60 @@ public final class CloudExadataInfrastructureUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudExadataInfrastructureUpdateProperties model = BinaryData.fromString( - "{\"computeCount\":2007375757,\"storageCount\":1079433286,\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"November\"}],\"weeksOfMonth\":[1399923471,585426916],\"daysOfWeek\":[{\"name\":\"Thursday\"},{\"name\":\"Monday\"},{\"name\":\"Friday\"},{\"name\":\"Wednesday\"}],\"hoursOfDay\":[1769488182,518689832],\"leadTimeInWeeks\":564919751,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":752212445,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"customerContacts\":[{\"email\":\"wlrsffrzpwv\"},{\"email\":\"qdqgbi\"}],\"displayName\":\"lihkaetcktvfc\"}") + "{\"computeCount\":175699877,\"storageCount\":1233954324,\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"December\"},{\"name\":\"December\"},{\"name\":\"December\"}],\"weeksOfMonth\":[1728715445,1381039739,1526069036],\"daysOfWeek\":[{\"name\":\"Tuesday\"},{\"name\":\"Wednesday\"},{\"name\":\"Wednesday\"}],\"hoursOfDay\":[64383308,1202809910],\"leadTimeInWeeks\":1251924272,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":567432535,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":true},\"customerContacts\":[{\"email\":\"uqqkpik\"},{\"email\":\"drgvtqagn\"},{\"email\":\"uynhijg\"},{\"email\":\"mebf\"}],\"displayName\":\"arbu\"}") .toObject(CloudExadataInfrastructureUpdateProperties.class); - Assertions.assertEquals(2007375757, model.computeCount()); - Assertions.assertEquals(1079433286, model.storageCount()); + Assertions.assertEquals(175699877, model.computeCount()); + Assertions.assertEquals(1233954324, model.storageCount()); Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.NOVEMBER, model.maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1399923471, model.maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.THURSDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(1769488182, model.maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(564919751, model.maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(MonthName.DECEMBER, model.maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(1728715445, model.maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.TUESDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); + Assertions.assertEquals(64383308, model.maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(1251924272, model.maintenanceWindow().leadTimeInWeeks()); Assertions.assertEquals(PatchingMode.ROLLING, model.maintenanceWindow().patchingMode()); - Assertions.assertEquals(752212445, model.maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertEquals(567432535, model.maintenanceWindow().customActionTimeoutInMins()); Assertions.assertFalse(model.maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertFalse(model.maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("wlrsffrzpwv", model.customerContacts().get(0).email()); - Assertions.assertEquals("lihkaetcktvfc", model.displayName()); + Assertions.assertTrue(model.maintenanceWindow().isMonthlyPatchingEnabled()); + Assertions.assertEquals("uqqkpik", model.customerContacts().get(0).email()); + Assertions.assertEquals("arbu", model.displayName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CloudExadataInfrastructureUpdateProperties model - = new CloudExadataInfrastructureUpdateProperties().withComputeCount(2007375757) - .withStorageCount(1079433286) + = new CloudExadataInfrastructureUpdateProperties().withComputeCount(175699877) + .withStorageCount(1233954324) .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.CUSTOM_PREFERENCE) - .withMonths(Arrays.asList(new Month().withName(MonthName.NOVEMBER))) - .withWeeksOfMonth(Arrays.asList(1399923471, 585426916)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.THURSDAY), - new DayOfWeek().withName(DayOfWeekName.MONDAY), new DayOfWeek().withName(DayOfWeekName.FRIDAY), + .withMonths(Arrays.asList(new Month().withName(MonthName.DECEMBER), + new Month().withName(MonthName.DECEMBER), new Month().withName(MonthName.DECEMBER))) + .withWeeksOfMonth(Arrays.asList(1728715445, 1381039739, 1526069036)) + .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.TUESDAY), + new DayOfWeek().withName(DayOfWeekName.WEDNESDAY), new DayOfWeek().withName(DayOfWeekName.WEDNESDAY))) - .withHoursOfDay(Arrays.asList(1769488182, 518689832)) - .withLeadTimeInWeeks(564919751) + .withHoursOfDay(Arrays.asList(64383308, 1202809910)) + .withLeadTimeInWeeks(1251924272) .withPatchingMode(PatchingMode.ROLLING) - .withCustomActionTimeoutInMins(752212445) + .withCustomActionTimeoutInMins(567432535) .withIsCustomActionTimeoutEnabled(false) - .withIsMonthlyPatchingEnabled(false)) - .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("wlrsffrzpwv"), - new CustomerContact().withEmail("qdqgbi"))) - .withDisplayName("lihkaetcktvfc"); + .withIsMonthlyPatchingEnabled(true)) + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("uqqkpik"), + new CustomerContact().withEmail("drgvtqagn"), new CustomerContact().withEmail("uynhijg"), + new CustomerContact().withEmail("mebf"))) + .withDisplayName("arbu"); model = BinaryData.fromObject(model).toObject(CloudExadataInfrastructureUpdateProperties.class); - Assertions.assertEquals(2007375757, model.computeCount()); - Assertions.assertEquals(1079433286, model.storageCount()); + Assertions.assertEquals(175699877, model.computeCount()); + Assertions.assertEquals(1233954324, model.storageCount()); Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.NOVEMBER, model.maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1399923471, model.maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.THURSDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(1769488182, model.maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(564919751, model.maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(MonthName.DECEMBER, model.maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(1728715445, model.maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.TUESDAY, model.maintenanceWindow().daysOfWeek().get(0).name()); + Assertions.assertEquals(64383308, model.maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(1251924272, model.maintenanceWindow().leadTimeInWeeks()); Assertions.assertEquals(PatchingMode.ROLLING, model.maintenanceWindow().patchingMode()); - Assertions.assertEquals(752212445, model.maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertEquals(567432535, model.maintenanceWindow().customActionTimeoutInMins()); Assertions.assertFalse(model.maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertFalse(model.maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("wlrsffrzpwv", model.customerContacts().get(0).email()); - Assertions.assertEquals("lihkaetcktvfc", model.displayName()); + Assertions.assertTrue(model.maintenanceWindow().isMonthlyPatchingEnabled()); + Assertions.assertEquals("uqqkpik", model.customerContacts().get(0).email()); + Assertions.assertEquals("arbu", 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 index b5dae6ff8120..a1c1c26f27fe 100644 --- 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 @@ -24,70 +24,66 @@ public final class CloudExadataInfrastructureUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CloudExadataInfrastructureUpdate model = BinaryData.fromString( - "{\"zones\":[\"qzntypm\",\"bpizcdrqjsdpydn\",\"yhxdeoejzicwi\",\"sjttgzfbish\"],\"tags\":{\"alpbuxwgipwhon\":\"hajdeyeamdpha\"},\"properties\":{\"computeCount\":353771493,\"storageCount\":1714142157,\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"January\"},{\"name\":\"February\"},{\"name\":\"December\"},{\"name\":\"June\"}],\"weeksOfMonth\":[1868038426,491108548,1363231227],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Friday\"}],\"hoursOfDay\":[998969185,1563071511,2134987728,1133422967],\"leadTimeInWeeks\":643142457,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":1348586485,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"customerContacts\":[{\"email\":\"vyxlwhzlsicohoqq\"},{\"email\":\"wvl\"},{\"email\":\"yav\"},{\"email\":\"hheunmmqhgyx\"}],\"displayName\":\"onocukok\"}}") + "{\"zones\":[\"rmjmwvvjektc\",\"senhwlrs\",\"frzpwvlqdqgb\",\"qylihkaetckt\"],\"tags\":{\"m\":\"ivfsnk\",\"jf\":\"ctq\",\"fuwutttxf\":\"ebrjcxe\",\"hfnljkyq\":\"jrbirphxepcyv\"},\"properties\":{\"computeCount\":1640197955,\"storageCount\":9347197,\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"July\"}],\"weeksOfMonth\":[792619615,10143119],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Sunday\"}],\"hoursOfDay\":[784453000,384639682,1773557410,1059812914],\"leadTimeInWeeks\":1745548413,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1435851366,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"customerContacts\":[{\"email\":\"bijhtxfvgxbf\"},{\"email\":\"mxnehmp\"},{\"email\":\"ec\"}],\"displayName\":\"odebfqkkrbmpu\"}}") .toObject(CloudExadataInfrastructureUpdate.class); - Assertions.assertEquals("qzntypm", model.zones().get(0)); - Assertions.assertEquals("hajdeyeamdpha", model.tags().get("alpbuxwgipwhon")); - Assertions.assertEquals(353771493, model.properties().computeCount()); - Assertions.assertEquals(1714142157, model.properties().storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.JANUARY, model.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1868038426, model.properties().maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals("rmjmwvvjektc", model.zones().get(0)); + Assertions.assertEquals("ivfsnk", model.tags().get("m")); + Assertions.assertEquals(1640197955, model.properties().computeCount()); + Assertions.assertEquals(9347197, model.properties().storageCount()); + Assertions.assertEquals(Preference.NO_PREFERENCE, model.properties().maintenanceWindow().preference()); + Assertions.assertEquals(MonthName.JULY, model.properties().maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(792619615, model.properties().maintenanceWindow().weeksOfMonth().get(0)); Assertions.assertEquals(DayOfWeekName.SUNDAY, model.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(998969185, model.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(643142457, model.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.ROLLING, model.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1348586485, model.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertTrue(model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); + Assertions.assertEquals(784453000, model.properties().maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(1745548413, model.properties().maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(PatchingMode.NON_ROLLING, model.properties().maintenanceWindow().patchingMode()); + Assertions.assertEquals(1435851366, model.properties().maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertFalse(model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); Assertions.assertFalse(model.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("vyxlwhzlsicohoqq", model.properties().customerContacts().get(0).email()); - Assertions.assertEquals("onocukok", model.properties().displayName()); + Assertions.assertEquals("bijhtxfvgxbf", model.properties().customerContacts().get(0).email()); + Assertions.assertEquals("odebfqkkrbmpu", model.properties().displayName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CloudExadataInfrastructureUpdate model - = new CloudExadataInfrastructureUpdate() - .withZones(Arrays.asList("qzntypm", "bpizcdrqjsdpydn", "yhxdeoejzicwi", "sjttgzfbish")) - .withTags(mapOf("alpbuxwgipwhon", "hajdeyeamdpha")) - .withProperties(new CloudExadataInfrastructureUpdateProperties().withComputeCount(353771493) - .withStorageCount(1714142157) - .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.CUSTOM_PREFERENCE) - .withMonths(Arrays.asList(new Month().withName(MonthName.JANUARY), - new Month().withName(MonthName.FEBRUARY), new Month().withName(MonthName.DECEMBER), - new Month().withName(MonthName.JUNE))) - .withWeeksOfMonth(Arrays.asList(1868038426, 491108548, 1363231227)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.SUNDAY), - new DayOfWeek().withName(DayOfWeekName.FRIDAY))) - .withHoursOfDay(Arrays.asList(998969185, 1563071511, 2134987728, 1133422967)) - .withLeadTimeInWeeks(643142457) - .withPatchingMode(PatchingMode.ROLLING) - .withCustomActionTimeoutInMins(1348586485) - .withIsCustomActionTimeoutEnabled(true) - .withIsMonthlyPatchingEnabled(false)) - .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("vyxlwhzlsicohoqq"), - new CustomerContact().withEmail("wvl"), new CustomerContact().withEmail("yav"), - new CustomerContact().withEmail("hheunmmqhgyx"))) - .withDisplayName("onocukok")); + CloudExadataInfrastructureUpdate model = new CloudExadataInfrastructureUpdate() + .withZones(Arrays.asList("rmjmwvvjektc", "senhwlrs", "frzpwvlqdqgb", "qylihkaetckt")) + .withTags(mapOf("m", "ivfsnk", "jf", "ctq", "fuwutttxf", "ebrjcxe", "hfnljkyq", "jrbirphxepcyv")) + .withProperties(new CloudExadataInfrastructureUpdateProperties().withComputeCount(1640197955) + .withStorageCount(9347197) + .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) + .withMonths(Arrays.asList(new Month().withName(MonthName.JULY))) + .withWeeksOfMonth(Arrays.asList(792619615, 10143119)) + .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.SUNDAY), + new DayOfWeek().withName(DayOfWeekName.SUNDAY))) + .withHoursOfDay(Arrays.asList(784453000, 384639682, 1773557410, 1059812914)) + .withLeadTimeInWeeks(1745548413) + .withPatchingMode(PatchingMode.NON_ROLLING) + .withCustomActionTimeoutInMins(1435851366) + .withIsCustomActionTimeoutEnabled(false) + .withIsMonthlyPatchingEnabled(false)) + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("bijhtxfvgxbf"), + new CustomerContact().withEmail("mxnehmp"), new CustomerContact().withEmail("ec"))) + .withDisplayName("odebfqkkrbmpu")); model = BinaryData.fromObject(model).toObject(CloudExadataInfrastructureUpdate.class); - Assertions.assertEquals("qzntypm", model.zones().get(0)); - Assertions.assertEquals("hajdeyeamdpha", model.tags().get("alpbuxwgipwhon")); - Assertions.assertEquals(353771493, model.properties().computeCount()); - Assertions.assertEquals(1714142157, model.properties().storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.JANUARY, model.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1868038426, model.properties().maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals("rmjmwvvjektc", model.zones().get(0)); + Assertions.assertEquals("ivfsnk", model.tags().get("m")); + Assertions.assertEquals(1640197955, model.properties().computeCount()); + Assertions.assertEquals(9347197, model.properties().storageCount()); + Assertions.assertEquals(Preference.NO_PREFERENCE, model.properties().maintenanceWindow().preference()); + Assertions.assertEquals(MonthName.JULY, model.properties().maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(792619615, model.properties().maintenanceWindow().weeksOfMonth().get(0)); Assertions.assertEquals(DayOfWeekName.SUNDAY, model.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(998969185, model.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(643142457, model.properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.ROLLING, model.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1348586485, model.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertTrue(model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); + Assertions.assertEquals(784453000, model.properties().maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(1745548413, model.properties().maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(PatchingMode.NON_ROLLING, model.properties().maintenanceWindow().patchingMode()); + Assertions.assertEquals(1435851366, model.properties().maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertFalse(model.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); Assertions.assertFalse(model.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("vyxlwhzlsicohoqq", model.properties().customerContacts().get(0).email()); - Assertions.assertEquals("onocukok", model.properties().displayName()); + Assertions.assertEquals("bijhtxfvgxbf", model.properties().customerContacts().get(0).email()); + Assertions.assertEquals("odebfqkkrbmpu", model.properties().displayName()); } // Use "Map.of" if available 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 index f25007b9d0b1..a196307e7c42 100644 --- 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 @@ -25,7 +25,7 @@ public final class CloudExadataInfrastructuresAddStorageCapacityMockTests { @Test public void testAddStorageCapacity() throws Exception { String responseStr - = "{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":182361785,\"mountPoint\":\"prhptillu\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1467633348,\"mountPoint\":\"ohmcwsld\"}],\"ocid\":\"zetpwbra\",\"computeCount\":1155046174,\"storageCount\":1996411708,\"totalStorageSizeInGbs\":1970354054,\"availableStorageSizeInGbs\":1461058147,\"timeCreated\":\"mizak\",\"lifecycleDetails\":\"ankjpdnjzh\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"December\"},{\"name\":\"June\"}],\"weeksOfMonth\":[2002582337],\"daysOfWeek\":[{\"name\":\"Sunday\"},{\"name\":\"Saturday\"},{\"name\":\"Monday\"}],\"hoursOfDay\":[2131634319,1631755461,2035956497],\"leadTimeInWeeks\":1942024435,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1554382719,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":749085962,\"estimatedNetworkSwitchesPatchingTime\":1672946681,\"estimatedStorageServerPatchingTime\":2018313749,\"totalEstimatedPatchingTime\":899027368},\"customerContacts\":[{\"email\":\"aumweoohguufu\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Terminating\",\"shape\":\"athwt\",\"ociUrl\":\"lbaemwmdxmeb\",\"cpuCount\":8048243,\"maxCpuCount\":120953176,\"memorySizeInGbs\":1124568750,\"maxMemoryInGbs\":140579702,\"dbNodeStorageSizeInGbs\":1860405842,\"maxDbNodeStorageSizeInGbs\":125446577,\"dataStorageSizeInTbs\":0.688981211046169,\"maxDataStorageInTbs\":54.2090184351919,\"dbServerVersion\":\"mqt\",\"storageServerVersion\":\"xyi\",\"activatedStorageCount\":462307774,\"additionalStorageCount\":460830566,\"displayName\":\"qcttadijaeukmrsi\",\"lastMaintenanceRunId\":\"kpn\",\"nextMaintenanceRunId\":\"aapm\",\"monthlyDbServerVersion\":\"qmeqwigpibudqwyx\",\"monthlyStorageServerVersion\":\"e\",\"databaseServerType\":\"pmzznrtffya\",\"storageServerType\":\"tmhheioqa\",\"computeModel\":\"ECPU\"},\"zones\":[\"eufuqyrxpdlcgql\",\"ismjqfrddgamqu\"],\"location\":\"os\",\"tags\":{\"irnxz\":\"uivfcdis\"},\"id\":\"czexrxzbujrtrhqv\",\"name\":\"revkhgnlnzo\",\"type\":\"zlrpiqywncvj\"}"; + = "{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":451973602,\"mountPoint\":\"hhtklnvnafvvkyfe\"},{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":705317709,\"mountPoint\":\"cqxypokkhminq\"},{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":331015750,\"mountPoint\":\"bdxxe\"}],\"ocid\":\"ninvudbchaqdt\",\"computeCount\":308339857,\"storageCount\":589842741,\"totalStorageSizeInGbs\":313351461,\"availableStorageSizeInGbs\":720636191,\"timeCreated\":\"xdtddmflhuytxzv\",\"lifecycleDetails\":\"napxbannovv\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"February\"},{\"name\":\"August\"}],\"weeksOfMonth\":[1788406883,451158053,1584430006,457437874],\"daysOfWeek\":[{\"name\":\"Monday\"},{\"name\":\"Friday\"},{\"name\":\"Tuesday\"},{\"name\":\"Thursday\"}],\"hoursOfDay\":[589113457,1862922267],\"leadTimeInWeeks\":67510907,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1321738154,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":810647712,\"estimatedNetworkSwitchesPatchingTime\":1326881009,\"estimatedStorageServerPatchingTime\":1031456845,\"totalEstimatedPatchingTime\":1975991801},\"customerContacts\":[{\"email\":\"klobdxnazpmk\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Failed\",\"shape\":\"vfxzopjh\",\"ociUrl\":\"xliohrdddt\",\"cpuCount\":1812415709,\"maxCpuCount\":354945221,\"memorySizeInGbs\":530417864,\"maxMemoryInGbs\":540353819,\"dbNodeStorageSizeInGbs\":796010051,\"maxDbNodeStorageSizeInGbs\":2068748786,\"dataStorageSizeInTbs\":82.81682706563538,\"maxDataStorageInTbs\":26.268060074478605,\"dbServerVersion\":\"qofyuicdhzbdy\",\"storageServerVersion\":\"wgbdvibidmhmwffp\",\"activatedStorageCount\":1436158527,\"additionalStorageCount\":1159295504,\"displayName\":\"apckccrrvw\",\"lastMaintenanceRunId\":\"oxoyyukp\",\"nextMaintenanceRunId\":\"immoiroqboshbrag\",\"monthlyDbServerVersion\":\"yyrmfsvbp\",\"monthlyStorageServerVersion\":\"bopfppdbwnup\",\"databaseServerType\":\"hxkumasjcaacfdmm\",\"storageServerType\":\"ugmehqepvufhbze\",\"computeModel\":\"OCPU\",\"exascaleConfig\":{\"totalStorageInGbs\":1514485818,\"availableStorageInGbs\":574841417}},\"zones\":[\"lbqnbldxeacl\",\"schori\",\"krsrrmoucs\",\"fldpuviyfc\"],\"location\":\"beolh\",\"tags\":{\"kcudfbsfarfsiowl\":\"vbmxuqibsx\",\"wgfstmhqykizm\":\"jxnqp\",\"ycjimryvwgcwwpbm\":\"ksaoafcluqvox\",\"ydsx\":\"gwe\"},\"id\":\"efoh\",\"name\":\"cbvopwndyqleallk\",\"type\":\"mtkhlowkxxpvbr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,29 +34,29 @@ public void testAddStorageCapacity() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - CloudExadataInfrastructure response - = manager.cloudExadataInfrastructures().addStorageCapacity("smkss", "h", com.azure.core.util.Context.NONE); + CloudExadataInfrastructure response = manager.cloudExadataInfrastructures() + .addStorageCapacity("ogwxhnsduugwb", "reur", com.azure.core.util.Context.NONE); - Assertions.assertEquals("os", response.location()); - Assertions.assertEquals("uivfcdis", response.tags().get("irnxz")); - Assertions.assertEquals(1155046174, response.properties().computeCount()); - Assertions.assertEquals(1996411708, response.properties().storageCount()); - Assertions.assertEquals(Preference.NO_PREFERENCE, response.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.DECEMBER, response.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(2002582337, response.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SUNDAY, + Assertions.assertEquals("beolh", response.location()); + Assertions.assertEquals("vbmxuqibsx", response.tags().get("kcudfbsfarfsiowl")); + Assertions.assertEquals(308339857, response.properties().computeCount()); + Assertions.assertEquals(589842741, response.properties().storageCount()); + Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, response.properties().maintenanceWindow().preference()); + Assertions.assertEquals(MonthName.FEBRUARY, response.properties().maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(1788406883, response.properties().maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.MONDAY, response.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(2131634319, response.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1942024435, response.properties().maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(589113457, response.properties().maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(67510907, response.properties().maintenanceWindow().leadTimeInWeeks()); Assertions.assertEquals(PatchingMode.NON_ROLLING, response.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1554382719, response.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertFalse(response.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertFalse(response.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("aumweoohguufu", response.properties().customerContacts().get(0).email()); - Assertions.assertEquals("athwt", response.properties().shape()); - Assertions.assertEquals("qcttadijaeukmrsi", response.properties().displayName()); - Assertions.assertEquals("pmzznrtffya", response.properties().databaseServerType()); - Assertions.assertEquals("tmhheioqa", response.properties().storageServerType()); - Assertions.assertEquals("eufuqyrxpdlcgql", response.zones().get(0)); + Assertions.assertEquals(1321738154, response.properties().maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertTrue(response.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); + Assertions.assertTrue(response.properties().maintenanceWindow().isMonthlyPatchingEnabled()); + Assertions.assertEquals("klobdxnazpmk", response.properties().customerContacts().get(0).email()); + Assertions.assertEquals("vfxzopjh", response.properties().shape()); + Assertions.assertEquals("apckccrrvw", response.properties().displayName()); + Assertions.assertEquals("hxkumasjcaacfdmm", response.properties().databaseServerType()); + Assertions.assertEquals("ugmehqepvufhbze", response.properties().storageServerType()); + Assertions.assertEquals("lbqnbldxeacl", response.zones().get(0)); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresConfigureExascaleMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresConfigureExascaleMockTests.java new file mode 100644 index 000000000000..00590fd3b7e5 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/CloudExadataInfrastructuresConfigureExascaleMockTests.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +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.ConfigureExascaleCloudExadataInfrastructureDetails; +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 CloudExadataInfrastructuresConfigureExascaleMockTests { + @Test + public void testConfigureExascale() throws Exception { + String responseStr + = "{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":1171634090,\"mountPoint\":\"icphvtrrmhw\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":256145081,\"mountPoint\":\"ubhvj\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1104352328,\"mountPoint\":\"lw\"}],\"ocid\":\"memhooclutnpq\",\"computeCount\":1579133253,\"storageCount\":978013329,\"totalStorageSizeInGbs\":1328694478,\"availableStorageSizeInGbs\":865152185,\"timeCreated\":\"kyujxsglhsrrr\",\"lifecycleDetails\":\"jylmbkzudnigr\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"August\"},{\"name\":\"January\"},{\"name\":\"November\"}],\"weeksOfMonth\":[349681251,1513568409,289344898],\"daysOfWeek\":[{\"name\":\"Saturday\"},{\"name\":\"Thursday\"},{\"name\":\"Monday\"}],\"hoursOfDay\":[1865358517,753839837],\"leadTimeInWeeks\":2143800860,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":1185666084,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":2061594635,\"estimatedNetworkSwitchesPatchingTime\":430469096,\"estimatedStorageServerPatchingTime\":1733569114,\"totalEstimatedPatchingTime\":995984285},\"customerContacts\":[{\"email\":\"dqtvhcsp\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Failed\",\"shape\":\"xsi\",\"ociUrl\":\"etgbebjfulb\",\"cpuCount\":1731116741,\"maxCpuCount\":239290276,\"memorySizeInGbs\":796050147,\"maxMemoryInGbs\":816539003,\"dbNodeStorageSizeInGbs\":339595762,\"maxDbNodeStorageSizeInGbs\":160209701,\"dataStorageSizeInTbs\":49.53742534557637,\"maxDataStorageInTbs\":86.99459131476785,\"dbServerVersion\":\"viqsowsaaelcattc\",\"storageServerVersion\":\"hplrvkmjcwmjvlg\",\"activatedStorageCount\":2110078268,\"additionalStorageCount\":1459066733,\"displayName\":\"kyylizr\",\"lastMaintenanceRunId\":\"jpsfxsfu\",\"nextMaintenanceRunId\":\"lvt\",\"monthlyDbServerVersion\":\"agb\",\"monthlyStorageServerVersion\":\"dqlvhukoveof\",\"databaseServerType\":\"rvjfnmjmvlw\",\"storageServerType\":\"giblkujrllf\",\"computeModel\":\"OCPU\",\"exascaleConfig\":{\"totalStorageInGbs\":558783309,\"availableStorageInGbs\":615136855}},\"zones\":[\"uyjucejikzo\",\"ovvtzejetjkln\",\"ikyju\"],\"location\":\"dbqzolxrzvhqjw\",\"tags\":{\"rrkolawjmjs\":\"tgvgzp\"},\"id\":\"wro\",\"name\":\"cdxfzzzwyjafitl\",\"type\":\"guyn\"}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + CloudExadataInfrastructure response = manager.cloudExadataInfrastructures() + .configureExascale("fjmzsyzfho", "lhikcyychunsj", + new ConfigureExascaleCloudExadataInfrastructureDetails().withTotalStorageInGbs(1472348146), + com.azure.core.util.Context.NONE); + + Assertions.assertEquals("dbqzolxrzvhqjw", response.location()); + Assertions.assertEquals("tgvgzp", response.tags().get("rrkolawjmjs")); + Assertions.assertEquals(1579133253, response.properties().computeCount()); + Assertions.assertEquals(978013329, response.properties().storageCount()); + Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, response.properties().maintenanceWindow().preference()); + Assertions.assertEquals(MonthName.AUGUST, response.properties().maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(349681251, response.properties().maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.SATURDAY, + response.properties().maintenanceWindow().daysOfWeek().get(0).name()); + Assertions.assertEquals(1865358517, response.properties().maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(2143800860, response.properties().maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(PatchingMode.ROLLING, response.properties().maintenanceWindow().patchingMode()); + Assertions.assertEquals(1185666084, response.properties().maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertFalse(response.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); + Assertions.assertFalse(response.properties().maintenanceWindow().isMonthlyPatchingEnabled()); + Assertions.assertEquals("dqtvhcsp", response.properties().customerContacts().get(0).email()); + Assertions.assertEquals("xsi", response.properties().shape()); + Assertions.assertEquals("kyylizr", response.properties().displayName()); + Assertions.assertEquals("rvjfnmjmvlw", response.properties().databaseServerType()); + Assertions.assertEquals("giblkujrllf", response.properties().storageServerType()); + Assertions.assertEquals("uyjucejikzo", 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 index e130d21de646..b5e61f61fbf1 100644 --- 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 @@ -33,7 +33,7 @@ public final class CloudExadataInfrastructuresCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":497291047,\"mountPoint\":\"nptfujgi\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":2031389525,\"mountPoint\":\"taqutdewem\"},{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":140983404,\"mountPoint\":\"zzjgehkfki\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1844192797,\"mountPoint\":\"fqyinljqepqw\"}],\"ocid\":\"xmonstshi\",\"computeCount\":1369464715,\"storageCount\":211589475,\"totalStorageSizeInGbs\":1196099059,\"availableStorageSizeInGbs\":1732481769,\"timeCreated\":\"uccbirdsvuw\",\"lifecycleDetails\":\"b\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"July\"},{\"name\":\"December\"},{\"name\":\"May\"},{\"name\":\"October\"}],\"weeksOfMonth\":[2100756233,1305077670],\"daysOfWeek\":[{\"name\":\"Thursday\"},{\"name\":\"Sunday\"},{\"name\":\"Monday\"},{\"name\":\"Thursday\"}],\"hoursOfDay\":[403294934],\"leadTimeInWeeks\":884114239,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":428803930,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":934679534,\"estimatedNetworkSwitchesPatchingTime\":1588574812,\"estimatedStorageServerPatchingTime\":1178102371,\"totalEstimatedPatchingTime\":411885173},\"customerContacts\":[{\"email\":\"ycucrwnamikzeb\"},{\"email\":\"qbsms\"},{\"email\":\"ziqgfuh\"},{\"email\":\"kzruswh\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Available\",\"shape\":\"n\",\"ociUrl\":\"bycjsxjwwix\",\"cpuCount\":156341242,\"maxCpuCount\":1790440808,\"memorySizeInGbs\":1286205076,\"maxMemoryInGbs\":1685347257,\"dbNodeStorageSizeInGbs\":1978421071,\"maxDbNodeStorageSizeInGbs\":1385229994,\"dataStorageSizeInTbs\":40.05324193033235,\"maxDataStorageInTbs\":89.90167363208273,\"dbServerVersion\":\"haohdjhhflzokxc\",\"storageServerVersion\":\"pelnjetag\",\"activatedStorageCount\":1066573650,\"additionalStorageCount\":1886970927,\"displayName\":\"atftgzpnpbsw\",\"lastMaintenanceRunId\":\"floccsrmozih\",\"nextMaintenanceRunId\":\"pgawtxxpkyjcxcjx\",\"monthlyDbServerVersion\":\"ytfmpc\",\"monthlyStorageServerVersion\":\"ilrmcaykggnox\",\"databaseServerType\":\"t\",\"storageServerType\":\"sxwpndfcpfnznthj\",\"computeModel\":\"OCPU\"},\"zones\":[\"aosrxuz\",\"oamktcq\",\"os\"],\"location\":\"bzahgxqd\",\"tags\":{\"ap\":\"tlt\",\"oqeq\":\"ltzkatbhjmznnb\"},\"id\":\"larvlagunbtg\",\"name\":\"ebwlnbmhyreeudzq\",\"type\":\"vbpdqmjxlyyzglgo\"}"; + = "{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":2106682244,\"mountPoint\":\"k\"}],\"ocid\":\"ve\",\"computeCount\":789888473,\"storageCount\":1201328527,\"totalStorageSizeInGbs\":664192070,\"availableStorageSizeInGbs\":133046174,\"timeCreated\":\"rnfxtgddp\",\"lifecycleDetails\":\"hehnmnaoya\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"March\"},{\"name\":\"July\"},{\"name\":\"September\"},{\"name\":\"January\"}],\"weeksOfMonth\":[41999694,2076319922],\"daysOfWeek\":[{\"name\":\"Tuesday\"},{\"name\":\"Tuesday\"},{\"name\":\"Wednesday\"},{\"name\":\"Thursday\"}],\"hoursOfDay\":[769796066,1705440283],\"leadTimeInWeeks\":673142894,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":750712079,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1025559588,\"estimatedNetworkSwitchesPatchingTime\":718100150,\"estimatedStorageServerPatchingTime\":1431974621,\"totalEstimatedPatchingTime\":13572541},\"customerContacts\":[{\"email\":\"eeczgfbu\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"s\",\"ociUrl\":\"blycsxzujksr\",\"cpuCount\":1416694484,\"maxCpuCount\":1476026923,\"memorySizeInGbs\":2007657169,\"maxMemoryInGbs\":1385495234,\"dbNodeStorageSizeInGbs\":240034814,\"maxDbNodeStorageSizeInGbs\":1725604269,\"dataStorageSizeInTbs\":62.25711902969204,\"maxDataStorageInTbs\":10.052213521418807,\"dbServerVersion\":\"dyvt\",\"storageServerVersion\":\"wxvgpiudeugfsxze\",\"activatedStorageCount\":1024094635,\"additionalStorageCount\":1582290810,\"displayName\":\"kufykhvu\",\"lastMaintenanceRunId\":\"epmrut\",\"nextMaintenanceRunId\":\"abaobnslujdjltym\",\"monthlyDbServerVersion\":\"vguihywar\",\"monthlyStorageServerVersion\":\"pphkixkykxds\",\"databaseServerType\":\"pemmucfxhik\",\"storageServerType\":\"lrmymyincqlhri\",\"computeModel\":\"ECPU\",\"exascaleConfig\":{\"totalStorageInGbs\":1018402550,\"availableStorageInGbs\":521413145}},\"zones\":[\"ovgqcgxuugqkctot\"],\"location\":\"wlxte\",\"tags\":{\"anblwphqlkccu\":\"tjgwdtguk\",\"iul\":\"gygqwah\"},\"id\":\"gniiprglvaw\",\"name\":\"wzdufypivlsbb\",\"type\":\"pmcubkmifoxxkub\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -43,55 +43,51 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CloudExadataInfrastructure response = manager.cloudExadataInfrastructures() - .define("wcltyjede") - .withRegion("n") - .withExistingResourceGroup("cpopmxel") - .withZones(Arrays.asList("snvpdibmi", "ostbzbkiwb")) - .withTags( - mapOf("nezzcezelfwyfwlw", "hzfylsgcrpfbc", "zvaylptrsqqw", "jwetnpsihcla", "waxfewzjkj", "tcmwqkchc")) - .withProperties(new CloudExadataInfrastructureProperties().withComputeCount(967398069) - .withStorageCount(1448410077) + .define("mltx") + .withRegion("rseqwjksghudgz") + .withExistingResourceGroup("chl") + .withZones(Arrays.asList("bbmpxdlvykfre")) + .withTags(mapOf("u", "gjggsv", "kmdyomkxfbvfbh", "kxibdafh", "rhpw", "y", "o", "gddeimaw")) + .withProperties(new CloudExadataInfrastructureProperties().withComputeCount(1282661494) + .withStorageCount(369643942) .withMaintenanceWindow(new MaintenanceWindow().withPreference(Preference.NO_PREFERENCE) - .withMonths(Arrays.asList(new Month().withName(MonthName.MAY))) - .withWeeksOfMonth(Arrays.asList(669649169, 1331204401, 1461231451, 351004258)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.SATURDAY), - new DayOfWeek().withName(DayOfWeekName.SATURDAY), - new DayOfWeek().withName(DayOfWeekName.SUNDAY))) - .withHoursOfDay(Arrays.asList(488941852, 414360047)) - .withLeadTimeInWeeks(1016884622) - .withPatchingMode(PatchingMode.ROLLING) - .withCustomActionTimeoutInMins(1417437720) - .withIsCustomActionTimeoutEnabled(false) + .withMonths(Arrays.asList(new Month().withName(MonthName.DECEMBER))) + .withWeeksOfMonth(Arrays.asList(1605415287, 60991993, 1628791507)) + .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.FRIDAY))) + .withHoursOfDay(Arrays.asList(224237712, 105087140, 496590668, 755954714)) + .withLeadTimeInWeeks(1031040752) + .withPatchingMode(PatchingMode.NON_ROLLING) + .withCustomActionTimeoutInMins(283342736) + .withIsCustomActionTimeoutEnabled(true) .withIsMonthlyPatchingEnabled(true)) - .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("ibg"), - new CustomerContact().withEmail("xgnxfyqonmpqoxwd"))) - .withShape("iqxeiiqbimht") - .withDisplayName("jfelisdjubggbqig") - .withDatabaseServerType("jed") - .withStorageServerType("tkvnlvxbcuiiznkt")) + .withCustomerContacts(Arrays.asList(new CustomerContact().withEmail("gj"))) + .withShape("irwgdnqzbrf") + .withDisplayName("cxnmskwhqjjyslu") + .withDatabaseServerType("rrleaesinuqt") + .withStorageServerType("qobbpihehcec")) .create(); - Assertions.assertEquals("bzahgxqd", response.location()); - Assertions.assertEquals("tlt", response.tags().get("ap")); - Assertions.assertEquals(1369464715, response.properties().computeCount()); - Assertions.assertEquals(211589475, response.properties().storageCount()); - Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, response.properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.JULY, response.properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(2100756233, response.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.THURSDAY, + Assertions.assertEquals("wlxte", response.location()); + Assertions.assertEquals("tjgwdtguk", response.tags().get("anblwphqlkccu")); + Assertions.assertEquals(789888473, response.properties().computeCount()); + Assertions.assertEquals(1201328527, 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(41999694, response.properties().maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.TUESDAY, response.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(403294934, response.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(884114239, response.properties().maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(769796066, response.properties().maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(673142894, response.properties().maintenanceWindow().leadTimeInWeeks()); Assertions.assertEquals(PatchingMode.ROLLING, response.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(428803930, response.properties().maintenanceWindow().customActionTimeoutInMins()); - Assertions.assertFalse(response.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); + Assertions.assertEquals(750712079, response.properties().maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertTrue(response.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); Assertions.assertTrue(response.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("ycucrwnamikzeb", response.properties().customerContacts().get(0).email()); - Assertions.assertEquals("n", response.properties().shape()); - Assertions.assertEquals("atftgzpnpbsw", response.properties().displayName()); - Assertions.assertEquals("t", response.properties().databaseServerType()); - Assertions.assertEquals("sxwpndfcpfnznthj", response.properties().storageServerType()); - Assertions.assertEquals("aosrxuz", response.zones().get(0)); + Assertions.assertEquals("eeczgfbu", response.properties().customerContacts().get(0).email()); + Assertions.assertEquals("s", response.properties().shape()); + Assertions.assertEquals("kufykhvu", response.properties().displayName()); + Assertions.assertEquals("pemmucfxhik", response.properties().databaseServerType()); + Assertions.assertEquals("lrmymyincqlhri", response.properties().storageServerType()); + Assertions.assertEquals("ovgqcgxuugqkctot", response.zones().get(0)); } // Use "Map.of" if available 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 index 9d89e536d63f..993763268c42 100644 --- 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 @@ -25,7 +25,7 @@ public final class CloudExadataInfrastructuresGetByResourceGroupWithResponseMock @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":575797032,\"mountPoint\":\"v\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":24644358,\"mountPoint\":\"keifzzhmkdasv\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":432756215,\"mountPoint\":\"dchxgsrboldfor\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":998979559,\"mountPoint\":\"bfhfovvacqp\"}],\"ocid\":\"uodxesza\",\"computeCount\":1654037219,\"storageCount\":1797957614,\"totalStorageSizeInGbs\":2002905028,\"availableStorageSizeInGbs\":308639473,\"timeCreated\":\"slzkwrrwoycqu\",\"lifecycleDetails\":\"yhahnomdrkyw\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"October\"},{\"name\":\"November\"},{\"name\":\"November\"}],\"weeksOfMonth\":[1702145471,502695723,1783251204,1188948288],\"daysOfWeek\":[{\"name\":\"Wednesday\"},{\"name\":\"Wednesday\"},{\"name\":\"Sunday\"},{\"name\":\"Thursday\"}],\"hoursOfDay\":[2141850057,116262403],\"leadTimeInWeeks\":1599319524,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1705044964,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":2090759507,\"estimatedNetworkSwitchesPatchingTime\":883576169,\"estimatedStorageServerPatchingTime\":255810244,\"totalEstimatedPatchingTime\":55723460},\"customerContacts\":[{\"email\":\"zyvli\"},{\"email\":\"q\"},{\"email\":\"rkcxkj\"},{\"email\":\"bn\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"xs\",\"ociUrl\":\"rntvlwijp\",\"cpuCount\":169879542,\"maxCpuCount\":1924013089,\"memorySizeInGbs\":246018660,\"maxMemoryInGbs\":382801077,\"dbNodeStorageSizeInGbs\":1761852553,\"maxDbNodeStorageSizeInGbs\":1230489128,\"dataStorageSizeInTbs\":59.37275961543765,\"maxDataStorageInTbs\":75.47673620969648,\"dbServerVersion\":\"cuwmqsp\",\"storageServerVersion\":\"dqzh\",\"activatedStorageCount\":1980287093,\"additionalStorageCount\":1365011291,\"displayName\":\"unqndyfpchrqb\",\"lastMaintenanceRunId\":\"jrcg\",\"nextMaintenanceRunId\":\"ydcwboxjumv\",\"monthlyDbServerVersion\":\"olihrra\",\"monthlyStorageServerVersion\":\"uaubrj\",\"databaseServerType\":\"oq\",\"storageServerType\":\"uojrngiflr\",\"computeModel\":\"ECPU\"},\"zones\":[\"ccbiuimzdlyjdfq\",\"mkyoqufdvruzsl\",\"ojhp\"],\"location\":\"fnmdxotn\",\"tags\":{\"i\":\"gugey\"},\"id\":\"grkyuizabsnmfpph\",\"name\":\"jee\",\"type\":\"yhyhsgzfczb\"}"; + = "{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":833975977,\"mountPoint\":\"auxofshfph\"}],\"ocid\":\"nulaiywzejywhsl\",\"computeCount\":2105999737,\"storageCount\":1709096498,\"totalStorageSizeInGbs\":157420871,\"availableStorageSizeInGbs\":444812162,\"timeCreated\":\"pdwrpqafgfugsn\",\"lifecycleDetails\":\"hyet\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"March\"}],\"weeksOfMonth\":[1012855702,1575776706],\"daysOfWeek\":[{\"name\":\"Sunday\"}],\"hoursOfDay\":[1163986546,597638958],\"leadTimeInWeeks\":1870960882,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":2014891569,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":188673440,\"estimatedNetworkSwitchesPatchingTime\":1927248982,\"estimatedStorageServerPatchingTime\":544390704,\"totalEstimatedPatchingTime\":1633694520},\"customerContacts\":[{\"email\":\"ionszonwp\"}],\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Terminating\",\"shape\":\"n\",\"ociUrl\":\"xjawrt\",\"cpuCount\":968564059,\"maxCpuCount\":1250352030,\"memorySizeInGbs\":1418512133,\"maxMemoryInGbs\":1315835072,\"dbNodeStorageSizeInGbs\":1048232639,\"maxDbNodeStorageSizeInGbs\":1400866339,\"dataStorageSizeInTbs\":3.2587933902541,\"maxDataStorageInTbs\":89.16949382859644,\"dbServerVersion\":\"henlusfnr\",\"storageServerVersion\":\"jxtxrdc\",\"activatedStorageCount\":1970813350,\"additionalStorageCount\":109325859,\"displayName\":\"dt\",\"lastMaintenanceRunId\":\"epu\",\"nextMaintenanceRunId\":\"vyjtcvu\",\"monthlyDbServerVersion\":\"asiz\",\"monthlyStorageServerVersion\":\"sfuughtuqfecjx\",\"databaseServerType\":\"gtuhxuicbu\",\"storageServerType\":\"mr\",\"computeModel\":\"ECPU\",\"exascaleConfig\":{\"totalStorageInGbs\":397140554,\"availableStorageInGbs\":1405699851}},\"zones\":[\"rhwpus\",\"jbaqehgpdoh\"],\"location\":\"qatucoigebxnc\",\"tags\":{\"jgcgbjbgdlfgtdys\":\"epbnwgfm\",\"zjrwdkqze\":\"aquflqbctqha\",\"fza\":\"yjleziunjx\",\"eg\":\"tkw\"},\"id\":\"amlbnseqacjjvpil\",\"name\":\"uooqjagmdit\",\"type\":\"ueio\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,29 +35,29 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CloudExadataInfrastructure response = manager.cloudExadataInfrastructures() - .getByResourceGroupWithResponse("lvidizozs", "bccxjmonfdgn", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("mtdherngb", "c", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("fnmdxotn", response.location()); - Assertions.assertEquals("gugey", response.tags().get("i")); - Assertions.assertEquals(1654037219, response.properties().computeCount()); - Assertions.assertEquals(1797957614, response.properties().storageCount()); + Assertions.assertEquals("qatucoigebxnc", response.location()); + Assertions.assertEquals("epbnwgfm", response.tags().get("jgcgbjbgdlfgtdys")); + Assertions.assertEquals(2105999737, response.properties().computeCount()); + Assertions.assertEquals(1709096498, 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(1702145471, response.properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.WEDNESDAY, + Assertions.assertEquals(MonthName.MARCH, response.properties().maintenanceWindow().months().get(0).name()); + Assertions.assertEquals(1012855702, response.properties().maintenanceWindow().weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.SUNDAY, response.properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(2141850057, response.properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1599319524, response.properties().maintenanceWindow().leadTimeInWeeks()); + Assertions.assertEquals(1163986546, response.properties().maintenanceWindow().hoursOfDay().get(0)); + Assertions.assertEquals(1870960882, response.properties().maintenanceWindow().leadTimeInWeeks()); Assertions.assertEquals(PatchingMode.NON_ROLLING, response.properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1705044964, response.properties().maintenanceWindow().customActionTimeoutInMins()); + Assertions.assertEquals(2014891569, response.properties().maintenanceWindow().customActionTimeoutInMins()); Assertions.assertFalse(response.properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertFalse(response.properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("zyvli", response.properties().customerContacts().get(0).email()); - Assertions.assertEquals("xs", response.properties().shape()); - Assertions.assertEquals("unqndyfpchrqb", response.properties().displayName()); - Assertions.assertEquals("oq", response.properties().databaseServerType()); - Assertions.assertEquals("uojrngiflr", response.properties().storageServerType()); - Assertions.assertEquals("ccbiuimzdlyjdfq", response.zones().get(0)); + Assertions.assertTrue(response.properties().maintenanceWindow().isMonthlyPatchingEnabled()); + Assertions.assertEquals("ionszonwp", response.properties().customerContacts().get(0).email()); + Assertions.assertEquals("n", response.properties().shape()); + Assertions.assertEquals("dt", response.properties().displayName()); + Assertions.assertEquals("gtuhxuicbu", response.properties().databaseServerType()); + Assertions.assertEquals("mr", response.properties().storageServerType()); + Assertions.assertEquals("rhwpus", 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 index 36f8fd010a40..9e023af2b473 100644 --- 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 @@ -26,7 +26,7 @@ public final class CloudExadataInfrastructuresListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":416708927,\"mountPoint\":\"xeeebtijvacvbmqz\"}],\"ocid\":\"q\",\"computeCount\":498607950,\"storageCount\":2093325150,\"totalStorageSizeInGbs\":99469711,\"availableStorageSizeInGbs\":799727678,\"timeCreated\":\"evehjkuyxoaf\",\"lifecycleDetails\":\"oqltfae\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"February\"},{\"name\":\"January\"},{\"name\":\"December\"},{\"name\":\"February\"}],\"weeksOfMonth\":[497715430,1446560637,1536245403,2125141991],\"daysOfWeek\":[{\"name\":\"Saturday\"},{\"name\":\"Thursday\"},{\"name\":\"Thursday\"}],\"hoursOfDay\":[677707515,761412131,98815164],\"leadTimeInWeeks\":370083816,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":70706634,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":184808617,\"estimatedNetworkSwitchesPatchingTime\":229847887,\"estimatedStorageServerPatchingTime\":390291796,\"totalEstimatedPatchingTime\":1994491974},\"customerContacts\":[{\"email\":\"dfuxtya\"},{\"email\":\"iibmi\"}],\"provisioningState\":\"Failed\",\"lifecycleState\":\"Provisioning\",\"shape\":\"stgnl\",\"ociUrl\":\"nmgixh\",\"cpuCount\":331597501,\"maxCpuCount\":27658455,\"memorySizeInGbs\":1356013965,\"maxMemoryInGbs\":1277274936,\"dbNodeStorageSizeInGbs\":308634203,\"maxDbNodeStorageSizeInGbs\":1053565042,\"dataStorageSizeInTbs\":54.6522864099499,\"maxDataStorageInTbs\":20.421445323330023,\"dbServerVersion\":\"twypundmbxh\",\"storageServerVersion\":\"cmjkavlgorbmftpm\",\"activatedStorageCount\":1503356934,\"additionalStorageCount\":1649651263,\"displayName\":\"ltfvnz\",\"lastMaintenanceRunId\":\"jtotpvopvpbd\",\"nextMaintenanceRunId\":\"qgqqihedsvqwthmk\",\"monthlyDbServerVersion\":\"bcysih\",\"monthlyStorageServerVersion\":\"qcwdhoh\",\"databaseServerType\":\"tmcdzsufcohd\",\"storageServerType\":\"zlmcmuapcvhdb\",\"computeModel\":\"OCPU\"},\"zones\":[\"qxeysko\",\"qzinkfkbg\",\"z\"],\"location\":\"wxeqocljmygvkzqk\",\"tags\":{\"zrxcczurt\":\"okbzef\",\"pqxbkwvzgnzvdf\":\"e\"},\"id\":\"zdix\",\"name\":\"mqpnoda\",\"type\":\"opqhewjptmc\"}]}"; + = "{\"value\":[{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":317625705,\"mountPoint\":\"slmot\"},{\"isBackupPartition\":false,\"isResizable\":false,\"minSizeGb\":49810118,\"mountPoint\":\"vcjkgd\"}],\"ocid\":\"azftxejwabmdujtm\",\"computeCount\":271162273,\"storageCount\":1046719550,\"totalStorageSizeInGbs\":206055715,\"availableStorageSizeInGbs\":1931798752,\"timeCreated\":\"rbuhhlky\",\"lifecycleDetails\":\"tqsrogtuwkff\",\"maintenanceWindow\":{\"preference\":\"NoPreference\",\"months\":[{\"name\":\"May\"},{\"name\":\"July\"},{\"name\":\"March\"}],\"weeksOfMonth\":[122155375,1946092516,259560415],\"daysOfWeek\":[{\"name\":\"Tuesday\"},{\"name\":\"Sunday\"},{\"name\":\"Tuesday\"},{\"name\":\"Tuesday\"}],\"hoursOfDay\":[1368305159],\"leadTimeInWeeks\":1299538115,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1183676629,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":869245621,\"estimatedNetworkSwitchesPatchingTime\":1973519317,\"estimatedStorageServerPatchingTime\":917606077,\"totalEstimatedPatchingTime\":1139641337},\"customerContacts\":[{\"email\":\"t\"},{\"email\":\"iqxf\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"MaintenanceInProgress\",\"shape\":\"tvwkpqhjpenu\",\"ociUrl\":\"bqeqqekewvnqvcd\",\"cpuCount\":1408895656,\"maxCpuCount\":1458855216,\"memorySizeInGbs\":1607576677,\"maxMemoryInGbs\":1323683698,\"dbNodeStorageSizeInGbs\":1722049750,\"maxDbNodeStorageSizeInGbs\":1773834271,\"dataStorageSizeInTbs\":38.31046408396851,\"maxDataStorageInTbs\":43.657891658296286,\"dbServerVersion\":\"ikczvvitacgxmf\",\"storageServerVersion\":\"serxht\",\"activatedStorageCount\":1164479404,\"additionalStorageCount\":47746370,\"displayName\":\"lwntsjgqrs\",\"lastMaintenanceRunId\":\"p\",\"nextMaintenanceRunId\":\"uuybnchrsz\",\"monthlyDbServerVersion\":\"oyuelyetn\",\"monthlyStorageServerVersion\":\"bf\",\"databaseServerType\":\"ggagfln\",\"storageServerType\":\"mtrwah\",\"computeModel\":\"ECPU\",\"exascaleConfig\":{\"totalStorageInGbs\":2084932136,\"availableStorageInGbs\":373505246}},\"zones\":[\"yrplrohkpigqfus\",\"ckzmkwklsnox\",\"xmqeqalh\"],\"location\":\"nhg\",\"tags\":{\"ta\":\"yynfsvkhgbv\",\"jcpeogkhnmg\":\"arfdlpukhpyrnei\",\"xddbhfhpfpaz\":\"ro\"},\"id\":\"zoyw\",\"name\":\"xhpdulontacnpqwt\",\"type\":\"htuevrhrljy\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,37 +35,37 @@ public void testListByResourceGroup() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.cloudExadataInfrastructures() - .listByResourceGroup("omfgbeglqgleohib", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.cloudExadataInfrastructures().listByResourceGroup("kjbsah", com.azure.core.util.Context.NONE); - Assertions.assertEquals("wxeqocljmygvkzqk", response.iterator().next().location()); - Assertions.assertEquals("okbzef", response.iterator().next().tags().get("zrxcczurt")); - Assertions.assertEquals(498607950, response.iterator().next().properties().computeCount()); - Assertions.assertEquals(2093325150, response.iterator().next().properties().storageCount()); + Assertions.assertEquals("nhg", response.iterator().next().location()); + Assertions.assertEquals("yynfsvkhgbv", response.iterator().next().tags().get("ta")); + Assertions.assertEquals(271162273, response.iterator().next().properties().computeCount()); + Assertions.assertEquals(1046719550, response.iterator().next().properties().storageCount()); Assertions.assertEquals(Preference.NO_PREFERENCE, response.iterator().next().properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.FEBRUARY, + Assertions.assertEquals(MonthName.MAY, response.iterator().next().properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(497715430, + Assertions.assertEquals(122155375, response.iterator().next().properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.SATURDAY, + Assertions.assertEquals(DayOfWeekName.TUESDAY, response.iterator().next().properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(677707515, + Assertions.assertEquals(1368305159, response.iterator().next().properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(370083816, + Assertions.assertEquals(1299538115, response.iterator().next().properties().maintenanceWindow().leadTimeInWeeks()); Assertions.assertEquals(PatchingMode.NON_ROLLING, response.iterator().next().properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(70706634, + Assertions.assertEquals(1183676629, response.iterator().next().properties().maintenanceWindow().customActionTimeoutInMins()); Assertions .assertTrue(response.iterator().next().properties().maintenanceWindow().isCustomActionTimeoutEnabled()); Assertions.assertFalse(response.iterator().next().properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("dfuxtya", response.iterator().next().properties().customerContacts().get(0).email()); - Assertions.assertEquals("stgnl", response.iterator().next().properties().shape()); - Assertions.assertEquals("ltfvnz", response.iterator().next().properties().displayName()); - Assertions.assertEquals("tmcdzsufcohd", response.iterator().next().properties().databaseServerType()); - Assertions.assertEquals("zlmcmuapcvhdb", response.iterator().next().properties().storageServerType()); - Assertions.assertEquals("qxeysko", response.iterator().next().zones().get(0)); + Assertions.assertEquals("t", response.iterator().next().properties().customerContacts().get(0).email()); + Assertions.assertEquals("tvwkpqhjpenu", response.iterator().next().properties().shape()); + Assertions.assertEquals("lwntsjgqrs", response.iterator().next().properties().displayName()); + Assertions.assertEquals("ggagfln", response.iterator().next().properties().databaseServerType()); + Assertions.assertEquals("mtrwah", response.iterator().next().properties().storageServerType()); + Assertions.assertEquals("yrplrohkpigqfus", 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 index 29119a82207d..951a2d9ee398 100644 --- 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 @@ -26,7 +26,7 @@ public final class CloudExadataInfrastructuresListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":1632871841,\"mountPoint\":\"txfkfweg\"},{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":756597053,\"mountPoint\":\"ucb\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":2010820897,\"mountPoint\":\"mcwsldrizetpwb\"}],\"ocid\":\"lllibph\",\"computeCount\":449888460,\"storageCount\":1515253868,\"totalStorageSizeInGbs\":739440726,\"availableStorageSizeInGbs\":223363577,\"timeCreated\":\"ankjpdnjzh\",\"lifecycleDetails\":\"oylhjlmuoyxprimr\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"July\"}],\"weeksOfMonth\":[1323964253,1372597728],\"daysOfWeek\":[{\"name\":\"Thursday\"}],\"hoursOfDay\":[1491198323,1672946681,605795253],\"leadTimeInWeeks\":1529136023,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1212726658,\"isCustomActionTimeoutEnabled\":false,\"isMonthlyPatchingEnabled\":true},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1221518768,\"estimatedNetworkSwitchesPatchingTime\":1150817005,\"estimatedStorageServerPatchingTime\":2139878069,\"totalEstimatedPatchingTime\":457716497},\"customerContacts\":[{\"email\":\"yjathwtzo\"},{\"email\":\"b\"},{\"email\":\"emwmdxmebwjs\"}],\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Failed\",\"shape\":\"lxveabfqx\",\"ociUrl\":\"wmqtibx\",\"cpuCount\":2042495225,\"maxCpuCount\":462307774,\"memorySizeInGbs\":460830566,\"maxMemoryInGbs\":1410442260,\"dbNodeStorageSizeInGbs\":747956494,\"maxDbNodeStorageSizeInGbs\":930197061,\"dataStorageSizeInTbs\":83.97233674042096,\"maxDataStorageInTbs\":12.647700579937604,\"dbServerVersion\":\"rsiee\",\"storageServerVersion\":\"ndzaapmudq\",\"activatedStorageCount\":1473376981,\"additionalStorageCount\":1760107744,\"displayName\":\"gp\",\"lastMaintenanceRunId\":\"udqwyxebeybpmzz\",\"nextMaintenanceRunId\":\"tffyaqit\",\"monthlyDbServerVersion\":\"heioqa\",\"monthlyStorageServerVersion\":\"v\",\"databaseServerType\":\"ufuqyrx\",\"storageServerType\":\"lcgqlsismj\",\"computeModel\":\"ECPU\"},\"zones\":[\"dgamquhiosrsj\",\"ivfcdisyirnx\",\"hcz\"],\"location\":\"rxzbujr\",\"tags\":{\"khgn\":\"qvwre\",\"piqywnc\":\"nzonzl\",\"zehtdhgb\":\"jtszcof\",\"reljeamur\":\"k\"},\"id\":\"zmlovuanash\",\"name\":\"xlpm\",\"type\":\"erbdk\"}]}"; + = "{\"value\":[{\"properties\":{\"definedFileSystemConfiguration\":[{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":1538236365,\"mountPoint\":\"vkhlggdhbemz\"},{\"isBackupPartition\":true,\"isResizable\":false,\"minSizeGb\":369373593,\"mountPoint\":\"wtglxx\"}],\"ocid\":\"jfpgpicrmn\",\"computeCount\":1791741914,\"storageCount\":185750645,\"totalStorageSizeInGbs\":1113568853,\"availableStorageSizeInGbs\":1915158747,\"timeCreated\":\"vpqcb\",\"lifecycleDetails\":\"mbodthsqqgvri\",\"maintenanceWindow\":{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"June\"},{\"name\":\"March\"},{\"name\":\"May\"}],\"weeksOfMonth\":[731867794,225802150,1419015231,718112280],\"daysOfWeek\":[{\"name\":\"Monday\"},{\"name\":\"Sunday\"},{\"name\":\"Wednesday\"},{\"name\":\"Thursday\"}],\"hoursOfDay\":[1471469938],\"leadTimeInWeeks\":2126091229,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":414245170,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false},\"estimatedPatchingTime\":{\"estimatedDbServerPatchingTime\":1428837944,\"estimatedNetworkSwitchesPatchingTime\":290394700,\"estimatedStorageServerPatchingTime\":1264104137,\"totalEstimatedPatchingTime\":920817597},\"customerContacts\":[{\"email\":\"nwpztekovmrib\"},{\"email\":\"attgplu\"}],\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Failed\",\"shape\":\"ng\",\"ociUrl\":\"hnykz\",\"cpuCount\":809427492,\"maxCpuCount\":1031306393,\"memorySizeInGbs\":93280086,\"maxMemoryInGbs\":1324984617,\"dbNodeStorageSizeInGbs\":1382791929,\"maxDbNodeStorageSizeInGbs\":2107871356,\"dataStorageSizeInTbs\":76.30087898761334,\"maxDataStorageInTbs\":91.30495118133442,\"dbServerVersion\":\"xmcuqud\",\"storageServerVersion\":\"vclx\",\"activatedStorageCount\":1138354387,\"additionalStorageCount\":267466114,\"displayName\":\"vgfab\",\"lastMaintenanceRunId\":\"yjibuzphdugne\",\"nextMaintenanceRunId\":\"n\",\"monthlyDbServerVersion\":\"oxgjiuqhibt\",\"monthlyStorageServerVersion\":\"ipq\",\"databaseServerType\":\"edmurrxxge\",\"storageServerType\":\"ktvqylkmqpzoy\",\"computeModel\":\"OCPU\",\"exascaleConfig\":{\"totalStorageInGbs\":2059423163,\"availableStorageInGbs\":1487964076}},\"zones\":[\"cloxo\"],\"location\":\"qinjipnwjf\",\"tags\":{\"zpofoiyjwpfilk\":\"lafcbahh\",\"ogphuartvtiu\":\"kkholvdndvia\",\"ahmnxhkxjqirw\":\"yefchnm\",\"ewmozqvbu\":\"weooxffifhxwrs\"},\"id\":\"qmamhsycxhxzga\",\"name\":\"ttaboidvmfqh\",\"type\":\"pubowsepdfg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,34 +38,35 @@ public void testList() throws Exception { PagedIterable response = manager.cloudExadataInfrastructures().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("rxzbujr", response.iterator().next().location()); - Assertions.assertEquals("qvwre", response.iterator().next().tags().get("khgn")); - Assertions.assertEquals(449888460, response.iterator().next().properties().computeCount()); - Assertions.assertEquals(1515253868, response.iterator().next().properties().storageCount()); + Assertions.assertEquals("qinjipnwjf", response.iterator().next().location()); + Assertions.assertEquals("lafcbahh", response.iterator().next().tags().get("zpofoiyjwpfilk")); + Assertions.assertEquals(1791741914, response.iterator().next().properties().computeCount()); + Assertions.assertEquals(185750645, response.iterator().next().properties().storageCount()); Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, response.iterator().next().properties().maintenanceWindow().preference()); - Assertions.assertEquals(MonthName.JULY, + Assertions.assertEquals(MonthName.JUNE, response.iterator().next().properties().maintenanceWindow().months().get(0).name()); - Assertions.assertEquals(1323964253, + Assertions.assertEquals(731867794, response.iterator().next().properties().maintenanceWindow().weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.THURSDAY, + Assertions.assertEquals(DayOfWeekName.MONDAY, response.iterator().next().properties().maintenanceWindow().daysOfWeek().get(0).name()); - Assertions.assertEquals(1491198323, + Assertions.assertEquals(1471469938, response.iterator().next().properties().maintenanceWindow().hoursOfDay().get(0)); - Assertions.assertEquals(1529136023, + Assertions.assertEquals(2126091229, response.iterator().next().properties().maintenanceWindow().leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, + Assertions.assertEquals(PatchingMode.ROLLING, response.iterator().next().properties().maintenanceWindow().patchingMode()); - Assertions.assertEquals(1212726658, + Assertions.assertEquals(414245170, response.iterator().next().properties().maintenanceWindow().customActionTimeoutInMins()); Assertions - .assertFalse(response.iterator().next().properties().maintenanceWindow().isCustomActionTimeoutEnabled()); - Assertions.assertTrue(response.iterator().next().properties().maintenanceWindow().isMonthlyPatchingEnabled()); - Assertions.assertEquals("yjathwtzo", response.iterator().next().properties().customerContacts().get(0).email()); - Assertions.assertEquals("lxveabfqx", response.iterator().next().properties().shape()); - Assertions.assertEquals("gp", response.iterator().next().properties().displayName()); - Assertions.assertEquals("ufuqyrx", response.iterator().next().properties().databaseServerType()); - Assertions.assertEquals("lcgqlsismj", response.iterator().next().properties().storageServerType()); - Assertions.assertEquals("dgamquhiosrsj", response.iterator().next().zones().get(0)); + .assertTrue(response.iterator().next().properties().maintenanceWindow().isCustomActionTimeoutEnabled()); + Assertions.assertFalse(response.iterator().next().properties().maintenanceWindow().isMonthlyPatchingEnabled()); + Assertions.assertEquals("nwpztekovmrib", + response.iterator().next().properties().customerContacts().get(0).email()); + Assertions.assertEquals("ng", response.iterator().next().properties().shape()); + Assertions.assertEquals("vgfab", response.iterator().next().properties().displayName()); + Assertions.assertEquals("edmurrxxge", response.iterator().next().properties().databaseServerType()); + Assertions.assertEquals("ktvqylkmqpzoy", response.iterator().next().properties().storageServerType()); + Assertions.assertEquals("cloxo", 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 index b82836ed4845..a011cf00fc69 100644 --- 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 @@ -23,7 +23,7 @@ public final class CloudVmClustersListPrivateIpAddressesWithResponseMockTests { @Test public void testListPrivateIpAddressesWithResponse() throws Exception { String responseStr - = "[{\"displayName\":\"cvhd\",\"hostnameLabel\":\"evwqqxeyskonq\",\"ocid\":\"inkfkbgbz\",\"ipAddress\":\"owxeqocljmy\",\"subnetId\":\"vkzqk\"},{\"displayName\":\"jeokbzefezrxccz\",\"hostnameLabel\":\"rtle\",\"ocid\":\"pqxbkwvzgnzvdf\",\"ipAddress\":\"zdix\",\"subnetId\":\"mqpnoda\"},{\"displayName\":\"opqhewjptmc\",\"hostnameLabel\":\"sbostzel\",\"ocid\":\"dlat\",\"ipAddress\":\"tmzlbiojlv\",\"subnetId\":\"hrbbpneqvcwwyy\"},{\"displayName\":\"r\",\"hostnameLabel\":\"ochpprpr\",\"ocid\":\"nmokayzejnhlbk\",\"ipAddress\":\"bzpcpiljhahzvec\",\"subnetId\":\"ndbnwieh\"}]"; + = "[{\"displayName\":\"annggiy\",\"hostnameLabel\":\"wkdtaawxwf\",\"ocid\":\"ka\",\"ipAddress\":\"mrrqmbzmqkratb\",\"subnetId\":\"xwbjs\"}]"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testListPrivateIpAddressesWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); List response = manager.cloudVmClusters() - .listPrivateIpAddressesWithResponse("qgqqihedsvqwthmk", "ibcysihsgqc", - new PrivateIpAddressesFilter().withSubnetId("dhohsdtmcdzsuf").withVnicId("ohdxbzlmcmu"), + .listPrivateIpAddressesWithResponse("xxahmrnadzyqegxy", "vpinbmhwbj", + new PrivateIpAddressesFilter().withSubnetId("jkgqxnhmbkez").withVnicId("jauj"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("cvhd", response.get(0).displayName()); - Assertions.assertEquals("evwqqxeyskonq", response.get(0).hostnameLabel()); - Assertions.assertEquals("inkfkbgbz", response.get(0).ocid()); - Assertions.assertEquals("owxeqocljmy", response.get(0).ipAddress()); - Assertions.assertEquals("vkzqk", response.get(0).subnetId()); + Assertions.assertEquals("annggiy", response.get(0).displayName()); + Assertions.assertEquals("wkdtaawxwf", response.get(0).hostnameLabel()); + Assertions.assertEquals("ka", response.get(0).ocid()); + Assertions.assertEquals("mrrqmbzmqkratb", response.get(0).ipAddress()); + Assertions.assertEquals("xwbjs", response.get(0).subnetId()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ConfigureExascaleCloudExadataInfrastructureDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ConfigureExascaleCloudExadataInfrastructureDetailsTests.java new file mode 100644 index 000000000000..1f8013c614c5 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ConfigureExascaleCloudExadataInfrastructureDetailsTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.ConfigureExascaleCloudExadataInfrastructureDetails; +import org.junit.jupiter.api.Assertions; + +public final class ConfigureExascaleCloudExadataInfrastructureDetailsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConfigureExascaleCloudExadataInfrastructureDetails model + = BinaryData.fromString("{\"totalStorageInGbs\":2032893006}") + .toObject(ConfigureExascaleCloudExadataInfrastructureDetails.class); + Assertions.assertEquals(2032893006, model.totalStorageInGbs()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ConfigureExascaleCloudExadataInfrastructureDetails model + = new ConfigureExascaleCloudExadataInfrastructureDetails().withTotalStorageInGbs(2032893006); + model = BinaryData.fromObject(model).toObject(ConfigureExascaleCloudExadataInfrastructureDetails.class); + Assertions.assertEquals(2032893006, model.totalStorageInGbs()); + } +} 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 index cb33418bcd55..32e046898ed7 100644 --- 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 @@ -18,23 +18,23 @@ public final class ConnectionStringTypeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionStringType model = BinaryData.fromString( - "{\"allConnectionStrings\":{\"high\":\"gufhyaomtbg\",\"low\":\"avgrvkffovjz\",\"medium\":\"jbibg\"},\"dedicated\":\"fxumv\",\"high\":\"luyovwxnbkfezzx\",\"low\":\"yhwzdgiruj\",\"medium\":\"bomvzzbtdcqv\",\"profiles\":[{\"consumerGroup\":\"Medium\",\"displayName\":\"jviylwdshfs\",\"hostFormat\":\"Fqdn\",\"isRegional\":false,\"protocol\":\"TCP\",\"sessionMode\":\"Direct\",\"syntaxFormat\":\"Ezconnectplus\",\"tlsAuthentication\":\"Mutual\",\"value\":\"ymsgaojfmwnc\"},{\"consumerGroup\":\"Medium\",\"displayName\":\"rfh\",\"hostFormat\":\"Fqdn\",\"isRegional\":true,\"protocol\":\"TCPS\",\"sessionMode\":\"Direct\",\"syntaxFormat\":\"Long\",\"tlsAuthentication\":\"Mutual\",\"value\":\"ftpipiwyczu\"},{\"consumerGroup\":\"Low\",\"displayName\":\"cpqjlihhyu\",\"hostFormat\":\"Ip\",\"isRegional\":false,\"protocol\":\"TCP\",\"sessionMode\":\"Redirect\",\"syntaxFormat\":\"Long\",\"tlsAuthentication\":\"Server\",\"value\":\"mfwdgzxu\"},{\"consumerGroup\":\"Medium\",\"displayName\":\"vpa\",\"hostFormat\":\"Fqdn\",\"isRegional\":true,\"protocol\":\"TCP\",\"sessionMode\":\"Direct\",\"syntaxFormat\":\"Ezconnect\",\"tlsAuthentication\":\"Mutual\",\"value\":\"urisjnhnytxifqj\"}]}") + "{\"allConnectionStrings\":{\"high\":\"vkhbejdznx\",\"low\":\"dsrhnjiv\",\"medium\":\"v\"},\"dedicated\":\"ovqfzge\",\"high\":\"dftuljltduce\",\"low\":\"tmczuomejwcwwqi\",\"medium\":\"nssxmojmsvpk\",\"profiles\":[{\"consumerGroup\":\"Tp\",\"displayName\":\"wcfzqljyxgt\",\"hostFormat\":\"Ip\",\"isRegional\":false,\"protocol\":\"TCP\",\"sessionMode\":\"Direct\",\"syntaxFormat\":\"Ezconnectplus\",\"tlsAuthentication\":\"Mutual\",\"value\":\"shmkxmaehvbbxur\"},{\"consumerGroup\":\"Medium\",\"displayName\":\"tfnhtbaxkgxywr\",\"hostFormat\":\"Fqdn\",\"isRegional\":true,\"protocol\":\"TCP\",\"sessionMode\":\"Redirect\",\"syntaxFormat\":\"Long\",\"tlsAuthentication\":\"Server\",\"value\":\"lu\"}]}") .toObject(ConnectionStringType.class); - Assertions.assertEquals("gufhyaomtbg", model.allConnectionStrings().high()); - Assertions.assertEquals("avgrvkffovjz", model.allConnectionStrings().low()); - Assertions.assertEquals("jbibg", model.allConnectionStrings().medium()); - Assertions.assertEquals("fxumv", model.dedicated()); - Assertions.assertEquals("luyovwxnbkfezzx", model.high()); - Assertions.assertEquals("yhwzdgiruj", model.low()); - Assertions.assertEquals("bomvzzbtdcqv", model.medium()); - Assertions.assertEquals(ConsumerGroup.MEDIUM, model.profiles().get(0).consumerGroup()); - Assertions.assertEquals("jviylwdshfs", model.profiles().get(0).displayName()); - Assertions.assertEquals(HostFormatType.FQDN, model.profiles().get(0).hostFormat()); + Assertions.assertEquals("vkhbejdznx", model.allConnectionStrings().high()); + Assertions.assertEquals("dsrhnjiv", model.allConnectionStrings().low()); + Assertions.assertEquals("v", model.allConnectionStrings().medium()); + Assertions.assertEquals("ovqfzge", model.dedicated()); + Assertions.assertEquals("dftuljltduce", model.high()); + Assertions.assertEquals("tmczuomejwcwwqi", model.low()); + Assertions.assertEquals("nssxmojmsvpk", model.medium()); + Assertions.assertEquals(ConsumerGroup.TP, model.profiles().get(0).consumerGroup()); + Assertions.assertEquals("wcfzqljyxgt", model.profiles().get(0).displayName()); + Assertions.assertEquals(HostFormatType.IP, model.profiles().get(0).hostFormat()); Assertions.assertFalse(model.profiles().get(0).isRegional()); Assertions.assertEquals(ProtocolType.TCP, model.profiles().get(0).protocol()); Assertions.assertEquals(SessionModeType.DIRECT, model.profiles().get(0).sessionMode()); Assertions.assertEquals(SyntaxFormatType.EZCONNECTPLUS, model.profiles().get(0).syntaxFormat()); Assertions.assertEquals(TlsAuthenticationType.MUTUAL, model.profiles().get(0).tlsAuthentication()); - Assertions.assertEquals("ymsgaojfmwnc", model.profiles().get(0).value()); + Assertions.assertEquals("shmkxmaehvbbxur", 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 index dd3dcbfb9f38..b55901eaddde 100644 --- 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 @@ -12,14 +12,14 @@ public final class ConnectionUrlTypeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionUrlType model = BinaryData.fromString( - "{\"apexUrl\":\"imwkslircizj\",\"databaseTransformsUrl\":\"ydfce\",\"graphStudioUrl\":\"vlhv\",\"machineLearningNotebookUrl\":\"dyftumrtwna\",\"mongoDbUrl\":\"slbi\",\"ordsUrl\":\"ojgcyzt\",\"sqlDevWebUrl\":\"mznbaeqphch\"}") + "{\"apexUrl\":\"dqkdlwwqfbu\",\"databaseTransformsUrl\":\"kxtrq\",\"graphStudioUrl\":\"smlmbtxhwgfwsrta\",\"machineLearningNotebookUrl\":\"oezbrhubsk\",\"mongoDbUrl\":\"dyg\",\"ordsUrl\":\"okkqfqjbvleo\",\"sqlDevWebUrl\":\"ml\"}") .toObject(ConnectionUrlType.class); - Assertions.assertEquals("imwkslircizj", model.apexUrl()); - Assertions.assertEquals("ydfce", model.databaseTransformsUrl()); - Assertions.assertEquals("vlhv", model.graphStudioUrl()); - Assertions.assertEquals("dyftumrtwna", model.machineLearningNotebookUrl()); - Assertions.assertEquals("slbi", model.mongoDbUrl()); - Assertions.assertEquals("ojgcyzt", model.ordsUrl()); - Assertions.assertEquals("mznbaeqphch", model.sqlDevWebUrl()); + Assertions.assertEquals("dqkdlwwqfbu", model.apexUrl()); + Assertions.assertEquals("kxtrq", model.databaseTransformsUrl()); + Assertions.assertEquals("smlmbtxhwgfwsrta", model.graphStudioUrl()); + Assertions.assertEquals("oezbrhubsk", model.machineLearningNotebookUrl()); + Assertions.assertEquals("dyg", model.mongoDbUrl()); + Assertions.assertEquals("okkqfqjbvleo", model.ordsUrl()); + Assertions.assertEquals("ml", 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 index cca273cb1e2a..3d369fb2f6fa 100644 --- 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 @@ -11,15 +11,14 @@ public final class CustomerContactTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CustomerContact model - = BinaryData.fromString("{\"email\":\"xoegukgjnpiucgy\"}").toObject(CustomerContact.class); - Assertions.assertEquals("xoegukgjnpiucgy", model.email()); + CustomerContact model = BinaryData.fromString("{\"email\":\"uqszfk\"}").toObject(CustomerContact.class); + Assertions.assertEquals("uqszfk", model.email()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CustomerContact model = new CustomerContact().withEmail("xoegukgjnpiucgy"); + CustomerContact model = new CustomerContact().withEmail("uqszfk"); model = BinaryData.fromObject(model).toObject(CustomerContact.class); - Assertions.assertEquals("xoegukgjnpiucgy", model.email()); + Assertions.assertEquals("uqszfk", 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 index 219ec7c98cd5..94aa8b763ee9 100644 --- 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 @@ -12,21 +12,21 @@ public final class DataCollectionOptionsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataCollectionOptions model = BinaryData.fromString( - "{\"isDiagnosticsEventsEnabled\":true,\"isHealthMonitoringEnabled\":true,\"isIncidentLogsEnabled\":false}") + "{\"isDiagnosticsEventsEnabled\":false,\"isHealthMonitoringEnabled\":true,\"isIncidentLogsEnabled\":true}") .toObject(DataCollectionOptions.class); - Assertions.assertTrue(model.isDiagnosticsEventsEnabled()); + Assertions.assertFalse(model.isDiagnosticsEventsEnabled()); Assertions.assertTrue(model.isHealthMonitoringEnabled()); - Assertions.assertFalse(model.isIncidentLogsEnabled()); + Assertions.assertTrue(model.isIncidentLogsEnabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DataCollectionOptions model = new DataCollectionOptions().withIsDiagnosticsEventsEnabled(true) + DataCollectionOptions model = new DataCollectionOptions().withIsDiagnosticsEventsEnabled(false) .withIsHealthMonitoringEnabled(true) - .withIsIncidentLogsEnabled(false); + .withIsIncidentLogsEnabled(true); model = BinaryData.fromObject(model).toObject(DataCollectionOptions.class); - Assertions.assertTrue(model.isDiagnosticsEventsEnabled()); + Assertions.assertFalse(model.isDiagnosticsEventsEnabled()); Assertions.assertTrue(model.isHealthMonitoringEnabled()); - Assertions.assertFalse(model.isIncidentLogsEnabled()); + Assertions.assertTrue(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 index 6b7009a8eb5a..9b71f4042025 100644 --- 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 @@ -12,14 +12,14 @@ public final class DayOfWeekTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DayOfWeek model = BinaryData.fromString("{\"name\":\"Wednesday\"}").toObject(DayOfWeek.class); - Assertions.assertEquals(DayOfWeekName.WEDNESDAY, model.name()); + DayOfWeek model = BinaryData.fromString("{\"name\":\"Tuesday\"}").toObject(DayOfWeek.class); + Assertions.assertEquals(DayOfWeekName.TUESDAY, model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DayOfWeek model = new DayOfWeek().withName(DayOfWeekName.WEDNESDAY); + DayOfWeek model = new DayOfWeek().withName(DayOfWeekName.TUESDAY); model = BinaryData.fromObject(model).toObject(DayOfWeek.class); - Assertions.assertEquals(DayOfWeekName.WEDNESDAY, model.name()); + Assertions.assertEquals(DayOfWeekName.TUESDAY, 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 index 55fdee5205ed..ed17f3c953cc 100644 --- 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 @@ -12,14 +12,14 @@ public final class DayOfWeekUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DayOfWeekUpdate model = BinaryData.fromString("{\"name\":\"Saturday\"}").toObject(DayOfWeekUpdate.class); - Assertions.assertEquals(DayOfWeekName.SATURDAY, model.name()); + DayOfWeekUpdate model = BinaryData.fromString("{\"name\":\"Tuesday\"}").toObject(DayOfWeekUpdate.class); + Assertions.assertEquals(DayOfWeekName.TUESDAY, model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DayOfWeekUpdate model = new DayOfWeekUpdate().withName(DayOfWeekName.SATURDAY); + DayOfWeekUpdate model = new DayOfWeekUpdate().withName(DayOfWeekName.TUESDAY); model = BinaryData.fromObject(model).toObject(DayOfWeekUpdate.class); - Assertions.assertEquals(DayOfWeekName.SATURDAY, model.name()); + Assertions.assertEquals(DayOfWeekName.TUESDAY, 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 index 6fff93979ae5..e7273fa11e8b 100644 --- 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 @@ -12,10 +12,10 @@ public final class DbIormConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbIormConfig model = BinaryData - .fromString("{\"dbName\":\"hhkxbp\",\"flashCacheLimit\":\"ymjhxxjyngudivkr\",\"share\":855265021}") + .fromString("{\"dbName\":\"havhqlkthumaqolb\",\"flashCacheLimit\":\"cdui\",\"share\":1108910411}") .toObject(DbIormConfig.class); - Assertions.assertEquals("hhkxbp", model.dbName()); - Assertions.assertEquals("ymjhxxjyngudivkr", model.flashCacheLimit()); - Assertions.assertEquals(855265021, model.share()); + Assertions.assertEquals("havhqlkthumaqolb", model.dbName()); + Assertions.assertEquals("cdui", model.flashCacheLimit()); + Assertions.assertEquals(1108910411, 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 index ebad2a72e77c..913475aec295 100644 --- 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 @@ -12,14 +12,14 @@ public final class DbNodeActionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DbNodeAction model = BinaryData.fromString("{\"action\":\"Reset\"}").toObject(DbNodeAction.class); - Assertions.assertEquals(DbNodeActionEnum.RESET, model.action()); + DbNodeAction model = BinaryData.fromString("{\"action\":\"Start\"}").toObject(DbNodeAction.class); + Assertions.assertEquals(DbNodeActionEnum.START, model.action()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DbNodeAction model = new DbNodeAction().withAction(DbNodeActionEnum.RESET); + DbNodeAction model = new DbNodeAction().withAction(DbNodeActionEnum.START); model = BinaryData.fromObject(model).toObject(DbNodeAction.class); - Assertions.assertEquals(DbNodeActionEnum.RESET, model.action()); + Assertions.assertEquals(DbNodeActionEnum.START, model.action()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeDetailsTests.java index e97f52529a62..2306d23b1ac8 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeDetailsTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbNodeDetailsTests.java @@ -11,14 +11,14 @@ public final class DbNodeDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DbNodeDetails model = BinaryData.fromString("{\"dbNodeId\":\"jhlfzswpchwahf\"}").toObject(DbNodeDetails.class); - Assertions.assertEquals("jhlfzswpchwahf", model.dbNodeId()); + DbNodeDetails model = BinaryData.fromString("{\"dbNodeId\":\"seypxiutcxapz\"}").toObject(DbNodeDetails.class); + Assertions.assertEquals("seypxiutcxapz", model.dbNodeId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DbNodeDetails model = new DbNodeDetails().withDbNodeId("jhlfzswpchwahf"); + DbNodeDetails model = new DbNodeDetails().withDbNodeId("seypxiutcxapz"); model = BinaryData.fromObject(model).toObject(DbNodeDetails.class); - Assertions.assertEquals("jhlfzswpchwahf", model.dbNodeId()); + Assertions.assertEquals("seypxiutcxapz", model.dbNodeId()); } } 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 index c7b027b9b076..21470f2b377b 100644 --- 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 @@ -15,31 +15,31 @@ public final class DbNodeInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbNodeInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"ikhnvpamqgxqq\",\"additionalDetails\":\"zikywgg\",\"backupIpId\":\"allatmelwuipic\",\"backupVnic2Id\":\"zkzivgvvcnay\",\"backupVnicId\":\"yrnxxmueedn\",\"cpuCoreCount\":1429248323,\"dbNodeStorageSizeInGbs\":233559890,\"dbServerId\":\"kwqqtchealmf\",\"dbSystemId\":\"tdaaygdvwvg\",\"faultDomain\":\"ohgwxrtfudxepxg\",\"hostIpId\":\"agvrvmnpkuk\",\"hostname\":\"i\",\"lifecycleState\":\"Updating\",\"lifecycleDetails\":\"lxgwimfnjhf\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":205109580,\"softwareStorageSizeInGb\":1343784830,\"timeCreated\":\"2021-01-23T00:44:34Z\",\"timeMaintenanceWindowEnd\":\"2021-08-02T13:39:17Z\",\"timeMaintenanceWindowStart\":\"2020-12-27T03:23:26Z\",\"vnic2Id\":\"yfkzik\",\"vnicId\":\"jawneaiv\",\"provisioningState\":\"Canceled\"},\"id\":\"elpcirelsfeaenwa\",\"name\":\"fatkld\",\"type\":\"xbjhwuaanozjosph\"}") + "{\"properties\":{\"ocid\":\"zk\",\"additionalDetails\":\"oqreyfkzikfjawn\",\"backupIpId\":\"ivx\",\"backupVnic2Id\":\"zel\",\"backupVnicId\":\"irels\",\"cpuCoreCount\":1789990861,\"dbNodeStorageSizeInGbs\":730394428,\"dbServerId\":\"abfatkl\",\"dbSystemId\":\"dxbjhwuaanozj\",\"faultDomain\":\"ph\",\"hostIpId\":\"ulpjr\",\"hostname\":\"ag\",\"lifecycleState\":\"Updating\",\"lifecycleDetails\":\"imjwosyt\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":835762361,\"softwareStorageSizeInGb\":992939840,\"timeCreated\":\"2021-01-25T11:09:17Z\",\"timeMaintenanceWindowEnd\":\"2021-07-26T14:22:18Z\",\"timeMaintenanceWindowStart\":\"2021-05-30T00:33:28Z\",\"vnic2Id\":\"iekkezz\",\"vnicId\":\"khly\",\"provisioningState\":\"Canceled\"},\"id\":\"gqggebdunygae\",\"name\":\"idb\",\"type\":\"fatpxllrxcyjmoa\"}") .toObject(DbNodeInner.class); - Assertions.assertEquals("ikhnvpamqgxqq", model.properties().ocid()); - Assertions.assertEquals("zikywgg", model.properties().additionalDetails()); - Assertions.assertEquals("allatmelwuipic", model.properties().backupIpId()); - Assertions.assertEquals("zkzivgvvcnay", model.properties().backupVnic2Id()); - Assertions.assertEquals("yrnxxmueedn", model.properties().backupVnicId()); - Assertions.assertEquals(1429248323, model.properties().cpuCoreCount()); - Assertions.assertEquals(233559890, model.properties().dbNodeStorageSizeInGbs()); - Assertions.assertEquals("kwqqtchealmf", model.properties().dbServerId()); - Assertions.assertEquals("tdaaygdvwvg", model.properties().dbSystemId()); - Assertions.assertEquals("ohgwxrtfudxepxg", model.properties().faultDomain()); - Assertions.assertEquals("agvrvmnpkuk", model.properties().hostIpId()); - Assertions.assertEquals("i", model.properties().hostname()); + Assertions.assertEquals("zk", model.properties().ocid()); + Assertions.assertEquals("oqreyfkzikfjawn", model.properties().additionalDetails()); + Assertions.assertEquals("ivx", model.properties().backupIpId()); + Assertions.assertEquals("zel", model.properties().backupVnic2Id()); + Assertions.assertEquals("irels", model.properties().backupVnicId()); + Assertions.assertEquals(1789990861, model.properties().cpuCoreCount()); + Assertions.assertEquals(730394428, model.properties().dbNodeStorageSizeInGbs()); + Assertions.assertEquals("abfatkl", model.properties().dbServerId()); + Assertions.assertEquals("dxbjhwuaanozj", model.properties().dbSystemId()); + Assertions.assertEquals("ph", model.properties().faultDomain()); + Assertions.assertEquals("ulpjr", model.properties().hostIpId()); + Assertions.assertEquals("ag", model.properties().hostname()); Assertions.assertEquals(DbNodeProvisioningState.UPDATING, model.properties().lifecycleState()); - Assertions.assertEquals("lxgwimfnjhf", model.properties().lifecycleDetails()); + Assertions.assertEquals("imjwosyt", model.properties().lifecycleDetails()); Assertions.assertEquals(DbNodeMaintenanceType.VMDB_REBOOT_MIGRATION, model.properties().maintenanceType()); - Assertions.assertEquals(205109580, model.properties().memorySizeInGbs()); - Assertions.assertEquals(1343784830, model.properties().softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-23T00:44:34Z"), model.properties().timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-02T13:39:17Z"), + Assertions.assertEquals(835762361, model.properties().memorySizeInGbs()); + Assertions.assertEquals(992939840, model.properties().softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T11:09:17Z"), model.properties().timeCreated()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-26T14:22:18Z"), model.properties().timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-27T03:23:26Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T00:33:28Z"), model.properties().timeMaintenanceWindowStart()); - Assertions.assertEquals("yfkzik", model.properties().vnic2Id()); - Assertions.assertEquals("jawneaiv", model.properties().vnicId()); + Assertions.assertEquals("iekkezz", model.properties().vnic2Id()); + Assertions.assertEquals("khly", model.properties().vnicId()); } } 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 index 203f78390148..c7f61aa051e0 100644 --- 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 @@ -15,34 +15,34 @@ public final class DbNodeListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbNodeListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"baaa\",\"additionalDetails\":\"yvayffimrzr\",\"backupIpId\":\"zqogse\",\"backupVnic2Id\":\"evfdnwnwm\",\"backupVnicId\":\"zsyyceuzso\",\"cpuCoreCount\":2025880638,\"dbNodeStorageSizeInGbs\":2135802257,\"dbServerId\":\"frxtrthzvaytdwk\",\"dbSystemId\":\"brqubp\",\"faultDomain\":\"h\",\"hostIpId\":\"iilivpdtiirqtd\",\"hostname\":\"axoruzfgsquy\",\"lifecycleState\":\"Available\",\"lifecycleDetails\":\"xxle\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1899778245,\"softwareStorageSizeInGb\":1921470091,\"timeCreated\":\"2021-06-08T08:24:15Z\",\"timeMaintenanceWindowEnd\":\"2021-03-29T03:09:07Z\",\"timeMaintenanceWindowStart\":\"2021-11-14T21:34:49Z\",\"vnic2Id\":\"wxuqlcvydypatdoo\",\"vnicId\":\"ojknio\",\"provisioningState\":\"Succeeded\"},\"id\":\"ebwnujhe\",\"name\":\"msbvdkcrodtjinf\",\"type\":\"jlfltkacjvefkdlf\"},{\"properties\":{\"ocid\":\"kggkfpa\",\"additionalDetails\":\"owpulpq\",\"backupIpId\":\"ylsyxkqjnsje\",\"backupVnic2Id\":\"tiagx\",\"backupVnicId\":\"sz\",\"cpuCoreCount\":993241324,\"dbNodeStorageSizeInGbs\":1236978734,\"dbServerId\":\"zkfzbeyv\",\"dbSystemId\":\"nqicvinvkjjxdxrb\",\"faultDomain\":\"kzclewyh\",\"hostIpId\":\"wp\",\"hostname\":\"tzpofncckwyfzq\",\"lifecycleState\":\"Updating\",\"lifecycleDetails\":\"xbuy\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":804013471,\"softwareStorageSizeInGb\":1280631673,\"timeCreated\":\"2021-02-28T13:12:04Z\",\"timeMaintenanceWindowEnd\":\"2021-04-29T15:05:43Z\",\"timeMaintenanceWindowStart\":\"2021-11-22T11:29:41Z\",\"vnic2Id\":\"o\",\"vnicId\":\"xorjaltolmncwsob\",\"provisioningState\":\"Succeeded\"},\"id\":\"dbnw\",\"name\":\"cf\",\"type\":\"ucqdpfuvglsb\"},{\"properties\":{\"ocid\":\"ca\",\"additionalDetails\":\"xbvtvudu\",\"backupIpId\":\"cormr\",\"backupVnic2Id\":\"qtvcofudflvkgj\",\"backupVnicId\":\"gdknnqv\",\"cpuCoreCount\":1989846717,\"dbNodeStorageSizeInGbs\":2039923498,\"dbServerId\":\"tor\",\"dbSystemId\":\"dsg\",\"faultDomain\":\"hmk\",\"hostIpId\":\"grauwjuetaebur\",\"hostname\":\"dmovsm\",\"lifecycleState\":\"Starting\",\"lifecycleDetails\":\"wabm\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":751127894,\"softwareStorageSizeInGb\":1947677125,\"timeCreated\":\"2021-11-25T20:27:09Z\",\"timeMaintenanceWindowEnd\":\"2021-11-12T13:25:33Z\",\"timeMaintenanceWindowStart\":\"2021-06-23T12:44:33Z\",\"vnic2Id\":\"ujmqlgkfbtndoa\",\"vnicId\":\"n\",\"provisioningState\":\"Canceled\"},\"id\":\"ntuji\",\"name\":\"c\",\"type\":\"ed\"},{\"properties\":{\"ocid\":\"wwa\",\"additionalDetails\":\"kojvd\",\"backupIpId\":\"zfoqouicybxar\",\"backupVnic2Id\":\"szufoxciqopidoa\",\"backupVnicId\":\"iodhkhazxkhnz\",\"cpuCoreCount\":1731617397,\"dbNodeStorageSizeInGbs\":1189025238,\"dbServerId\":\"toego\",\"dbSystemId\":\"dwbwhkszzcmrvexz\",\"faultDomain\":\"bt\",\"hostIpId\":\"sfraoyzko\",\"hostname\":\"tlmngu\",\"lifecycleState\":\"Failed\",\"lifecycleDetails\":\"q\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":2048944312,\"softwareStorageSizeInGb\":590697552,\"timeCreated\":\"2021-04-11T11:41:56Z\",\"timeMaintenanceWindowEnd\":\"2021-08-11T15:07:06Z\",\"timeMaintenanceWindowStart\":\"2021-06-17T14:42:30Z\",\"vnic2Id\":\"fobwy\",\"vnicId\":\"nkbykutwpfhp\",\"provisioningState\":\"Succeeded\"},\"id\":\"r\",\"name\":\"kdsnfdsdoakgtdl\",\"type\":\"kkze\"}],\"nextLink\":\"l\"}") + "{\"value\":[{\"properties\":{\"ocid\":\"syyceuzsoibjud\",\"additionalDetails\":\"rx\",\"backupIpId\":\"thzvaytdwkqbrqu\",\"backupVnic2Id\":\"axhexiilivp\",\"backupVnicId\":\"iirqtd\",\"cpuCoreCount\":887642500,\"dbNodeStorageSizeInGbs\":1693357038,\"dbServerId\":\"uzf\",\"dbSystemId\":\"squyfxrxxlep\",\"faultDomain\":\"amxjezwlw\",\"hostIpId\":\"xuqlcvydypat\",\"hostname\":\"oa\",\"lifecycleState\":\"Failed\",\"lifecycleDetails\":\"niodkooeb\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1107083346,\"softwareStorageSizeInGb\":1652844269,\"timeCreated\":\"2021-05-06T02:47:02Z\",\"timeMaintenanceWindowEnd\":\"2021-06-02T00:19:10Z\",\"timeMaintenanceWindowStart\":\"2021-07-03T07:44:33Z\",\"vnic2Id\":\"c\",\"vnicId\":\"odtji\",\"provisioningState\":\"Failed\"},\"id\":\"lfltka\",\"name\":\"jvefkdlfoakggkfp\",\"type\":\"gaowpulpqblylsyx\"},{\"properties\":{\"ocid\":\"jnsjervtiagxsd\",\"additionalDetails\":\"uem\",\"backupIpId\":\"bzkfzbeyvpn\",\"backupVnic2Id\":\"cvinvkjjxdxrbuuk\",\"backupVnicId\":\"lewyhmlwpaz\",\"cpuCoreCount\":1765730251,\"dbNodeStorageSizeInGbs\":437728645,\"dbServerId\":\"cckwyfzqwhxxbu\",\"dbSystemId\":\"qa\",\"faultDomain\":\"feqztppriol\",\"hostIpId\":\"rjaltolmncw\",\"hostname\":\"bqwcsdbnwdcf\",\"lifecycleState\":\"Provisioning\",\"lifecycleDetails\":\"qdpfuvglsbjjca\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1075232734,\"softwareStorageSizeInGb\":152007455,\"timeCreated\":\"2021-05-11T02:00:05Z\",\"timeMaintenanceWindowEnd\":\"2021-04-07T04:06:35Z\",\"timeMaintenanceWindowStart\":\"2021-10-07T13:15:31Z\",\"vnic2Id\":\"ormrlxqtvcofudfl\",\"vnicId\":\"kgjubgdknnqvsazn\",\"provisioningState\":\"Failed\"},\"id\":\"rudsg\",\"name\":\"a\",\"type\":\"mkycgra\"},{\"properties\":{\"ocid\":\"juetaebur\",\"additionalDetails\":\"dmovsm\",\"backupIpId\":\"xwabmqoe\",\"backupVnic2Id\":\"ifrvtpu\",\"backupVnicId\":\"jmqlgkfb\",\"cpuCoreCount\":1252448159,\"dbNodeStorageSizeInGbs\":1601819937,\"dbServerId\":\"n\",\"dbSystemId\":\"bjcntujitc\",\"faultDomain\":\"df\",\"hostIpId\":\"waezkojvd\",\"hostname\":\"zfoqouicybxar\",\"lifecycleState\":\"Terminated\",\"lifecycleDetails\":\"zuf\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":95404001,\"softwareStorageSizeInGb\":153808073,\"timeCreated\":\"2020-12-29T22:09:15Z\",\"timeMaintenanceWindowEnd\":\"2021-12-03T09:55:25Z\",\"timeMaintenanceWindowStart\":\"2021-12-10T00:14:44Z\",\"vnic2Id\":\"iodhkhazxkhnz\",\"vnicId\":\"onlwntoeg\",\"provisioningState\":\"Succeeded\"},\"id\":\"bwh\",\"name\":\"szzcmrvexztv\",\"type\":\"t\"}],\"nextLink\":\"sfraoyzko\"}") .toObject(DbNodeListResult.class); - Assertions.assertEquals("baaa", model.value().get(0).properties().ocid()); - Assertions.assertEquals("yvayffimrzr", model.value().get(0).properties().additionalDetails()); - Assertions.assertEquals("zqogse", model.value().get(0).properties().backupIpId()); - Assertions.assertEquals("evfdnwnwm", model.value().get(0).properties().backupVnic2Id()); - Assertions.assertEquals("zsyyceuzso", model.value().get(0).properties().backupVnicId()); - Assertions.assertEquals(2025880638, model.value().get(0).properties().cpuCoreCount()); - Assertions.assertEquals(2135802257, model.value().get(0).properties().dbNodeStorageSizeInGbs()); - Assertions.assertEquals("frxtrthzvaytdwk", model.value().get(0).properties().dbServerId()); - Assertions.assertEquals("brqubp", model.value().get(0).properties().dbSystemId()); - Assertions.assertEquals("h", model.value().get(0).properties().faultDomain()); - Assertions.assertEquals("iilivpdtiirqtd", model.value().get(0).properties().hostIpId()); - Assertions.assertEquals("axoruzfgsquy", model.value().get(0).properties().hostname()); - Assertions.assertEquals(DbNodeProvisioningState.AVAILABLE, model.value().get(0).properties().lifecycleState()); - Assertions.assertEquals("xxle", model.value().get(0).properties().lifecycleDetails()); + Assertions.assertEquals("syyceuzsoibjud", model.value().get(0).properties().ocid()); + Assertions.assertEquals("rx", model.value().get(0).properties().additionalDetails()); + Assertions.assertEquals("thzvaytdwkqbrqu", model.value().get(0).properties().backupIpId()); + Assertions.assertEquals("axhexiilivp", model.value().get(0).properties().backupVnic2Id()); + Assertions.assertEquals("iirqtd", model.value().get(0).properties().backupVnicId()); + Assertions.assertEquals(887642500, model.value().get(0).properties().cpuCoreCount()); + Assertions.assertEquals(1693357038, model.value().get(0).properties().dbNodeStorageSizeInGbs()); + Assertions.assertEquals("uzf", model.value().get(0).properties().dbServerId()); + Assertions.assertEquals("squyfxrxxlep", model.value().get(0).properties().dbSystemId()); + Assertions.assertEquals("amxjezwlw", model.value().get(0).properties().faultDomain()); + Assertions.assertEquals("xuqlcvydypat", model.value().get(0).properties().hostIpId()); + Assertions.assertEquals("oa", model.value().get(0).properties().hostname()); + Assertions.assertEquals(DbNodeProvisioningState.FAILED, model.value().get(0).properties().lifecycleState()); + Assertions.assertEquals("niodkooeb", model.value().get(0).properties().lifecycleDetails()); Assertions.assertEquals(DbNodeMaintenanceType.VMDB_REBOOT_MIGRATION, model.value().get(0).properties().maintenanceType()); - Assertions.assertEquals(1899778245, model.value().get(0).properties().memorySizeInGbs()); - Assertions.assertEquals(1921470091, model.value().get(0).properties().softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-08T08:24:15Z"), + Assertions.assertEquals(1107083346, model.value().get(0).properties().memorySizeInGbs()); + Assertions.assertEquals(1652844269, model.value().get(0).properties().softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-06T02:47:02Z"), model.value().get(0).properties().timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-29T03:09:07Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-06-02T00:19:10Z"), model.value().get(0).properties().timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-14T21:34:49Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-07-03T07:44:33Z"), model.value().get(0).properties().timeMaintenanceWindowStart()); - Assertions.assertEquals("wxuqlcvydypatdoo", model.value().get(0).properties().vnic2Id()); - Assertions.assertEquals("ojknio", model.value().get(0).properties().vnicId()); - Assertions.assertEquals("l", model.nextLink()); + Assertions.assertEquals("c", model.value().get(0).properties().vnic2Id()); + Assertions.assertEquals("odtji", model.value().get(0).properties().vnicId()); + Assertions.assertEquals("sfraoyzko", 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 index 7faf3ac7c037..1cbbf117e8e9 100644 --- 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 @@ -15,29 +15,29 @@ public final class DbNodePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbNodeProperties model = BinaryData.fromString( - "{\"ocid\":\"oulpjrv\",\"additionalDetails\":\"glrvimjwosytxi\",\"backupIpId\":\"skfc\",\"backupVnic2Id\":\"qumiek\",\"backupVnicId\":\"zzikhlyfjhdg\",\"cpuCoreCount\":757390701,\"dbNodeStorageSizeInGbs\":558583308,\"dbServerId\":\"unygaeqid\",\"dbSystemId\":\"qfatpxllrxcyjm\",\"faultDomain\":\"dsuvarmywdmjsjqb\",\"hostIpId\":\"hyxxrwlycoduhpk\",\"hostname\":\"gymare\",\"lifecycleState\":\"Available\",\"lifecycleDetails\":\"jxqugjhky\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":642347272,\"softwareStorageSizeInGb\":1615439443,\"timeCreated\":\"2021-06-02T23:36:04Z\",\"timeMaintenanceWindowEnd\":\"2021-05-14T12:39:32Z\",\"timeMaintenanceWindowStart\":\"2021-06-13T04:37:53Z\",\"vnic2Id\":\"mzqa\",\"vnicId\":\"krmnjijpxacqqud\",\"provisioningState\":\"Canceled\"}") + "{\"ocid\":\"su\",\"additionalDetails\":\"r\",\"backupIpId\":\"wdmjsjqbjhhyx\",\"backupVnic2Id\":\"wlycoduhpkxkg\",\"backupVnicId\":\"areqna\",\"cpuCoreCount\":672785070,\"dbNodeStorageSizeInGbs\":963278333,\"dbServerId\":\"hky\",\"dbSystemId\":\"ubeddg\",\"faultDomain\":\"ofwq\",\"hostIpId\":\"qal\",\"hostname\":\"mnjijpxacqqudf\",\"lifecycleState\":\"Updating\",\"lifecycleDetails\":\"xbaaabjyv\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":662894219,\"softwareStorageSizeInGb\":936751244,\"timeCreated\":\"2021-08-11T21:58:13Z\",\"timeMaintenanceWindowEnd\":\"2021-09-11T16:38:17Z\",\"timeMaintenanceWindowStart\":\"2021-09-02T14:49:34Z\",\"vnic2Id\":\"ogs\",\"vnicId\":\"xnevfdnwn\",\"provisioningState\":\"Failed\"}") .toObject(DbNodeProperties.class); - Assertions.assertEquals("oulpjrv", model.ocid()); - Assertions.assertEquals("glrvimjwosytxi", model.additionalDetails()); - Assertions.assertEquals("skfc", model.backupIpId()); - Assertions.assertEquals("qumiek", model.backupVnic2Id()); - Assertions.assertEquals("zzikhlyfjhdg", model.backupVnicId()); - Assertions.assertEquals(757390701, model.cpuCoreCount()); - Assertions.assertEquals(558583308, model.dbNodeStorageSizeInGbs()); - Assertions.assertEquals("unygaeqid", model.dbServerId()); - Assertions.assertEquals("qfatpxllrxcyjm", model.dbSystemId()); - Assertions.assertEquals("dsuvarmywdmjsjqb", model.faultDomain()); - Assertions.assertEquals("hyxxrwlycoduhpk", model.hostIpId()); - Assertions.assertEquals("gymare", model.hostname()); - Assertions.assertEquals(DbNodeProvisioningState.AVAILABLE, model.lifecycleState()); - Assertions.assertEquals("jxqugjhky", model.lifecycleDetails()); + Assertions.assertEquals("su", model.ocid()); + Assertions.assertEquals("r", model.additionalDetails()); + Assertions.assertEquals("wdmjsjqbjhhyx", model.backupIpId()); + Assertions.assertEquals("wlycoduhpkxkg", model.backupVnic2Id()); + Assertions.assertEquals("areqna", model.backupVnicId()); + Assertions.assertEquals(672785070, model.cpuCoreCount()); + Assertions.assertEquals(963278333, model.dbNodeStorageSizeInGbs()); + Assertions.assertEquals("hky", model.dbServerId()); + Assertions.assertEquals("ubeddg", model.dbSystemId()); + Assertions.assertEquals("ofwq", model.faultDomain()); + Assertions.assertEquals("qal", model.hostIpId()); + Assertions.assertEquals("mnjijpxacqqudf", model.hostname()); + Assertions.assertEquals(DbNodeProvisioningState.UPDATING, model.lifecycleState()); + Assertions.assertEquals("xbaaabjyv", model.lifecycleDetails()); Assertions.assertEquals(DbNodeMaintenanceType.VMDB_REBOOT_MIGRATION, model.maintenanceType()); - Assertions.assertEquals(642347272, model.memorySizeInGbs()); - Assertions.assertEquals(1615439443, model.softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-02T23:36:04Z"), model.timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-14T12:39:32Z"), model.timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-13T04:37:53Z"), model.timeMaintenanceWindowStart()); - Assertions.assertEquals("mzqa", model.vnic2Id()); - Assertions.assertEquals("krmnjijpxacqqud", model.vnicId()); + Assertions.assertEquals(662894219, model.memorySizeInGbs()); + Assertions.assertEquals(936751244, model.softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-11T21:58:13Z"), model.timeCreated()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-11T16:38:17Z"), model.timeMaintenanceWindowEnd()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-02T14:49:34Z"), model.timeMaintenanceWindowStart()); + Assertions.assertEquals("ogs", model.vnic2Id()); + Assertions.assertEquals("xnevfdnwn", model.vnicId()); } } 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 index b9b642001402..b2806ceaf978 100644 --- 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 @@ -25,7 +25,7 @@ public final class DbNodesActionMockTests { @Test public void testAction() throws Exception { String responseStr - = "{\"properties\":{\"ocid\":\"qigkx\",\"additionalDetails\":\"sazgakgacyrcmj\",\"backupIpId\":\"spofapvuhry\",\"backupVnic2Id\":\"iofrzgbzjedmstk\",\"backupVnicId\":\"l\",\"cpuCoreCount\":1553181859,\"dbNodeStorageSizeInGbs\":2098964900,\"dbServerId\":\"iznk\",\"dbSystemId\":\"wfansnvpdi\",\"faultDomain\":\"ikostbzbkiwbuqny\",\"hostIpId\":\"hzfylsgcrpfbc\",\"hostname\":\"ezzcez\",\"lifecycleState\":\"Stopped\",\"lifecycleDetails\":\"w\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":377866290,\"softwareStorageSizeInGb\":953163194,\"timeCreated\":\"2021-08-09T12:15:45Z\",\"timeMaintenanceWindowEnd\":\"2021-11-24T16:01:16Z\",\"timeMaintenanceWindowStart\":\"2021-05-28T11:38:45Z\",\"vnic2Id\":\"ihclafzv\",\"vnicId\":\"ylptrsqqwztcm\",\"provisioningState\":\"Succeeded\"},\"id\":\"hcxwaxfewzjk\",\"name\":\"exfdeqvhpsylk\",\"type\":\"shk\"}"; + = "{\"properties\":{\"ocid\":\"uqwqulsutrjbhxyk\",\"additionalDetails\":\"y\",\"backupIpId\":\"zvqqugdrftbcvexr\",\"backupVnic2Id\":\"quowtljvfwhrea\",\"backupVnicId\":\"hyxvrqt\",\"cpuCoreCount\":363321222,\"dbNodeStorageSizeInGbs\":1247418691,\"dbServerId\":\"lmdgglmepjp\",\"dbSystemId\":\"s\",\"faultDomain\":\"kgsangpszng\",\"hostIpId\":\"p\",\"hostname\":\"lkvec\",\"lifecycleState\":\"Stopped\",\"lifecycleDetails\":\"cngoadyedmzrg\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":778834076,\"softwareStorageSizeInGb\":1135424096,\"timeCreated\":\"2021-05-21T12:15:27Z\",\"timeMaintenanceWindowEnd\":\"2021-11-26T00:13:36Z\",\"timeMaintenanceWindowStart\":\"2021-05-30T18:27:51Z\",\"vnic2Id\":\"pz\",\"vnicId\":\"rgdg\",\"provisioningState\":\"Succeeded\"},\"id\":\"qraswugyxpqitwei\",\"name\":\"l\",\"type\":\"vskbuhzacaq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,32 +35,32 @@ public void testAction() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DbNode response = manager.dbNodes() - .action("vqihebwtswbzuwf", "duragegizvc", "felisdjub", - new DbNodeAction().withAction(DbNodeActionEnum.START), com.azure.core.util.Context.NONE); + .action("vyfijdkzuqnw", "it", "uqoly", new DbNodeAction().withAction(DbNodeActionEnum.SOFT_RESET), + com.azure.core.util.Context.NONE); - Assertions.assertEquals("qigkx", response.properties().ocid()); - Assertions.assertEquals("sazgakgacyrcmj", response.properties().additionalDetails()); - Assertions.assertEquals("spofapvuhry", response.properties().backupIpId()); - Assertions.assertEquals("iofrzgbzjedmstk", response.properties().backupVnic2Id()); - Assertions.assertEquals("l", response.properties().backupVnicId()); - Assertions.assertEquals(1553181859, response.properties().cpuCoreCount()); - Assertions.assertEquals(2098964900, response.properties().dbNodeStorageSizeInGbs()); - Assertions.assertEquals("iznk", response.properties().dbServerId()); - Assertions.assertEquals("wfansnvpdi", response.properties().dbSystemId()); - Assertions.assertEquals("ikostbzbkiwbuqny", response.properties().faultDomain()); - Assertions.assertEquals("hzfylsgcrpfbc", response.properties().hostIpId()); - Assertions.assertEquals("ezzcez", response.properties().hostname()); + Assertions.assertEquals("uqwqulsutrjbhxyk", response.properties().ocid()); + Assertions.assertEquals("y", response.properties().additionalDetails()); + Assertions.assertEquals("zvqqugdrftbcvexr", response.properties().backupIpId()); + Assertions.assertEquals("quowtljvfwhrea", response.properties().backupVnic2Id()); + Assertions.assertEquals("hyxvrqt", response.properties().backupVnicId()); + Assertions.assertEquals(363321222, response.properties().cpuCoreCount()); + Assertions.assertEquals(1247418691, response.properties().dbNodeStorageSizeInGbs()); + Assertions.assertEquals("lmdgglmepjp", response.properties().dbServerId()); + Assertions.assertEquals("s", response.properties().dbSystemId()); + Assertions.assertEquals("kgsangpszng", response.properties().faultDomain()); + Assertions.assertEquals("p", response.properties().hostIpId()); + Assertions.assertEquals("lkvec", response.properties().hostname()); Assertions.assertEquals(DbNodeProvisioningState.STOPPED, response.properties().lifecycleState()); - Assertions.assertEquals("w", response.properties().lifecycleDetails()); + Assertions.assertEquals("cngoadyedmzrg", response.properties().lifecycleDetails()); Assertions.assertEquals(DbNodeMaintenanceType.VMDB_REBOOT_MIGRATION, response.properties().maintenanceType()); - Assertions.assertEquals(377866290, response.properties().memorySizeInGbs()); - Assertions.assertEquals(953163194, response.properties().softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T12:15:45Z"), response.properties().timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-24T16:01:16Z"), + Assertions.assertEquals(778834076, response.properties().memorySizeInGbs()); + Assertions.assertEquals(1135424096, response.properties().softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-21T12:15:27Z"), response.properties().timeCreated()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-26T00:13:36Z"), response.properties().timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-28T11:38:45Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T18:27:51Z"), response.properties().timeMaintenanceWindowStart()); - Assertions.assertEquals("ihclafzv", response.properties().vnic2Id()); - Assertions.assertEquals("ylptrsqqwztcm", response.properties().vnicId()); + Assertions.assertEquals("pz", response.properties().vnic2Id()); + Assertions.assertEquals("rgdg", response.properties().vnicId()); } } 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 index ee8e407779b2..7613431d7354 100644 --- 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 @@ -23,7 +23,7 @@ public final class DbNodesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"ocid\":\"q\",\"additionalDetails\":\"jhmqrhvthla\",\"backupIpId\":\"dcxsmlz\",\"backupVnic2Id\":\"zdtxetlgyd\",\"backupVnicId\":\"qvlnnpxybafiqgea\",\"cpuCoreCount\":755954714,\"dbNodeStorageSizeInGbs\":1031040752,\"dbServerId\":\"kglklbyulidwcw\",\"dbSystemId\":\"mzegjon\",\"faultDomain\":\"jirwgdnqzbrfk\",\"hostIpId\":\"zhzmtksjci\",\"hostname\":\"igsxcdgljplk\",\"lifecycleState\":\"Starting\",\"lifecycleDetails\":\"chtomflrytsw\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1654554720,\"softwareStorageSizeInGb\":1885946932,\"timeCreated\":\"2021-06-30T17:12:26Z\",\"timeMaintenanceWindowEnd\":\"2021-02-03T07:43:53Z\",\"timeMaintenanceWindowStart\":\"2021-05-29T16:33:56Z\",\"vnic2Id\":\"whqjjyslurlpshhk\",\"vnicId\":\"pedwqsl\",\"provisioningState\":\"Succeeded\"},\"id\":\"pq\",\"name\":\"wwsko\",\"type\":\"dcbrwimuvq\"}"; + = "{\"properties\":{\"ocid\":\"mdew\",\"additionalDetails\":\"sxkrpl\",\"backupIpId\":\"aze\",\"backupVnic2Id\":\"w\",\"backupVnicId\":\"yoyp\",\"cpuCoreCount\":2055673505,\"dbNodeStorageSizeInGbs\":1841980142,\"dbServerId\":\"nhjx\",\"dbSystemId\":\"qwjhqkbiwetpozyc\",\"faultDomain\":\"iqyhgfse\",\"hostIpId\":\"lexbsf\",\"hostname\":\"dynojpziuwfb\",\"lifecycleState\":\"Terminating\",\"lifecycleDetails\":\"dtn\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":1176354917,\"softwareStorageSizeInGb\":1450104862,\"timeCreated\":\"2021-04-17T05:36:17Z\",\"timeMaintenanceWindowEnd\":\"2021-11-12T21:16:46Z\",\"timeMaintenanceWindowStart\":\"2021-08-04T14:20:35Z\",\"vnic2Id\":\"bafvafhlbylcc\",\"vnicId\":\"evxrhyz\",\"provisioningState\":\"Succeeded\"},\"id\":\"sofpltd\",\"name\":\"mairrh\",\"type\":\"hfnrac\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,32 +33,32 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DbNode response = manager.dbNodes() - .getWithResponse("lejchcsr", "zknmzlanrupd", "vnphc", com.azure.core.util.Context.NONE) + .getWithResponse("jfizfavkjzwfbc", "aykmmf", "sbfwxr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("q", response.properties().ocid()); - Assertions.assertEquals("jhmqrhvthla", response.properties().additionalDetails()); - Assertions.assertEquals("dcxsmlz", response.properties().backupIpId()); - Assertions.assertEquals("zdtxetlgyd", response.properties().backupVnic2Id()); - Assertions.assertEquals("qvlnnpxybafiqgea", response.properties().backupVnicId()); - Assertions.assertEquals(755954714, response.properties().cpuCoreCount()); - Assertions.assertEquals(1031040752, response.properties().dbNodeStorageSizeInGbs()); - Assertions.assertEquals("kglklbyulidwcw", response.properties().dbServerId()); - Assertions.assertEquals("mzegjon", response.properties().dbSystemId()); - Assertions.assertEquals("jirwgdnqzbrfk", response.properties().faultDomain()); - Assertions.assertEquals("zhzmtksjci", response.properties().hostIpId()); - Assertions.assertEquals("igsxcdgljplk", response.properties().hostname()); - Assertions.assertEquals(DbNodeProvisioningState.STARTING, response.properties().lifecycleState()); - Assertions.assertEquals("chtomflrytsw", response.properties().lifecycleDetails()); + Assertions.assertEquals("mdew", response.properties().ocid()); + Assertions.assertEquals("sxkrpl", response.properties().additionalDetails()); + Assertions.assertEquals("aze", response.properties().backupIpId()); + Assertions.assertEquals("w", response.properties().backupVnic2Id()); + Assertions.assertEquals("yoyp", response.properties().backupVnicId()); + Assertions.assertEquals(2055673505, response.properties().cpuCoreCount()); + Assertions.assertEquals(1841980142, response.properties().dbNodeStorageSizeInGbs()); + Assertions.assertEquals("nhjx", response.properties().dbServerId()); + Assertions.assertEquals("qwjhqkbiwetpozyc", response.properties().dbSystemId()); + Assertions.assertEquals("iqyhgfse", response.properties().faultDomain()); + Assertions.assertEquals("lexbsf", response.properties().hostIpId()); + Assertions.assertEquals("dynojpziuwfb", response.properties().hostname()); + Assertions.assertEquals(DbNodeProvisioningState.TERMINATING, response.properties().lifecycleState()); + Assertions.assertEquals("dtn", response.properties().lifecycleDetails()); Assertions.assertEquals(DbNodeMaintenanceType.VMDB_REBOOT_MIGRATION, response.properties().maintenanceType()); - Assertions.assertEquals(1654554720, response.properties().memorySizeInGbs()); - Assertions.assertEquals(1885946932, response.properties().softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T17:12:26Z"), response.properties().timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-03T07:43:53Z"), + Assertions.assertEquals(1176354917, response.properties().memorySizeInGbs()); + Assertions.assertEquals(1450104862, response.properties().softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-17T05:36:17Z"), response.properties().timeCreated()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-12T21:16:46Z"), response.properties().timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-29T16:33:56Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T14:20:35Z"), response.properties().timeMaintenanceWindowStart()); - Assertions.assertEquals("whqjjyslurlpshhk", response.properties().vnic2Id()); - Assertions.assertEquals("pedwqsl", response.properties().vnicId()); + Assertions.assertEquals("bafvafhlbylcc", response.properties().vnic2Id()); + Assertions.assertEquals("evxrhyz", response.properties().vnicId()); } } 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 index 923cef2e5754..fe46c627b635 100644 --- 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 @@ -24,7 +24,7 @@ public final class DbNodesListByCloudVmClusterMockTests { @Test public void testListByCloudVmCluster() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"zuawxtzxpuamwa\",\"additionalDetails\":\"xrvxcushsphai\",\"backupIpId\":\"xyasflvgsgzw\",\"backupVnic2Id\":\"akoi\",\"backupVnicId\":\"nsmjbl\",\"cpuCoreCount\":1367622983,\"dbNodeStorageSizeInGbs\":141566402,\"dbServerId\":\"ymzotqyryuzcbmq\",\"dbSystemId\":\"vxmvw\",\"faultDomain\":\"tayx\",\"hostIpId\":\"supe\",\"hostname\":\"lzqnhcvs\",\"lifecycleState\":\"Updating\",\"lifecycleDetails\":\"nzoibgsxgnx\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":882491900,\"softwareStorageSizeInGb\":171908956,\"timeCreated\":\"2021-01-30T13:57:25Z\",\"timeMaintenanceWindowEnd\":\"2021-05-25T17:04:08Z\",\"timeMaintenanceWindowStart\":\"2021-08-14T04:57:20Z\",\"vnic2Id\":\"fdbxiqxeiiqbim\",\"vnicId\":\"tmwwi\",\"provisioningState\":\"Failed\"},\"id\":\"f\",\"name\":\"pofvwb\",\"type\":\"blembnkbwvqvxkd\"}]}"; + = "{\"value\":[{\"properties\":{\"ocid\":\"ujwouhdawsi\",\"additionalDetails\":\"bjb\",\"backupIpId\":\"jybvit\",\"backupVnic2Id\":\"kjyaznumtg\",\"backupVnicId\":\"uwdchozf\",\"cpuCoreCount\":820610981,\"dbNodeStorageSizeInGbs\":418227301,\"dbServerId\":\"v\",\"dbSystemId\":\"noakiz\",\"faultDomain\":\"aikn\",\"hostIpId\":\"lnuwiguy\",\"hostname\":\"ykwphvxzcwxhmpe\",\"lifecycleState\":\"Starting\",\"lifecycleDetails\":\"ke\",\"maintenanceType\":\"VmdbRebootMigration\",\"memorySizeInGbs\":593833942,\"softwareStorageSizeInGb\":1403514337,\"timeCreated\":\"2021-08-12T17:38:45Z\",\"timeMaintenanceWindowEnd\":\"2021-05-04T14:13:26Z\",\"timeMaintenanceWindowStart\":\"2021-08-04T01:58:43Z\",\"vnic2Id\":\"hxknlccrmmkyupi\",\"vnicId\":\"ubyqj\",\"provisioningState\":\"Canceled\"},\"id\":\"fqfrkemyildudxja\",\"name\":\"cowvfdjkp\",\"type\":\"xphlkksnmg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,34 +34,34 @@ public void testListByCloudVmCluster() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.dbNodes().listByCloudVmCluster("tyjedex", "mlfmkqs", com.azure.core.util.Context.NONE); + = manager.dbNodes().listByCloudVmCluster("npq", "g", com.azure.core.util.Context.NONE); - Assertions.assertEquals("zuawxtzxpuamwa", response.iterator().next().properties().ocid()); - Assertions.assertEquals("xrvxcushsphai", response.iterator().next().properties().additionalDetails()); - Assertions.assertEquals("xyasflvgsgzw", response.iterator().next().properties().backupIpId()); - Assertions.assertEquals("akoi", response.iterator().next().properties().backupVnic2Id()); - Assertions.assertEquals("nsmjbl", response.iterator().next().properties().backupVnicId()); - Assertions.assertEquals(1367622983, response.iterator().next().properties().cpuCoreCount()); - Assertions.assertEquals(141566402, response.iterator().next().properties().dbNodeStorageSizeInGbs()); - Assertions.assertEquals("ymzotqyryuzcbmq", response.iterator().next().properties().dbServerId()); - Assertions.assertEquals("vxmvw", response.iterator().next().properties().dbSystemId()); - Assertions.assertEquals("tayx", response.iterator().next().properties().faultDomain()); - Assertions.assertEquals("supe", response.iterator().next().properties().hostIpId()); - Assertions.assertEquals("lzqnhcvs", response.iterator().next().properties().hostname()); - Assertions.assertEquals(DbNodeProvisioningState.UPDATING, + Assertions.assertEquals("ujwouhdawsi", response.iterator().next().properties().ocid()); + Assertions.assertEquals("bjb", response.iterator().next().properties().additionalDetails()); + Assertions.assertEquals("jybvit", response.iterator().next().properties().backupIpId()); + Assertions.assertEquals("kjyaznumtg", response.iterator().next().properties().backupVnic2Id()); + Assertions.assertEquals("uwdchozf", response.iterator().next().properties().backupVnicId()); + Assertions.assertEquals(820610981, response.iterator().next().properties().cpuCoreCount()); + Assertions.assertEquals(418227301, response.iterator().next().properties().dbNodeStorageSizeInGbs()); + Assertions.assertEquals("v", response.iterator().next().properties().dbServerId()); + Assertions.assertEquals("noakiz", response.iterator().next().properties().dbSystemId()); + Assertions.assertEquals("aikn", response.iterator().next().properties().faultDomain()); + Assertions.assertEquals("lnuwiguy", response.iterator().next().properties().hostIpId()); + Assertions.assertEquals("ykwphvxzcwxhmpe", response.iterator().next().properties().hostname()); + Assertions.assertEquals(DbNodeProvisioningState.STARTING, response.iterator().next().properties().lifecycleState()); - Assertions.assertEquals("nzoibgsxgnx", response.iterator().next().properties().lifecycleDetails()); + Assertions.assertEquals("ke", response.iterator().next().properties().lifecycleDetails()); Assertions.assertEquals(DbNodeMaintenanceType.VMDB_REBOOT_MIGRATION, response.iterator().next().properties().maintenanceType()); - Assertions.assertEquals(882491900, response.iterator().next().properties().memorySizeInGbs()); - Assertions.assertEquals(171908956, response.iterator().next().properties().softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-30T13:57:25Z"), + Assertions.assertEquals(593833942, response.iterator().next().properties().memorySizeInGbs()); + Assertions.assertEquals(1403514337, response.iterator().next().properties().softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-12T17:38:45Z"), response.iterator().next().properties().timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-25T17:04:08Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-05-04T14:13:26Z"), response.iterator().next().properties().timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T04:57:20Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T01:58:43Z"), response.iterator().next().properties().timeMaintenanceWindowStart()); - Assertions.assertEquals("fdbxiqxeiiqbim", response.iterator().next().properties().vnic2Id()); - Assertions.assertEquals("tmwwi", response.iterator().next().properties().vnicId()); + Assertions.assertEquals("hxknlccrmmkyupi", response.iterator().next().properties().vnic2Id()); + Assertions.assertEquals("ubyqj", response.iterator().next().properties().vnicId()); } } 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 index 7e48b32b2fab..79cf4c59e0f9 100644 --- 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 @@ -11,7 +11,7 @@ public final class DbServerInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbServerInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"snkymuctq\",\"displayName\":\"fbebrjcxer\",\"compartmentId\":\"wutttxfvjrbi\",\"exadataInfrastructureId\":\"hxepcyvahfnlj\",\"cpuCoreCount\":561070013,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":1238878906,\"patchingStatus\":\"MaintenanceInProgress\",\"timePatchingEnded\":\"2021-01-04T05:40:41Z\",\"timePatchingStarted\":\"2021-07-14T10:27:20Z\"},\"maxMemoryInGbs\":528662531,\"dbNodeStorageSizeInGbs\":441208972,\"vmClusterIds\":[\"jyoxgvclt\",\"gsncghkjeszz\",\"bijhtxfvgxbf\"],\"dbNodeIds\":[\"nehmpvecx\",\"odebfqkkrbmpu\",\"gr\"],\"lifecycleDetails\":\"flz\",\"lifecycleState\":\"MaintenanceInProgress\",\"maxCpuCount\":266686286,\"autonomousVmClusterIds\":[\"zycispn\",\"zahmgkbrpyydhibn\",\"qqkpikadrg\"],\"autonomousVirtualMachineIds\":[\"agnb\",\"ynhijggme\"],\"maxDbNodeStorageInGbs\":983171059,\"memorySizeInGbs\":847896625,\"shape\":\"butr\",\"timeCreated\":\"2020-12-24T14:25:03Z\",\"provisioningState\":\"Failed\",\"computeModel\":\"OCPU\"},\"id\":\"hj\",\"name\":\"unmpxttd\",\"type\":\"hrbnlankxmyskpbh\"}") + "{\"properties\":{\"ocid\":\"pnazzm\",\"displayName\":\"runmp\",\"compartmentId\":\"tdbhrbnla\",\"exadataInfrastructureId\":\"xmyskp\",\"cpuCoreCount\":743667383,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":1326044907,\"patchingStatus\":\"Scheduled\",\"timePatchingEnded\":\"2021-02-18T02:28:33Z\",\"timePatchingStarted\":\"2021-03-19T14:15:42Z\"},\"maxMemoryInGbs\":1607140752,\"dbNodeStorageSizeInGbs\":917020287,\"vmClusterIds\":[\"nlqidybyxczf\"],\"dbNodeIds\":[\"aaxdbabphlwrq\",\"fkts\",\"hsucoc\"],\"lifecycleDetails\":\"yyazttbt\",\"lifecycleState\":\"Creating\",\"maxCpuCount\":1710095356,\"autonomousVmClusterIds\":[\"dckzywbiexz\",\"eyueaxibxujwb\",\"qwalmuzyoxaepd\",\"zjancuxr\"],\"autonomousVirtualMachineIds\":[\"bavxbniwdjswzt\",\"dbpgnxytxhp\",\"xbzpfzab\"],\"maxDbNodeStorageInGbs\":687811406,\"memorySizeInGbs\":650781860,\"shape\":\"wtctyqi\",\"timeCreated\":\"2021-06-27T19:00:45Z\",\"provisioningState\":\"Canceled\",\"computeModel\":\"OCPU\"},\"id\":\"wzbhvgyugu\",\"name\":\"svmkfssxquk\",\"type\":\"fpl\"}") .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 index 3809f6d7baae..69a6f7c554a2 100644 --- 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 @@ -12,8 +12,8 @@ public final class DbServerListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbServerListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"xpkd\",\"displayName\":\"baiuebbaumny\",\"compartmentId\":\"ped\",\"exadataInfrastructureId\":\"jn\",\"cpuCoreCount\":949740199,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":52556598,\"patchingStatus\":\"Scheduled\",\"timePatchingEnded\":\"2021-11-09T03:48:05Z\",\"timePatchingStarted\":\"2021-05-06T08:00:56Z\"},\"maxMemoryInGbs\":578889985,\"dbNodeStorageSizeInGbs\":74737899,\"vmClusterIds\":[\"pesapskrdqmhjj\",\"htldwk\",\"zxuutkncwscwsvl\",\"otogtwrupqs\"],\"dbNodeIds\":[\"micykvceoveilo\"],\"lifecycleDetails\":\"oty\",\"lifecycleState\":\"Available\",\"maxCpuCount\":1745104172,\"autonomousVmClusterIds\":[\"k\"],\"autonomousVirtualMachineIds\":[\"dhbt\"],\"maxDbNodeStorageInGbs\":1907592616,\"memorySizeInGbs\":1754671531,\"shape\":\"pnvjtoqnermclf\",\"timeCreated\":\"2021-08-17T17:40:25Z\",\"provisioningState\":\"Succeeded\",\"computeModel\":\"OCPU\"},\"id\":\"crpab\",\"name\":\"ye\",\"type\":\"sbj\"},{\"properties\":{\"ocid\":\"qugxywpmueefjzwf\",\"displayName\":\"q\",\"compartmentId\":\"ids\",\"exadataInfrastructureId\":\"onobglaocqx\",\"cpuCoreCount\":1581079817,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":528280521,\"patchingStatus\":\"Scheduled\",\"timePatchingEnded\":\"2021-07-13T20:38:11Z\",\"timePatchingStarted\":\"2021-04-24T05:00:51Z\"},\"maxMemoryInGbs\":2080912340,\"dbNodeStorageSizeInGbs\":656621417,\"vmClusterIds\":[\"wfudwpzntxhdzhl\",\"qj\",\"hckfrlhrx\",\"bkyvp\"],\"dbNodeIds\":[\"n\",\"z\",\"p\",\"kafkuwbcrnwbm\"],\"lifecycleDetails\":\"hseyvju\",\"lifecycleState\":\"MaintenanceInProgress\",\"maxCpuCount\":2138659261,\"autonomousVmClusterIds\":[\"pkdeemaofmxagkvt\",\"elmqk\"],\"autonomousVirtualMachineIds\":[\"hvljuahaquh\",\"dhmdua\",\"aex\"],\"maxDbNodeStorageInGbs\":1809510954,\"memorySizeInGbs\":792525510,\"shape\":\"mwsrcrgvxpvgo\",\"timeCreated\":\"2021-02-13T18:52:29Z\",\"provisioningState\":\"Succeeded\",\"computeModel\":\"OCPU\"},\"id\":\"wbnb\",\"name\":\"e\",\"type\":\"dawkzbali\"}],\"nextLink\":\"rqhakauha\"}") + "{\"value\":[{\"properties\":{\"ocid\":\"oyrxvwfudwpzntxh\",\"displayName\":\"hl\",\"compartmentId\":\"jbhckfrlhr\",\"exadataInfrastructureId\":\"bkyvp\",\"cpuCoreCount\":1219489836,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":106855620,\"patchingStatus\":\"Scheduled\",\"timePatchingEnded\":\"2021-03-18T06:16:35Z\",\"timePatchingStarted\":\"2021-09-24T05:43:50Z\"},\"maxMemoryInGbs\":863454925,\"dbNodeStorageSizeInGbs\":133840349,\"vmClusterIds\":[\"nwbmeh\"],\"dbNodeIds\":[\"yvjusrtslhsp\",\"deemao\",\"mx\",\"gkvtmelmqkrhah\"],\"lifecycleDetails\":\"juahaquhcdhmdual\",\"lifecycleState\":\"Creating\",\"maxCpuCount\":758421621,\"autonomousVmClusterIds\":[\"adm\",\"sr\"],\"autonomousVirtualMachineIds\":[\"vxpvgomz\"],\"maxDbNodeStorageInGbs\":1981643623,\"memorySizeInGbs\":491284864,\"shape\":\"wbnb\",\"timeCreated\":\"2021-11-15T23:08:14Z\",\"provisioningState\":\"Failed\",\"computeModel\":\"ECPU\"},\"id\":\"baliourqhakauha\",\"name\":\"hsfwxosowzxcug\",\"type\":\"cjooxdjebwpucwwf\"},{\"properties\":{\"ocid\":\"bvmeuecivy\",\"displayName\":\"ce\",\"compartmentId\":\"jgjrwjueiotwm\",\"exadataInfrastructureId\":\"ytdxwit\",\"cpuCoreCount\":1070997174,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":2004716325,\"patchingStatus\":\"Failed\",\"timePatchingEnded\":\"2021-04-23T19:24:04Z\",\"timePatchingStarted\":\"2021-10-10T15:46:25Z\"},\"maxMemoryInGbs\":676331942,\"dbNodeStorageSizeInGbs\":1840512089,\"vmClusterIds\":[\"bkpyc\"],\"dbNodeIds\":[\"wndnhj\"],\"lifecycleDetails\":\"uwhvylwzbtdhxujz\",\"lifecycleState\":\"MaintenanceInProgress\",\"maxCpuCount\":284483918,\"autonomousVmClusterIds\":[\"wpr\",\"qlveualupjmkh\"],\"autonomousVirtualMachineIds\":[\"bbcswsrtjri\"],\"maxDbNodeStorageInGbs\":1682044570,\"memorySizeInGbs\":1748102022,\"shape\":\"ewtghfgblcgw\",\"timeCreated\":\"2021-01-14T04:37:45Z\",\"provisioningState\":\"Failed\",\"computeModel\":\"OCPU\"},\"id\":\"kbegibt\",\"name\":\"mxiebw\",\"type\":\"aloayqcgwrtzju\"}],\"nextLink\":\"wyzmhtxon\"}") .toObject(DbServerListResult.class); - Assertions.assertEquals("rqhakauha", model.nextLink()); + Assertions.assertEquals("wyzmhtxon", 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 index 29619507b39e..ccb8443d004a 100644 --- 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 @@ -11,7 +11,7 @@ public final class DbServerPatchingDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbServerPatchingDetails model = BinaryData.fromString( - "{\"estimatedPatchDuration\":571941714,\"patchingStatus\":\"Scheduled\",\"timePatchingEnded\":\"2021-02-01T20:47:43Z\",\"timePatchingStarted\":\"2021-01-14T17:47:44Z\"}") + "{\"estimatedPatchDuration\":1729543433,\"patchingStatus\":\"Failed\",\"timePatchingEnded\":\"2021-02-11T06:40:02Z\",\"timePatchingStarted\":\"2021-07-13T20:38:11Z\"}") .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 index a794720ccb0b..ea3c42ab2948 100644 --- 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 @@ -11,7 +11,7 @@ public final class DbServerPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbServerProperties model = BinaryData.fromString( - "{\"ocid\":\"btkcxywnytnrsyn\",\"displayName\":\"idybyxczf\",\"compartmentId\":\"haaxdbabphl\",\"exadataInfrastructureId\":\"qlfktsths\",\"cpuCoreCount\":2034865697,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":2095135848,\"patchingStatus\":\"Complete\",\"timePatchingEnded\":\"2021-08-16T03:52:30Z\",\"timePatchingStarted\":\"2021-08-27T13:10:53Z\"},\"maxMemoryInGbs\":1372436938,\"dbNodeStorageSizeInGbs\":1396816712,\"vmClusterIds\":[\"puedckzywbiexzf\",\"yueaxibxujwb\",\"qwalmuzyoxaepd\",\"zjancuxr\"],\"dbNodeIds\":[\"bavxbniwdjswzt\",\"dbpgnxytxhp\",\"xbzpfzab\"],\"lifecycleDetails\":\"cuh\",\"lifecycleState\":\"Deleted\",\"maxCpuCount\":767485321,\"autonomousVmClusterIds\":[\"iklbbovpl\"],\"autonomousVirtualMachineIds\":[\"hvgyuguosvmk\",\"ss\"],\"maxDbNodeStorageInGbs\":406049393,\"memorySizeInGbs\":773521524,\"shape\":\"plgmgsxnk\",\"timeCreated\":\"2021-07-28T04:14:11Z\",\"provisioningState\":\"Succeeded\",\"computeModel\":\"ECPU\"}") + "{\"ocid\":\"gsxnkjzkdeslpv\",\"displayName\":\"pwiyig\",\"compartmentId\":\"pkdwzbai\",\"exadataInfrastructureId\":\"bbaumnyquped\",\"cpuCoreCount\":522910001,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":746279797,\"patchingStatus\":\"Failed\",\"timePatchingEnded\":\"2021-09-17T17:08:43Z\",\"timePatchingStarted\":\"2021-11-20T16:21:10Z\"},\"maxMemoryInGbs\":1045887723,\"dbNodeStorageSizeInGbs\":392832113,\"vmClusterIds\":[\"tfhvpesapskrdqmh\",\"jdhtldwkyzxu\",\"tkncwsc\"],\"dbNodeIds\":[\"lxotogtwrupq\",\"xvnmicykvceov\",\"ilovnot\",\"fj\"],\"lifecycleDetails\":\"njbkcnxdhbttkph\",\"lifecycleState\":\"Creating\",\"maxCpuCount\":1284749235,\"autonomousVmClusterIds\":[\"oqnermclfpl\"],\"autonomousVirtualMachineIds\":[\"xus\",\"rpabg\",\"epsbjtazqu\",\"xywpmueefjzwfqkq\"],\"maxDbNodeStorageInGbs\":640895390,\"memorySizeInGbs\":1148622887,\"shape\":\"yonobgl\",\"timeCreated\":\"2021-08-30T19:29:44Z\",\"provisioningState\":\"Failed\",\"computeModel\":\"ECPU\"}") .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 index f2c496f1d938..9812355d843c 100644 --- 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 @@ -20,7 +20,7 @@ public final class DbServersGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"ocid\":\"wrus\",\"displayName\":\"qbhsyrq\",\"compartmentId\":\"jqhden\",\"exadataInfrastructureId\":\"ulkpakd\",\"cpuCoreCount\":466096532,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":1987062682,\"patchingStatus\":\"Complete\",\"timePatchingEnded\":\"2021-04-26T17:24:10Z\",\"timePatchingStarted\":\"2021-10-12T12:03:50Z\"},\"maxMemoryInGbs\":141599202,\"dbNodeStorageSizeInGbs\":1329519591,\"vmClusterIds\":[\"p\",\"gqoweyirdhlisn\",\"wfl\"],\"dbNodeIds\":[\"pizruwnpqxpxiw\",\"cng\"],\"lifecycleDetails\":\"aas\",\"lifecycleState\":\"Deleted\",\"maxCpuCount\":352154258,\"autonomousVmClusterIds\":[\"jvkviirhgfgrws\",\"pgratzvzbglbyvi\",\"tctbrxkjzwrgxffm\",\"hkwfbkgozxwop\"],\"autonomousVirtualMachineIds\":[\"dpizq\"],\"maxDbNodeStorageInGbs\":500776725,\"memorySizeInGbs\":1182183471,\"shape\":\"xbiygnugjknfsmf\",\"timeCreated\":\"2021-11-18T08:04:29Z\",\"provisioningState\":\"Succeeded\",\"computeModel\":\"OCPU\"},\"id\":\"i\",\"name\":\"flqo\",\"type\":\"quvre\"}"; + = "{\"properties\":{\"ocid\":\"frdbiqmrjgeihf\",\"displayName\":\"ggwfiwz\",\"compartmentId\":\"mjpb\",\"exadataInfrastructureId\":\"phmgtvljvrcmyfq\",\"cpuCoreCount\":1540718771,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":1341200966,\"patchingStatus\":\"Complete\",\"timePatchingEnded\":\"2021-03-15T22:12:36Z\",\"timePatchingStarted\":\"2021-02-05T16:45:52Z\"},\"maxMemoryInGbs\":866269149,\"dbNodeStorageSizeInGbs\":2025357675,\"vmClusterIds\":[\"ilee\"],\"dbNodeIds\":[\"wlpaugmrmfjlrxwt\",\"aukhfkvcisiz\",\"oaedsxjwuivedwcg\"],\"lifecycleDetails\":\"ewxeiqbpsm\",\"lifecycleState\":\"Unavailable\",\"maxCpuCount\":9587252,\"autonomousVmClusterIds\":[\"ljdlrgmspl\",\"gaufcs\",\"hvn\",\"wgnxkympqanxrj\"],\"autonomousVirtualMachineIds\":[\"tw\",\"taoypnyghshxc\"],\"maxDbNodeStorageInGbs\":1743709158,\"memorySizeInGbs\":52524988,\"shape\":\"nsghp\",\"timeCreated\":\"2021-02-16T02:21:14Z\",\"provisioningState\":\"Canceled\",\"computeModel\":\"OCPU\"},\"id\":\"jjkhvyomaclu\",\"name\":\"vxnqmhrpqpd\",\"type\":\"wmkoisq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DbServer response = manager.dbServers() - .getWithResponse("wtlmjjyuo", "qtobaxkjeyt", "nlb", com.azure.core.util.Context.NONE) + .getWithResponse("phavpmhbrb", "gvgovpbbttefjo", "nssqyzqed", 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 index 4f0b79e0ed3f..ee7a8f0daa27 100644 --- 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 @@ -21,7 +21,7 @@ public final class DbServersListByCloudExadataInfrastructureMockTests { @Test public void testListByCloudExadataInfrastructure() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"rvzmlovuana\",\"displayName\":\"cxlpmjerb\",\"compartmentId\":\"elvidizozsdbccx\",\"exadataInfrastructureId\":\"on\",\"cpuCoreCount\":1268563330,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":258073184,\"patchingStatus\":\"Complete\",\"timePatchingEnded\":\"2021-01-22T00:16:45Z\",\"timePatchingStarted\":\"2021-04-11T00:16:58Z\"},\"maxMemoryInGbs\":575797032,\"dbNodeStorageSizeInGbs\":36862007,\"vmClusterIds\":[\"jctzenkei\",\"zzhmkd\",\"svflyhbxcudch\"],\"dbNodeIds\":[\"rb\",\"ldforobwj\",\"vizbfhfo\"],\"lifecycleDetails\":\"acqpbtuodxesza\",\"lifecycleState\":\"MaintenanceInProgress\",\"maxCpuCount\":1797957614,\"autonomousVmClusterIds\":[\"muaslzkw\",\"rwoycqucwyh\",\"hnomdrkywuh\",\"svfuurutlwexxwl\"],\"autonomousVirtualMachineIds\":[\"iexzsrzpge\",\"q\",\"yb\",\"wwpgdakchzyvlixq\"],\"maxDbNodeStorageInGbs\":999395263,\"memorySizeInGbs\":264711388,\"shape\":\"jibnxmysu\",\"timeCreated\":\"2021-04-28T09:40:52Z\",\"provisioningState\":\"Succeeded\",\"computeModel\":\"OCPU\"},\"id\":\"lwi\",\"name\":\"psttexoq\",\"type\":\"pwcyyufmhr\"}]}"; + = "{\"value\":[{\"properties\":{\"ocid\":\"ylollgtrczzydmxz\",\"displayName\":\"jpvuaurkihcirld\",\"compartmentId\":\"xrdcoxnbkkja\",\"exadataInfrastructureId\":\"rnnqb\",\"cpuCoreCount\":535354048,\"dbServerPatchingDetails\":{\"estimatedPatchDuration\":1300330088,\"patchingStatus\":\"MaintenanceInProgress\",\"timePatchingEnded\":\"2021-11-23T17:11:51Z\",\"timePatchingStarted\":\"2021-08-16T00:10:06Z\"},\"maxMemoryInGbs\":1401099475,\"dbNodeStorageSizeInGbs\":1085720337,\"vmClusterIds\":[\"rxvbfihwuh\",\"ctafsrbxrblm\"],\"dbNodeIds\":[\"wxihs\",\"nxw\"],\"lifecycleDetails\":\"gnepz\",\"lifecycleState\":\"Unavailable\",\"maxCpuCount\":751159366,\"autonomousVmClusterIds\":[\"bqqqagwwrxa\"],\"autonomousVirtualMachineIds\":[\"isglrrc\",\"ezkhhltnjadhqo\",\"wjqo\",\"ueayfbpcmsplb\"],\"maxDbNodeStorageInGbs\":2116150799,\"memorySizeInGbs\":1714256429,\"shape\":\"thwmgnmbsc\",\"timeCreated\":\"2021-08-10T07:01:47Z\",\"provisioningState\":\"Succeeded\",\"computeModel\":\"OCPU\"},\"id\":\"iidlop\",\"name\":\"dbwdpyqyybxubmdn\",\"type\":\"fcbqwremjela\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,7 +31,7 @@ public void testListByCloudExadataInfrastructure() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.dbServers() - .listByCloudExadataInfrastructure("szcofizeht", "hgbjkvrelje", com.azure.core.util.Context.NONE); + .listByCloudExadataInfrastructure("ssffxuifmc", "ypobkdqzr", com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemOptionsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemOptionsTests.java new file mode 100644 index 000000000000..46a1ece0eff8 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemOptionsTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.DbSystemOptions; +import com.azure.resourcemanager.oracledatabase.models.StorageManagementType; +import org.junit.jupiter.api.Assertions; + +public final class DbSystemOptionsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DbSystemOptions model + = BinaryData.fromString("{\"storageManagement\":\"LVM\"}").toObject(DbSystemOptions.class); + Assertions.assertEquals(StorageManagementType.LVM, model.storageManagement()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DbSystemOptions model = new DbSystemOptions().withStorageManagement(StorageManagementType.LVM); + model = BinaryData.fromObject(model).toObject(DbSystemOptions.class); + Assertions.assertEquals(StorageManagementType.LVM, model.storageManagement()); + } +} 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 index 7758bc7a1e6a..b4f1ec4be2c9 100644 --- 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 @@ -13,31 +13,32 @@ public final class DbSystemShapeInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbSystemShapeInner model = BinaryData.fromString( - "{\"properties\":{\"shapeFamily\":\"racstwity\",\"shapeName\":\"hevxcced\",\"availableCoreCount\":1900639449,\"minimumCoreCount\":502101574,\"runtimeMinimumCoreCount\":317299302,\"coreCountIncrement\":1994704768,\"minStorageCount\":1858939238,\"maxStorageCount\":987064963,\"availableDataStoragePerServerInTbs\":15.099293123274682,\"availableMemoryPerNodeInGbs\":491638921,\"availableDbNodePerNodeInGbs\":573145067,\"minCoreCountPerNode\":139377731,\"availableMemoryInGbs\":761220037,\"minMemoryPerNodeInGbs\":1498430140,\"availableDbNodeStorageInGbs\":1501738623,\"minDbNodeStoragePerNodeInGbs\":1485792464,\"availableDataStorageInTbs\":1627588082,\"minDataStorageInTbs\":836619519,\"minimumNodeCount\":1911413053,\"maximumNodeCount\":1077177476,\"availableCoreCountPerNode\":1643458041,\"computeModel\":\"ECPU\",\"areServerTypesSupported\":false,\"displayName\":\"lmdjrkvfgbvfvpdb\"},\"id\":\"acizsjqlhkrr\",\"name\":\"bdeibqipqk\",\"type\":\"hvxndzwmkrefajpj\"}") + "{\"properties\":{\"shapeFamily\":\"vpdbodaciz\",\"shapeName\":\"j\",\"availableCoreCount\":1933405509,\"minimumCoreCount\":588632763,\"runtimeMinimumCoreCount\":218475539,\"coreCountIncrement\":268834532,\"minStorageCount\":991301746,\"maxStorageCount\":180588113,\"availableDataStoragePerServerInTbs\":79.38383675850163,\"availableMemoryPerNodeInGbs\":840101476,\"availableDbNodePerNodeInGbs\":2080529192,\"minCoreCountPerNode\":1573874006,\"availableMemoryInGbs\":1070567995,\"minMemoryPerNodeInGbs\":485906823,\"availableDbNodeStorageInGbs\":74498684,\"minDbNodeStoragePerNodeInGbs\":1472757866,\"availableDataStorageInTbs\":1155749150,\"minDataStorageInTbs\":754811246,\"minimumNodeCount\":1983061775,\"maximumNodeCount\":1789165646,\"availableCoreCountPerNode\":1363843436,\"computeModel\":\"OCPU\",\"areServerTypesSupported\":true,\"displayName\":\"ij\",\"shapeAttributes\":[\"vfxzsjab\",\"bsystawfsdjpvk\",\"p\",\"jxbkzbzkdvn\"]},\"id\":\"abudurgk\",\"name\":\"kmokz\",\"type\":\"jjklff\"}") .toObject(DbSystemShapeInner.class); - Assertions.assertEquals("racstwity", model.properties().shapeFamily()); - Assertions.assertEquals("hevxcced", model.properties().shapeName()); - Assertions.assertEquals(1900639449, model.properties().availableCoreCount()); - Assertions.assertEquals(502101574, model.properties().minimumCoreCount()); - Assertions.assertEquals(317299302, model.properties().runtimeMinimumCoreCount()); - Assertions.assertEquals(1994704768, model.properties().coreCountIncrement()); - Assertions.assertEquals(1858939238, model.properties().minStorageCount()); - Assertions.assertEquals(987064963, model.properties().maxStorageCount()); - Assertions.assertEquals(15.099293123274682D, model.properties().availableDataStoragePerServerInTbs()); - Assertions.assertEquals(491638921, model.properties().availableMemoryPerNodeInGbs()); - Assertions.assertEquals(573145067, model.properties().availableDbNodePerNodeInGbs()); - Assertions.assertEquals(139377731, model.properties().minCoreCountPerNode()); - Assertions.assertEquals(761220037, model.properties().availableMemoryInGbs()); - Assertions.assertEquals(1498430140, model.properties().minMemoryPerNodeInGbs()); - Assertions.assertEquals(1501738623, model.properties().availableDbNodeStorageInGbs()); - Assertions.assertEquals(1485792464, model.properties().minDbNodeStoragePerNodeInGbs()); - Assertions.assertEquals(1627588082, model.properties().availableDataStorageInTbs()); - Assertions.assertEquals(836619519, model.properties().minDataStorageInTbs()); - Assertions.assertEquals(1911413053, model.properties().minimumNodeCount()); - Assertions.assertEquals(1077177476, model.properties().maximumNodeCount()); - Assertions.assertEquals(1643458041, model.properties().availableCoreCountPerNode()); - Assertions.assertEquals(ComputeModel.ECPU, model.properties().computeModel()); - Assertions.assertFalse(model.properties().areServerTypesSupported()); - Assertions.assertEquals("lmdjrkvfgbvfvpdb", model.properties().displayName()); + Assertions.assertEquals("vpdbodaciz", model.properties().shapeFamily()); + Assertions.assertEquals("j", model.properties().shapeName()); + Assertions.assertEquals(1933405509, model.properties().availableCoreCount()); + Assertions.assertEquals(588632763, model.properties().minimumCoreCount()); + Assertions.assertEquals(218475539, model.properties().runtimeMinimumCoreCount()); + Assertions.assertEquals(268834532, model.properties().coreCountIncrement()); + Assertions.assertEquals(991301746, model.properties().minStorageCount()); + Assertions.assertEquals(180588113, model.properties().maxStorageCount()); + Assertions.assertEquals(79.38383675850163D, model.properties().availableDataStoragePerServerInTbs()); + Assertions.assertEquals(840101476, model.properties().availableMemoryPerNodeInGbs()); + Assertions.assertEquals(2080529192, model.properties().availableDbNodePerNodeInGbs()); + Assertions.assertEquals(1573874006, model.properties().minCoreCountPerNode()); + Assertions.assertEquals(1070567995, model.properties().availableMemoryInGbs()); + Assertions.assertEquals(485906823, model.properties().minMemoryPerNodeInGbs()); + Assertions.assertEquals(74498684, model.properties().availableDbNodeStorageInGbs()); + Assertions.assertEquals(1472757866, model.properties().minDbNodeStoragePerNodeInGbs()); + Assertions.assertEquals(1155749150, model.properties().availableDataStorageInTbs()); + Assertions.assertEquals(754811246, model.properties().minDataStorageInTbs()); + Assertions.assertEquals(1983061775, model.properties().minimumNodeCount()); + Assertions.assertEquals(1789165646, model.properties().maximumNodeCount()); + Assertions.assertEquals(1363843436, model.properties().availableCoreCountPerNode()); + Assertions.assertEquals(ComputeModel.OCPU, model.properties().computeModel()); + Assertions.assertTrue(model.properties().areServerTypesSupported()); + Assertions.assertEquals("ij", model.properties().displayName()); + Assertions.assertEquals("vfxzsjab", model.properties().shapeAttributes().get(0)); } } 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 index fdbb66a362fb..39870f601d6b 100644 --- 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 @@ -13,33 +13,34 @@ public final class DbSystemShapeListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbSystemShapeListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"shapeFamily\":\"lffhmouwqlg\",\"shapeName\":\"rfzeey\",\"availableCoreCount\":437518937,\"minimumCoreCount\":428903037,\"runtimeMinimumCoreCount\":707940784,\"coreCountIncrement\":2103532940,\"minStorageCount\":566949412,\"maxStorageCount\":1810814701,\"availableDataStoragePerServerInTbs\":46.895401356243696,\"availableMemoryPerNodeInGbs\":1692042024,\"availableDbNodePerNodeInGbs\":397813394,\"minCoreCountPerNode\":549914749,\"availableMemoryInGbs\":1463319790,\"minMemoryPerNodeInGbs\":948234782,\"availableDbNodeStorageInGbs\":1918019278,\"minDbNodeStoragePerNodeInGbs\":348550148,\"availableDataStorageInTbs\":1644492935,\"minDataStorageInTbs\":1408041355,\"minimumNodeCount\":1907297138,\"maximumNodeCount\":299337354,\"availableCoreCountPerNode\":1000390440,\"computeModel\":\"ECPU\",\"areServerTypesSupported\":true,\"displayName\":\"x\"},\"id\":\"mwutwbdsre\",\"name\":\"pdrhne\",\"type\":\"yowqkdwytisibir\"},{\"properties\":{\"shapeFamily\":\"ikpzimejza\",\"shapeName\":\"lfzxiavrmbzonoki\",\"availableCoreCount\":988966310,\"minimumCoreCount\":115638191,\"runtimeMinimumCoreCount\":1122267125,\"coreCountIncrement\":1711524187,\"minStorageCount\":2101008571,\"maxStorageCount\":259037414,\"availableDataStoragePerServerInTbs\":89.32879692796732,\"availableMemoryPerNodeInGbs\":1054852433,\"availableDbNodePerNodeInGbs\":1822187571,\"minCoreCountPerNode\":585104541,\"availableMemoryInGbs\":409653705,\"minMemoryPerNodeInGbs\":1988160983,\"availableDbNodeStorageInGbs\":618267634,\"minDbNodeStoragePerNodeInGbs\":506888609,\"availableDataStorageInTbs\":2003190846,\"minDataStorageInTbs\":1007403747,\"minimumNodeCount\":1108840022,\"maximumNodeCount\":85653434,\"availableCoreCountPerNode\":775770123,\"computeModel\":\"ECPU\",\"areServerTypesSupported\":false,\"displayName\":\"szfjvfbgofelja\"},\"id\":\"qmqhldvriii\",\"name\":\"jnalghf\",\"type\":\"vtvsexsowueluq\"}],\"nextLink\":\"ahhxvrh\"}") + "{\"value\":[{\"properties\":{\"shapeFamily\":\"kpzi\",\"shapeName\":\"ejzanlfz\",\"availableCoreCount\":1319362662,\"minimumCoreCount\":1937691964,\"runtimeMinimumCoreCount\":187576491,\"coreCountIncrement\":913620687,\"minStorageCount\":1220636721,\"maxStorageCount\":1274938421,\"availableDataStoragePerServerInTbs\":95.66503350475678,\"availableMemoryPerNodeInGbs\":115638191,\"availableDbNodePerNodeInGbs\":1122267125,\"minCoreCountPerNode\":1711524187,\"availableMemoryInGbs\":2101008571,\"minMemoryPerNodeInGbs\":259037414,\"availableDbNodeStorageInGbs\":1689158951,\"minDbNodeStoragePerNodeInGbs\":1438056618,\"availableDataStorageInTbs\":289139579,\"minDataStorageInTbs\":1810862586,\"minimumNodeCount\":755855856,\"maximumNodeCount\":1723984044,\"availableCoreCountPerNode\":427413462,\"computeModel\":\"ECPU\",\"areServerTypesSupported\":true,\"displayName\":\"lwbtlhf\",\"shapeAttributes\":[\"cdhszf\"]},\"id\":\"fbgofeljagrqmqh\",\"name\":\"dvriiiojnal\",\"type\":\"hfkvtvsexsowuel\"},{\"properties\":{\"shapeFamily\":\"hahhxvrhmzkwpj\",\"shapeName\":\"wws\",\"availableCoreCount\":2038816187,\"minimumCoreCount\":1806327837,\"runtimeMinimumCoreCount\":665016103,\"coreCountIncrement\":1926831328,\"minStorageCount\":1227202155,\"maxStorageCount\":2032055045,\"availableDataStoragePerServerInTbs\":4.305473825684814,\"availableMemoryPerNodeInGbs\":649615996,\"availableDbNodePerNodeInGbs\":1485711526,\"minCoreCountPerNode\":2084244471,\"availableMemoryInGbs\":157290009,\"minMemoryPerNodeInGbs\":1889807539,\"availableDbNodeStorageInGbs\":1599924393,\"minDbNodeStoragePerNodeInGbs\":1040551397,\"availableDataStorageInTbs\":1159016951,\"minDataStorageInTbs\":1563611736,\"minimumNodeCount\":1621102365,\"maximumNodeCount\":528928075,\"availableCoreCountPerNode\":1086596152,\"computeModel\":\"OCPU\",\"areServerTypesSupported\":false,\"displayName\":\"z\",\"shapeAttributes\":[\"amvpphoszqzudph\"]},\"id\":\"mvdk\",\"name\":\"wynwcvtbvkayhm\",\"type\":\"nvyq\"},{\"properties\":{\"shapeFamily\":\"kzwpcnpw\",\"shapeName\":\"cjaesgvvs\",\"availableCoreCount\":2127288077,\"minimumCoreCount\":1555062336,\"runtimeMinimumCoreCount\":248286602,\"coreCountIncrement\":1367034748,\"minStorageCount\":923273166,\"maxStorageCount\":589135345,\"availableDataStoragePerServerInTbs\":83.973841997124,\"availableMemoryPerNodeInGbs\":1249464934,\"availableDbNodePerNodeInGbs\":826622083,\"minCoreCountPerNode\":361846951,\"availableMemoryInGbs\":10642389,\"minMemoryPerNodeInGbs\":2087511541,\"availableDbNodeStorageInGbs\":1547666647,\"minDbNodeStoragePerNodeInGbs\":252265287,\"availableDataStorageInTbs\":372421736,\"minDataStorageInTbs\":114396091,\"minimumNodeCount\":1693108330,\"maximumNodeCount\":857980637,\"availableCoreCountPerNode\":1106936227,\"computeModel\":\"OCPU\",\"areServerTypesSupported\":true,\"displayName\":\"psvuoymgc\",\"shapeAttributes\":[\"vezrypqlmfeo\"]},\"id\":\"rqwky\",\"name\":\"kobopgxed\",\"type\":\"owepbqpcrfkb\"}],\"nextLink\":\"csnjvcdwxlpqekft\"}") .toObject(DbSystemShapeListResult.class); - Assertions.assertEquals("lffhmouwqlg", model.value().get(0).properties().shapeFamily()); - Assertions.assertEquals("rfzeey", model.value().get(0).properties().shapeName()); - Assertions.assertEquals(437518937, model.value().get(0).properties().availableCoreCount()); - Assertions.assertEquals(428903037, model.value().get(0).properties().minimumCoreCount()); - Assertions.assertEquals(707940784, model.value().get(0).properties().runtimeMinimumCoreCount()); - Assertions.assertEquals(2103532940, model.value().get(0).properties().coreCountIncrement()); - Assertions.assertEquals(566949412, model.value().get(0).properties().minStorageCount()); - Assertions.assertEquals(1810814701, model.value().get(0).properties().maxStorageCount()); - Assertions.assertEquals(46.895401356243696D, + Assertions.assertEquals("kpzi", model.value().get(0).properties().shapeFamily()); + Assertions.assertEquals("ejzanlfz", model.value().get(0).properties().shapeName()); + Assertions.assertEquals(1319362662, model.value().get(0).properties().availableCoreCount()); + Assertions.assertEquals(1937691964, model.value().get(0).properties().minimumCoreCount()); + Assertions.assertEquals(187576491, model.value().get(0).properties().runtimeMinimumCoreCount()); + Assertions.assertEquals(913620687, model.value().get(0).properties().coreCountIncrement()); + Assertions.assertEquals(1220636721, model.value().get(0).properties().minStorageCount()); + Assertions.assertEquals(1274938421, model.value().get(0).properties().maxStorageCount()); + Assertions.assertEquals(95.66503350475678D, model.value().get(0).properties().availableDataStoragePerServerInTbs()); - Assertions.assertEquals(1692042024, model.value().get(0).properties().availableMemoryPerNodeInGbs()); - Assertions.assertEquals(397813394, model.value().get(0).properties().availableDbNodePerNodeInGbs()); - Assertions.assertEquals(549914749, model.value().get(0).properties().minCoreCountPerNode()); - Assertions.assertEquals(1463319790, model.value().get(0).properties().availableMemoryInGbs()); - Assertions.assertEquals(948234782, model.value().get(0).properties().minMemoryPerNodeInGbs()); - Assertions.assertEquals(1918019278, model.value().get(0).properties().availableDbNodeStorageInGbs()); - Assertions.assertEquals(348550148, model.value().get(0).properties().minDbNodeStoragePerNodeInGbs()); - Assertions.assertEquals(1644492935, model.value().get(0).properties().availableDataStorageInTbs()); - Assertions.assertEquals(1408041355, model.value().get(0).properties().minDataStorageInTbs()); - Assertions.assertEquals(1907297138, model.value().get(0).properties().minimumNodeCount()); - Assertions.assertEquals(299337354, model.value().get(0).properties().maximumNodeCount()); - Assertions.assertEquals(1000390440, model.value().get(0).properties().availableCoreCountPerNode()); + Assertions.assertEquals(115638191, model.value().get(0).properties().availableMemoryPerNodeInGbs()); + Assertions.assertEquals(1122267125, model.value().get(0).properties().availableDbNodePerNodeInGbs()); + Assertions.assertEquals(1711524187, model.value().get(0).properties().minCoreCountPerNode()); + Assertions.assertEquals(2101008571, model.value().get(0).properties().availableMemoryInGbs()); + Assertions.assertEquals(259037414, model.value().get(0).properties().minMemoryPerNodeInGbs()); + Assertions.assertEquals(1689158951, model.value().get(0).properties().availableDbNodeStorageInGbs()); + Assertions.assertEquals(1438056618, model.value().get(0).properties().minDbNodeStoragePerNodeInGbs()); + Assertions.assertEquals(289139579, model.value().get(0).properties().availableDataStorageInTbs()); + Assertions.assertEquals(1810862586, model.value().get(0).properties().minDataStorageInTbs()); + Assertions.assertEquals(755855856, model.value().get(0).properties().minimumNodeCount()); + Assertions.assertEquals(1723984044, model.value().get(0).properties().maximumNodeCount()); + Assertions.assertEquals(427413462, model.value().get(0).properties().availableCoreCountPerNode()); Assertions.assertEquals(ComputeModel.ECPU, model.value().get(0).properties().computeModel()); Assertions.assertTrue(model.value().get(0).properties().areServerTypesSupported()); - Assertions.assertEquals("x", model.value().get(0).properties().displayName()); - Assertions.assertEquals("ahhxvrh", model.nextLink()); + Assertions.assertEquals("lwbtlhf", model.value().get(0).properties().displayName()); + Assertions.assertEquals("cdhszf", model.value().get(0).properties().shapeAttributes().get(0)); + Assertions.assertEquals("csnjvcdwxlpqekft", 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 index e446240f80ba..1a837ba2e9c6 100644 --- 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 @@ -13,31 +13,32 @@ public final class DbSystemShapePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DbSystemShapeProperties model = BinaryData.fromString( - "{\"shapeFamily\":\"wkqnyhg\",\"shapeName\":\"ij\",\"availableCoreCount\":809935790,\"minimumCoreCount\":1921447285,\"runtimeMinimumCoreCount\":2036493170,\"coreCountIncrement\":1649484823,\"minStorageCount\":410549379,\"maxStorageCount\":193774859,\"availableDataStoragePerServerInTbs\":68.72210780329124,\"availableMemoryPerNodeInGbs\":838227429,\"availableDbNodePerNodeInGbs\":1059509232,\"minCoreCountPerNode\":1997907611,\"availableMemoryInGbs\":2111279751,\"minMemoryPerNodeInGbs\":1073194543,\"availableDbNodeStorageInGbs\":387671304,\"minDbNodeStoragePerNodeInGbs\":250834954,\"availableDataStorageInTbs\":911357247,\"minDataStorageInTbs\":1795251983,\"minimumNodeCount\":1597087074,\"maximumNodeCount\":396051915,\"availableCoreCountPerNode\":1047395682,\"computeModel\":\"OCPU\",\"areServerTypesSupported\":false,\"displayName\":\"udurgkakmokz\"}") + "{\"shapeFamily\":\"ouw\",\"shapeName\":\"lgzrfzeeyeb\",\"availableCoreCount\":428903037,\"minimumCoreCount\":707940784,\"runtimeMinimumCoreCount\":2103532940,\"coreCountIncrement\":566949412,\"minStorageCount\":1810814701,\"maxStorageCount\":2014142159,\"availableDataStoragePerServerInTbs\":38.363659968911456,\"availableMemoryPerNodeInGbs\":397813394,\"availableDbNodePerNodeInGbs\":549914749,\"minCoreCountPerNode\":1463319790,\"availableMemoryInGbs\":948234782,\"minMemoryPerNodeInGbs\":1918019278,\"availableDbNodeStorageInGbs\":348550148,\"minDbNodeStoragePerNodeInGbs\":1644492935,\"availableDataStorageInTbs\":1408041355,\"minDataStorageInTbs\":1907297138,\"minimumNodeCount\":299337354,\"maximumNodeCount\":1000390440,\"availableCoreCountPerNode\":753407395,\"computeModel\":\"OCPU\",\"areServerTypesSupported\":false,\"displayName\":\"smwutwbdsrezpd\",\"shapeAttributes\":[\"euyowqkd\",\"ytisibir\"]}") .toObject(DbSystemShapeProperties.class); - Assertions.assertEquals("wkqnyhg", model.shapeFamily()); - Assertions.assertEquals("ij", model.shapeName()); - Assertions.assertEquals(809935790, model.availableCoreCount()); - Assertions.assertEquals(1921447285, model.minimumCoreCount()); - Assertions.assertEquals(2036493170, model.runtimeMinimumCoreCount()); - Assertions.assertEquals(1649484823, model.coreCountIncrement()); - Assertions.assertEquals(410549379, model.minStorageCount()); - Assertions.assertEquals(193774859, model.maxStorageCount()); - Assertions.assertEquals(68.72210780329124D, model.availableDataStoragePerServerInTbs()); - Assertions.assertEquals(838227429, model.availableMemoryPerNodeInGbs()); - Assertions.assertEquals(1059509232, model.availableDbNodePerNodeInGbs()); - Assertions.assertEquals(1997907611, model.minCoreCountPerNode()); - Assertions.assertEquals(2111279751, model.availableMemoryInGbs()); - Assertions.assertEquals(1073194543, model.minMemoryPerNodeInGbs()); - Assertions.assertEquals(387671304, model.availableDbNodeStorageInGbs()); - Assertions.assertEquals(250834954, model.minDbNodeStoragePerNodeInGbs()); - Assertions.assertEquals(911357247, model.availableDataStorageInTbs()); - Assertions.assertEquals(1795251983, model.minDataStorageInTbs()); - Assertions.assertEquals(1597087074, model.minimumNodeCount()); - Assertions.assertEquals(396051915, model.maximumNodeCount()); - Assertions.assertEquals(1047395682, model.availableCoreCountPerNode()); + Assertions.assertEquals("ouw", model.shapeFamily()); + Assertions.assertEquals("lgzrfzeeyeb", model.shapeName()); + Assertions.assertEquals(428903037, model.availableCoreCount()); + Assertions.assertEquals(707940784, model.minimumCoreCount()); + Assertions.assertEquals(2103532940, model.runtimeMinimumCoreCount()); + Assertions.assertEquals(566949412, model.coreCountIncrement()); + Assertions.assertEquals(1810814701, model.minStorageCount()); + Assertions.assertEquals(2014142159, model.maxStorageCount()); + Assertions.assertEquals(38.363659968911456D, model.availableDataStoragePerServerInTbs()); + Assertions.assertEquals(397813394, model.availableMemoryPerNodeInGbs()); + Assertions.assertEquals(549914749, model.availableDbNodePerNodeInGbs()); + Assertions.assertEquals(1463319790, model.minCoreCountPerNode()); + Assertions.assertEquals(948234782, model.availableMemoryInGbs()); + Assertions.assertEquals(1918019278, model.minMemoryPerNodeInGbs()); + Assertions.assertEquals(348550148, model.availableDbNodeStorageInGbs()); + Assertions.assertEquals(1644492935, model.minDbNodeStoragePerNodeInGbs()); + Assertions.assertEquals(1408041355, model.availableDataStorageInTbs()); + Assertions.assertEquals(1907297138, model.minDataStorageInTbs()); + Assertions.assertEquals(299337354, model.minimumNodeCount()); + Assertions.assertEquals(1000390440, model.maximumNodeCount()); + Assertions.assertEquals(753407395, model.availableCoreCountPerNode()); Assertions.assertEquals(ComputeModel.OCPU, model.computeModel()); Assertions.assertFalse(model.areServerTypesSupported()); - Assertions.assertEquals("udurgkakmokz", model.displayName()); + Assertions.assertEquals("smwutwbdsrezpd", model.displayName()); + Assertions.assertEquals("euyowqkd", model.shapeAttributes().get(0)); } } 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 index 69d057cc1492..9bc80cf8162a 100644 --- 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 @@ -22,7 +22,7 @@ public final class DbSystemShapesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"shapeFamily\":\"nyghshxcylhkgmn\",\"shapeName\":\"ghpxycphdr\",\"availableCoreCount\":1014591780,\"minimumCoreCount\":615187266,\"runtimeMinimumCoreCount\":955668651,\"coreCountIncrement\":1407961228,\"minStorageCount\":270472201,\"maxStorageCount\":1784777493,\"availableDataStoragePerServerInTbs\":55.06537502410025,\"availableMemoryPerNodeInGbs\":1567637911,\"availableDbNodePerNodeInGbs\":54426069,\"minCoreCountPerNode\":1319118699,\"availableMemoryInGbs\":718390639,\"minMemoryPerNodeInGbs\":394760267,\"availableDbNodeStorageInGbs\":1842537071,\"minDbNodeStoragePerNodeInGbs\":1055926637,\"availableDataStorageInTbs\":1691318308,\"minDataStorageInTbs\":480915172,\"minimumNodeCount\":355623092,\"maximumNodeCount\":143922465,\"availableCoreCountPerNode\":1770477631,\"computeModel\":\"OCPU\",\"areServerTypesSupported\":false,\"displayName\":\"s\"},\"id\":\"obkdqzrdzsyl\",\"name\":\"llg\",\"type\":\"rc\"}"; + = "{\"properties\":{\"shapeFamily\":\"zmqxucyci\",\"shapeName\":\"oclxiut\",\"availableCoreCount\":387452116,\"minimumCoreCount\":1503510636,\"runtimeMinimumCoreCount\":337524903,\"coreCountIncrement\":1985802258,\"minStorageCount\":336239523,\"maxStorageCount\":2018932667,\"availableDataStoragePerServerInTbs\":77.88850635600404,\"availableMemoryPerNodeInGbs\":200724130,\"availableDbNodePerNodeInGbs\":1356942532,\"minCoreCountPerNode\":1155882652,\"availableMemoryInGbs\":987492533,\"minMemoryPerNodeInGbs\":208870691,\"availableDbNodeStorageInGbs\":437232288,\"minDbNodeStoragePerNodeInGbs\":1136237015,\"availableDataStorageInTbs\":854856644,\"minDataStorageInTbs\":1743289619,\"minimumNodeCount\":847271389,\"maximumNodeCount\":594203198,\"availableCoreCountPerNode\":450731923,\"computeModel\":\"OCPU\",\"areServerTypesSupported\":false,\"displayName\":\"liys\",\"shapeAttributes\":[\"cvmwfauxxepmy\",\"bormcqmiciijqpkz\",\"bojxjmcsmy\",\"wixvcpwnkwywzw\"]},\"id\":\"alickduoi\",\"name\":\"tamtyv\",\"type\":\"kn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,32 +31,34 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - DbSystemShape response - = manager.dbSystemShapes().getWithResponse("ixt", "bta", com.azure.core.util.Context.NONE).getValue(); + DbSystemShape response = manager.dbSystemShapes() + .getWithResponse("lyujlfyoump", "kyeclcdigpta", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("nyghshxcylhkgmn", response.properties().shapeFamily()); - Assertions.assertEquals("ghpxycphdr", response.properties().shapeName()); - Assertions.assertEquals(1014591780, response.properties().availableCoreCount()); - Assertions.assertEquals(615187266, response.properties().minimumCoreCount()); - Assertions.assertEquals(955668651, response.properties().runtimeMinimumCoreCount()); - Assertions.assertEquals(1407961228, response.properties().coreCountIncrement()); - Assertions.assertEquals(270472201, response.properties().minStorageCount()); - Assertions.assertEquals(1784777493, response.properties().maxStorageCount()); - Assertions.assertEquals(55.06537502410025D, response.properties().availableDataStoragePerServerInTbs()); - Assertions.assertEquals(1567637911, response.properties().availableMemoryPerNodeInGbs()); - Assertions.assertEquals(54426069, response.properties().availableDbNodePerNodeInGbs()); - Assertions.assertEquals(1319118699, response.properties().minCoreCountPerNode()); - Assertions.assertEquals(718390639, response.properties().availableMemoryInGbs()); - Assertions.assertEquals(394760267, response.properties().minMemoryPerNodeInGbs()); - Assertions.assertEquals(1842537071, response.properties().availableDbNodeStorageInGbs()); - Assertions.assertEquals(1055926637, response.properties().minDbNodeStoragePerNodeInGbs()); - Assertions.assertEquals(1691318308, response.properties().availableDataStorageInTbs()); - Assertions.assertEquals(480915172, response.properties().minDataStorageInTbs()); - Assertions.assertEquals(355623092, response.properties().minimumNodeCount()); - Assertions.assertEquals(143922465, response.properties().maximumNodeCount()); - Assertions.assertEquals(1770477631, response.properties().availableCoreCountPerNode()); + Assertions.assertEquals("zmqxucyci", response.properties().shapeFamily()); + Assertions.assertEquals("oclxiut", response.properties().shapeName()); + Assertions.assertEquals(387452116, response.properties().availableCoreCount()); + Assertions.assertEquals(1503510636, response.properties().minimumCoreCount()); + Assertions.assertEquals(337524903, response.properties().runtimeMinimumCoreCount()); + Assertions.assertEquals(1985802258, response.properties().coreCountIncrement()); + Assertions.assertEquals(336239523, response.properties().minStorageCount()); + Assertions.assertEquals(2018932667, response.properties().maxStorageCount()); + Assertions.assertEquals(77.88850635600404D, response.properties().availableDataStoragePerServerInTbs()); + Assertions.assertEquals(200724130, response.properties().availableMemoryPerNodeInGbs()); + Assertions.assertEquals(1356942532, response.properties().availableDbNodePerNodeInGbs()); + Assertions.assertEquals(1155882652, response.properties().minCoreCountPerNode()); + Assertions.assertEquals(987492533, response.properties().availableMemoryInGbs()); + Assertions.assertEquals(208870691, response.properties().minMemoryPerNodeInGbs()); + Assertions.assertEquals(437232288, response.properties().availableDbNodeStorageInGbs()); + Assertions.assertEquals(1136237015, response.properties().minDbNodeStoragePerNodeInGbs()); + Assertions.assertEquals(854856644, response.properties().availableDataStorageInTbs()); + Assertions.assertEquals(1743289619, response.properties().minDataStorageInTbs()); + Assertions.assertEquals(847271389, response.properties().minimumNodeCount()); + Assertions.assertEquals(594203198, response.properties().maximumNodeCount()); + Assertions.assertEquals(450731923, response.properties().availableCoreCountPerNode()); Assertions.assertEquals(ComputeModel.OCPU, response.properties().computeModel()); Assertions.assertFalse(response.properties().areServerTypesSupported()); - Assertions.assertEquals("s", response.properties().displayName()); + Assertions.assertEquals("liys", response.properties().displayName()); + Assertions.assertEquals("cvmwfauxxepmy", response.properties().shapeAttributes().get(0)); } } 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 index c214c5ba372f..dbfce9110d51 100644 --- 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 @@ -23,7 +23,7 @@ public final class DbSystemShapesListByLocationMockTests { @Test public void testListByLocation() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"shapeFamily\":\"ruswhv\",\"shapeName\":\"czznvfbycjsxj\",\"availableCoreCount\":649066801,\"minimumCoreCount\":619019093,\"runtimeMinimumCoreCount\":2058612555,\"coreCountIncrement\":1659306080,\"minStorageCount\":1721115521,\"maxStorageCount\":260719859,\"availableDataStoragePerServerInTbs\":45.274637580867186,\"availableMemoryPerNodeInGbs\":1385229994,\"availableDbNodePerNodeInGbs\":1720273649,\"minCoreCountPerNode\":521658697,\"availableMemoryInGbs\":1681386339,\"minMemoryPerNodeInGbs\":1759834581,\"availableDbNodeStorageInGbs\":757674973,\"minDbNodeStoragePerNodeInGbs\":762315907,\"availableDataStorageInTbs\":1605190463,\"minDataStorageInTbs\":1952458367,\"minimumNodeCount\":152942786,\"maximumNodeCount\":589118768,\"availableCoreCountPerNode\":653737679,\"computeModel\":\"OCPU\",\"areServerTypesSupported\":false,\"displayName\":\"nje\"},\"id\":\"gltsxoat\",\"name\":\"tgzpnpb\",\"type\":\"wvefloccsrmoz\"}]}"; + = "{\"value\":[{\"properties\":{\"shapeFamily\":\"pweryekzk\",\"shapeName\":\"hmeott\",\"availableCoreCount\":124804316,\"minimumCoreCount\":585155395,\"runtimeMinimumCoreCount\":375034092,\"coreCountIncrement\":543459562,\"minStorageCount\":1246274609,\"maxStorageCount\":74982519,\"availableDataStoragePerServerInTbs\":80.27398746965785,\"availableMemoryPerNodeInGbs\":36011706,\"availableDbNodePerNodeInGbs\":1921386454,\"minCoreCountPerNode\":570487847,\"availableMemoryInGbs\":910597369,\"minMemoryPerNodeInGbs\":964723311,\"availableDbNodeStorageInGbs\":572984126,\"minDbNodeStoragePerNodeInGbs\":1686524732,\"availableDataStorageInTbs\":2030340848,\"minDataStorageInTbs\":1775688336,\"minimumNodeCount\":1502364938,\"maximumNodeCount\":1874803721,\"availableCoreCountPerNode\":535790621,\"computeModel\":\"OCPU\",\"areServerTypesSupported\":false,\"displayName\":\"ehuxiqhzlraym\",\"shapeAttributes\":[\"lskihmxrfdsajred\"]},\"id\":\"yyshtuwgmevua\",\"name\":\"pwzyi\",\"type\":\"rkgwltxeqip\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,33 +32,34 @@ public void testListByLocation() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.dbSystemShapes().listByLocation("qbsms", "ziqgfuh", com.azure.core.util.Context.NONE); + PagedIterable response = manager.dbSystemShapes() + .listByLocation("rwzawnvs", "cfhzagxnvhycv", "imwrzregzgyufu", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ruswhv", response.iterator().next().properties().shapeFamily()); - Assertions.assertEquals("czznvfbycjsxj", response.iterator().next().properties().shapeName()); - Assertions.assertEquals(649066801, response.iterator().next().properties().availableCoreCount()); - Assertions.assertEquals(619019093, response.iterator().next().properties().minimumCoreCount()); - Assertions.assertEquals(2058612555, response.iterator().next().properties().runtimeMinimumCoreCount()); - Assertions.assertEquals(1659306080, response.iterator().next().properties().coreCountIncrement()); - Assertions.assertEquals(1721115521, response.iterator().next().properties().minStorageCount()); - Assertions.assertEquals(260719859, response.iterator().next().properties().maxStorageCount()); - Assertions.assertEquals(45.274637580867186D, + Assertions.assertEquals("pweryekzk", response.iterator().next().properties().shapeFamily()); + Assertions.assertEquals("hmeott", response.iterator().next().properties().shapeName()); + Assertions.assertEquals(124804316, response.iterator().next().properties().availableCoreCount()); + Assertions.assertEquals(585155395, response.iterator().next().properties().minimumCoreCount()); + Assertions.assertEquals(375034092, response.iterator().next().properties().runtimeMinimumCoreCount()); + Assertions.assertEquals(543459562, response.iterator().next().properties().coreCountIncrement()); + Assertions.assertEquals(1246274609, response.iterator().next().properties().minStorageCount()); + Assertions.assertEquals(74982519, response.iterator().next().properties().maxStorageCount()); + Assertions.assertEquals(80.27398746965785D, response.iterator().next().properties().availableDataStoragePerServerInTbs()); - Assertions.assertEquals(1385229994, response.iterator().next().properties().availableMemoryPerNodeInGbs()); - Assertions.assertEquals(1720273649, response.iterator().next().properties().availableDbNodePerNodeInGbs()); - Assertions.assertEquals(521658697, response.iterator().next().properties().minCoreCountPerNode()); - Assertions.assertEquals(1681386339, response.iterator().next().properties().availableMemoryInGbs()); - Assertions.assertEquals(1759834581, response.iterator().next().properties().minMemoryPerNodeInGbs()); - Assertions.assertEquals(757674973, response.iterator().next().properties().availableDbNodeStorageInGbs()); - Assertions.assertEquals(762315907, response.iterator().next().properties().minDbNodeStoragePerNodeInGbs()); - Assertions.assertEquals(1605190463, response.iterator().next().properties().availableDataStorageInTbs()); - Assertions.assertEquals(1952458367, response.iterator().next().properties().minDataStorageInTbs()); - Assertions.assertEquals(152942786, response.iterator().next().properties().minimumNodeCount()); - Assertions.assertEquals(589118768, response.iterator().next().properties().maximumNodeCount()); - Assertions.assertEquals(653737679, response.iterator().next().properties().availableCoreCountPerNode()); + Assertions.assertEquals(36011706, response.iterator().next().properties().availableMemoryPerNodeInGbs()); + Assertions.assertEquals(1921386454, response.iterator().next().properties().availableDbNodePerNodeInGbs()); + Assertions.assertEquals(570487847, response.iterator().next().properties().minCoreCountPerNode()); + Assertions.assertEquals(910597369, response.iterator().next().properties().availableMemoryInGbs()); + Assertions.assertEquals(964723311, response.iterator().next().properties().minMemoryPerNodeInGbs()); + Assertions.assertEquals(572984126, response.iterator().next().properties().availableDbNodeStorageInGbs()); + Assertions.assertEquals(1686524732, response.iterator().next().properties().minDbNodeStoragePerNodeInGbs()); + Assertions.assertEquals(2030340848, response.iterator().next().properties().availableDataStorageInTbs()); + Assertions.assertEquals(1775688336, response.iterator().next().properties().minDataStorageInTbs()); + Assertions.assertEquals(1502364938, response.iterator().next().properties().minimumNodeCount()); + Assertions.assertEquals(1874803721, response.iterator().next().properties().maximumNodeCount()); + Assertions.assertEquals(535790621, response.iterator().next().properties().availableCoreCountPerNode()); Assertions.assertEquals(ComputeModel.OCPU, response.iterator().next().properties().computeModel()); Assertions.assertFalse(response.iterator().next().properties().areServerTypesSupported()); - Assertions.assertEquals("nje", response.iterator().next().properties().displayName()); + Assertions.assertEquals("ehuxiqhzlraym", response.iterator().next().properties().displayName()); + Assertions.assertEquals("lskihmxrfdsajred", response.iterator().next().properties().shapeAttributes().get(0)); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemUpdatePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemUpdatePropertiesTests.java new file mode 100644 index 000000000000..e1375beab925 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemUpdatePropertiesTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.DbSystemSourceType; +import com.azure.resourcemanager.oracledatabase.models.DbSystemUpdateProperties; +import org.junit.jupiter.api.Assertions; + +public final class DbSystemUpdatePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DbSystemUpdateProperties model + = BinaryData.fromString("{\"source\":\"None\"}").toObject(DbSystemUpdateProperties.class); + Assertions.assertEquals(DbSystemSourceType.NONE, model.source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DbSystemUpdateProperties model = new DbSystemUpdateProperties().withSource(DbSystemSourceType.NONE); + model = BinaryData.fromObject(model).toObject(DbSystemUpdateProperties.class); + Assertions.assertEquals(DbSystemSourceType.NONE, model.source()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemUpdateTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemUpdateTests.java new file mode 100644 index 000000000000..9a3d46cf9bfa --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbSystemUpdateTests.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.DbSystemSourceType; +import com.azure.resourcemanager.oracledatabase.models.DbSystemUpdate; +import com.azure.resourcemanager.oracledatabase.models.DbSystemUpdateProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class DbSystemUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DbSystemUpdate model = BinaryData.fromString( + "{\"zones\":[\"fbkgozxwopdby\",\"p\",\"zqaclna\"],\"tags\":{\"xuuyilflqoiquvr\":\"iygnugjknfsmfctt\",\"tczytqjtwh\":\"hmrnjhvsuj\",\"pddouifamowaziyn\":\"uunfprnjletlxsm\",\"szdtmaajquh\":\"nlqwzdvpiwhx\"},\"properties\":{\"source\":\"None\"}}") + .toObject(DbSystemUpdate.class); + Assertions.assertEquals("fbkgozxwopdby", model.zones().get(0)); + Assertions.assertEquals("iygnugjknfsmfctt", model.tags().get("xuuyilflqoiquvr")); + Assertions.assertEquals(DbSystemSourceType.NONE, model.properties().source()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DbSystemUpdate model = new DbSystemUpdate().withZones(Arrays.asList("fbkgozxwopdby", "p", "zqaclna")) + .withTags(mapOf("xuuyilflqoiquvr", "iygnugjknfsmfctt", "tczytqjtwh", "hmrnjhvsuj", "pddouifamowaziyn", + "uunfprnjletlxsm", "szdtmaajquh", "nlqwzdvpiwhx")) + .withProperties(new DbSystemUpdateProperties().withSource(DbSystemSourceType.NONE)); + model = BinaryData.fromObject(model).toObject(DbSystemUpdate.class); + Assertions.assertEquals("fbkgozxwopdby", model.zones().get(0)); + Assertions.assertEquals("iygnugjknfsmfctt", model.tags().get("xuuyilflqoiquvr")); + Assertions.assertEquals(DbSystemSourceType.NONE, model.properties().source()); + } + + // 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/DbVersionInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionInnerTests.java new file mode 100644 index 000000000000..03f5bbb01b6b --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionInnerTests.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.fluent.models.DbVersionInner; +import org.junit.jupiter.api.Assertions; + +public final class DbVersionInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DbVersionInner model = BinaryData.fromString( + "{\"properties\":{\"version\":\"m\",\"isLatestForMajorVersion\":false,\"isPreviewDbVersion\":true,\"isUpgradeSupported\":false,\"supportsPdb\":true},\"id\":\"ps\",\"name\":\"shck\",\"type\":\"kyjpmspbps\"}") + .toObject(DbVersionInner.class); + Assertions.assertEquals("m", model.properties().version()); + Assertions.assertFalse(model.properties().isLatestForMajorVersion()); + Assertions.assertTrue(model.properties().isPreviewDbVersion()); + Assertions.assertFalse(model.properties().isUpgradeSupported()); + Assertions.assertTrue(model.properties().supportsPdb()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionListResultTests.java new file mode 100644 index 000000000000..506165c440e3 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionListResultTests.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.implementation.models.DbVersionListResult; +import org.junit.jupiter.api.Assertions; + +public final class DbVersionListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DbVersionListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"version\":\"tvczkcnyxr\",\"isLatestForMajorVersion\":false,\"isPreviewDbVersion\":true,\"isUpgradeSupported\":true,\"supportsPdb\":true},\"id\":\"nkvxlxpaglqi\",\"name\":\"bgkc\",\"type\":\"khpzvuqdflv\"}],\"nextLink\":\"iypfp\"}") + .toObject(DbVersionListResult.class); + Assertions.assertEquals("tvczkcnyxr", model.value().get(0).properties().version()); + Assertions.assertFalse(model.value().get(0).properties().isLatestForMajorVersion()); + Assertions.assertTrue(model.value().get(0).properties().isPreviewDbVersion()); + Assertions.assertTrue(model.value().get(0).properties().isUpgradeSupported()); + Assertions.assertTrue(model.value().get(0).properties().supportsPdb()); + Assertions.assertEquals("iypfp", model.nextLink()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionPropertiesTests.java new file mode 100644 index 000000000000..a0b8cd5c1fd2 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionPropertiesTests.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.DbVersionProperties; +import org.junit.jupiter.api.Assertions; + +public final class DbVersionPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DbVersionProperties model = BinaryData.fromString( + "{\"version\":\"df\",\"isLatestForMajorVersion\":true,\"isPreviewDbVersion\":false,\"isUpgradeSupported\":false,\"supportsPdb\":true}") + .toObject(DbVersionProperties.class); + Assertions.assertEquals("df", model.version()); + Assertions.assertTrue(model.isLatestForMajorVersion()); + Assertions.assertFalse(model.isPreviewDbVersion()); + Assertions.assertFalse(model.isUpgradeSupported()); + Assertions.assertTrue(model.supportsPdb()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsGetWithResponseMockTests.java new file mode 100644 index 000000000000..83b2d1bc6d7e --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsGetWithResponseMockTests.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.DbVersion; +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 DbVersionsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"version\":\"bfe\",\"isLatestForMajorVersion\":true,\"isPreviewDbVersion\":true,\"isUpgradeSupported\":true,\"supportsPdb\":false},\"id\":\"qlmfaewz\",\"name\":\"iudjp\",\"type\":\"pqht\"}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + DbVersion response + = manager.dbVersions().getWithResponse("x", "qvn", com.azure.core.util.Context.NONE).getValue(); + + Assertions.assertEquals("bfe", response.properties().version()); + Assertions.assertTrue(response.properties().isLatestForMajorVersion()); + Assertions.assertTrue(response.properties().isPreviewDbVersion()); + Assertions.assertTrue(response.properties().isUpgradeSupported()); + Assertions.assertFalse(response.properties().supportsPdb()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsListByLocationMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsListByLocationMockTests.java new file mode 100644 index 000000000000..af212b19ae4e --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DbVersionsListByLocationMockTests.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.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.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.BaseDbSystemShapes; +import com.azure.resourcemanager.oracledatabase.models.DbVersion; +import com.azure.resourcemanager.oracledatabase.models.ShapeFamilyType; +import com.azure.resourcemanager.oracledatabase.models.StorageManagementType; +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 DbVersionsListByLocationMockTests { + @Test + public void testListByLocation() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"version\":\"m\",\"isLatestForMajorVersion\":false,\"isPreviewDbVersion\":false,\"isUpgradeSupported\":false,\"supportsPdb\":false},\"id\":\"zfbmjxuv\",\"name\":\"ipfdvhaxdvwzaehp\",\"type\":\"hthdklmvetatlakf\"}]}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.dbVersions() + .listByLocation("qhnmhk", BaseDbSystemShapes.VMSTANDARD_X86, "zsdsuxheqdgcrux", StorageManagementType.LVM, + true, true, ShapeFamilyType.SINGLE_NODE, com.azure.core.util.Context.NONE); + + Assertions.assertEquals("m", response.iterator().next().properties().version()); + Assertions.assertFalse(response.iterator().next().properties().isLatestForMajorVersion()); + Assertions.assertFalse(response.iterator().next().properties().isPreviewDbVersion()); + Assertions.assertFalse(response.iterator().next().properties().isUpgradeSupported()); + Assertions.assertFalse(response.iterator().next().properties().supportsPdb()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DefinedFileSystemConfigurationTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DefinedFileSystemConfigurationTests.java index ce55638508bc..1e97f507569e 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DefinedFileSystemConfigurationTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DefinedFileSystemConfigurationTests.java @@ -11,13 +11,12 @@ public final class DefinedFileSystemConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DefinedFileSystemConfiguration model = BinaryData - .fromString( - "{\"isBackupPartition\":false,\"isResizable\":true,\"minSizeGb\":830818996,\"mountPoint\":\"rvjx\"}") + DefinedFileSystemConfiguration model = BinaryData.fromString( + "{\"isBackupPartition\":true,\"isResizable\":true,\"minSizeGb\":1729684503,\"mountPoint\":\"qvyxlwhzlsicoho\"}") .toObject(DefinedFileSystemConfiguration.class); - Assertions.assertFalse(model.isBackupPartition()); + Assertions.assertTrue(model.isBackupPartition()); Assertions.assertTrue(model.isResizable()); - Assertions.assertEquals(830818996, model.minSizeGb()); - Assertions.assertEquals("rvjx", model.mountPoint()); + Assertions.assertEquals(1729684503, model.minSizeGb()); + Assertions.assertEquals("qvyxlwhzlsicoho", model.mountPoint()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DisasterRecoveryConfigurationDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DisasterRecoveryConfigurationDetailsTests.java index dfb0beae8504..4848bb5ce39c 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DisasterRecoveryConfigurationDetailsTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DisasterRecoveryConfigurationDetailsTests.java @@ -14,10 +14,10 @@ public final class DisasterRecoveryConfigurationDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DisasterRecoveryConfigurationDetails model = BinaryData.fromString( - "{\"disasterRecoveryType\":\"BackupBased\",\"timeSnapshotStandbyEnabledTill\":\"2021-03-12T17:23:33Z\",\"isSnapshotStandby\":false,\"isReplicateAutomaticBackups\":true}") + "{\"disasterRecoveryType\":\"BackupBased\",\"timeSnapshotStandbyEnabledTill\":\"2021-09-06T21:17:56Z\",\"isSnapshotStandby\":false,\"isReplicateAutomaticBackups\":true}") .toObject(DisasterRecoveryConfigurationDetails.class); Assertions.assertEquals(DisasterRecoveryType.BACKUP_BASED, model.disasterRecoveryType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-12T17:23:33Z"), model.timeSnapshotStandbyEnabledTill()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-06T21:17:56Z"), model.timeSnapshotStandbyEnabledTill()); Assertions.assertFalse(model.isSnapshotStandby()); Assertions.assertTrue(model.isReplicateAutomaticBackups()); } @@ -26,12 +26,12 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { DisasterRecoveryConfigurationDetails model = new DisasterRecoveryConfigurationDetails().withDisasterRecoveryType(DisasterRecoveryType.BACKUP_BASED) - .withTimeSnapshotStandbyEnabledTill(OffsetDateTime.parse("2021-03-12T17:23:33Z")) + .withTimeSnapshotStandbyEnabledTill(OffsetDateTime.parse("2021-09-06T21:17:56Z")) .withIsSnapshotStandby(false) .withIsReplicateAutomaticBackups(true); model = BinaryData.fromObject(model).toObject(DisasterRecoveryConfigurationDetails.class); Assertions.assertEquals(DisasterRecoveryType.BACKUP_BASED, model.disasterRecoveryType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-12T17:23:33Z"), model.timeSnapshotStandbyEnabledTill()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-06T21:17:56Z"), model.timeSnapshotStandbyEnabledTill()); Assertions.assertFalse(model.isSnapshotStandby()); Assertions.assertTrue(model.isReplicateAutomaticBackups()); } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsForwardingRuleTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsForwardingRuleTests.java new file mode 100644 index 000000000000..382738fed3b5 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/DnsForwardingRuleTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.DnsForwardingRule; +import org.junit.jupiter.api.Assertions; + +public final class DnsForwardingRuleTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DnsForwardingRule model + = BinaryData.fromString("{\"domainNames\":\"jqepqwhi\",\"forwardingIpAddress\":\"monstshiyxgve\"}") + .toObject(DnsForwardingRule.class); + Assertions.assertEquals("jqepqwhi", model.domainNames()); + Assertions.assertEquals("monstshiyxgve", model.forwardingIpAddress()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + DnsForwardingRule model + = new DnsForwardingRule().withDomainNames("jqepqwhi").withForwardingIpAddress("monstshiyxgve"); + model = BinaryData.fromObject(model).toObject(DnsForwardingRule.class); + Assertions.assertEquals("jqepqwhi", model.domainNames()); + Assertions.assertEquals("monstshiyxgve", model.forwardingIpAddress()); + } +} 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 index 276212e4876f..ebb99fc53bf0 100644 --- 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 @@ -14,14 +14,14 @@ public final class DnsPrivateViewInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DnsPrivateViewInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"kwpjgwwspughftqs\",\"displayName\":\"hqxujxukndxdi\",\"isProtected\":true,\"lifecycleState\":\"Deleted\",\"self\":\"guufzd\",\"timeCreated\":\"2021-05-17T16:17:48Z\",\"timeUpdated\":\"2021-04-01T21:46:18Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"ihwhbotzingamvpp\",\"name\":\"o\",\"type\":\"zqzudph\"}") + "{\"properties\":{\"ocid\":\"htjsying\",\"displayName\":\"fq\",\"isProtected\":true,\"lifecycleState\":\"Active\",\"self\":\"tdhtmdvyp\",\"timeCreated\":\"2021-01-15T06:50:48Z\",\"timeUpdated\":\"2021-01-21T23:13:20Z\",\"provisioningState\":\"Canceled\"},\"id\":\"zywkb\",\"name\":\"rryuzhlhkjo\",\"type\":\"rvqqaatj\"}") .toObject(DnsPrivateViewInner.class); - Assertions.assertEquals("kwpjgwwspughftqs", model.properties().ocid()); - Assertions.assertEquals("hqxujxukndxdi", model.properties().displayName()); + Assertions.assertEquals("htjsying", model.properties().ocid()); + Assertions.assertEquals("fq", model.properties().displayName()); Assertions.assertTrue(model.properties().isProtected()); - Assertions.assertEquals(DnsPrivateViewsLifecycleState.DELETED, model.properties().lifecycleState()); - Assertions.assertEquals("guufzd", model.properties().self()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-17T16:17:48Z"), model.properties().timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-01T21:46:18Z"), model.properties().timeUpdated()); + Assertions.assertEquals(DnsPrivateViewsLifecycleState.ACTIVE, model.properties().lifecycleState()); + Assertions.assertEquals("tdhtmdvyp", model.properties().self()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-15T06:50:48Z"), model.properties().timeCreated()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T23:13:20Z"), model.properties().timeUpdated()); } } 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 index 4e25339d3d04..f5cf093766a7 100644 --- 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 @@ -14,18 +14,18 @@ public final class DnsPrivateViewListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DnsPrivateViewListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"ajguqf\",\"displayName\":\"wygzlvdnkfxusem\",\"isProtected\":false,\"lifecycleState\":\"Updating\",\"self\":\"rmuhapfcq\",\"timeCreated\":\"2021-12-08T21:08:33Z\",\"timeUpdated\":\"2021-11-26T12:11:57Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"vpsvuoymgcce\",\"name\":\"vezrypqlmfeo\",\"type\":\"erqwkyhkobopg\"},{\"properties\":{\"ocid\":\"dkow\",\"displayName\":\"pbqpcrfkbwccsn\",\"isProtected\":true,\"lifecycleState\":\"Deleted\",\"self\":\"dw\",\"timeCreated\":\"2021-06-07T08:17:55Z\",\"timeUpdated\":\"2021-03-25T16:45:49Z\",\"provisioningState\":\"Canceled\"},\"id\":\"ftnkhtj\",\"name\":\"y\",\"type\":\"ngwfqatm\"}],\"nextLink\":\"htmdvy\"}") + "{\"value\":[{\"properties\":{\"ocid\":\"vvyhg\",\"displayName\":\"opbyrqufegxu\",\"isProtected\":false,\"lifecycleState\":\"Active\",\"self\":\"fbn\",\"timeCreated\":\"2021-09-27T14:47:09Z\",\"timeUpdated\":\"2021-08-15T03:14:49Z\",\"provisioningState\":\"Canceled\"},\"id\":\"p\",\"name\":\"ngitvgbmhrixkwm\",\"type\":\"ijejvegrhbpn\"},{\"properties\":{\"ocid\":\"xexccbdreaxhcexd\",\"displayName\":\"rvqahqkghtpwi\",\"isProtected\":false,\"lifecycleState\":\"Deleting\",\"self\":\"yjsvfyc\",\"timeCreated\":\"2021-05-05T00:18:03Z\",\"timeUpdated\":\"2021-07-22T08:07:37Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"owvrvmtgjqppyos\",\"name\":\"ronzmyhgfip\",\"type\":\"sxkm\"}],\"nextLink\":\"a\"}") .toObject(DnsPrivateViewListResult.class); - Assertions.assertEquals("ajguqf", model.value().get(0).properties().ocid()); - Assertions.assertEquals("wygzlvdnkfxusem", model.value().get(0).properties().displayName()); + Assertions.assertEquals("vvyhg", model.value().get(0).properties().ocid()); + Assertions.assertEquals("opbyrqufegxu", model.value().get(0).properties().displayName()); Assertions.assertFalse(model.value().get(0).properties().isProtected()); - Assertions.assertEquals(DnsPrivateViewsLifecycleState.UPDATING, + Assertions.assertEquals(DnsPrivateViewsLifecycleState.ACTIVE, model.value().get(0).properties().lifecycleState()); - Assertions.assertEquals("rmuhapfcq", model.value().get(0).properties().self()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T21:08:33Z"), + Assertions.assertEquals("fbn", model.value().get(0).properties().self()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-27T14:47:09Z"), model.value().get(0).properties().timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-26T12:11:57Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-08-15T03:14:49Z"), model.value().get(0).properties().timeUpdated()); - Assertions.assertEquals("htmdvy", model.nextLink()); + Assertions.assertEquals("a", 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 index e06ea1511690..2e9011e3e7ad 100644 --- 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 @@ -14,14 +14,14 @@ public final class DnsPrivateViewPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DnsPrivateViewProperties model = BinaryData.fromString( - "{\"ocid\":\"amvdkfwynwcvtbv\",\"displayName\":\"ayhmtnvyqiatkz\",\"isProtected\":false,\"lifecycleState\":\"Updating\",\"self\":\"npwzcjaes\",\"timeCreated\":\"2021-02-13T02:39:36Z\",\"timeUpdated\":\"2021-09-24T01:03:33Z\",\"provisioningState\":\"Canceled\"}") + "{\"ocid\":\"nrvgoupmfiibfgg\",\"displayName\":\"ioolvrwxkvtkkgll\",\"isProtected\":true,\"lifecycleState\":\"Deleting\",\"self\":\"ygvjayvblmh\",\"timeCreated\":\"2021-03-17T12:51:03Z\",\"timeUpdated\":\"2021-07-26T11:14:50Z\",\"provisioningState\":\"Succeeded\"}") .toObject(DnsPrivateViewProperties.class); - Assertions.assertEquals("amvdkfwynwcvtbv", model.ocid()); - Assertions.assertEquals("ayhmtnvyqiatkz", model.displayName()); - Assertions.assertFalse(model.isProtected()); - Assertions.assertEquals(DnsPrivateViewsLifecycleState.UPDATING, model.lifecycleState()); - Assertions.assertEquals("npwzcjaes", model.self()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-13T02:39:36Z"), model.timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-24T01:03:33Z"), model.timeUpdated()); + Assertions.assertEquals("nrvgoupmfiibfgg", model.ocid()); + Assertions.assertEquals("ioolvrwxkvtkkgll", model.displayName()); + Assertions.assertTrue(model.isProtected()); + Assertions.assertEquals(DnsPrivateViewsLifecycleState.DELETING, model.lifecycleState()); + Assertions.assertEquals("ygvjayvblmh", model.self()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-17T12:51:03Z"), model.timeCreated()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-26T11:14:50Z"), model.timeUpdated()); } } 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 index fd9ab26d5cd8..8da3c09349cb 100644 --- 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 @@ -22,7 +22,7 @@ public final class DnsPrivateViewsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"ocid\":\"czezkhhlt\",\"displayName\":\"jadhqoawj\",\"isProtected\":true,\"lifecycleState\":\"Deleting\",\"self\":\"ueayfbpcmsplb\",\"timeCreated\":\"2021-05-18T23:27:10Z\",\"timeUpdated\":\"2021-05-11T05:49:59Z\",\"provisioningState\":\"Canceled\"},\"id\":\"thwmgnmbsc\",\"name\":\"bxigdhxiidlo\",\"type\":\"edbw\"}"; + = "{\"properties\":{\"ocid\":\"labnsmjkwynq\",\"displayName\":\"aekqsykvwj\",\"isProtected\":true,\"lifecycleState\":\"Deleted\",\"self\":\"kev\",\"timeCreated\":\"2021-06-30T20:04:20Z\",\"timeUpdated\":\"2021-09-09T16:32:42Z\",\"provisioningState\":\"Canceled\"},\"id\":\"rspxklur\",\"name\":\"clf\",\"type\":\"xa\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DnsPrivateView response = manager.dnsPrivateViews() - .getWithResponse("qagwwrxaomz", "sgl", com.azure.core.util.Context.NONE) + .getWithResponse("gzdyimsfayorp", "avkjog", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("czezkhhlt", response.properties().ocid()); - Assertions.assertEquals("jadhqoawj", response.properties().displayName()); + Assertions.assertEquals("labnsmjkwynq", response.properties().ocid()); + Assertions.assertEquals("aekqsykvwj", response.properties().displayName()); Assertions.assertTrue(response.properties().isProtected()); - Assertions.assertEquals(DnsPrivateViewsLifecycleState.DELETING, response.properties().lifecycleState()); - Assertions.assertEquals("ueayfbpcmsplb", response.properties().self()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-18T23:27:10Z"), response.properties().timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-11T05:49:59Z"), response.properties().timeUpdated()); + Assertions.assertEquals(DnsPrivateViewsLifecycleState.DELETED, response.properties().lifecycleState()); + Assertions.assertEquals("kev", response.properties().self()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T20:04:20Z"), response.properties().timeCreated()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T16:32:42Z"), response.properties().timeUpdated()); } } 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 index 0c3271244335..24ba6fe7d237 100644 --- 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 @@ -23,7 +23,7 @@ public final class DnsPrivateViewsListByLocationMockTests { @Test public void testListByLocation() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"xubmdnafcbqw\",\"displayName\":\"e\",\"isProtected\":true,\"lifecycleState\":\"Active\",\"self\":\"laqacigele\",\"timeCreated\":\"2021-11-13T22:21:28Z\",\"timeUpdated\":\"2021-10-21T16:22:49Z\",\"provisioningState\":\"Canceled\"},\"id\":\"vwzkj\",\"name\":\"pwbeonr\",\"type\":\"kwzdqybxcea\"}]}"; + = "{\"value\":[{\"properties\":{\"ocid\":\"ytzpo\",\"displayName\":\"ewxigpxvk\",\"isProtected\":false,\"lifecycleState\":\"Deleted\",\"self\":\"upxvpifd\",\"timeCreated\":\"2021-06-19T22:08:59Z\",\"timeUpdated\":\"2021-10-06T15:52:18Z\",\"provisioningState\":\"Failed\"},\"id\":\"yzeyuubeid\",\"name\":\"zlfytoit\",\"type\":\"gygvfltgvdiho\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testListByLocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.dnsPrivateViews().listByLocation("pyqy", com.azure.core.util.Context.NONE); + = manager.dnsPrivateViews().listByLocation("n", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xubmdnafcbqw", response.iterator().next().properties().ocid()); - Assertions.assertEquals("e", response.iterator().next().properties().displayName()); - Assertions.assertTrue(response.iterator().next().properties().isProtected()); - Assertions.assertEquals(DnsPrivateViewsLifecycleState.ACTIVE, + Assertions.assertEquals("ytzpo", response.iterator().next().properties().ocid()); + Assertions.assertEquals("ewxigpxvk", response.iterator().next().properties().displayName()); + Assertions.assertFalse(response.iterator().next().properties().isProtected()); + Assertions.assertEquals(DnsPrivateViewsLifecycleState.DELETED, response.iterator().next().properties().lifecycleState()); - Assertions.assertEquals("laqacigele", response.iterator().next().properties().self()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-13T22:21:28Z"), + Assertions.assertEquals("upxvpifd", response.iterator().next().properties().self()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T22:08:59Z"), response.iterator().next().properties().timeCreated()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T16:22:49Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-10-06T15:52:18Z"), response.iterator().next().properties().timeUpdated()); } } 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 index 8c50eedab5f2..f5f8468d3b3e 100644 --- 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 @@ -15,16 +15,16 @@ public final class DnsPrivateZoneInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DnsPrivateZoneInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"ikdgszywkbir\",\"isProtected\":true,\"lifecycleState\":\"Active\",\"self\":\"zh\",\"serial\":1361399231,\"version\":\"kj\",\"viewId\":\"rvqqaatj\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-02-19T03:34:17Z\",\"provisioningState\":\"Canceled\"},\"id\":\"upmfiibfg\",\"name\":\"jioolvrwxk\",\"type\":\"tkkgllqwjy\"}") + "{\"properties\":{\"ocid\":\"rrjreafxtsgu\",\"isProtected\":false,\"lifecycleState\":\"Updating\",\"self\":\"glikkxwslolb\",\"serial\":1671943968,\"version\":\"vuzlm\",\"viewId\":\"elfk\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-02-21T20:32:58Z\",\"provisioningState\":\"Failed\"},\"id\":\"pwjxezn\",\"name\":\"igbrnjw\",\"type\":\"wkpnbsaz\"}") .toObject(DnsPrivateZoneInner.class); - Assertions.assertEquals("ikdgszywkbir", model.properties().ocid()); - Assertions.assertTrue(model.properties().isProtected()); - Assertions.assertEquals(DnsPrivateZonesLifecycleState.ACTIVE, model.properties().lifecycleState()); - Assertions.assertEquals("zh", model.properties().self()); - Assertions.assertEquals(1361399231, model.properties().serial()); - Assertions.assertEquals("kj", model.properties().version()); - Assertions.assertEquals("rvqqaatj", model.properties().viewId()); + Assertions.assertEquals("rrjreafxtsgu", model.properties().ocid()); + Assertions.assertFalse(model.properties().isProtected()); + Assertions.assertEquals(DnsPrivateZonesLifecycleState.UPDATING, model.properties().lifecycleState()); + Assertions.assertEquals("glikkxwslolb", model.properties().self()); + Assertions.assertEquals(1671943968, model.properties().serial()); + Assertions.assertEquals("vuzlm", model.properties().version()); + Assertions.assertEquals("elfk", model.properties().viewId()); Assertions.assertEquals(ZoneType.SECONDARY, model.properties().zoneType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T03:34:17Z"), model.properties().timeCreated()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-21T20:32:58Z"), model.properties().timeCreated()); } } 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 index f7234853eaa4..42d0545dcb33 100644 --- 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 @@ -15,19 +15,19 @@ public final class DnsPrivateZoneListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DnsPrivateZoneListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"dn\",\"isProtected\":true,\"lifecycleState\":\"Updating\",\"self\":\"vgbmhr\",\"serial\":731430664,\"version\":\"kw\",\"viewId\":\"ijejvegrhbpn\",\"zoneType\":\"Primary\",\"timeCreated\":\"2020-12-21T03:38:52Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"cbdreaxhcexd\",\"name\":\"rvqahqkghtpwi\",\"type\":\"nhyjsv\"}],\"nextLink\":\"cxzbfvoowvr\"}") + "{\"value\":[{\"properties\":{\"ocid\":\"bre\",\"isProtected\":true,\"lifecycleState\":\"Deleted\",\"self\":\"aysjkixqtnqttez\",\"serial\":880648467,\"version\":\"fffiak\",\"viewId\":\"pqqmted\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-09-01T21:15:43Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"hyeozphvwau\",\"name\":\"qncygupkvi\",\"type\":\"mdscwxqupev\"},{\"properties\":{\"ocid\":\"f\",\"isProtected\":true,\"lifecycleState\":\"Updating\",\"self\":\"txhojujb\",\"serial\":1872993536,\"version\":\"elmcuvhixbjxyfw\",\"viewId\":\"lrcoolsttpki\",\"zoneType\":\"Primary\",\"timeCreated\":\"2021-07-11T18:43:52Z\",\"provisioningState\":\"Failed\"},\"id\":\"jrywvtylbfpnc\",\"name\":\"rd\",\"type\":\"iwii\"},{\"properties\":{\"ocid\":\"tywubxcbihwq\",\"isProtected\":false,\"lifecycleState\":\"Active\",\"self\":\"dntwjchrdgo\",\"serial\":916840280,\"version\":\"xum\",\"viewId\":\"ton\",\"zoneType\":\"Primary\",\"timeCreated\":\"2021-01-26T20:44:07Z\",\"provisioningState\":\"Canceled\"},\"id\":\"dfdlwggyts\",\"name\":\"wtovvtgsein\",\"type\":\"fiufx\"},{\"properties\":{\"ocid\":\"npirgnepttw\",\"isProtected\":false,\"lifecycleState\":\"Deleting\",\"self\":\"niffcdmqnroj\",\"serial\":803649154,\"version\":\"ijnkrxfrdd\",\"viewId\":\"ratiz\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-06-27T16:40:41Z\",\"provisioningState\":\"Canceled\"},\"id\":\"xi\",\"name\":\"tozqyzhftwesgo\",\"type\":\"czhonnxkr\"}],\"nextLink\":\"nyhmossxkkgthr\"}") .toObject(DnsPrivateZoneListResult.class); - Assertions.assertEquals("dn", model.value().get(0).properties().ocid()); + Assertions.assertEquals("bre", model.value().get(0).properties().ocid()); Assertions.assertTrue(model.value().get(0).properties().isProtected()); - Assertions.assertEquals(DnsPrivateZonesLifecycleState.UPDATING, + Assertions.assertEquals(DnsPrivateZonesLifecycleState.DELETED, model.value().get(0).properties().lifecycleState()); - Assertions.assertEquals("vgbmhr", model.value().get(0).properties().self()); - Assertions.assertEquals(731430664, model.value().get(0).properties().serial()); - Assertions.assertEquals("kw", model.value().get(0).properties().version()); - Assertions.assertEquals("ijejvegrhbpn", model.value().get(0).properties().viewId()); - Assertions.assertEquals(ZoneType.PRIMARY, model.value().get(0).properties().zoneType()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-21T03:38:52Z"), + Assertions.assertEquals("aysjkixqtnqttez", model.value().get(0).properties().self()); + Assertions.assertEquals(880648467, model.value().get(0).properties().serial()); + Assertions.assertEquals("fffiak", model.value().get(0).properties().version()); + Assertions.assertEquals("pqqmted", model.value().get(0).properties().viewId()); + Assertions.assertEquals(ZoneType.SECONDARY, model.value().get(0).properties().zoneType()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-01T21:15:43Z"), model.value().get(0).properties().timeCreated()); - Assertions.assertEquals("cxzbfvoowvr", model.nextLink()); + Assertions.assertEquals("nyhmossxkkgthr", 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 index 538351b7f3ff..dba87af67818 100644 --- 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 @@ -15,16 +15,16 @@ public final class DnsPrivateZonePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DnsPrivateZoneProperties model = BinaryData.fromString( - "{\"ocid\":\"vjayvblmhvkzu\",\"isProtected\":false,\"lifecycleState\":\"Active\",\"self\":\"vvyhg\",\"serial\":954108232,\"version\":\"pbyrqufegxu\",\"viewId\":\"zfbn\",\"zoneType\":\"Primary\",\"timeCreated\":\"2021-08-15T03:14:49Z\",\"provisioningState\":\"Canceled\"}") + "{\"ocid\":\"jjoqkagf\",\"isProtected\":false,\"lifecycleState\":\"Active\",\"self\":\"ttaugzxnfaazp\",\"serial\":2103578354,\"version\":\"tnkdmkqj\",\"viewId\":\"wuenvr\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-03-08T18:35:57Z\",\"provisioningState\":\"Canceled\"}") .toObject(DnsPrivateZoneProperties.class); - Assertions.assertEquals("vjayvblmhvkzu", model.ocid()); + Assertions.assertEquals("jjoqkagf", model.ocid()); Assertions.assertFalse(model.isProtected()); Assertions.assertEquals(DnsPrivateZonesLifecycleState.ACTIVE, model.lifecycleState()); - Assertions.assertEquals("vvyhg", model.self()); - Assertions.assertEquals(954108232, model.serial()); - Assertions.assertEquals("pbyrqufegxu", model.version()); - Assertions.assertEquals("zfbn", model.viewId()); - Assertions.assertEquals(ZoneType.PRIMARY, model.zoneType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-15T03:14:49Z"), model.timeCreated()); + Assertions.assertEquals("ttaugzxnfaazp", model.self()); + Assertions.assertEquals(2103578354, model.serial()); + Assertions.assertEquals("tnkdmkqj", model.version()); + Assertions.assertEquals("wuenvr", model.viewId()); + Assertions.assertEquals(ZoneType.SECONDARY, model.zoneType()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-08T18:35:57Z"), model.timeCreated()); } } 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 index df1f3e4de117..705256fd819b 100644 --- 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 @@ -23,7 +23,7 @@ public final class DnsPrivateZonesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"ocid\":\"azisgyk\",\"isProtected\":false,\"lifecycleState\":\"Updating\",\"self\":\"mvanbwzo\",\"serial\":717470407,\"version\":\"nrxxbsojklin\",\"viewId\":\"dptysprqs\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-03-17T04:51:43Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"pslsvjg\",\"name\":\"liufiqwoyxq\",\"type\":\"apcohhouc\"}"; + = "{\"properties\":{\"ocid\":\"naie\",\"isProtected\":false,\"lifecycleState\":\"Deleted\",\"self\":\"h\",\"serial\":668159944,\"version\":\"ndnelqkaadlknw\",\"viewId\":\"anniyopetxivcnr\",\"zoneType\":\"Primary\",\"timeCreated\":\"2021-06-10T00:54:20Z\",\"provisioningState\":\"Succeeded\"},\"id\":\"aephblkw\",\"name\":\"pat\",\"type\":\"bqsdtcjbctvi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DnsPrivateZone response = manager.dnsPrivateZones() - .getWithResponse("xcptsoqfyiaseqc", "krtt", com.azure.core.util.Context.NONE) + .getWithResponse("nkrxwetwkdrcy", "ucpcunnuzdqumoen", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("azisgyk", response.properties().ocid()); + Assertions.assertEquals("naie", response.properties().ocid()); Assertions.assertFalse(response.properties().isProtected()); - Assertions.assertEquals(DnsPrivateZonesLifecycleState.UPDATING, response.properties().lifecycleState()); - Assertions.assertEquals("mvanbwzo", response.properties().self()); - Assertions.assertEquals(717470407, response.properties().serial()); - Assertions.assertEquals("nrxxbsojklin", response.properties().version()); - Assertions.assertEquals("dptysprqs", response.properties().viewId()); - Assertions.assertEquals(ZoneType.SECONDARY, response.properties().zoneType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-17T04:51:43Z"), response.properties().timeCreated()); + Assertions.assertEquals(DnsPrivateZonesLifecycleState.DELETED, response.properties().lifecycleState()); + Assertions.assertEquals("h", response.properties().self()); + Assertions.assertEquals(668159944, response.properties().serial()); + Assertions.assertEquals("ndnelqkaadlknw", response.properties().version()); + Assertions.assertEquals("anniyopetxivcnr", response.properties().viewId()); + Assertions.assertEquals(ZoneType.PRIMARY, response.properties().zoneType()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T00:54:20Z"), response.properties().timeCreated()); } } 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 index 18086ee6aa5c..fb67fb273a40 100644 --- 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 @@ -24,7 +24,7 @@ public final class DnsPrivateZonesListByLocationMockTests { @Test public void testListByLocation() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"zdcgdzbenr\",\"isProtected\":false,\"lifecycleState\":\"Creating\",\"self\":\"awetzq\",\"serial\":1254127143,\"version\":\"tjwfljhznamtua\",\"viewId\":\"zwcjjncqtj\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-03-13T06:57:20Z\",\"provisioningState\":\"Failed\"},\"id\":\"bgatzu\",\"name\":\"vbxngr\",\"type\":\"bwggahtt\"}]}"; + = "{\"value\":[{\"properties\":{\"ocid\":\"it\",\"isProtected\":false,\"lifecycleState\":\"Creating\",\"self\":\"zvbrzcdbanfzndsc\",\"serial\":1628332910,\"version\":\"xeatkd\",\"viewId\":\"wnrdjyibqbnaom\",\"zoneType\":\"Secondary\",\"timeCreated\":\"2021-05-24T04:18:25Z\",\"provisioningState\":\"Canceled\"},\"id\":\"hmaxljalfi\",\"name\":\"cjmobcanc\",\"type\":\"exxqcwg\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,18 +34,18 @@ public void testListByLocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.dnsPrivateZones().listByLocation("pqojxcx", com.azure.core.util.Context.NONE); + = manager.dnsPrivateZones().listByLocation("uzqymtuowog", com.azure.core.util.Context.NONE); - Assertions.assertEquals("zdcgdzbenr", response.iterator().next().properties().ocid()); + Assertions.assertEquals("it", response.iterator().next().properties().ocid()); Assertions.assertFalse(response.iterator().next().properties().isProtected()); Assertions.assertEquals(DnsPrivateZonesLifecycleState.CREATING, response.iterator().next().properties().lifecycleState()); - Assertions.assertEquals("awetzq", response.iterator().next().properties().self()); - Assertions.assertEquals(1254127143, response.iterator().next().properties().serial()); - Assertions.assertEquals("tjwfljhznamtua", response.iterator().next().properties().version()); - Assertions.assertEquals("zwcjjncqtj", response.iterator().next().properties().viewId()); + Assertions.assertEquals("zvbrzcdbanfzndsc", response.iterator().next().properties().self()); + Assertions.assertEquals(1628332910, response.iterator().next().properties().serial()); + Assertions.assertEquals("xeatkd", response.iterator().next().properties().version()); + Assertions.assertEquals("wnrdjyibqbnaom", response.iterator().next().properties().viewId()); Assertions.assertEquals(ZoneType.SECONDARY, response.iterator().next().properties().zoneType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-13T06:57:20Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-05-24T04:18:25Z"), response.iterator().next().properties().timeCreated()); } } 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 index 7034863f8139..1612bd222db0 100644 --- 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 @@ -11,7 +11,7 @@ public final class EstimatedPatchingTimeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EstimatedPatchingTime model = BinaryData.fromString( - "{\"estimatedDbServerPatchingTime\":626726522,\"estimatedNetworkSwitchesPatchingTime\":1997522468,\"estimatedStorageServerPatchingTime\":523665642,\"totalEstimatedPatchingTime\":665345383}") + "{\"estimatedDbServerPatchingTime\":1536043390,\"estimatedNetworkSwitchesPatchingTime\":1474551833,\"estimatedStorageServerPatchingTime\":1609170177,\"totalEstimatedPatchingTime\":489125368}") .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 index 36fb17beddb1..77d0035f37c8 100644 --- 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 @@ -14,13 +14,13 @@ public final class ExadataIormConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExadataIormConfig model = BinaryData.fromString( - "{\"dbPlans\":[{\"dbName\":\"t\",\"flashCacheLimit\":\"gbkdmoizpos\",\"share\":1176728044}],\"lifecycleDetails\":\"cfbu\",\"lifecycleState\":\"BootStrapping\",\"objective\":\"HighThroughput\"}") + "{\"dbPlans\":[{\"dbName\":\"zznfqqnvwpmqta\",\"flashCacheLimit\":\"oujmkcjhwqytj\",\"share\":778428037},{\"dbName\":\"wj\",\"flashCacheLimit\":\"gdrjervnaenqpe\",\"share\":1632259296},{\"dbName\":\"oygmift\",\"flashCacheLimit\":\"zdnds\",\"share\":1279542640}],\"lifecycleDetails\":\"yq\",\"lifecycleState\":\"Failed\",\"objective\":\"LowLatency\"}") .toObject(ExadataIormConfig.class); - Assertions.assertEquals("t", model.dbPlans().get(0).dbName()); - Assertions.assertEquals("gbkdmoizpos", model.dbPlans().get(0).flashCacheLimit()); - Assertions.assertEquals(1176728044, model.dbPlans().get(0).share()); - Assertions.assertEquals("cfbu", model.lifecycleDetails()); - Assertions.assertEquals(IormLifecycleState.BOOT_STRAPPING, model.lifecycleState()); - Assertions.assertEquals(Objective.HIGH_THROUGHPUT, model.objective()); + Assertions.assertEquals("zznfqqnvwpmqta", model.dbPlans().get(0).dbName()); + Assertions.assertEquals("oujmkcjhwqytj", model.dbPlans().get(0).flashCacheLimit()); + Assertions.assertEquals(778428037, model.dbPlans().get(0).share()); + Assertions.assertEquals("yq", model.lifecycleDetails()); + Assertions.assertEquals(IormLifecycleState.FAILED, 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/ExadbVmClusterStorageDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterStorageDetailsTests.java index 2b7b56d617bd..ece09bfe58b9 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterStorageDetailsTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterStorageDetailsTests.java @@ -12,14 +12,14 @@ public final class ExadbVmClusterStorageDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExadbVmClusterStorageDetails model - = BinaryData.fromString("{\"totalSizeInGbs\":780958650}").toObject(ExadbVmClusterStorageDetails.class); - Assertions.assertEquals(780958650, model.totalSizeInGbs()); + = BinaryData.fromString("{\"totalSizeInGbs\":852372521}").toObject(ExadbVmClusterStorageDetails.class); + Assertions.assertEquals(852372521, model.totalSizeInGbs()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExadbVmClusterStorageDetails model = new ExadbVmClusterStorageDetails().withTotalSizeInGbs(780958650); + ExadbVmClusterStorageDetails model = new ExadbVmClusterStorageDetails().withTotalSizeInGbs(852372521); model = BinaryData.fromObject(model).toObject(ExadbVmClusterStorageDetails.class); - Assertions.assertEquals(780958650, model.totalSizeInGbs()); + Assertions.assertEquals(852372521, model.totalSizeInGbs()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterUpdatePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterUpdatePropertiesTests.java index 891763c6ce19..53d9f7cad445 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterUpdatePropertiesTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterUpdatePropertiesTests.java @@ -12,14 +12,14 @@ public final class ExadbVmClusterUpdatePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExadbVmClusterUpdateProperties model - = BinaryData.fromString("{\"nodeCount\":1897689605}").toObject(ExadbVmClusterUpdateProperties.class); - Assertions.assertEquals(1897689605, model.nodeCount()); + = BinaryData.fromString("{\"nodeCount\":38344578}").toObject(ExadbVmClusterUpdateProperties.class); + Assertions.assertEquals(38344578, model.nodeCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExadbVmClusterUpdateProperties model = new ExadbVmClusterUpdateProperties().withNodeCount(1897689605); + ExadbVmClusterUpdateProperties model = new ExadbVmClusterUpdateProperties().withNodeCount(38344578); model = BinaryData.fromObject(model).toObject(ExadbVmClusterUpdateProperties.class); - Assertions.assertEquals(1897689605, model.nodeCount()); + Assertions.assertEquals(38344578, model.nodeCount()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterUpdateTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterUpdateTests.java index 9968f05690b5..8336ad02dbc6 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterUpdateTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExadbVmClusterUpdateTests.java @@ -16,24 +16,23 @@ public final class ExadbVmClusterUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExadbVmClusterUpdate model = BinaryData.fromString( - "{\"zones\":[\"slhvnhlab\",\"q\",\"kkzjcjbtrga\",\"hvv\"],\"tags\":{\"oqbeitpkxzt\":\"xjjs\",\"pimaqxzhemjyh\":\"oobklftidgfcwq\",\"bawpfajnjwltlwt\":\"hujswtwkozzwcul\",\"uktalhsnvkcdmxz\":\"j\"},\"properties\":{\"nodeCount\":596889388}}") + "{\"zones\":[\"cact\",\"mwotey\"],\"tags\":{\"ouwifzmpjw\":\"luqovekqvg\",\"sphuagrttikteus\":\"ivqikfxcvhr\",\"kvyklxubyjaffmm\":\"c\",\"qcuubgqibrta\":\"bl\"},\"properties\":{\"nodeCount\":1066879045}}") .toObject(ExadbVmClusterUpdate.class); - Assertions.assertEquals("slhvnhlab", model.zones().get(0)); - Assertions.assertEquals("xjjs", model.tags().get("oqbeitpkxzt")); - Assertions.assertEquals(596889388, model.properties().nodeCount()); + Assertions.assertEquals("cact", model.zones().get(0)); + Assertions.assertEquals("luqovekqvg", model.tags().get("ouwifzmpjw")); + Assertions.assertEquals(1066879045, model.properties().nodeCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExadbVmClusterUpdate model - = new ExadbVmClusterUpdate().withZones(Arrays.asList("slhvnhlab", "q", "kkzjcjbtrga", "hvv")) - .withTags(mapOf("oqbeitpkxzt", "xjjs", "pimaqxzhemjyh", "oobklftidgfcwq", "bawpfajnjwltlwt", - "hujswtwkozzwcul", "uktalhsnvkcdmxz", "j")) - .withProperties(new ExadbVmClusterUpdateProperties().withNodeCount(596889388)); + ExadbVmClusterUpdate model = new ExadbVmClusterUpdate().withZones(Arrays.asList("cact", "mwotey")) + .withTags(mapOf("ouwifzmpjw", "luqovekqvg", "sphuagrttikteus", "ivqikfxcvhr", "kvyklxubyjaffmm", "c", + "qcuubgqibrta", "bl")) + .withProperties(new ExadbVmClusterUpdateProperties().withNodeCount(1066879045)); model = BinaryData.fromObject(model).toObject(ExadbVmClusterUpdate.class); - Assertions.assertEquals("slhvnhlab", model.zones().get(0)); - Assertions.assertEquals("xjjs", model.tags().get("oqbeitpkxzt")); - Assertions.assertEquals(596889388, model.properties().nodeCount()); + Assertions.assertEquals("cact", model.zones().get(0)); + Assertions.assertEquals("luqovekqvg", model.tags().get("ouwifzmpjw")); + Assertions.assertEquals(1066879045, model.properties().nodeCount()); } // Use "Map.of" if available diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleConfigDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleConfigDetailsTests.java new file mode 100644 index 000000000000..68f5ca2c658f --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleConfigDetailsTests.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.ExascaleConfigDetails; +import org.junit.jupiter.api.Assertions; + +public final class ExascaleConfigDetailsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ExascaleConfigDetails model + = BinaryData.fromString("{\"totalStorageInGbs\":731084227,\"availableStorageInGbs\":868316225}") + .toObject(ExascaleConfigDetails.class); + Assertions.assertEquals(731084227, model.totalStorageInGbs()); + Assertions.assertEquals(868316225, model.availableStorageInGbs()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodeInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodeInnerTests.java index 241e50407773..d911de001968 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodeInnerTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodeInnerTests.java @@ -14,22 +14,22 @@ public final class ExascaleDbNodeInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExascaleDbNodeInner model = BinaryData.fromString( - "{\"properties\":{\"ocid\":\"usnfepgfewet\",\"additionalDetails\":\"yxgncxykxhdjhli\",\"cpuCoreCount\":926197609,\"dbNodeStorageSizeInGbs\":122728116,\"faultDomain\":\"h\",\"hostname\":\"po\",\"lifecycleState\":\"Starting\",\"maintenanceType\":\"cjzhqi\",\"memorySizeInGbs\":1212582847,\"softwareStorageSizeInGb\":1356255115,\"timeMaintenanceWindowEnd\":\"2021-01-04T20:39:53Z\",\"timeMaintenanceWindowStart\":\"2021-03-07T05:50:04Z\",\"totalCpuCoreCount\":612006389},\"id\":\"vftjuhd\",\"name\":\"azkmtgguwp\",\"type\":\"jrajcivm\"}") + "{\"properties\":{\"ocid\":\"rpetogebjoxsl\",\"additionalDetails\":\"nhl\",\"cpuCoreCount\":1064191938,\"dbNodeStorageSizeInGbs\":413797833,\"faultDomain\":\"kzjcjbtrgae\",\"hostname\":\"vibr\",\"lifecycleState\":\"Terminated\",\"maintenanceType\":\"toqbeitpkxztmoob\",\"memorySizeInGbs\":358908286,\"softwareStorageSizeInGb\":1257381047,\"timeMaintenanceWindowEnd\":\"2021-09-03T03:39:31Z\",\"timeMaintenanceWindowStart\":\"2020-12-22T14:36:49Z\",\"totalCpuCoreCount\":913661496},\"id\":\"pimaqxzhemjyh\",\"name\":\"hujswtwkozzwcul\",\"type\":\"bawpfajnjwltlwt\"}") .toObject(ExascaleDbNodeInner.class); - Assertions.assertEquals("usnfepgfewet", model.properties().ocid()); - Assertions.assertEquals("yxgncxykxhdjhli", model.properties().additionalDetails()); - Assertions.assertEquals(926197609, model.properties().cpuCoreCount()); - Assertions.assertEquals(122728116, model.properties().dbNodeStorageSizeInGbs()); - Assertions.assertEquals("h", model.properties().faultDomain()); - Assertions.assertEquals("po", model.properties().hostname()); - Assertions.assertEquals(DbNodeProvisioningState.STARTING, model.properties().lifecycleState()); - Assertions.assertEquals("cjzhqi", model.properties().maintenanceType()); - Assertions.assertEquals(1212582847, model.properties().memorySizeInGbs()); - Assertions.assertEquals(1356255115, model.properties().softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-04T20:39:53Z"), + Assertions.assertEquals("rpetogebjoxsl", model.properties().ocid()); + Assertions.assertEquals("nhl", model.properties().additionalDetails()); + Assertions.assertEquals(1064191938, model.properties().cpuCoreCount()); + Assertions.assertEquals(413797833, model.properties().dbNodeStorageSizeInGbs()); + Assertions.assertEquals("kzjcjbtrgae", model.properties().faultDomain()); + Assertions.assertEquals("vibr", model.properties().hostname()); + Assertions.assertEquals(DbNodeProvisioningState.TERMINATED, model.properties().lifecycleState()); + Assertions.assertEquals("toqbeitpkxztmoob", model.properties().maintenanceType()); + Assertions.assertEquals(358908286, model.properties().memorySizeInGbs()); + Assertions.assertEquals(1257381047, model.properties().softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-03T03:39:31Z"), model.properties().timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-07T05:50:04Z"), + Assertions.assertEquals(OffsetDateTime.parse("2020-12-22T14:36:49Z"), model.properties().timeMaintenanceWindowStart()); - Assertions.assertEquals(612006389, model.properties().totalCpuCoreCount()); + Assertions.assertEquals(913661496, model.properties().totalCpuCoreCount()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodeListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodeListResultTests.java index 9bea2c636c37..1850be4d0bcd 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodeListResultTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodeListResultTests.java @@ -14,23 +14,23 @@ public final class ExascaleDbNodeListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExascaleDbNodeListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ocid\":\"wsdtutnwl\",\"additionalDetails\":\"ycvuzhyrmewipmv\",\"cpuCoreCount\":1907167908,\"dbNodeStorageSizeInGbs\":1623047135,\"faultDomain\":\"uqgsj\",\"hostname\":\"undxgketw\",\"lifecycleState\":\"Failed\",\"maintenanceType\":\"jhfjmhvvmuvgpm\",\"memorySizeInGbs\":1059094634,\"softwareStorageSizeInGb\":425841292,\"timeMaintenanceWindowEnd\":\"2021-08-12T15:03:25Z\",\"timeMaintenanceWindowStart\":\"2020-12-27T00:07:16Z\",\"totalCpuCoreCount\":1810065983},\"id\":\"zjyi\",\"name\":\"sasbhu\",\"type\":\"ypoh\"}],\"nextLink\":\"emslynsqyrp\"}") + "{\"value\":[{\"properties\":{\"ocid\":\"gncxykxhdj\",\"additionalDetails\":\"immbcx\",\"cpuCoreCount\":1970187431,\"dbNodeStorageSizeInGbs\":331049008,\"faultDomain\":\"rxvxcjzh\",\"hostname\":\"zxfpxtgqsc\",\"lifecycleState\":\"Updating\",\"maintenanceType\":\"t\",\"memorySizeInGbs\":1148519076,\"softwareStorageSizeInGb\":562191246,\"timeMaintenanceWindowEnd\":\"2021-06-22T03:40:10Z\",\"timeMaintenanceWindowStart\":\"2021-07-19T17:26:58Z\",\"totalCpuCoreCount\":308398935},\"id\":\"uwpijr\",\"name\":\"jcivmmg\",\"type\":\"f\"},{\"properties\":{\"ocid\":\"iwrxgkn\",\"additionalDetails\":\"vyi\",\"cpuCoreCount\":1482773915,\"dbNodeStorageSizeInGbs\":1114052241,\"faultDomain\":\"vpgshoxgsgbp\",\"hostname\":\"zdjtxvzflbqv\",\"lifecycleState\":\"Available\",\"maintenanceType\":\"lgafcqusrdve\",\"memorySizeInGbs\":203429878,\"softwareStorageSizeInGb\":89870573,\"timeMaintenanceWindowEnd\":\"2021-07-31T00:34:25Z\",\"timeMaintenanceWindowStart\":\"2021-10-25T02:19:11Z\",\"totalCpuCoreCount\":1456659976},\"id\":\"uycvuzhyrmewip\",\"name\":\"vekdxukuqgsjjxu\",\"type\":\"dxgketwzhhzjhfj\"},{\"properties\":{\"ocid\":\"vvmu\",\"additionalDetails\":\"pmuneqsx\",\"cpuCoreCount\":2036869225,\"dbNodeStorageSizeInGbs\":1810065983,\"faultDomain\":\"zjyi\",\"hostname\":\"as\",\"lifecycleState\":\"Starting\",\"maintenanceType\":\"ypoh\",\"memorySizeInGbs\":651460177,\"softwareStorageSizeInGb\":840782124,\"timeMaintenanceWindowEnd\":\"2021-06-30T16:11:27Z\",\"timeMaintenanceWindowStart\":\"2021-08-05T10:43:49Z\",\"totalCpuCoreCount\":1736197328},\"id\":\"pfoobr\",\"name\":\"ttymsjny\",\"type\":\"qdnfwqzdz\"},{\"properties\":{\"ocid\":\"ilaxhn\",\"additionalDetails\":\"qlyvijo\",\"cpuCoreCount\":316735321,\"dbNodeStorageSizeInGbs\":1057579035,\"faultDomain\":\"oyzunbixxr\",\"hostname\":\"kvcpwpgclr\",\"lifecycleState\":\"Stopped\",\"maintenanceType\":\"soxfrken\",\"memorySizeInGbs\":27132642,\"softwareStorageSizeInGb\":1600333305,\"timeMaintenanceWindowEnd\":\"2021-09-18T14:40:44Z\",\"timeMaintenanceWindowStart\":\"2021-03-30T12:42:21Z\",\"totalCpuCoreCount\":2052756160},\"id\":\"nqqs\",\"name\":\"awaoqvmmbnpqfrt\",\"type\":\"lkzmegnitgvkxl\"}],\"nextLink\":\"qdrfegcealzxwhc\"}") .toObject(ExascaleDbNodeListResult.class); - Assertions.assertEquals("wsdtutnwl", model.value().get(0).properties().ocid()); - Assertions.assertEquals("ycvuzhyrmewipmv", model.value().get(0).properties().additionalDetails()); - Assertions.assertEquals(1907167908, model.value().get(0).properties().cpuCoreCount()); - Assertions.assertEquals(1623047135, model.value().get(0).properties().dbNodeStorageSizeInGbs()); - Assertions.assertEquals("uqgsj", model.value().get(0).properties().faultDomain()); - Assertions.assertEquals("undxgketw", model.value().get(0).properties().hostname()); - Assertions.assertEquals(DbNodeProvisioningState.FAILED, model.value().get(0).properties().lifecycleState()); - Assertions.assertEquals("jhfjmhvvmuvgpm", model.value().get(0).properties().maintenanceType()); - Assertions.assertEquals(1059094634, model.value().get(0).properties().memorySizeInGbs()); - Assertions.assertEquals(425841292, model.value().get(0).properties().softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-12T15:03:25Z"), + Assertions.assertEquals("gncxykxhdj", model.value().get(0).properties().ocid()); + Assertions.assertEquals("immbcx", model.value().get(0).properties().additionalDetails()); + Assertions.assertEquals(1970187431, model.value().get(0).properties().cpuCoreCount()); + Assertions.assertEquals(331049008, model.value().get(0).properties().dbNodeStorageSizeInGbs()); + Assertions.assertEquals("rxvxcjzh", model.value().get(0).properties().faultDomain()); + Assertions.assertEquals("zxfpxtgqsc", model.value().get(0).properties().hostname()); + Assertions.assertEquals(DbNodeProvisioningState.UPDATING, model.value().get(0).properties().lifecycleState()); + Assertions.assertEquals("t", model.value().get(0).properties().maintenanceType()); + Assertions.assertEquals(1148519076, model.value().get(0).properties().memorySizeInGbs()); + Assertions.assertEquals(562191246, model.value().get(0).properties().softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T03:40:10Z"), model.value().get(0).properties().timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-27T00:07:16Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-07-19T17:26:58Z"), model.value().get(0).properties().timeMaintenanceWindowStart()); - Assertions.assertEquals(1810065983, model.value().get(0).properties().totalCpuCoreCount()); - Assertions.assertEquals("emslynsqyrp", model.nextLink()); + Assertions.assertEquals(308398935, model.value().get(0).properties().totalCpuCoreCount()); + Assertions.assertEquals("qdrfegcealzxwhc", model.nextLink()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodePropertiesTests.java index ea3ce5355cdc..43e101a98064 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodePropertiesTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodePropertiesTests.java @@ -14,20 +14,20 @@ public final class ExascaleDbNodePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExascaleDbNodeProperties model = BinaryData.fromString( - "{\"ocid\":\"ghfcfiwrxgkneuvy\",\"additionalDetails\":\"zqodfvpgshox\",\"cpuCoreCount\":1464203297,\"dbNodeStorageSizeInGbs\":243452563,\"faultDomain\":\"gzdjtxvzf\",\"hostname\":\"q\",\"lifecycleState\":\"Failed\",\"maintenanceType\":\"vl\",\"memorySizeInGbs\":617486740,\"softwareStorageSizeInGb\":593802124,\"timeMaintenanceWindowEnd\":\"2021-02-21T01:21:42Z\",\"timeMaintenanceWindowStart\":\"2021-03-05T03:27:21Z\",\"totalCpuCoreCount\":673220982}") + "{\"ocid\":\"j\",\"additionalDetails\":\"ktalhsnvkcdmxz\",\"cpuCoreCount\":1745804403,\"dbNodeStorageSizeInGbs\":1098344029,\"faultDomain\":\"lnwiaaomylwe\",\"hostname\":\"ulcsethwwnpj\",\"lifecycleState\":\"Updating\",\"maintenanceType\":\"swpchwahfbousn\",\"memorySizeInGbs\":793996513,\"softwareStorageSizeInGb\":1108210781,\"timeMaintenanceWindowEnd\":\"2021-10-02T20:52:54Z\",\"timeMaintenanceWindowStart\":\"2021-11-29T06:33:52Z\",\"totalCpuCoreCount\":160673961}") .toObject(ExascaleDbNodeProperties.class); - Assertions.assertEquals("ghfcfiwrxgkneuvy", model.ocid()); - Assertions.assertEquals("zqodfvpgshox", model.additionalDetails()); - Assertions.assertEquals(1464203297, model.cpuCoreCount()); - Assertions.assertEquals(243452563, model.dbNodeStorageSizeInGbs()); - Assertions.assertEquals("gzdjtxvzf", model.faultDomain()); - Assertions.assertEquals("q", model.hostname()); - Assertions.assertEquals(DbNodeProvisioningState.FAILED, model.lifecycleState()); - Assertions.assertEquals("vl", model.maintenanceType()); - Assertions.assertEquals(617486740, model.memorySizeInGbs()); - Assertions.assertEquals(593802124, model.softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-21T01:21:42Z"), model.timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-05T03:27:21Z"), model.timeMaintenanceWindowStart()); - Assertions.assertEquals(673220982, model.totalCpuCoreCount()); + Assertions.assertEquals("j", model.ocid()); + Assertions.assertEquals("ktalhsnvkcdmxz", model.additionalDetails()); + Assertions.assertEquals(1745804403, model.cpuCoreCount()); + Assertions.assertEquals(1098344029, model.dbNodeStorageSizeInGbs()); + Assertions.assertEquals("lnwiaaomylwe", model.faultDomain()); + Assertions.assertEquals("ulcsethwwnpj", model.hostname()); + Assertions.assertEquals(DbNodeProvisioningState.UPDATING, model.lifecycleState()); + Assertions.assertEquals("swpchwahfbousn", model.maintenanceType()); + Assertions.assertEquals(793996513, model.memorySizeInGbs()); + Assertions.assertEquals(1108210781, model.softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-02T20:52:54Z"), model.timeMaintenanceWindowEnd()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-29T06:33:52Z"), model.timeMaintenanceWindowStart()); + Assertions.assertEquals(160673961, model.totalCpuCoreCount()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesActionMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesActionMockTests.java index f3d85710ef4b..9c6295522bad 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesActionMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesActionMockTests.java @@ -23,7 +23,7 @@ public final class ExascaleDbNodesActionMockTests { @Test public void testAction() throws Exception { - String responseStr = "{\"provisioningState\":\"Canceled\"}"; + String responseStr = "{\"provisioningState\":\"Provisioning\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,9 +33,9 @@ public void testAction() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DbActionResponse response = manager.exascaleDbNodes() - .action("ooxf", "i", "hx", new DbNodeAction().withAction(DbNodeActionEnum.RESET), - com.azure.core.util.Context.NONE); + .action("haokgkskjiv", "sshajqfukpee", "pgeumilh", + new DbNodeAction().withAction(DbNodeActionEnum.SOFT_RESET), com.azure.core.util.Context.NONE); - Assertions.assertEquals(AzureResourceProvisioningState.CANCELED, response.provisioningState()); + Assertions.assertEquals(AzureResourceProvisioningState.PROVISIONING, response.provisioningState()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesGetWithResponseMockTests.java index c62c6cdc56a3..83b4ddcadfcf 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesGetWithResponseMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ExascaleDbNodesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"ocid\":\"e\",\"additionalDetails\":\"ej\",\"cpuCoreCount\":1797904663,\"dbNodeStorageSizeInGbs\":544161528,\"faultDomain\":\"gthortudaw\",\"hostname\":\"jfel\",\"lifecycleState\":\"Provisioning\",\"maintenanceType\":\"ptcbgqnzmnh\",\"memorySizeInGbs\":2129723537,\"softwareStorageSizeInGb\":282961321,\"timeMaintenanceWindowEnd\":\"2021-03-10T17:13:37Z\",\"timeMaintenanceWindowStart\":\"2021-09-02T05:25:42Z\",\"totalCpuCoreCount\":1452234120},\"id\":\"bbcccgz\",\"name\":\"raoxnyuff\",\"type\":\"tsgftipwcxbyubh\"}"; + = "{\"properties\":{\"ocid\":\"hllxricctkw\",\"additionalDetails\":\"qqoajxeiyglesrw\",\"cpuCoreCount\":601519517,\"dbNodeStorageSizeInGbs\":147788598,\"faultDomain\":\"ctrceqnkbr\",\"hostname\":\"obehdmljz\",\"lifecycleState\":\"Stopped\",\"maintenanceType\":\"me\",\"memorySizeInGbs\":1117408258,\"softwareStorageSizeInGb\":1106054303,\"timeMaintenanceWindowEnd\":\"2021-02-04T02:09:01Z\",\"timeMaintenanceWindowStart\":\"2021-07-09T06:00:41Z\",\"totalCpuCoreCount\":631713450},\"id\":\"pife\",\"name\":\"leqirccjclykcgxv\",\"type\":\"pjlvczuoda\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,23 +32,23 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ExascaleDbNode response = manager.exascaleDbNodes() - .getWithResponse("ejkm", "bizt", "ofqcvovjufycsjm", com.azure.core.util.Context.NONE) + .getWithResponse("dmbi", "psnaww", "qkzn", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("e", response.properties().ocid()); - Assertions.assertEquals("ej", response.properties().additionalDetails()); - Assertions.assertEquals(1797904663, response.properties().cpuCoreCount()); - Assertions.assertEquals(544161528, response.properties().dbNodeStorageSizeInGbs()); - Assertions.assertEquals("gthortudaw", response.properties().faultDomain()); - Assertions.assertEquals("jfel", response.properties().hostname()); - Assertions.assertEquals(DbNodeProvisioningState.PROVISIONING, response.properties().lifecycleState()); - Assertions.assertEquals("ptcbgqnzmnh", response.properties().maintenanceType()); - Assertions.assertEquals(2129723537, response.properties().memorySizeInGbs()); - Assertions.assertEquals(282961321, response.properties().softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-10T17:13:37Z"), + Assertions.assertEquals("hllxricctkw", response.properties().ocid()); + Assertions.assertEquals("qqoajxeiyglesrw", response.properties().additionalDetails()); + Assertions.assertEquals(601519517, response.properties().cpuCoreCount()); + Assertions.assertEquals(147788598, response.properties().dbNodeStorageSizeInGbs()); + Assertions.assertEquals("ctrceqnkbr", response.properties().faultDomain()); + Assertions.assertEquals("obehdmljz", response.properties().hostname()); + Assertions.assertEquals(DbNodeProvisioningState.STOPPED, response.properties().lifecycleState()); + Assertions.assertEquals("me", response.properties().maintenanceType()); + Assertions.assertEquals(1117408258, response.properties().memorySizeInGbs()); + Assertions.assertEquals(1106054303, response.properties().softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-04T02:09:01Z"), response.properties().timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-02T05:25:42Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-07-09T06:00:41Z"), response.properties().timeMaintenanceWindowStart()); - Assertions.assertEquals(1452234120, response.properties().totalCpuCoreCount()); + Assertions.assertEquals(631713450, response.properties().totalCpuCoreCount()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesListByParentMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesListByParentMockTests.java index 8ac0f1f117c7..6b7ae73c55e1 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesListByParentMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbNodesListByParentMockTests.java @@ -23,7 +23,7 @@ public final class ExascaleDbNodesListByParentMockTests { @Test public void testListByParent() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"ocid\":\"lfbcgwgcl\",\"additionalDetails\":\"oebqinjipn\",\"cpuCoreCount\":296049099,\"dbNodeStorageSizeInGbs\":1159366069,\"faultDomain\":\"lafcbahh\",\"hostname\":\"pofoi\",\"lifecycleState\":\"Failed\",\"maintenanceType\":\"filkmkkholv\",\"memorySizeInGbs\":1953002350,\"softwareStorageSizeInGb\":1032384879,\"timeMaintenanceWindowEnd\":\"2021-09-08T17:52:36Z\",\"timeMaintenanceWindowStart\":\"2021-04-29T02:09:30Z\",\"totalCpuCoreCount\":1485385595},\"id\":\"artvti\",\"name\":\"kyefchnmnahmnxhk\",\"type\":\"jqirwrw\"}]}"; + = "{\"value\":[{\"properties\":{\"ocid\":\"ewsedveskwxe\",\"additionalDetails\":\"phrgfnzhctm\",\"cpuCoreCount\":1793592127,\"dbNodeStorageSizeInGbs\":347777936,\"faultDomain\":\"bcbcpz\",\"hostname\":\"pzeqacdldtz\",\"lifecycleState\":\"Terminating\",\"maintenanceType\":\"efcpczshn\",\"memorySizeInGbs\":731388560,\"softwareStorageSizeInGb\":830792514,\"timeMaintenanceWindowEnd\":\"2021-08-28T14:05:20Z\",\"timeMaintenanceWindowStart\":\"2021-08-28T22:37:58Z\",\"totalCpuCoreCount\":497278194},\"id\":\"uytuszxhmtvtv\",\"name\":\"gw\",\"type\":\"iukvzwydwt\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,23 +33,23 @@ public void testListByParent() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.exascaleDbNodes().listByParent("kmqp", "o", com.azure.core.util.Context.NONE); + = manager.exascaleDbNodes().listByParent("punettepdjxq", "skoynuiylpc", com.azure.core.util.Context.NONE); - Assertions.assertEquals("lfbcgwgcl", response.iterator().next().properties().ocid()); - Assertions.assertEquals("oebqinjipn", response.iterator().next().properties().additionalDetails()); - Assertions.assertEquals(296049099, response.iterator().next().properties().cpuCoreCount()); - Assertions.assertEquals(1159366069, response.iterator().next().properties().dbNodeStorageSizeInGbs()); - Assertions.assertEquals("lafcbahh", response.iterator().next().properties().faultDomain()); - Assertions.assertEquals("pofoi", response.iterator().next().properties().hostname()); - Assertions.assertEquals(DbNodeProvisioningState.FAILED, + Assertions.assertEquals("ewsedveskwxe", response.iterator().next().properties().ocid()); + Assertions.assertEquals("phrgfnzhctm", response.iterator().next().properties().additionalDetails()); + Assertions.assertEquals(1793592127, response.iterator().next().properties().cpuCoreCount()); + Assertions.assertEquals(347777936, response.iterator().next().properties().dbNodeStorageSizeInGbs()); + Assertions.assertEquals("bcbcpz", response.iterator().next().properties().faultDomain()); + Assertions.assertEquals("pzeqacdldtz", response.iterator().next().properties().hostname()); + Assertions.assertEquals(DbNodeProvisioningState.TERMINATING, response.iterator().next().properties().lifecycleState()); - Assertions.assertEquals("filkmkkholv", response.iterator().next().properties().maintenanceType()); - Assertions.assertEquals(1953002350, response.iterator().next().properties().memorySizeInGbs()); - Assertions.assertEquals(1032384879, response.iterator().next().properties().softwareStorageSizeInGb()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-08T17:52:36Z"), + Assertions.assertEquals("efcpczshn", response.iterator().next().properties().maintenanceType()); + Assertions.assertEquals(731388560, response.iterator().next().properties().memorySizeInGbs()); + Assertions.assertEquals(830792514, response.iterator().next().properties().softwareStorageSizeInGb()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-28T14:05:20Z"), response.iterator().next().properties().timeMaintenanceWindowEnd()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-29T02:09:30Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-08-28T22:37:58Z"), response.iterator().next().properties().timeMaintenanceWindowStart()); - Assertions.assertEquals(1485385595, response.iterator().next().properties().totalCpuCoreCount()); + Assertions.assertEquals(497278194, response.iterator().next().properties().totalCpuCoreCount()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageDetailsTests.java index 97bf09ad9399..ecf284219c96 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageDetailsTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageDetailsTests.java @@ -12,9 +12,9 @@ public final class ExascaleDbStorageDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExascaleDbStorageDetails model - = BinaryData.fromString("{\"availableSizeInGbs\":2049829405,\"totalSizeInGbs\":481036102}") + = BinaryData.fromString("{\"availableSizeInGbs\":287245464,\"totalSizeInGbs\":1670865281}") .toObject(ExascaleDbStorageDetails.class); - Assertions.assertEquals(2049829405, model.availableSizeInGbs()); - Assertions.assertEquals(481036102, model.totalSizeInGbs()); + Assertions.assertEquals(287245464, model.availableSizeInGbs()); + Assertions.assertEquals(1670865281, model.totalSizeInGbs()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageInputDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageInputDetailsTests.java index 3b91d904eba9..546284547724 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageInputDetailsTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageInputDetailsTests.java @@ -12,14 +12,14 @@ public final class ExascaleDbStorageInputDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExascaleDbStorageInputDetails model - = BinaryData.fromString("{\"totalSizeInGbs\":1761289407}").toObject(ExascaleDbStorageInputDetails.class); - Assertions.assertEquals(1761289407, model.totalSizeInGbs()); + = BinaryData.fromString("{\"totalSizeInGbs\":1638767964}").toObject(ExascaleDbStorageInputDetails.class); + Assertions.assertEquals(1638767964, model.totalSizeInGbs()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExascaleDbStorageInputDetails model = new ExascaleDbStorageInputDetails().withTotalSizeInGbs(1761289407); + ExascaleDbStorageInputDetails model = new ExascaleDbStorageInputDetails().withTotalSizeInGbs(1638767964); model = BinaryData.fromObject(model).toObject(ExascaleDbStorageInputDetails.class); - Assertions.assertEquals(1761289407, model.totalSizeInGbs()); + Assertions.assertEquals(1638767964, model.totalSizeInGbs()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultInnerTests.java index 542f9303b565..56db9dcbd7d2 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultInnerTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultInnerTests.java @@ -17,38 +17,41 @@ public final class ExascaleDbStorageVaultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExascaleDbStorageVaultInner model = BinaryData.fromString( - "{\"properties\":{\"additionalFlashCacheInPercent\":2084317491,\"description\":\"tyms\",\"displayName\":\"nygq\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1753734199},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":986277752,\"totalSizeInGbs\":1579295950},\"timeZone\":\"gtilax\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Terminating\",\"lifecycleDetails\":\"yvi\",\"vmClusterCount\":2065118929,\"ocid\":\"iv\",\"ociUrl\":\"oyzunbixxr\"},\"zones\":[\"vcpwpgclrc\",\"vtsoxf\",\"kenx\"],\"location\":\"yyefrpmpdnqqs\",\"tags\":{\"vmm\":\"ao\",\"itgvkx\":\"npqfrtqlkzmeg\"},\"id\":\"zyqdrfegcealzx\",\"name\":\"hcans\",\"type\":\"moy\"}") + "{\"properties\":{\"additionalFlashCacheInPercent\":1923836224,\"description\":\"qhlwigdivbkbxgo\",\"displayName\":\"fajuwas\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1426574768},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":37361117,\"totalSizeInGbs\":13307941},\"timeZone\":\"uxakjsqzhzbezk\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Updating\",\"lifecycleDetails\":\"xasicddyvvjskg\",\"vmClusterCount\":1236254057,\"ocid\":\"wa\",\"ociUrl\":\"qgatjeaahhvjhhn\",\"exadataInfrastructureId\":\"zybbj\",\"attachedShapeAttributes\":[\"SMART_STORAGE\"]},\"zones\":[\"yxkyxvx\",\"vblbjednljlageua\",\"lxunsmjbnkppxy\",\"enlsvxeizzgwkln\"],\"location\":\"mffeycxcktpi\",\"tags\":{\"qiekkkzddrt\":\"rteeamm\",\"ojbmxv\":\"g\",\"cuijpxt\":\"vrefdeesv\",\"wprtu\":\"s\"},\"id\":\"wsawddjibabxvi\",\"name\":\"itvtzeexavo\",\"type\":\"tfgle\"}") .toObject(ExascaleDbStorageVaultInner.class); - Assertions.assertEquals("yyefrpmpdnqqs", model.location()); - Assertions.assertEquals("ao", model.tags().get("vmm")); - Assertions.assertEquals(2084317491, model.properties().additionalFlashCacheInPercent()); - Assertions.assertEquals("tyms", model.properties().description()); - Assertions.assertEquals("nygq", model.properties().displayName()); - Assertions.assertEquals(1753734199, model.properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); - Assertions.assertEquals("gtilax", model.properties().timeZone()); - Assertions.assertEquals("vcpwpgclrc", model.zones().get(0)); + Assertions.assertEquals("mffeycxcktpi", model.location()); + Assertions.assertEquals("rteeamm", model.tags().get("qiekkkzddrt")); + Assertions.assertEquals(1923836224, model.properties().additionalFlashCacheInPercent()); + Assertions.assertEquals("qhlwigdivbkbxgo", model.properties().description()); + Assertions.assertEquals("fajuwas", model.properties().displayName()); + Assertions.assertEquals(1426574768, model.properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); + Assertions.assertEquals("uxakjsqzhzbezk", model.properties().timeZone()); + Assertions.assertEquals("zybbj", model.properties().exadataInfrastructureId()); + Assertions.assertEquals("yxkyxvx", model.zones().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExascaleDbStorageVaultInner model = new ExascaleDbStorageVaultInner().withLocation("yyefrpmpdnqqs") - .withTags(mapOf("vmm", "ao", "itgvkx", "npqfrtqlkzmeg")) - .withProperties(new ExascaleDbStorageVaultProperties().withAdditionalFlashCacheInPercent(2084317491) - .withDescription("tyms") - .withDisplayName("nygq") + ExascaleDbStorageVaultInner model = new ExascaleDbStorageVaultInner().withLocation("mffeycxcktpi") + .withTags(mapOf("qiekkkzddrt", "rteeamm", "ojbmxv", "g", "cuijpxt", "vrefdeesv", "wprtu", "s")) + .withProperties(new ExascaleDbStorageVaultProperties().withAdditionalFlashCacheInPercent(1923836224) + .withDescription("qhlwigdivbkbxgo") + .withDisplayName("fajuwas") .withHighCapacityDatabaseStorageInput( - new ExascaleDbStorageInputDetails().withTotalSizeInGbs(1753734199)) - .withTimeZone("gtilax")) - .withZones(Arrays.asList("vcpwpgclrc", "vtsoxf", "kenx")); + new ExascaleDbStorageInputDetails().withTotalSizeInGbs(1426574768)) + .withTimeZone("uxakjsqzhzbezk") + .withExadataInfrastructureId("zybbj")) + .withZones(Arrays.asList("yxkyxvx", "vblbjednljlageua", "lxunsmjbnkppxy", "enlsvxeizzgwkln")); model = BinaryData.fromObject(model).toObject(ExascaleDbStorageVaultInner.class); - Assertions.assertEquals("yyefrpmpdnqqs", model.location()); - Assertions.assertEquals("ao", model.tags().get("vmm")); - Assertions.assertEquals(2084317491, model.properties().additionalFlashCacheInPercent()); - Assertions.assertEquals("tyms", model.properties().description()); - Assertions.assertEquals("nygq", model.properties().displayName()); - Assertions.assertEquals(1753734199, model.properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); - Assertions.assertEquals("gtilax", model.properties().timeZone()); - Assertions.assertEquals("vcpwpgclrc", model.zones().get(0)); + Assertions.assertEquals("mffeycxcktpi", model.location()); + Assertions.assertEquals("rteeamm", model.tags().get("qiekkkzddrt")); + Assertions.assertEquals(1923836224, model.properties().additionalFlashCacheInPercent()); + Assertions.assertEquals("qhlwigdivbkbxgo", model.properties().description()); + Assertions.assertEquals("fajuwas", model.properties().displayName()); + Assertions.assertEquals(1426574768, model.properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); + Assertions.assertEquals("uxakjsqzhzbezk", model.properties().timeZone()); + Assertions.assertEquals("zybbj", model.properties().exadataInfrastructureId()); + Assertions.assertEquals("yxkyxvx", model.zones().get(0)); } // Use "Map.of" if available diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultListResultTests.java index e5a1399f1a96..15119a6925d0 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultListResultTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultListResultTests.java @@ -12,17 +12,18 @@ public final class ExascaleDbStorageVaultListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExascaleDbStorageVaultListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"additionalFlashCacheInPercent\":1964670338,\"description\":\"yxkyxvx\",\"displayName\":\"vblbjednljlageua\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1383886156},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":1495759737,\"totalSizeInGbs\":1081327817},\"timeZone\":\"bn\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Available\",\"lifecycleDetails\":\"enlsvxeizzgwkln\",\"vmClusterCount\":980138235,\"ocid\":\"feycxcktp\",\"ociUrl\":\"merteeammxqiek\"},\"zones\":[\"ddrtkgdojb\",\"xv\"],\"location\":\"refdee\",\"tags\":{\"s\":\"cuijpxt\",\"wsawddjibabxvi\":\"wprtu\",\"tfgle\":\"itvtzeexavo\"},\"id\":\"dmdqb\",\"name\":\"pypqtgsfj\",\"type\":\"cbslhhx\"},{\"properties\":{\"additionalFlashCacheInPercent\":467835815,\"description\":\"odhtnsirudhzm\",\"displayName\":\"es\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1080480185},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":1975861158,\"totalSizeInGbs\":2124776241},\"timeZone\":\"rcxfailcfxwmdb\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Available\",\"lifecycleDetails\":\"ft\",\"vmClusterCount\":1025084643,\"ocid\":\"brjlnacgcckknhxk\",\"ociUrl\":\"v\"},\"zones\":[\"rzvul\",\"r\",\"aeranokqgukkjqnv\"],\"location\":\"oylaxxul\",\"tags\":{\"hryvy\":\"sdosfjbjsvgjr\",\"xgccknfnw\":\"ytdc\"},\"id\":\"btmvpdvjdhttza\",\"name\":\"fedxihchrphkm\",\"type\":\"rjdqnsdfzp\"}],\"nextLink\":\"tg\"}") + "{\"value\":[{\"properties\":{\"additionalFlashCacheInPercent\":1023796809,\"description\":\"nok\",\"displayName\":\"gukkjqnvbroy\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":86171978},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":271109823,\"totalSizeInGbs\":1120271954},\"timeZone\":\"isdos\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Failed\",\"lifecycleDetails\":\"g\",\"vmClusterCount\":1047902295,\"ocid\":\"r\",\"ociUrl\":\"ycy\",\"exadataInfrastructureId\":\"c\",\"attachedShapeAttributes\":[\"BLOCK_STORAGE\"]},\"zones\":[\"nfnw\",\"btmvpdvjdhttza\",\"fedxihchrphkm\",\"rjdqnsdfzp\"],\"location\":\"tg\",\"tags\":{\"z\":\"kdghrjeuutlwx\",\"qlgehg\":\"zhokvbwnhh\"},\"id\":\"pipifh\",\"name\":\"f\",\"type\":\"oajvgcxtxjcs\"},{\"properties\":{\"additionalFlashCacheInPercent\":1665237289,\"description\":\"dltug\",\"displayName\":\"resmkssjhoiftxfk\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1606818470},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":49827324,\"totalSizeInGbs\":713923946},\"timeZone\":\"tillucbiqtg\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Terminating\",\"lifecycleDetails\":\"wsldrizetpwbr\",\"vmClusterCount\":1596471966,\"ocid\":\"ibph\",\"ociUrl\":\"zmizakakan\",\"exadataInfrastructureId\":\"p\",\"attachedShapeAttributes\":[\"BLOCK_STORAGE\",\"SMART_STORAGE\"]},\"zones\":[\"oylhjlmuoyxprimr\",\"opteecj\"],\"location\":\"islstv\",\"tags\":{\"eoohguufuzboyj\":\"lwxdzaum\"},\"id\":\"thwtzol\",\"name\":\"a\",\"type\":\"mwmdxmebwjscjpa\"},{\"properties\":{\"additionalFlashCacheInPercent\":1860405842,\"description\":\"a\",\"displayName\":\"f\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1913750704},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":1695920381,\"totalSizeInGbs\":1009857472},\"timeZone\":\"ibxyijddtvqc\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Terminating\",\"lifecycleDetails\":\"aeukm\",\"vmClusterCount\":360387676,\"ocid\":\"ekpndzaapmudq\",\"ociUrl\":\"qwigpibudqwyxe\",\"exadataInfrastructureId\":\"ybpmzznrtffyaq\",\"attachedShapeAttributes\":[\"BLOCK_STORAGE\"]},\"zones\":[\"ioqaqhvs\",\"ufuqyrx\",\"dlcgqlsismjqfr\"],\"location\":\"gamquhiosrsjui\",\"tags\":{\"czexrxzbujrtrhqv\":\"disyirnxz\",\"zlrpiqywncvj\":\"revkhgnlnzo\"},\"id\":\"szcofizeht\",\"name\":\"hgbjkvrelje\",\"type\":\"murvzm\"},{\"properties\":{\"additionalFlashCacheInPercent\":378498503,\"description\":\"nashcxlp\",\"displayName\":\"jerbdkelvidizozs\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1027236790},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":1441551440,\"totalSizeInGbs\":1920486563},\"timeZone\":\"nfdgn\",\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Provisioning\",\"lifecycleDetails\":\"uwwltvuqjctz\",\"vmClusterCount\":1164952050,\"ocid\":\"if\",\"ociUrl\":\"hmkdasvfl\",\"exadataInfrastructureId\":\"bxcudchx\",\"attachedShapeAttributes\":[\"BLOCK_STORAGE\"]},\"zones\":[\"d\",\"or\",\"bwjl\"],\"location\":\"zbfhfovvac\",\"tags\":{\"muaslzkw\":\"tuodxeszabbelaw\",\"hnomdrkywuh\":\"rwoycqucwyh\",\"lniexz\":\"svfuurutlwexxwl\",\"tybbwwpgda\":\"rzpgep\"},\"id\":\"chzyvlixqnrk\",\"name\":\"xkjibnxmy\",\"type\":\"uxswqrntvl\"}],\"nextLink\":\"jpsttexoq\"}") .toObject(ExascaleDbStorageVaultListResult.class); - Assertions.assertEquals("refdee", model.value().get(0).location()); - Assertions.assertEquals("cuijpxt", model.value().get(0).tags().get("s")); - Assertions.assertEquals(1964670338, model.value().get(0).properties().additionalFlashCacheInPercent()); - Assertions.assertEquals("yxkyxvx", model.value().get(0).properties().description()); - Assertions.assertEquals("vblbjednljlageua", model.value().get(0).properties().displayName()); - Assertions.assertEquals(1383886156, + Assertions.assertEquals("tg", model.value().get(0).location()); + Assertions.assertEquals("kdghrjeuutlwx", model.value().get(0).tags().get("z")); + Assertions.assertEquals(1023796809, model.value().get(0).properties().additionalFlashCacheInPercent()); + Assertions.assertEquals("nok", model.value().get(0).properties().description()); + Assertions.assertEquals("gukkjqnvbroy", model.value().get(0).properties().displayName()); + Assertions.assertEquals(86171978, model.value().get(0).properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); - Assertions.assertEquals("bn", model.value().get(0).properties().timeZone()); - Assertions.assertEquals("ddrtkgdojb", model.value().get(0).zones().get(0)); - Assertions.assertEquals("tg", model.nextLink()); + Assertions.assertEquals("isdos", model.value().get(0).properties().timeZone()); + Assertions.assertEquals("c", model.value().get(0).properties().exadataInfrastructureId()); + Assertions.assertEquals("nfnw", model.value().get(0).zones().get(0)); + Assertions.assertEquals("jpsttexoq", model.nextLink()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultPropertiesTests.java index 68e4d645fef5..bbe957ed822d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultPropertiesTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultPropertiesTests.java @@ -13,29 +13,31 @@ public final class ExascaleDbStorageVaultPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExascaleDbStorageVaultProperties model = BinaryData.fromString( - "{\"additionalFlashCacheInPercent\":771137006,\"description\":\"igdivbkbxg\",\"displayName\":\"mf\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":2081513021},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":1308923921,\"totalSizeInGbs\":1690246024},\"timeZone\":\"daeyygux\",\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Terminated\",\"lifecycleDetails\":\"hzbezkgi\",\"vmClusterCount\":1082466616,\"ocid\":\"xasicddyvvjskg\",\"ociUrl\":\"ocwah\"}") + "{\"additionalFlashCacheInPercent\":36693026,\"description\":\"qbw\",\"displayName\":\"ypq\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1413070711},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":1969231562,\"totalSizeInGbs\":1790951604},\"timeZone\":\"slhhxudbxv\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Terminating\",\"lifecycleDetails\":\"irudh\",\"vmClusterCount\":593896600,\"ocid\":\"sckdlp\",\"ociUrl\":\"zrcxfailcfxwmdbo\",\"exadataInfrastructureId\":\"fgsftufqob\",\"attachedShapeAttributes\":[\"SMART_STORAGE\",\"BLOCK_STORAGE\"]}") .toObject(ExascaleDbStorageVaultProperties.class); - Assertions.assertEquals(771137006, model.additionalFlashCacheInPercent()); - Assertions.assertEquals("igdivbkbxg", model.description()); - Assertions.assertEquals("mf", model.displayName()); - Assertions.assertEquals(2081513021, model.highCapacityDatabaseStorageInput().totalSizeInGbs()); - Assertions.assertEquals("daeyygux", model.timeZone()); + Assertions.assertEquals(36693026, model.additionalFlashCacheInPercent()); + Assertions.assertEquals("qbw", model.description()); + Assertions.assertEquals("ypq", model.displayName()); + Assertions.assertEquals(1413070711, model.highCapacityDatabaseStorageInput().totalSizeInGbs()); + Assertions.assertEquals("slhhxudbxv", model.timeZone()); + Assertions.assertEquals("fgsftufqob", model.exadataInfrastructureId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExascaleDbStorageVaultProperties model - = new ExascaleDbStorageVaultProperties().withAdditionalFlashCacheInPercent(771137006) - .withDescription("igdivbkbxg") - .withDisplayName("mf") - .withHighCapacityDatabaseStorageInput( - new ExascaleDbStorageInputDetails().withTotalSizeInGbs(2081513021)) - .withTimeZone("daeyygux"); + ExascaleDbStorageVaultProperties model = new ExascaleDbStorageVaultProperties() + .withAdditionalFlashCacheInPercent(36693026) + .withDescription("qbw") + .withDisplayName("ypq") + .withHighCapacityDatabaseStorageInput(new ExascaleDbStorageInputDetails().withTotalSizeInGbs(1413070711)) + .withTimeZone("slhhxudbxv") + .withExadataInfrastructureId("fgsftufqob"); model = BinaryData.fromObject(model).toObject(ExascaleDbStorageVaultProperties.class); - Assertions.assertEquals(771137006, model.additionalFlashCacheInPercent()); - Assertions.assertEquals("igdivbkbxg", model.description()); - Assertions.assertEquals("mf", model.displayName()); - Assertions.assertEquals(2081513021, model.highCapacityDatabaseStorageInput().totalSizeInGbs()); - Assertions.assertEquals("daeyygux", model.timeZone()); + Assertions.assertEquals(36693026, model.additionalFlashCacheInPercent()); + Assertions.assertEquals("qbw", model.description()); + Assertions.assertEquals("ypq", model.displayName()); + Assertions.assertEquals(1413070711, model.highCapacityDatabaseStorageInput().totalSizeInGbs()); + Assertions.assertEquals("slhhxudbxv", model.timeZone()); + Assertions.assertEquals("fgsftufqob", model.exadataInfrastructureId()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultTagsUpdateTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultTagsUpdateTests.java index 83259659903d..3827ccfceade 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultTagsUpdateTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultTagsUpdateTests.java @@ -13,17 +13,17 @@ public final class ExascaleDbStorageVaultTagsUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ExascaleDbStorageVaultTagsUpdate model = BinaryData.fromString("{\"tags\":{\"zybbj\":\"ahhvjhhna\"}}") + ExascaleDbStorageVaultTagsUpdate model = BinaryData.fromString("{\"tags\":{\"lj\":\"hxkizvytnrzv\"}}") .toObject(ExascaleDbStorageVaultTagsUpdate.class); - Assertions.assertEquals("ahhvjhhna", model.tags().get("zybbj")); + Assertions.assertEquals("hxkizvytnrzv", model.tags().get("lj")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ExascaleDbStorageVaultTagsUpdate model - = new ExascaleDbStorageVaultTagsUpdate().withTags(mapOf("zybbj", "ahhvjhhna")); + = new ExascaleDbStorageVaultTagsUpdate().withTags(mapOf("lj", "hxkizvytnrzv")); model = BinaryData.fromObject(model).toObject(ExascaleDbStorageVaultTagsUpdate.class); - Assertions.assertEquals("ahhvjhhna", model.tags().get("zybbj")); + Assertions.assertEquals("hxkizvytnrzv", model.tags().get("lj")); } // Use "Map.of" if available diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsCreateMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsCreateMockTests.java index 42035f4ad1aa..c60b9149f958 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsCreateMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsCreateMockTests.java @@ -26,7 +26,7 @@ public final class ExascaleDbStorageVaultsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"additionalFlashCacheInPercent\":64736512,\"description\":\"edev\",\"displayName\":\"bo\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":222208753},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":112594464,\"totalSizeInGbs\":9633412},\"timeZone\":\"kkhminqcymczngn\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Terminating\",\"lifecycleDetails\":\"unin\",\"vmClusterCount\":290904524,\"ocid\":\"chaqdtvqec\",\"ociUrl\":\"ct\"},\"zones\":[\"dtddmflh\",\"ytxzvtznapxbanno\",\"voxczytpr\",\"nwvroevytlyokrr\"],\"location\":\"uuxvnsasbcry\",\"tags\":{\"xnazpmkml\":\"izrxklob\"},\"id\":\"vevfxz\",\"name\":\"pj\",\"type\":\"bzxliohrdddtfgxq\"}"; + = "{\"properties\":{\"additionalFlashCacheInPercent\":1718713775,\"description\":\"fkg\",\"displayName\":\"syaowuzowp\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":586601408},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":308046550,\"totalSizeInGbs\":1455618872},\"timeZone\":\"gukxrztiochluti\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Terminating\",\"lifecycleDetails\":\"jizcbfzmcrunfhiu\",\"vmClusterCount\":1201337958,\"ocid\":\"bcpaqktkrumzued\",\"ociUrl\":\"zbfvxovqkxiu\",\"exadataInfrastructureId\":\"ggvqrnhyhlwcjs\",\"attachedShapeAttributes\":[\"BLOCK_STORAGE\",\"SMART_STORAGE\"]},\"zones\":[\"bxrqrkijp\"],\"location\":\"qlsdxeqztvxwmw\",\"tags\":{\"ecleqioulndhzyo\":\"swenawwa\",\"idmytzln\":\"ojhtollhs\"},\"id\":\"lxpnovyoanf\",\"name\":\"cswqa\",\"type\":\"ywv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,27 +36,29 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ExascaleDbStorageVault response = manager.exascaleDbStorageVaults() - .define("uuuybnchrsziz") - .withRegion("bvqt") - .withExistingResourceGroup("sjgqrsxyp") - .withTags(mapOf("ukhpyrneizjcp", "rfdl", "uxddbhfh", "ogkhnmgbr", "lontacnpq", "fpazjzoywjxhpd", "xh", - "tehtuevrhrljyoog")) - .withProperties(new ExascaleDbStorageVaultProperties().withAdditionalFlashCacheInPercent(327117456) - .withDescription("yetnd") - .withDisplayName("bf") - .withHighCapacityDatabaseStorageInput(new ExascaleDbStorageInputDetails().withTotalSizeInGbs(834158684)) - .withTimeZone("nlgmtrwahzjmu")) - .withZones(Arrays.asList("hjnhgwydyynfsvk")) + .define("r") + .withRegion("tlpqagynoi") + .withExistingResourceGroup("wiyjvzuko") + .withTags(mapOf("zxaqzibm", "zcalincryq")) + .withProperties(new ExascaleDbStorageVaultProperties().withAdditionalFlashCacheInPercent(925456345) + .withDescription("zm") + .withDisplayName("n") + .withHighCapacityDatabaseStorageInput( + new ExascaleDbStorageInputDetails().withTotalSizeInGbs(1850274865)) + .withTimeZone("abjqqaxuyvymcnud") + .withExadataInfrastructureId("kldgrcwfcmfc")) + .withZones(Arrays.asList("txjtielnzqgx", "gfb")) .create(); - Assertions.assertEquals("uuxvnsasbcry", response.location()); - Assertions.assertEquals("izrxklob", response.tags().get("xnazpmkml")); - Assertions.assertEquals(64736512, response.properties().additionalFlashCacheInPercent()); - Assertions.assertEquals("edev", response.properties().description()); - Assertions.assertEquals("bo", response.properties().displayName()); - Assertions.assertEquals(222208753, response.properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); - Assertions.assertEquals("kkhminqcymczngn", response.properties().timeZone()); - Assertions.assertEquals("dtddmflh", response.zones().get(0)); + Assertions.assertEquals("qlsdxeqztvxwmw", response.location()); + Assertions.assertEquals("swenawwa", response.tags().get("ecleqioulndhzyo")); + Assertions.assertEquals(1718713775, response.properties().additionalFlashCacheInPercent()); + Assertions.assertEquals("fkg", response.properties().description()); + Assertions.assertEquals("syaowuzowp", response.properties().displayName()); + Assertions.assertEquals(586601408, response.properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); + Assertions.assertEquals("gukxrztiochluti", response.properties().timeZone()); + Assertions.assertEquals("ggvqrnhyhlwcjs", response.properties().exadataInfrastructureId()); + Assertions.assertEquals("bxrqrkijp", response.zones().get(0)); } // Use "Map.of" if available diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsGetByResourceGroupWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsGetByResourceGroupWithResponseMockTests.java index cba26eee585f..6a849f727963 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsGetByResourceGroupWithResponseMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsGetByResourceGroupWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ExascaleDbStorageVaultsGetByResourceGroupWithResponseMockTest @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"additionalFlashCacheInPercent\":626371863,\"description\":\"o\",\"displayName\":\"dvmfqhppub\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":140837037},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":1747875725,\"totalSizeInGbs\":475630723},\"timeZone\":\"kmtdher\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Terminating\",\"lifecycleDetails\":\"uahokq\",\"vmClusterCount\":833975977,\"ocid\":\"auxofshfph\",\"ociUrl\":\"nulaiywzejywhsl\"},\"zones\":[\"jpllndnpdwrpq\",\"fgf\",\"gsnnf\",\"yetefyp\"],\"location\":\"octfjgtixrjvzuyt\",\"tags\":{\"bauiropi\":\"lmuowo\",\"n\":\"nszonwpngaj\"},\"id\":\"ixjawrtm\",\"name\":\"fjmyccxlzhco\",\"type\":\"ovne\"}"; + = "{\"properties\":{\"additionalFlashCacheInPercent\":1883901064,\"description\":\"qrs\",\"displayName\":\"pcbbprtugav\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":2066287030},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":1675076969,\"totalSizeInGbs\":1865251645},\"timeZone\":\"vm\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Available\",\"lifecycleDetails\":\"bfcmkrfts\",\"vmClusterCount\":1717750584,\"ocid\":\"jxsgmbawvifdxke\",\"ociUrl\":\"fho\",\"exadataInfrastructureId\":\"xwklooz\",\"attachedShapeAttributes\":[\"BLOCK_STORAGE\",\"SMART_STORAGE\"]},\"zones\":[\"uf\",\"nlcpxxviry\"],\"location\":\"ngjgvrquvpyg\",\"tags\":{\"jt\":\"mcrdcue\",\"q\":\"ahxm\",\"yspthzod\":\"yarvsxzqbglcjk\"},\"id\":\"btl\",\"name\":\"jtgblios\",\"type\":\"kfmkmfdjxyxgbk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,16 +31,17 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ExascaleDbStorageVault response = manager.exascaleDbStorageVaults() - .getByResourceGroupWithResponse("ewmozqvbu", "qmamhsycxhxzga", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("rdexyio", "ofninbdbz", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("octfjgtixrjvzuyt", response.location()); - Assertions.assertEquals("lmuowo", response.tags().get("bauiropi")); - Assertions.assertEquals(626371863, response.properties().additionalFlashCacheInPercent()); - Assertions.assertEquals("o", response.properties().description()); - Assertions.assertEquals("dvmfqhppub", response.properties().displayName()); - Assertions.assertEquals(140837037, response.properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); - Assertions.assertEquals("kmtdher", response.properties().timeZone()); - Assertions.assertEquals("jpllndnpdwrpq", response.zones().get(0)); + Assertions.assertEquals("ngjgvrquvpyg", response.location()); + Assertions.assertEquals("mcrdcue", response.tags().get("jt")); + Assertions.assertEquals(1883901064, response.properties().additionalFlashCacheInPercent()); + Assertions.assertEquals("qrs", response.properties().description()); + Assertions.assertEquals("pcbbprtugav", response.properties().displayName()); + Assertions.assertEquals(2066287030, response.properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); + Assertions.assertEquals("vm", response.properties().timeZone()); + Assertions.assertEquals("xwklooz", response.properties().exadataInfrastructureId()); + Assertions.assertEquals("uf", response.zones().get(0)); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListByResourceGroupMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListByResourceGroupMockTests.java index a3c6bb76c518..b97da1ff9a1e 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListByResourceGroupMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListByResourceGroupMockTests.java @@ -22,7 +22,7 @@ public final class ExascaleDbStorageVaultsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"additionalFlashCacheInPercent\":1290692047,\"description\":\"xrdcqtj\",\"displayName\":\"idttgepus\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1721166118},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":466292702,\"totalSizeInGbs\":1896192461},\"timeZone\":\"wkasiziesf\",\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Available\",\"lifecycleDetails\":\"qfecjxeygtuhx\",\"vmClusterCount\":1670662701,\"ocid\":\"uewmrswnjlxuzrhw\",\"ociUrl\":\"sxjb\"},\"zones\":[\"hgpdohzj\",\"atucoigebxncn\",\"fepbnwgfmxjgc\",\"bjb\"],\"location\":\"lfgtdysnaquflqbc\",\"tags\":{\"rwd\":\"amz\",\"antkwcegyamlbns\":\"qzeqyjleziunjxdf\",\"jjvpilguooqja\":\"qa\"},\"id\":\"m\",\"name\":\"itgueiookjbs\",\"type\":\"hrtdtpdelq\"}]}"; + = "{\"value\":[{\"properties\":{\"additionalFlashCacheInPercent\":1465620035,\"description\":\"skkzpxvjnzdpvo\",\"displayName\":\"ojhpcnabxzfsn\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":983101769},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":104765582,\"totalSizeInGbs\":2107917494},\"timeZone\":\"ilmhivzkwwwnc\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Terminating\",\"lifecycleDetails\":\"jlskzptjxulweu\",\"vmClusterCount\":585553981,\"ocid\":\"hxqlehmcgcjeinue\",\"ociUrl\":\"kamvfe\",\"exadataInfrastructureId\":\"qnttmbq\",\"attachedShapeAttributes\":[\"BLOCK_STORAGE\",\"SMART_STORAGE\"]},\"zones\":[\"fokpysthhzagjfw\",\"yrl\",\"g\",\"nuzejgvkveb\"],\"location\":\"szllrzlsmmdqgmi\",\"tags\":{\"xtminklogxsvtzar\":\"imcqrh\",\"lpky\":\"zvqnsqktcmbjwzzo\"},\"id\":\"tglwkzpgajsqjc\",\"name\":\"mqbmfuvqarwz\",\"type\":\"uqrebluimmbwx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,17 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.exascaleDbStorageVaults().listByResourceGroup("henlusfnr", com.azure.core.util.Context.NONE); + = manager.exascaleDbStorageVaults().listByResourceGroup("qvjcteoe", com.azure.core.util.Context.NONE); - Assertions.assertEquals("lfgtdysnaquflqbc", response.iterator().next().location()); - Assertions.assertEquals("amz", response.iterator().next().tags().get("rwd")); - Assertions.assertEquals(1290692047, response.iterator().next().properties().additionalFlashCacheInPercent()); - Assertions.assertEquals("xrdcqtj", response.iterator().next().properties().description()); - Assertions.assertEquals("idttgepus", response.iterator().next().properties().displayName()); - Assertions.assertEquals(1721166118, + Assertions.assertEquals("szllrzlsmmdqgmi", response.iterator().next().location()); + Assertions.assertEquals("imcqrh", response.iterator().next().tags().get("xtminklogxsvtzar")); + Assertions.assertEquals(1465620035, response.iterator().next().properties().additionalFlashCacheInPercent()); + Assertions.assertEquals("skkzpxvjnzdpvo", response.iterator().next().properties().description()); + Assertions.assertEquals("ojhpcnabxzfsn", response.iterator().next().properties().displayName()); + Assertions.assertEquals(983101769, response.iterator().next().properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); - Assertions.assertEquals("wkasiziesf", response.iterator().next().properties().timeZone()); - Assertions.assertEquals("hgpdohzj", response.iterator().next().zones().get(0)); + Assertions.assertEquals("ilmhivzkwwwnc", response.iterator().next().properties().timeZone()); + Assertions.assertEquals("qnttmbq", response.iterator().next().properties().exadataInfrastructureId()); + Assertions.assertEquals("fokpysthhzagjfw", response.iterator().next().zones().get(0)); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListMockTests.java index dd2e2e2f43da..2dfadc95234d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ExascaleDbStorageVaultsListMockTests.java @@ -22,7 +22,7 @@ public final class ExascaleDbStorageVaultsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"additionalFlashCacheInPercent\":1648756577,\"description\":\"otoebnfxofv\",\"displayName\":\"jkgd\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1994571012},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":215390603,\"totalSizeInGbs\":811935890},\"timeZone\":\"jwabmd\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Terminated\",\"lifecycleDetails\":\"op\",\"vmClusterCount\":206055715,\"ocid\":\"jurbuhhlkyqltqsr\",\"ociUrl\":\"tuwkffdj\"},\"zones\":[\"ysidfvclgl\",\"n\",\"uijtkbu\",\"qogsfikayian\"],\"location\":\"arujt\",\"tags\":{\"j\":\"xfz\",\"penuy\":\"ttvwkpqh\",\"guaucmfdjwnla\":\"bqeqqekewvnqvcd\"},\"id\":\"punj\",\"name\":\"ikczvvitacgxmf\",\"type\":\"sserxhtvsoxhlwn\"}]}"; + = "{\"value\":[{\"properties\":{\"additionalFlashCacheInPercent\":394613556,\"description\":\"mbvx\",\"displayName\":\"kraokq\",\"highCapacityDatabaseStorageInput\":{\"totalSizeInGbs\":1232558880},\"highCapacityDatabaseStorage\":{\"availableSizeInGbs\":1035181790,\"totalSizeInGbs\":818793523},\"timeZone\":\"okbavlyttaak\",\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Failed\",\"lifecycleDetails\":\"bsmhpdujdiga\",\"vmClusterCount\":1236887032,\"ocid\":\"ksc\",\"ociUrl\":\"tnanqimwb\",\"exadataInfrastructureId\":\"pdcldpka\",\"attachedShapeAttributes\":[\"BLOCK_STORAGE\",\"BLOCK_STORAGE\",\"BLOCK_STORAGE\"]},\"zones\":[\"o\",\"xwksq\",\"udmfcoibiczius\",\"s\"],\"location\":\"rk\",\"tags\":{\"yfscyrfwbivqvo\":\"jhbtqq\",\"wvbhlimbyq\":\"fuy\"},\"id\":\"crood\",\"name\":\"ikcdrdaasax\",\"type\":\"obsmf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,14 +34,15 @@ public void testList() throws Exception { PagedIterable response = manager.exascaleDbStorageVaults().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("arujt", response.iterator().next().location()); - Assertions.assertEquals("xfz", response.iterator().next().tags().get("j")); - Assertions.assertEquals(1648756577, response.iterator().next().properties().additionalFlashCacheInPercent()); - Assertions.assertEquals("otoebnfxofv", response.iterator().next().properties().description()); - Assertions.assertEquals("jkgd", response.iterator().next().properties().displayName()); - Assertions.assertEquals(1994571012, + Assertions.assertEquals("rk", response.iterator().next().location()); + Assertions.assertEquals("jhbtqq", response.iterator().next().tags().get("yfscyrfwbivqvo")); + Assertions.assertEquals(394613556, response.iterator().next().properties().additionalFlashCacheInPercent()); + Assertions.assertEquals("mbvx", response.iterator().next().properties().description()); + Assertions.assertEquals("kraokq", response.iterator().next().properties().displayName()); + Assertions.assertEquals(1232558880, response.iterator().next().properties().highCapacityDatabaseStorageInput().totalSizeInGbs()); - Assertions.assertEquals("jwabmd", response.iterator().next().properties().timeZone()); - Assertions.assertEquals("ysidfvclgl", response.iterator().next().zones().get(0)); + Assertions.assertEquals("okbavlyttaak", response.iterator().next().properties().timeZone()); + Assertions.assertEquals("pdcldpka", response.iterator().next().properties().exadataInfrastructureId()); + Assertions.assertEquals("o", response.iterator().next().zones().get(0)); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FileSystemConfigurationDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FileSystemConfigurationDetailsTests.java index a06087ae0f8b..fd04fe36d9b6 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FileSystemConfigurationDetailsTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FileSystemConfigurationDetailsTests.java @@ -12,18 +12,18 @@ public final class FileSystemConfigurationDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FileSystemConfigurationDetails model - = BinaryData.fromString("{\"mountPoint\":\"ygpfqb\",\"fileSystemSizeGb\":1732351428}") + = BinaryData.fromString("{\"mountPoint\":\"jbi\",\"fileSystemSizeGb\":532379819}") .toObject(FileSystemConfigurationDetails.class); - Assertions.assertEquals("ygpfqb", model.mountPoint()); - Assertions.assertEquals(1732351428, model.fileSystemSizeGb()); + Assertions.assertEquals("jbi", model.mountPoint()); + Assertions.assertEquals(532379819, model.fileSystemSizeGb()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FileSystemConfigurationDetails model - = new FileSystemConfigurationDetails().withMountPoint("ygpfqb").withFileSystemSizeGb(1732351428); + = new FileSystemConfigurationDetails().withMountPoint("jbi").withFileSystemSizeGb(532379819); model = BinaryData.fromObject(model).toObject(FileSystemConfigurationDetails.class); - Assertions.assertEquals("ygpfqb", model.mountPoint()); - Assertions.assertEquals(1732351428, model.fileSystemSizeGb()); + Assertions.assertEquals("jbi", model.mountPoint()); + Assertions.assertEquals(532379819, model.fileSystemSizeGb()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentInnerTests.java index 815811e0d5fd..050103ed8b2c 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentInnerTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentInnerTests.java @@ -11,7 +11,7 @@ public final class FlexComponentInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FlexComponentInner model = BinaryData.fromString( - "{\"properties\":{\"minimumCoreCount\":1441436450,\"availableCoreCount\":312657559,\"availableDbStorageInGbs\":1646867307,\"runtimeMinimumCoreCount\":1846844477,\"shape\":\"tronzmyhgfi\",\"availableMemoryInGbs\":884290238,\"availableLocalStorageInGbs\":1762342215,\"computeModel\":\"cwaekrrjre\",\"hardwareType\":\"COMPUTE\",\"descriptionSummary\":\"sgumhjglikkxwsl\"},\"id\":\"bq\",\"name\":\"vuzlm\",\"type\":\"felfktg\"}") + "{\"properties\":{\"minimumCoreCount\":712320662,\"availableCoreCount\":270818491,\"availableDbStorageInGbs\":2069063654,\"runtimeMinimumCoreCount\":2131974737,\"shape\":\"cx\",\"availableMemoryInGbs\":1392453410,\"availableLocalStorageInGbs\":469495787,\"computeModel\":\"ofbshr\",\"hardwareType\":\"COMPUTE\",\"descriptionSummary\":\"uswdv\"},\"id\":\"ybycnunvj\",\"name\":\"rtkfawnopq\",\"type\":\"ikyzirtxdy\"}") .toObject(FlexComponentInner.class); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentListResultTests.java index 9733728334aa..6feb3e170382 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentListResultTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentListResultTests.java @@ -12,8 +12,8 @@ public final class FlexComponentListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FlexComponentListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"minimumCoreCount\":1784311457,\"availableCoreCount\":953269937,\"availableDbStorageInGbs\":1886433502,\"runtimeMinimumCoreCount\":1615411821,\"shape\":\"ou\",\"availableMemoryInGbs\":583930793,\"availableLocalStorageInGbs\":1629176755,\"computeModel\":\"qaaysjkixqt\",\"hardwareType\":\"COMPUTE\",\"descriptionSummary\":\"ezl\"},\"id\":\"ffiakp\",\"name\":\"pqqmted\",\"type\":\"tmmjihyeozph\"},{\"properties\":{\"minimumCoreCount\":1760801565,\"availableCoreCount\":404997188,\"availableDbStorageInGbs\":84771050,\"runtimeMinimumCoreCount\":1385853585,\"shape\":\"p\",\"availableMemoryInGbs\":2023825690,\"availableLocalStorageInGbs\":587818822,\"computeModel\":\"scw\",\"hardwareType\":\"COMPUTE\",\"descriptionSummary\":\"evzhfsto\"},\"id\":\"hojujbypelmcuv\",\"name\":\"ixbjx\",\"type\":\"fw\"},{\"properties\":{\"minimumCoreCount\":156258046,\"availableCoreCount\":729990408,\"availableDbStorageInGbs\":1448571025,\"runtimeMinimumCoreCount\":1926666832,\"shape\":\"p\",\"availableMemoryInGbs\":156092628,\"availableLocalStorageInGbs\":1511616464,\"computeModel\":\"nujrywvtyl\",\"hardwareType\":\"COMPUTE\",\"descriptionSummary\":\"curdoiwiitht\"},\"id\":\"ubxcbihw\",\"name\":\"knfd\",\"type\":\"twjchrdg\"}],\"nextLink\":\"hxumwctondzj\"}") + "{\"value\":[{\"properties\":{\"minimumCoreCount\":1224652239,\"availableCoreCount\":779819591,\"availableDbStorageInGbs\":1575038550,\"runtimeMinimumCoreCount\":938334267,\"shape\":\"mv\",\"availableMemoryInGbs\":1791682028,\"availableLocalStorageInGbs\":276592669,\"computeModel\":\"vwxnbkfe\",\"hardwareType\":\"CELL\",\"descriptionSummary\":\"cy\"},\"id\":\"zdgiruj\",\"name\":\"zbomvzzbtdcqvpni\",\"type\":\"ujviylwdshfs\"}],\"nextLink\":\"rbgyefry\"}") .toObject(FlexComponentListResult.class); - Assertions.assertEquals("hxumwctondzj", model.nextLink()); + Assertions.assertEquals("rbgyefry", model.nextLink()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentPropertiesTests.java index f451ca3957e2..7a89206173ad 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentPropertiesTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentPropertiesTests.java @@ -11,7 +11,7 @@ public final class FlexComponentPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FlexComponentProperties model = BinaryData.fromString( - "{\"minimumCoreCount\":957829467,\"availableCoreCount\":1827941579,\"availableDbStorageInGbs\":1811629321,\"runtimeMinimumCoreCount\":1534218395,\"shape\":\"noigbrnjwmwk\",\"availableMemoryInGbs\":703556051,\"availableLocalStorageInGbs\":808609813,\"computeModel\":\"ejjoqkagfhsxtta\",\"hardwareType\":\"COMPUTE\",\"descriptionSummary\":\"nfaazpxdtnkdmkq\"}") + "{\"minimumCoreCount\":1631335830,\"availableCoreCount\":1444158285,\"availableDbStorageInGbs\":1189473402,\"runtimeMinimumCoreCount\":902595467,\"shape\":\"wgioilqukry\",\"availableMemoryInGbs\":1625650098,\"availableLocalStorageInGbs\":599402344,\"computeModel\":\"eoxorggufhyao\",\"hardwareType\":\"CELL\",\"descriptionSummary\":\"hhavgrvkffovjz\"}") .toObject(FlexComponentProperties.class); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsGetWithResponseMockTests.java index 45c681ea6052..2c481182a08d 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsGetWithResponseMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class FlexComponentsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"minimumCoreCount\":1667275200,\"availableCoreCount\":1141313452,\"availableDbStorageInGbs\":2082373615,\"runtimeMinimumCoreCount\":735394972,\"shape\":\"ykggnoxuztrksx\",\"availableMemoryInGbs\":1615864463,\"availableLocalStorageInGbs\":29504887,\"computeModel\":\"pfnznthjtwkj\",\"hardwareType\":\"CELL\",\"descriptionSummary\":\"xuzvoamktcqi\"},\"id\":\"mgbzahgxqdlyrtl\",\"name\":\"laprlt\",\"type\":\"katbhjm\"}"; + = "{\"properties\":{\"minimumCoreCount\":1354484922,\"availableCoreCount\":1345768053,\"availableDbStorageInGbs\":220853463,\"runtimeMinimumCoreCount\":1307566390,\"shape\":\"fytpqsixymmpuji\",\"availableMemoryInGbs\":1474208160,\"availableLocalStorageInGbs\":1164095786,\"computeModel\":\"uvsmbms\",\"hardwareType\":\"COMPUTE\",\"descriptionSummary\":\"ovwzdbpqvybefg\"},\"id\":\"x\",\"name\":\"okcvtlubses\",\"type\":\"vcuartrhun\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,9 +29,8 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - FlexComponent response = manager.flexComponents() - .getWithResponse("hmipgawtxxpkyjc", "cjxgrytf", com.azure.core.util.Context.NONE) - .getValue(); + FlexComponent response + = manager.flexComponents().getWithResponse("xf", "vaknokzwjj", com.azure.core.util.Context.NONE).getValue(); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsListByParentMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsListByParentMockTests.java index cb019fafbc80..6d125c3ec810 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsListByParentMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/FlexComponentsListByParentMockTests.java @@ -22,7 +22,7 @@ public final class FlexComponentsListByParentMockTests { @Test public void testListByParent() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"minimumCoreCount\":1340564567,\"availableCoreCount\":1515346381,\"availableDbStorageInGbs\":226736084,\"runtimeMinimumCoreCount\":2138595682,\"shape\":\"febwlnbmhyreeudz\",\"availableMemoryInGbs\":1880601088,\"availableLocalStorageInGbs\":2042624094,\"computeModel\":\"qmjxlyyzglgouwtl\",\"hardwareType\":\"CELL\",\"descriptionSummary\":\"uojqt\"},\"id\":\"axkjeytunlbfjk\",\"name\":\"rusnk\",\"type\":\"bhsy\"}]}"; + = "{\"value\":[{\"properties\":{\"minimumCoreCount\":1830038305,\"availableCoreCount\":461124348,\"availableDbStorageInGbs\":740556470,\"runtimeMinimumCoreCount\":2036757634,\"shape\":\"gltbxoeeo\",\"availableMemoryInGbs\":558021080,\"availableLocalStorageInGbs\":1794310518,\"computeModel\":\"myymvqdbpbhfckdv\",\"hardwareType\":\"COMPUTE\",\"descriptionSummary\":\"cssbzhddu\"},\"id\":\"nqfblhkalehpava\",\"name\":\"ugiqjtiogqg\",\"type\":\"minict\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,7 +32,7 @@ public void testListByParent() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.flexComponents() - .listByParent("nnbsoqeqa", SystemShapes.EXA_DB_XS, com.azure.core.util.Context.NONE); + .listByParent("pirykycndzfqiv", SystemShapes.EXA_DB_XS, com.azure.core.util.Context.NONE); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionInnerTests.java index 04450bbf364d..ccb455d3d510 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionInnerTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionInnerTests.java @@ -12,9 +12,9 @@ public final class GiMinorVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GiMinorVersionInner model = BinaryData.fromString( - "{\"properties\":{\"version\":\"ytguslf\",\"gridImageOcid\":\"dcygqukyhejhz\"},\"id\":\"xgfpelolppv\",\"name\":\"srp\",\"type\":\"vu\"}") + "{\"properties\":{\"version\":\"khevxccedc\",\"gridImageOcid\":\"md\"},\"id\":\"dnwzxltjcvnhltiu\",\"name\":\"cxnavv\",\"type\":\"xqi\"}") .toObject(GiMinorVersionInner.class); - Assertions.assertEquals("ytguslf", model.properties().version()); - Assertions.assertEquals("dcygqukyhejhz", model.properties().gridImageOcid()); + Assertions.assertEquals("khevxccedc", model.properties().version()); + Assertions.assertEquals("md", model.properties().gridImageOcid()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionListResultTests.java index 5bca411403e3..131fb15d68fc 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionListResultTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionListResultTests.java @@ -12,10 +12,10 @@ public final class GiMinorVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GiMinorVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"version\":\"oluhczbwemh\",\"gridImageOcid\":\"rsbrgzdwm\"},\"id\":\"eypqwdxggicccn\",\"name\":\"qhuexm\",\"type\":\"ttlstvlzywemhz\"}],\"nextLink\":\"csdtclusiypbs\"}") + "{\"value\":[{\"properties\":{\"version\":\"woluhczbwemhair\",\"gridImageOcid\":\"rgzdwmsweyp\"},\"id\":\"dxggicccnxqhuexm\",\"name\":\"ttlstvlzywemhz\",\"type\":\"ncsdtclusiyp\"},{\"properties\":{\"version\":\"fgytguslfeadcyg\",\"gridImageOcid\":\"kyhejhzisxgf\"},\"id\":\"lolp\",\"name\":\"vk\",\"type\":\"r\"},{\"properties\":{\"version\":\"vu\",\"gridImageOcid\":\"raehtwdwrft\"},\"id\":\"iby\",\"name\":\"cdl\",\"type\":\"h\"}],\"nextLink\":\"fwpracstwi\"}") .toObject(GiMinorVersionListResult.class); - Assertions.assertEquals("oluhczbwemh", model.value().get(0).properties().version()); - Assertions.assertEquals("rsbrgzdwm", model.value().get(0).properties().gridImageOcid()); - Assertions.assertEquals("csdtclusiypbs", model.nextLink()); + Assertions.assertEquals("woluhczbwemhair", model.value().get(0).properties().version()); + Assertions.assertEquals("rgzdwmsweyp", model.value().get(0).properties().gridImageOcid()); + Assertions.assertEquals("fwpracstwi", model.nextLink()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionPropertiesTests.java index 863cd0335c77..96bd7b3f76e4 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionPropertiesTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionPropertiesTests.java @@ -12,9 +12,9 @@ public final class GiMinorVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GiMinorVersionProperties model - = BinaryData.fromString("{\"version\":\"zraehtwd\",\"gridImageOcid\":\"ftswibyrcdlbhsh\"}") + = BinaryData.fromString("{\"version\":\"y\",\"gridImageOcid\":\"nyowxwlmdjrkvfg\"}") .toObject(GiMinorVersionProperties.class); - Assertions.assertEquals("zraehtwd", model.version()); - Assertions.assertEquals("ftswibyrcdlbhsh", model.gridImageOcid()); + Assertions.assertEquals("y", model.version()); + Assertions.assertEquals("nyowxwlmdjrkvfg", model.gridImageOcid()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsGetWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsGetWithResponseMockTests.java index 1b0eb1a10c7d..e8a319bb6577 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsGetWithResponseMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class GiMinorVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"version\":\"iegstm\",\"gridImageOcid\":\"nwjizcilnghgshej\"},\"id\":\"bxqmu\",\"name\":\"uxlxqzvners\",\"type\":\"ycucrwnamikzeb\"}"; + = "{\"properties\":{\"version\":\"xitp\",\"gridImageOcid\":\"nzcpdltkr\"},\"id\":\"jmtbd\",\"name\":\"vcqguefzh\",\"type\":\"mpheqdur\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GiMinorVersion response = manager.giMinorVersions() - .getWithResponse("cb", "rds", "uwc", com.azure.core.util.Context.NONE) + .getWithResponse("zmwntopagt", "mvmmagoaqylkjz", "jiuazjc", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("iegstm", response.properties().version()); - Assertions.assertEquals("nwjizcilnghgshej", response.properties().gridImageOcid()); + Assertions.assertEquals("xitp", response.properties().version()); + Assertions.assertEquals("nzcpdltkr", response.properties().gridImageOcid()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsListByParentMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsListByParentMockTests.java index ca40c2606008..0e012a5688bd 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsListByParentMockTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/GiMinorVersionsListByParentMockTests.java @@ -23,7 +23,7 @@ public final class GiMinorVersionsListByParentMockTests { @Test public void testListByParent() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"version\":\"ixokffqyin\",\"gridImageOcid\":\"qepqwhixmon\"},\"id\":\"shiy\",\"name\":\"gvelfc\",\"type\":\"du\"}]}"; + = "{\"value\":[{\"properties\":{\"version\":\"atvcrkdlbnbq\",\"gridImageOcid\":\"h\"},\"id\":\"yhzlwxaeaovurexd\",\"name\":\"d\",\"type\":\"bdweade\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,9 +33,10 @@ public void testListByParent() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.giMinorVersions() - .listByParent("nz", "jgehkf", ShapeFamily.EXADATA, "m", com.azure.core.util.Context.NONE); + .listByParent("byubhiqdxyurnpn", "hza", ShapeFamily.EXADATA, "cnuhiigbylbuigv", + com.azure.core.util.Context.NONE); - Assertions.assertEquals("ixokffqyin", response.iterator().next().properties().version()); - Assertions.assertEquals("qepqwhixmon", response.iterator().next().properties().gridImageOcid()); + Assertions.assertEquals("atvcrkdlbnbq", response.iterator().next().properties().version()); + Assertions.assertEquals("h", response.iterator().next().properties().gridImageOcid()); } } 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 index 059276f23e94..b1d344587ff6 100644 --- 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 @@ -12,8 +12,8 @@ public final class GiVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GiVersionInner model = BinaryData.fromString( - "{\"properties\":{\"version\":\"pusdstt\"},\"id\":\"ogvbbejdcngq\",\"name\":\"m\",\"type\":\"akufgmjz\"}") + "{\"properties\":{\"version\":\"lmnguxaw\"},\"id\":\"ldsyuuximerqfob\",\"name\":\"yznkby\",\"type\":\"utwpfhp\"}") .toObject(GiVersionInner.class); - Assertions.assertEquals("pusdstt", model.properties().version()); + Assertions.assertEquals("lmnguxaw", model.properties().version()); } } 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 index be02ec1680fd..a9aaeed189c0 100644 --- 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 @@ -12,9 +12,9 @@ public final class GiVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GiVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"version\":\"twaenuuzko\"},\"id\":\"minrfdw\",\"name\":\"yuhhziu\",\"type\":\"efozbhdms\"},{\"properties\":{\"version\":\"mzqhoftrmaequi\"},\"id\":\"xicslfao\",\"name\":\"z\",\"type\":\"iyylhalnswhccsp\"}],\"nextLink\":\"aivwitqscywu\"}") + "{\"value\":[{\"properties\":{\"version\":\"lmkk\"},\"id\":\"vdlhewpusdsttwv\",\"name\":\"gvbbejdcng\",\"type\":\"qmoa\"},{\"properties\":{\"version\":\"fgmjzrwrdgrt\"},\"id\":\"enuuzkopbm\",\"name\":\"nrfdw\",\"type\":\"yuhhziu\"},{\"properties\":{\"version\":\"fozbhdmsmlmzqhof\"},\"id\":\"maequiahxicslfa\",\"name\":\"qzpiyyl\",\"type\":\"alnswhccsphk\"}],\"nextLink\":\"vwitqscyw\"}") .toObject(GiVersionListResult.class); - Assertions.assertEquals("twaenuuzko", model.value().get(0).properties().version()); - Assertions.assertEquals("aivwitqscywu", model.nextLink()); + Assertions.assertEquals("lmkk", model.value().get(0).properties().version()); + Assertions.assertEquals("vwitqscyw", 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 index d0f6339c6f6b..12528049be68 100644 --- 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 @@ -11,7 +11,8 @@ public final class GiVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - GiVersionProperties model = BinaryData.fromString("{\"version\":\"wr\"}").toObject(GiVersionProperties.class); - Assertions.assertEquals("wr", model.version()); + GiVersionProperties model + = BinaryData.fromString("{\"version\":\"gmhrskdsnfdsdoak\"}").toObject(GiVersionProperties.class); + Assertions.assertEquals("gmhrskdsnfdsdoak", model.version()); } } 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 index c4f7294ac3d1..75987bfd83d8 100644 --- 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 @@ -21,7 +21,7 @@ public final class GiVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"version\":\"totiowlxteqdptjg\"},\"id\":\"tgukranblwphql\",\"name\":\"ccuzgygq\",\"type\":\"ahoiulwgni\"}"; + = "{\"properties\":{\"version\":\"tjo\"},\"id\":\"cvovjufyc\",\"name\":\"jmlbemyejiriux\",\"type\":\"gthortudaw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,9 +30,10 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - GiVersion response - = manager.giVersions().getWithResponse("sl", "iiiovgqcgxuugq", com.azure.core.util.Context.NONE).getValue(); + GiVersion response = manager.giVersions() + .getWithResponse("yltcoqcuj", "dsxzakuejkmvb", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("totiowlxteqdptjg", response.properties().version()); + Assertions.assertEquals("tjo", response.properties().version()); } } 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 index 2265f339bca5..471471dae8c1 100644 --- 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 @@ -23,7 +23,7 @@ public final class GiVersionsListByLocationMockTests { @Test public void testListByLocation() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"version\":\"nptfujgi\"},\"id\":\"aaoepttaqut\",\"name\":\"ewemxs\",\"type\":\"vru\"}]}"; + = "{\"value\":[{\"properties\":{\"version\":\"h\"},\"id\":\"lialwcjgckbbcccg\",\"name\":\"praoxn\",\"type\":\"uffatsgftipwc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,8 +33,8 @@ public void testListByLocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.giVersions() - .listByLocation("ffmbmxzjrg", SystemShapes.EXADATA_X11M, "wpgj", com.azure.core.util.Context.NONE); + .listByLocation("pjfe", SystemShapes.EXADATA_X9M, "erppt", "bgqnz", com.azure.core.util.Context.NONE); - Assertions.assertEquals("nptfujgi", response.iterator().next().properties().version()); + Assertions.assertEquals("h", response.iterator().next().properties().version()); } } 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 index 230a7bf79712..ba0283411ed7 100644 --- 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 @@ -14,25 +14,25 @@ public final class LongTermBackUpScheduleDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LongTermBackUpScheduleDetails model = BinaryData.fromString( - "{\"repeatCadence\":\"OneTime\",\"timeOfBackup\":\"2021-10-09T00:59:13Z\",\"retentionPeriodInDays\":98859103,\"isDisabled\":true}") + "{\"repeatCadence\":\"Monthly\",\"timeOfBackup\":\"2021-06-03T05:33:27Z\",\"retentionPeriodInDays\":275372238,\"isDisabled\":false}") .toObject(LongTermBackUpScheduleDetails.class); - Assertions.assertEquals(RepeatCadenceType.ONE_TIME, model.repeatCadence()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-09T00:59:13Z"), model.timeOfBackup()); - Assertions.assertEquals(98859103, model.retentionPeriodInDays()); - Assertions.assertTrue(model.isDisabled()); + Assertions.assertEquals(RepeatCadenceType.MONTHLY, model.repeatCadence()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T05:33:27Z"), model.timeOfBackup()); + Assertions.assertEquals(275372238, model.retentionPeriodInDays()); + Assertions.assertFalse(model.isDisabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { LongTermBackUpScheduleDetails model - = new LongTermBackUpScheduleDetails().withRepeatCadence(RepeatCadenceType.ONE_TIME) - .withTimeOfBackup(OffsetDateTime.parse("2021-10-09T00:59:13Z")) - .withRetentionPeriodInDays(98859103) - .withIsDisabled(true); + = new LongTermBackUpScheduleDetails().withRepeatCadence(RepeatCadenceType.MONTHLY) + .withTimeOfBackup(OffsetDateTime.parse("2021-06-03T05:33:27Z")) + .withRetentionPeriodInDays(275372238) + .withIsDisabled(false); model = BinaryData.fromObject(model).toObject(LongTermBackUpScheduleDetails.class); - Assertions.assertEquals(RepeatCadenceType.ONE_TIME, model.repeatCadence()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-09T00:59:13Z"), model.timeOfBackup()); - Assertions.assertEquals(98859103, model.retentionPeriodInDays()); - Assertions.assertTrue(model.isDisabled()); + Assertions.assertEquals(RepeatCadenceType.MONTHLY, model.repeatCadence()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T05:33:27Z"), model.timeOfBackup()); + Assertions.assertEquals(275372238, model.retentionPeriodInDays()); + Assertions.assertFalse(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 index b774e51fe2c8..63f66129d4c0 100644 --- 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 @@ -19,43 +19,43 @@ public final class MaintenanceWindowTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MaintenanceWindow model = BinaryData.fromString( - "{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"June\"},{\"name\":\"March\"}],\"weeksOfMonth\":[970666878],\"daysOfWeek\":[{\"name\":\"Friday\"},{\"name\":\"Friday\"},{\"name\":\"Monday\"}],\"hoursOfDay\":[333094369,1110747875,73605186],\"leadTimeInWeeks\":124550903,\"patchingMode\":\"NonRolling\",\"customActionTimeoutInMins\":1340454664,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":true}") + "{\"preference\":\"CustomPreference\",\"months\":[{\"name\":\"August\"},{\"name\":\"October\"},{\"name\":\"April\"},{\"name\":\"March\"}],\"weeksOfMonth\":[866198392],\"daysOfWeek\":[{\"name\":\"Saturday\"}],\"hoursOfDay\":[1346564492,1861834573,375848936,1220710831],\"leadTimeInWeeks\":956878361,\"patchingMode\":\"Rolling\",\"customActionTimeoutInMins\":722307224,\"isCustomActionTimeoutEnabled\":true,\"isMonthlyPatchingEnabled\":false}") .toObject(MaintenanceWindow.class); Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.preference()); - Assertions.assertEquals(MonthName.JUNE, model.months().get(0).name()); - Assertions.assertEquals(970666878, model.weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.FRIDAY, model.daysOfWeek().get(0).name()); - Assertions.assertEquals(333094369, model.hoursOfDay().get(0)); - Assertions.assertEquals(124550903, model.leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.patchingMode()); - Assertions.assertEquals(1340454664, model.customActionTimeoutInMins()); + Assertions.assertEquals(MonthName.AUGUST, model.months().get(0).name()); + Assertions.assertEquals(866198392, model.weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.SATURDAY, model.daysOfWeek().get(0).name()); + Assertions.assertEquals(1346564492, model.hoursOfDay().get(0)); + Assertions.assertEquals(956878361, model.leadTimeInWeeks()); + Assertions.assertEquals(PatchingMode.ROLLING, model.patchingMode()); + Assertions.assertEquals(722307224, model.customActionTimeoutInMins()); Assertions.assertTrue(model.isCustomActionTimeoutEnabled()); - Assertions.assertTrue(model.isMonthlyPatchingEnabled()); + Assertions.assertFalse(model.isMonthlyPatchingEnabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MaintenanceWindow model = new MaintenanceWindow().withPreference(Preference.CUSTOM_PREFERENCE) - .withMonths(Arrays.asList(new Month().withName(MonthName.JUNE), new Month().withName(MonthName.MARCH))) - .withWeeksOfMonth(Arrays.asList(970666878)) - .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.FRIDAY), - new DayOfWeek().withName(DayOfWeekName.FRIDAY), new DayOfWeek().withName(DayOfWeekName.MONDAY))) - .withHoursOfDay(Arrays.asList(333094369, 1110747875, 73605186)) - .withLeadTimeInWeeks(124550903) - .withPatchingMode(PatchingMode.NON_ROLLING) - .withCustomActionTimeoutInMins(1340454664) + .withMonths(Arrays.asList(new Month().withName(MonthName.AUGUST), new Month().withName(MonthName.OCTOBER), + new Month().withName(MonthName.APRIL), new Month().withName(MonthName.MARCH))) + .withWeeksOfMonth(Arrays.asList(866198392)) + .withDaysOfWeek(Arrays.asList(new DayOfWeek().withName(DayOfWeekName.SATURDAY))) + .withHoursOfDay(Arrays.asList(1346564492, 1861834573, 375848936, 1220710831)) + .withLeadTimeInWeeks(956878361) + .withPatchingMode(PatchingMode.ROLLING) + .withCustomActionTimeoutInMins(722307224) .withIsCustomActionTimeoutEnabled(true) - .withIsMonthlyPatchingEnabled(true); + .withIsMonthlyPatchingEnabled(false); model = BinaryData.fromObject(model).toObject(MaintenanceWindow.class); Assertions.assertEquals(Preference.CUSTOM_PREFERENCE, model.preference()); - Assertions.assertEquals(MonthName.JUNE, model.months().get(0).name()); - Assertions.assertEquals(970666878, model.weeksOfMonth().get(0)); - Assertions.assertEquals(DayOfWeekName.FRIDAY, model.daysOfWeek().get(0).name()); - Assertions.assertEquals(333094369, model.hoursOfDay().get(0)); - Assertions.assertEquals(124550903, model.leadTimeInWeeks()); - Assertions.assertEquals(PatchingMode.NON_ROLLING, model.patchingMode()); - Assertions.assertEquals(1340454664, model.customActionTimeoutInMins()); + Assertions.assertEquals(MonthName.AUGUST, model.months().get(0).name()); + Assertions.assertEquals(866198392, model.weeksOfMonth().get(0)); + Assertions.assertEquals(DayOfWeekName.SATURDAY, model.daysOfWeek().get(0).name()); + Assertions.assertEquals(1346564492, model.hoursOfDay().get(0)); + Assertions.assertEquals(956878361, model.leadTimeInWeeks()); + Assertions.assertEquals(PatchingMode.ROLLING, model.patchingMode()); + Assertions.assertEquals(722307224, model.customActionTimeoutInMins()); Assertions.assertTrue(model.isCustomActionTimeoutEnabled()); - Assertions.assertTrue(model.isMonthlyPatchingEnabled()); + Assertions.assertFalse(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 index a3f7da52219a..ed77c9b6a3f1 100644 --- 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 @@ -12,14 +12,14 @@ public final class MonthTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Month model = BinaryData.fromString("{\"name\":\"April\"}").toObject(Month.class); - Assertions.assertEquals(MonthName.APRIL, model.name()); + Month model = BinaryData.fromString("{\"name\":\"September\"}").toObject(Month.class); + Assertions.assertEquals(MonthName.SEPTEMBER, model.name()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Month model = new Month().withName(MonthName.APRIL); + Month model = new Month().withName(MonthName.SEPTEMBER); model = BinaryData.fromObject(model).toObject(Month.class); - Assertions.assertEquals(MonthName.APRIL, model.name()); + Assertions.assertEquals(MonthName.SEPTEMBER, model.name()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorInnerTests.java new file mode 100644 index 000000000000..481ebc1511ab --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorInnerTests.java @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.fluent.models.NetworkAnchorInner; +import com.azure.resourcemanager.oracledatabase.models.DnsForwardingRule; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class NetworkAnchorInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkAnchorInner model = BinaryData.fromString( + "{\"properties\":{\"resourceAnchorId\":\"mxelnwcltyjed\",\"provisioningState\":\"Succeeded\",\"vnetId\":\"lfmk\",\"subnetId\":\"scazuawxtzxpu\",\"cidrBlock\":\"wabzxrvxcushsp\",\"ociVcnId\":\"ivmxyasfl\",\"ociVcnDnsLabel\":\"sgzwywakoihknsm\",\"ociSubnetId\":\"lmljhlnymzotq\",\"ociBackupCidrBlock\":\"yuzcbmqqvxmvw\",\"isOracleToAzureDnsZoneSyncEnabled\":false,\"isOracleDnsListeningEndpointEnabled\":false,\"isOracleDnsForwardingEndpointEnabled\":true,\"dnsForwardingRules\":[{\"domainNames\":\"upeujlzqnhcvsq\",\"forwardingIpAddress\":\"tnzoibgsxgnxfy\"}],\"dnsListeningEndpointAllowedCidrs\":\"nmpqoxwdofdb\",\"dnsListeningEndpointIpAddress\":\"qxeiiqbimhtmwwi\",\"dnsForwardingEndpointIpAddress\":\"ehfqpofvwbc\",\"dnsForwardingRulesUrl\":\"embnkbw\",\"dnsListeningEndpointNsgRulesUrl\":\"vxkdivqihebwtswb\",\"dnsForwardingEndpointNsgRulesUrl\":\"wfmdurage\"},\"zones\":[\"vcjfelisdjubggb\",\"igkxkbsazga\",\"gacyrcmjdmspo\",\"apvu\"],\"location\":\"ylnio\",\"tags\":{\"l\":\"gbzjedmstkv\"},\"id\":\"xbcuiiznkt\",\"name\":\"f\",\"type\":\"nsnvpd\"}") + .toObject(NetworkAnchorInner.class); + Assertions.assertEquals("ylnio", model.location()); + Assertions.assertEquals("gbzjedmstkv", model.tags().get("l")); + Assertions.assertEquals("mxelnwcltyjed", model.properties().resourceAnchorId()); + Assertions.assertEquals("scazuawxtzxpu", model.properties().subnetId()); + Assertions.assertEquals("sgzwywakoihknsm", model.properties().ociVcnDnsLabel()); + Assertions.assertEquals("yuzcbmqqvxmvw", model.properties().ociBackupCidrBlock()); + Assertions.assertFalse(model.properties().isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertFalse(model.properties().isOracleDnsListeningEndpointEnabled()); + Assertions.assertTrue(model.properties().isOracleDnsForwardingEndpointEnabled()); + Assertions.assertEquals("upeujlzqnhcvsq", model.properties().dnsForwardingRules().get(0).domainNames()); + Assertions.assertEquals("tnzoibgsxgnxfy", model.properties().dnsForwardingRules().get(0).forwardingIpAddress()); + Assertions.assertEquals("nmpqoxwdofdb", model.properties().dnsListeningEndpointAllowedCidrs()); + Assertions.assertEquals("vcjfelisdjubggb", model.zones().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkAnchorInner model = new NetworkAnchorInner().withLocation("ylnio") + .withTags(mapOf("l", "gbzjedmstkv")) + .withProperties(new NetworkAnchorProperties().withResourceAnchorId("mxelnwcltyjed") + .withSubnetId("scazuawxtzxpu") + .withOciVcnDnsLabel("sgzwywakoihknsm") + .withOciBackupCidrBlock("yuzcbmqqvxmvw") + .withIsOracleToAzureDnsZoneSyncEnabled(false) + .withIsOracleDnsListeningEndpointEnabled(false) + .withIsOracleDnsForwardingEndpointEnabled(true) + .withDnsForwardingRules(Arrays.asList(new DnsForwardingRule().withDomainNames("upeujlzqnhcvsq") + .withForwardingIpAddress("tnzoibgsxgnxfy"))) + .withDnsListeningEndpointAllowedCidrs("nmpqoxwdofdb")) + .withZones(Arrays.asList("vcjfelisdjubggb", "igkxkbsazga", "gacyrcmjdmspo", "apvu")); + model = BinaryData.fromObject(model).toObject(NetworkAnchorInner.class); + Assertions.assertEquals("ylnio", model.location()); + Assertions.assertEquals("gbzjedmstkv", model.tags().get("l")); + Assertions.assertEquals("mxelnwcltyjed", model.properties().resourceAnchorId()); + Assertions.assertEquals("scazuawxtzxpu", model.properties().subnetId()); + Assertions.assertEquals("sgzwywakoihknsm", model.properties().ociVcnDnsLabel()); + Assertions.assertEquals("yuzcbmqqvxmvw", model.properties().ociBackupCidrBlock()); + Assertions.assertFalse(model.properties().isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertFalse(model.properties().isOracleDnsListeningEndpointEnabled()); + Assertions.assertTrue(model.properties().isOracleDnsForwardingEndpointEnabled()); + Assertions.assertEquals("upeujlzqnhcvsq", model.properties().dnsForwardingRules().get(0).domainNames()); + Assertions.assertEquals("tnzoibgsxgnxfy", model.properties().dnsForwardingRules().get(0).forwardingIpAddress()); + Assertions.assertEquals("nmpqoxwdofdb", model.properties().dnsListeningEndpointAllowedCidrs()); + Assertions.assertEquals("vcjfelisdjubggb", 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/NetworkAnchorListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorListResultTests.java new file mode 100644 index 000000000000..5449070720fe --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorListResultTests.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.implementation.models.NetworkAnchorListResult; +import org.junit.jupiter.api.Assertions; + +public final class NetworkAnchorListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkAnchorListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"resourceAnchorId\":\"cyyufmh\",\"provisioningState\":\"Succeeded\",\"vnetId\":\"uwm\",\"subnetId\":\"spkcdqzh\",\"cidrBlock\":\"tddunqnd\",\"ociVcnId\":\"pchrqbn\",\"ociVcnDnsLabel\":\"rcgegydcwboxjum\",\"ociSubnetId\":\"qoli\",\"ociBackupCidrBlock\":\"raiouaubrjtl\",\"isOracleToAzureDnsZoneSyncEnabled\":false,\"isOracleDnsListeningEndpointEnabled\":true,\"isOracleDnsForwardingEndpointEnabled\":false,\"dnsForwardingRules\":[{\"domainNames\":\"giflrzpasccbiu\",\"forwardingIpAddress\":\"mzdlyjdfqwmkyo\"},{\"domainNames\":\"ufdvruz\",\"forwardingIpAddress\":\"lzo\"},{\"domainNames\":\"hpc\",\"forwardingIpAddress\":\"fnmdxotn\"},{\"domainNames\":\"fdgugeyzi\",\"forwardingIpAddress\":\"grkyuizabsnmfpph\"}],\"dnsListeningEndpointAllowedCidrs\":\"eevy\",\"dnsListeningEndpointIpAddress\":\"hsgz\",\"dnsForwardingEndpointIpAddress\":\"zbgomfgbeg\",\"dnsForwardingRulesUrl\":\"gleohi\",\"dnsListeningEndpointNsgRulesUrl\":\"tnluankrr\",\"dnsForwardingEndpointNsgRulesUrl\":\"eeebtijvacv\"},\"zones\":[\"z\",\"qqxlajr\",\"wxacevehj\",\"uyxoaf\"],\"location\":\"oqltfae\",\"tags\":{\"gv\":\"nm\",\"qhykprlpyzn\":\"irpghriypoqeyh\",\"iitdfuxt\":\"ciqdsme\"},\"id\":\"asiibmiybnnust\",\"name\":\"nlj\",\"type\":\"nmgixh\"},{\"properties\":{\"resourceAnchorId\":\"avmqfoudor\",\"provisioningState\":\"Canceled\",\"vnetId\":\"yprotwyp\",\"subnetId\":\"ndm\",\"cidrBlock\":\"hu\",\"ociVcnId\":\"mjkavlgorbmft\",\"ociVcnDnsLabel\":\"dtzfjltfvnzcy\",\"ociSubnetId\":\"otp\",\"ociBackupCidrBlock\":\"pvpbdbzqgqqiheds\",\"isOracleToAzureDnsZoneSyncEnabled\":false,\"isOracleDnsListeningEndpointEnabled\":false,\"isOracleDnsForwardingEndpointEnabled\":false,\"dnsForwardingRules\":[{\"domainNames\":\"bcysih\",\"forwardingIpAddress\":\"gqcwdhohsdtmc\"},{\"domainNames\":\"zsu\",\"forwardingIpAddress\":\"cohdx\"},{\"domainNames\":\"zlmcmuapcvhdb\",\"forwardingIpAddress\":\"v\"}],\"dnsListeningEndpointAllowedCidrs\":\"qxeysko\",\"dnsListeningEndpointIpAddress\":\"zinkfkbgbzbowxeq\",\"dnsForwardingEndpointIpAddress\":\"ljmygvkzqkjjeokb\",\"dnsForwardingRulesUrl\":\"fezrx\",\"dnsListeningEndpointNsgRulesUrl\":\"zurtleipqxbkwvz\",\"dnsForwardingEndpointNsgRulesUrl\":\"zvd\"},\"zones\":[\"d\"],\"location\":\"zmqpnodawopqhewj\",\"tags\":{\"eln\":\"cgsbost\",\"utmzlbiojlvfhrbb\":\"la\",\"hppr\":\"neqvcwwyyurmo\",\"k\":\"rsnm\"},\"id\":\"yzejnhlbk\",\"name\":\"bzpcpiljhahzvec\",\"type\":\"ndbnwieh\"},{\"properties\":{\"resourceAnchorId\":\"ewjwiuubw\",\"provisioningState\":\"Failed\",\"vnetId\":\"fapaqtfer\",\"subnetId\":\"q\",\"cidrBlock\":\"x\",\"ociVcnId\":\"mfxapjwogqqno\",\"ociVcnDnsLabel\":\"udcdabtqwpwyawb\",\"ociSubnetId\":\"sqbuc\",\"ociBackupCidrBlock\":\"gkyexaoguy\",\"isOracleToAzureDnsZoneSyncEnabled\":false,\"isOracleDnsListeningEndpointEnabled\":true,\"isOracleDnsForwardingEndpointEnabled\":true,\"dnsForwardingRules\":[{\"domainNames\":\"ltxijjumfqwazln\",\"forwardingIpAddress\":\"nm\"},{\"domainNames\":\"jng\",\"forwardingIpAddress\":\"qdqx\"},{\"domainNames\":\"bjwgnyfus\",\"forwardingIpAddress\":\"zsvtuikzhajqgl\"}],\"dnsListeningEndpointAllowedCidrs\":\"hm\",\"dnsListeningEndpointIpAddress\":\"qryxyn\",\"dnsForwardingEndpointIpAddress\":\"zrdpsovwxznptgoe\",\"dnsForwardingRulesUrl\":\"bbabp\",\"dnsListeningEndpointNsgRulesUrl\":\"vf\",\"dnsForwardingEndpointNsgRulesUrl\":\"kvntjlrigjkskyri\"},\"zones\":[\"zid\",\"xwaabzmifrygznmm\",\"xrizkzobgop\"],\"location\":\"hsln\",\"tags\":{\"wcrojphslhcaw\":\"ieixynllxe\",\"i\":\"u\",\"tzh\":\"dwfmvigorqjb\"},\"id\":\"aglkafhon\",\"name\":\"juj\",\"type\":\"ickpz\"}],\"nextLink\":\"p\"}") + .toObject(NetworkAnchorListResult.class); + Assertions.assertEquals("oqltfae", model.value().get(0).location()); + Assertions.assertEquals("nm", model.value().get(0).tags().get("gv")); + Assertions.assertEquals("cyyufmh", model.value().get(0).properties().resourceAnchorId()); + Assertions.assertEquals("spkcdqzh", model.value().get(0).properties().subnetId()); + Assertions.assertEquals("rcgegydcwboxjum", model.value().get(0).properties().ociVcnDnsLabel()); + Assertions.assertEquals("raiouaubrjtl", model.value().get(0).properties().ociBackupCidrBlock()); + Assertions.assertFalse(model.value().get(0).properties().isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertTrue(model.value().get(0).properties().isOracleDnsListeningEndpointEnabled()); + Assertions.assertFalse(model.value().get(0).properties().isOracleDnsForwardingEndpointEnabled()); + Assertions.assertEquals("giflrzpasccbiu", + model.value().get(0).properties().dnsForwardingRules().get(0).domainNames()); + Assertions.assertEquals("mzdlyjdfqwmkyo", + model.value().get(0).properties().dnsForwardingRules().get(0).forwardingIpAddress()); + Assertions.assertEquals("eevy", model.value().get(0).properties().dnsListeningEndpointAllowedCidrs()); + Assertions.assertEquals("z", model.value().get(0).zones().get(0)); + Assertions.assertEquals("p", model.nextLink()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorPropertiesTests.java new file mode 100644 index 000000000000..545f99f9465a --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorPropertiesTests.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.DnsForwardingRule; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class NetworkAnchorPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkAnchorProperties model = BinaryData.fromString( + "{\"resourceAnchorId\":\"bmikost\",\"provisioningState\":\"Succeeded\",\"vnetId\":\"iwbuqny\",\"subnetId\":\"phzfylsgcrp\",\"cidrBlock\":\"cunezzcezelfw\",\"ociVcnId\":\"wl\",\"ociVcnDnsLabel\":\"jwetnpsihcla\",\"ociSubnetId\":\"va\",\"ociBackupCidrBlock\":\"pt\",\"isOracleToAzureDnsZoneSyncEnabled\":false,\"isOracleDnsListeningEndpointEnabled\":true,\"isOracleDnsForwardingEndpointEnabled\":true,\"dnsForwardingRules\":[{\"domainNames\":\"w\",\"forwardingIpAddress\":\"kchcxwa\"},{\"domainNames\":\"fewz\",\"forwardingIpAddress\":\"kjexfdeqvhp\"},{\"domainNames\":\"ylkkshkbffmbm\",\"forwardingIpAddress\":\"zjrgyww\"}],\"dnsListeningEndpointAllowedCidrs\":\"jx\",\"dnsListeningEndpointIpAddress\":\"ptfujgicgaaoept\",\"dnsForwardingEndpointIpAddress\":\"qutdewemxs\",\"dnsForwardingRulesUrl\":\"ruunzzjgehkf\",\"dnsListeningEndpointNsgRulesUrl\":\"m\",\"dnsForwardingEndpointNsgRulesUrl\":\"ixokffqyin\"}") + .toObject(NetworkAnchorProperties.class); + Assertions.assertEquals("bmikost", model.resourceAnchorId()); + Assertions.assertEquals("phzfylsgcrp", model.subnetId()); + Assertions.assertEquals("jwetnpsihcla", model.ociVcnDnsLabel()); + Assertions.assertEquals("pt", model.ociBackupCidrBlock()); + Assertions.assertFalse(model.isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertTrue(model.isOracleDnsListeningEndpointEnabled()); + Assertions.assertTrue(model.isOracleDnsForwardingEndpointEnabled()); + Assertions.assertEquals("w", model.dnsForwardingRules().get(0).domainNames()); + Assertions.assertEquals("kchcxwa", model.dnsForwardingRules().get(0).forwardingIpAddress()); + Assertions.assertEquals("jx", model.dnsListeningEndpointAllowedCidrs()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkAnchorProperties model = new NetworkAnchorProperties().withResourceAnchorId("bmikost") + .withSubnetId("phzfylsgcrp") + .withOciVcnDnsLabel("jwetnpsihcla") + .withOciBackupCidrBlock("pt") + .withIsOracleToAzureDnsZoneSyncEnabled(false) + .withIsOracleDnsListeningEndpointEnabled(true) + .withIsOracleDnsForwardingEndpointEnabled(true) + .withDnsForwardingRules( + Arrays.asList(new DnsForwardingRule().withDomainNames("w").withForwardingIpAddress("kchcxwa"), + new DnsForwardingRule().withDomainNames("fewz").withForwardingIpAddress("kjexfdeqvhp"), + new DnsForwardingRule().withDomainNames("ylkkshkbffmbm").withForwardingIpAddress("zjrgyww"))) + .withDnsListeningEndpointAllowedCidrs("jx"); + model = BinaryData.fromObject(model).toObject(NetworkAnchorProperties.class); + Assertions.assertEquals("bmikost", model.resourceAnchorId()); + Assertions.assertEquals("phzfylsgcrp", model.subnetId()); + Assertions.assertEquals("jwetnpsihcla", model.ociVcnDnsLabel()); + Assertions.assertEquals("pt", model.ociBackupCidrBlock()); + Assertions.assertFalse(model.isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertTrue(model.isOracleDnsListeningEndpointEnabled()); + Assertions.assertTrue(model.isOracleDnsForwardingEndpointEnabled()); + Assertions.assertEquals("w", model.dnsForwardingRules().get(0).domainNames()); + Assertions.assertEquals("kchcxwa", model.dnsForwardingRules().get(0).forwardingIpAddress()); + Assertions.assertEquals("jx", model.dnsListeningEndpointAllowedCidrs()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorUpdatePropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorUpdatePropertiesTests.java new file mode 100644 index 000000000000..e39d1c92e834 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorUpdatePropertiesTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdateProperties; +import org.junit.jupiter.api.Assertions; + +public final class NetworkAnchorUpdatePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkAnchorUpdateProperties model = BinaryData.fromString( + "{\"ociBackupCidrBlock\":\"amikzebrqbsm\",\"isOracleToAzureDnsZoneSyncEnabled\":false,\"isOracleDnsListeningEndpointEnabled\":true,\"isOracleDnsForwardingEndpointEnabled\":false}") + .toObject(NetworkAnchorUpdateProperties.class); + Assertions.assertEquals("amikzebrqbsm", model.ociBackupCidrBlock()); + Assertions.assertFalse(model.isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertTrue(model.isOracleDnsListeningEndpointEnabled()); + Assertions.assertFalse(model.isOracleDnsForwardingEndpointEnabled()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkAnchorUpdateProperties model = new NetworkAnchorUpdateProperties().withOciBackupCidrBlock("amikzebrqbsm") + .withIsOracleToAzureDnsZoneSyncEnabled(false) + .withIsOracleDnsListeningEndpointEnabled(true) + .withIsOracleDnsForwardingEndpointEnabled(false); + model = BinaryData.fromObject(model).toObject(NetworkAnchorUpdateProperties.class); + Assertions.assertEquals("amikzebrqbsm", model.ociBackupCidrBlock()); + Assertions.assertFalse(model.isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertTrue(model.isOracleDnsListeningEndpointEnabled()); + Assertions.assertFalse(model.isOracleDnsForwardingEndpointEnabled()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorUpdateTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorUpdateTests.java new file mode 100644 index 000000000000..608fe628ac77 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorUpdateTests.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdate; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorUpdateProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class NetworkAnchorUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkAnchorUpdate model = BinaryData.fromString( + "{\"zones\":[\"lduccbi\",\"ds\"],\"tags\":{\"i\":\"cobiegstmninwjiz\",\"tbxqmuluxlxq\":\"nghgshej\"},\"properties\":{\"ociBackupCidrBlock\":\"ers\",\"isOracleToAzureDnsZoneSyncEnabled\":true,\"isOracleDnsListeningEndpointEnabled\":true,\"isOracleDnsForwardingEndpointEnabled\":false}}") + .toObject(NetworkAnchorUpdate.class); + Assertions.assertEquals("lduccbi", model.zones().get(0)); + Assertions.assertEquals("cobiegstmninwjiz", model.tags().get("i")); + Assertions.assertEquals("ers", model.properties().ociBackupCidrBlock()); + Assertions.assertTrue(model.properties().isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertTrue(model.properties().isOracleDnsListeningEndpointEnabled()); + Assertions.assertFalse(model.properties().isOracleDnsForwardingEndpointEnabled()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkAnchorUpdate model = new NetworkAnchorUpdate().withZones(Arrays.asList("lduccbi", "ds")) + .withTags(mapOf("i", "cobiegstmninwjiz", "tbxqmuluxlxq", "nghgshej")) + .withProperties(new NetworkAnchorUpdateProperties().withOciBackupCidrBlock("ers") + .withIsOracleToAzureDnsZoneSyncEnabled(true) + .withIsOracleDnsListeningEndpointEnabled(true) + .withIsOracleDnsForwardingEndpointEnabled(false)); + model = BinaryData.fromObject(model).toObject(NetworkAnchorUpdate.class); + Assertions.assertEquals("lduccbi", model.zones().get(0)); + Assertions.assertEquals("cobiegstmninwjiz", model.tags().get("i")); + Assertions.assertEquals("ers", model.properties().ociBackupCidrBlock()); + Assertions.assertTrue(model.properties().isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertTrue(model.properties().isOracleDnsListeningEndpointEnabled()); + Assertions.assertFalse(model.properties().isOracleDnsForwardingEndpointEnabled()); + } + + // 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/NetworkAnchorsCreateOrUpdateMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsCreateOrUpdateMockTests.java new file mode 100644 index 000000000000..b4ee5450f5c3 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsCreateOrUpdateMockTests.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec 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.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.DnsForwardingRule; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchor; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchorProperties; +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 NetworkAnchorsCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"resourceAnchorId\":\"to\",\"provisioningState\":\"Succeeded\",\"vnetId\":\"quvwsxbgn\",\"subnetId\":\"kerv\",\"cidrBlock\":\"hoadhrsxqvzv\",\"ociVcnId\":\"abdsr\",\"ociVcnDnsLabel\":\"ajglzrsubklr\",\"ociSubnetId\":\"jnltcetjdvqydi\",\"ociBackupCidrBlock\":\"qkwaruwd\",\"isOracleToAzureDnsZoneSyncEnabled\":true,\"isOracleDnsListeningEndpointEnabled\":false,\"isOracleDnsForwardingEndpointEnabled\":false,\"dnsForwardingRules\":[{\"domainNames\":\"gjxb\",\"forwardingIpAddress\":\"banbaupwtzv\"}],\"dnsListeningEndpointAllowedCidrs\":\"klozkxbz\",\"dnsListeningEndpointIpAddress\":\"ejpl\",\"dnsForwardingEndpointIpAddress\":\"anbtttkgsu\",\"dnsForwardingRulesUrl\":\"nrswgkpjhboyik\",\"dnsListeningEndpointNsgRulesUrl\":\"huhkslgwlok\",\"dnsForwardingEndpointNsgRulesUrl\":\"eoijyzcqypzqzufg\"},\"zones\":[\"ej\",\"vdwtfxptpqayamk\",\"cf\",\"ybmx\"],\"location\":\"xocuullojkpoyhgw\",\"tags\":{\"sgzlrqhb\":\"uxdbdljzgdyrcvuq\"},\"id\":\"nq\",\"name\":\"gdxwbsfpyxx\",\"type\":\"jlf\"}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + NetworkAnchor response = manager.networkAnchors() + .define("pqadagrhrdicxdwy") + .withRegion("vzipbwxgo") + .withExistingResourceGroup("gmsfepxyi") + .withTags(mapOf("admskx", "zp")) + .withProperties(new NetworkAnchorProperties().withResourceAnchorId("owxwyovcxjsgbip") + .withSubnetId("crdpibfdyjduss") + .withOciVcnDnsLabel("rnuybffljfii") + .withOciBackupCidrBlock("usrexxf") + .withIsOracleToAzureDnsZoneSyncEnabled(true) + .withIsOracleDnsListeningEndpointEnabled(true) + .withIsOracleDnsForwardingEndpointEnabled(false) + .withDnsForwardingRules(Arrays.asList( + new DnsForwardingRule().withDomainNames("zilfmnlikps").withForwardingIpAddress("msfeypofqpm"), + new DnsForwardingRule().withDomainNames("hyqgsdrmmttjx").withForwardingIpAddress("phgerhsmvgoh"))) + .withDnsListeningEndpointAllowedCidrs("zmqilrixysfnim")) + .withZones(Arrays.asList("iedfsbwcei")) + .create(); + + Assertions.assertEquals("xocuullojkpoyhgw", response.location()); + Assertions.assertEquals("uxdbdljzgdyrcvuq", response.tags().get("sgzlrqhb")); + Assertions.assertEquals("to", response.properties().resourceAnchorId()); + Assertions.assertEquals("kerv", response.properties().subnetId()); + Assertions.assertEquals("ajglzrsubklr", response.properties().ociVcnDnsLabel()); + Assertions.assertEquals("qkwaruwd", response.properties().ociBackupCidrBlock()); + Assertions.assertTrue(response.properties().isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertFalse(response.properties().isOracleDnsListeningEndpointEnabled()); + Assertions.assertFalse(response.properties().isOracleDnsForwardingEndpointEnabled()); + Assertions.assertEquals("gjxb", response.properties().dnsForwardingRules().get(0).domainNames()); + Assertions.assertEquals("banbaupwtzv", response.properties().dnsForwardingRules().get(0).forwardingIpAddress()); + Assertions.assertEquals("klozkxbz", response.properties().dnsListeningEndpointAllowedCidrs()); + Assertions.assertEquals("ej", 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/NetworkAnchorsGetByResourceGroupWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsGetByResourceGroupWithResponseMockTests.java new file mode 100644 index 000000000000..7704aecdb57c --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsGetByResourceGroupWithResponseMockTests.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchor; +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 NetworkAnchorsGetByResourceGroupWithResponseMockTests { + @Test + public void testGetByResourceGroupWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"resourceAnchorId\":\"cpqtwloesq\",\"provisioningState\":\"Failed\",\"vnetId\":\"rbnyrukoilacidu\",\"subnetId\":\"jleip\",\"cidrBlock\":\"h\",\"ociVcnId\":\"xpzruzythqkk\",\"ociVcnDnsLabel\":\"bg\",\"ociSubnetId\":\"ellv\",\"ociBackupCidrBlock\":\"nxdmnitmujdtv\",\"isOracleToAzureDnsZoneSyncEnabled\":true,\"isOracleDnsListeningEndpointEnabled\":true,\"isOracleDnsForwardingEndpointEnabled\":false,\"dnsForwardingRules\":[{\"domainNames\":\"mjpddnyxf\",\"forwardingIpAddress\":\"uvrzmzqmzjqrb\"},{\"domainNames\":\"pv\",\"forwardingIpAddress\":\"mdyfoebojtj\"}],\"dnsListeningEndpointAllowedCidrs\":\"g\",\"dnsListeningEndpointIpAddress\":\"ohoqkpjtnqjilayw\",\"dnsForwardingEndpointIpAddress\":\"cwm\",\"dnsForwardingRulesUrl\":\"yrilmhxdqaolf\",\"dnsListeningEndpointNsgRulesUrl\":\"nkkbjpjvlywltmfw\",\"dnsForwardingEndpointNsgRulesUrl\":\"bjwhlwyjfnqzocr\"},\"zones\":[\"czeuntgx\",\"ncaqttiekoifu\",\"nyttzgix\"],\"location\":\"rihl\",\"tags\":{\"lkndrndpgfjodh\":\"behlqtxnr\",\"ipowza\":\"aqotwfhipxwgsabv\",\"pefyc\":\"czuumljcir\"},\"id\":\"veitit\",\"name\":\"nsxzajlns\",\"type\":\"hwjuyxxbxqvmvua\"}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + NetworkAnchor response = manager.networkAnchors() + .getByResourceGroupWithResponse("thvmaxgnuyeamcmh", "dfjeceho", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("rihl", response.location()); + Assertions.assertEquals("behlqtxnr", response.tags().get("lkndrndpgfjodh")); + Assertions.assertEquals("cpqtwloesq", response.properties().resourceAnchorId()); + Assertions.assertEquals("jleip", response.properties().subnetId()); + Assertions.assertEquals("bg", response.properties().ociVcnDnsLabel()); + Assertions.assertEquals("nxdmnitmujdtv", response.properties().ociBackupCidrBlock()); + Assertions.assertTrue(response.properties().isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertTrue(response.properties().isOracleDnsListeningEndpointEnabled()); + Assertions.assertFalse(response.properties().isOracleDnsForwardingEndpointEnabled()); + Assertions.assertEquals("mjpddnyxf", response.properties().dnsForwardingRules().get(0).domainNames()); + Assertions.assertEquals("uvrzmzqmzjqrb", + response.properties().dnsForwardingRules().get(0).forwardingIpAddress()); + Assertions.assertEquals("g", response.properties().dnsListeningEndpointAllowedCidrs()); + Assertions.assertEquals("czeuntgx", response.zones().get(0)); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListByResourceGroupMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListByResourceGroupMockTests.java new file mode 100644 index 000000000000..66c06ae42ec1 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListByResourceGroupMockTests.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.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.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchor; +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 NetworkAnchorsListByResourceGroupMockTests { + @Test + public void testListByResourceGroup() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"resourceAnchorId\":\"ntghyksarcdr\",\"provisioningState\":\"Provisioning\",\"vnetId\":\"u\",\"subnetId\":\"lzladltxkpbqh\",\"cidrBlock\":\"dqqjwkrhwzdano\",\"ociVcnId\":\"sgglmv\",\"ociVcnDnsLabel\":\"atuztjct\",\"ociSubnetId\":\"pvbkaehxsmzyg\",\"ociBackupCidrBlock\":\"wakwseivmakxhys\",\"isOracleToAzureDnsZoneSyncEnabled\":false,\"isOracleDnsListeningEndpointEnabled\":false,\"isOracleDnsForwardingEndpointEnabled\":true,\"dnsForwardingRules\":[{\"domainNames\":\"ect\",\"forwardingIpAddress\":\"tfjmskdchmaiub\"},{\"domainNames\":\"vlzw\",\"forwardingIpAddress\":\"vgmfalkzazmgok\"},{\"domainNames\":\"dgjqafkmkro\",\"forwardingIpAddress\":\"zrthqet\"},{\"domainNames\":\"pqrtvaoznqni\",\"forwardingIpAddress\":\"iezeagm\"}],\"dnsListeningEndpointAllowedCidrs\":\"it\",\"dnsListeningEndpointIpAddress\":\"gedhfpjstlzm\",\"dnsForwardingEndpointIpAddress\":\"syjdeolctae\",\"dnsForwardingRulesUrl\":\"syrled\",\"dnsListeningEndpointNsgRulesUrl\":\"ustbvtqigdx\",\"dnsForwardingEndpointNsgRulesUrl\":\"sgeafgfosehx\"},\"zones\":[\"xezppk\",\"waaeskyfjl\",\"zeqtoyrplixlajml\"],\"location\":\"quevham\",\"tags\":{\"mkekxpkzwaqxo\":\"gwb\"},\"id\":\"qovchiqbp\",\"name\":\"vf\",\"type\":\"dusztekxby\"}]}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.networkAnchors().listByResourceGroup("tuadxkxeqb", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("quevham", response.iterator().next().location()); + Assertions.assertEquals("gwb", response.iterator().next().tags().get("mkekxpkzwaqxo")); + Assertions.assertEquals("ntghyksarcdr", response.iterator().next().properties().resourceAnchorId()); + Assertions.assertEquals("lzladltxkpbqh", response.iterator().next().properties().subnetId()); + Assertions.assertEquals("atuztjct", response.iterator().next().properties().ociVcnDnsLabel()); + Assertions.assertEquals("wakwseivmakxhys", response.iterator().next().properties().ociBackupCidrBlock()); + Assertions.assertFalse(response.iterator().next().properties().isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertFalse(response.iterator().next().properties().isOracleDnsListeningEndpointEnabled()); + Assertions.assertTrue(response.iterator().next().properties().isOracleDnsForwardingEndpointEnabled()); + Assertions.assertEquals("ect", + response.iterator().next().properties().dnsForwardingRules().get(0).domainNames()); + Assertions.assertEquals("tfjmskdchmaiub", + response.iterator().next().properties().dnsForwardingRules().get(0).forwardingIpAddress()); + Assertions.assertEquals("it", response.iterator().next().properties().dnsListeningEndpointAllowedCidrs()); + Assertions.assertEquals("xezppk", response.iterator().next().zones().get(0)); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListMockTests.java new file mode 100644 index 000000000000..c77822578018 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/NetworkAnchorsListMockTests.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.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.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.NetworkAnchor; +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 NetworkAnchorsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"resourceAnchorId\":\"igvjrktp\",\"provisioningState\":\"Failed\",\"vnetId\":\"kya\",\"subnetId\":\"ohpmwhqn\",\"cidrBlock\":\"sklhsidsjtdlp\",\"ociVcnId\":\"injgazlsvbzfcpuo\",\"ociVcnDnsLabel\":\"dwjcciklhs\",\"ociSubnetId\":\"krdre\",\"ociBackupCidrBlock\":\"olr\",\"isOracleToAzureDnsZoneSyncEnabled\":true,\"isOracleDnsListeningEndpointEnabled\":false,\"isOracleDnsForwardingEndpointEnabled\":false,\"dnsForwardingRules\":[{\"domainNames\":\"dlh\",\"forwardingIpAddress\":\"d\"},{\"domainNames\":\"bdbfgrlp\",\"forwardingIpAddress\":\"nytjlk\"},{\"domainNames\":\"smmpathubt\",\"forwardingIpAddress\":\"h\"},{\"domainNames\":\"e\",\"forwardingIpAddress\":\"niiwllbvgwz\"}],\"dnsListeningEndpointAllowedCidrs\":\"ft\",\"dnsListeningEndpointIpAddress\":\"ousnktjt\",\"dnsForwardingEndpointIpAddress\":\"avaqogfkbebau\",\"dnsForwardingRulesUrl\":\"qbtxxwpf\",\"dnsListeningEndpointNsgRulesUrl\":\"jzudrtpzk\",\"dnsForwardingEndpointNsgRulesUrl\":\"eboywhczzqrhm\"},\"zones\":[\"be\",\"ygisrz\",\"nykdi\"],\"location\":\"chl\",\"tags\":{\"xkbrfg\":\"wctofldseacdhz\",\"fj\":\"rwjiyew\"},\"id\":\"rwq\",\"name\":\"xet\",\"type\":\"gcwvrrmdqntycna\"}]}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.networkAnchors().list(com.azure.core.util.Context.NONE); + + Assertions.assertEquals("chl", response.iterator().next().location()); + Assertions.assertEquals("wctofldseacdhz", response.iterator().next().tags().get("xkbrfg")); + Assertions.assertEquals("igvjrktp", response.iterator().next().properties().resourceAnchorId()); + Assertions.assertEquals("ohpmwhqn", response.iterator().next().properties().subnetId()); + Assertions.assertEquals("dwjcciklhs", response.iterator().next().properties().ociVcnDnsLabel()); + Assertions.assertEquals("olr", response.iterator().next().properties().ociBackupCidrBlock()); + Assertions.assertTrue(response.iterator().next().properties().isOracleToAzureDnsZoneSyncEnabled()); + Assertions.assertFalse(response.iterator().next().properties().isOracleDnsListeningEndpointEnabled()); + Assertions.assertFalse(response.iterator().next().properties().isOracleDnsForwardingEndpointEnabled()); + Assertions.assertEquals("dlh", + response.iterator().next().properties().dnsForwardingRules().get(0).domainNames()); + Assertions.assertEquals("d", + response.iterator().next().properties().dnsForwardingRules().get(0).forwardingIpAddress()); + Assertions.assertEquals("ft", response.iterator().next().properties().dnsListeningEndpointAllowedCidrs()); + Assertions.assertEquals("be", response.iterator().next().zones().get(0)); + } +} 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 index 3094705499cc..8c8ff5fc4830 100644 --- 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 @@ -13,21 +13,20 @@ public final class NsgCidrTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NsgCidr model = BinaryData - .fromString( - "{\"source\":\"eopzfqrhhuaopp\",\"destinationPortRange\":{\"min\":1290719044,\"max\":646649620}}") + .fromString("{\"source\":\"pybsrfbjfdtw\",\"destinationPortRange\":{\"min\":1365200524,\"max\":22179172}}") .toObject(NsgCidr.class); - Assertions.assertEquals("eopzfqrhhuaopp", model.source()); - Assertions.assertEquals(1290719044, model.destinationPortRange().min()); - Assertions.assertEquals(646649620, model.destinationPortRange().max()); + Assertions.assertEquals("pybsrfbjfdtw", model.source()); + Assertions.assertEquals(1365200524, model.destinationPortRange().min()); + Assertions.assertEquals(22179172, model.destinationPortRange().max()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NsgCidr model = new NsgCidr().withSource("eopzfqrhhuaopp") - .withDestinationPortRange(new PortRange().withMin(1290719044).withMax(646649620)); + NsgCidr model = new NsgCidr().withSource("pybsrfbjfdtw") + .withDestinationPortRange(new PortRange().withMin(1365200524).withMax(22179172)); model = BinaryData.fromObject(model).toObject(NsgCidr.class); - Assertions.assertEquals("eopzfqrhhuaopp", model.source()); - Assertions.assertEquals(1290719044, model.destinationPortRange().min()); - Assertions.assertEquals(646649620, model.destinationPortRange().max()); + Assertions.assertEquals("pybsrfbjfdtw", model.source()); + Assertions.assertEquals(1365200524, model.destinationPortRange().min()); + Assertions.assertEquals(22179172, model.destinationPortRange().max()); } } 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 index 30746302a666..2e0286d11d18 100644 --- 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 @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"lkdghr\",\"isDataAction\":true,\"display\":{\"provider\":\"lwxezwzhokvbwnh\",\"resource\":\"qlgehg\",\"operation\":\"ipifhpfeoajvg\",\"description\":\"txjcsheafidlt\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"cpzgpxtiv\",\"isDataAction\":false,\"display\":{\"provider\":\"dibgqjxgpnrhgov\",\"resource\":\"pikqmh\",\"operation\":\"owjrmzvuporqz\",\"description\":\"uydzvk\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); 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 index 4b7e81e06573..3b0c21a43d4d 100644 --- 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 @@ -20,7 +20,7 @@ public final class OracleSubscriptionsListActivationLinksMockTests { @Test public void testListActivationLinks() throws Exception { String responseStr - = "{\"newCloudAccountActivationLink\":\"lkafhonqjuje\",\"existingCloudAccountActivationLink\":\"kpzvcpopmxelnwc\"}"; + = "{\"newCloudAccountActivationLink\":\"nq\",\"existingCloudAccountActivationLink\":\"gjfbpkuwxeoi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); 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 index a3aecda3361d..887446778da3 100644 --- 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 @@ -19,7 +19,7 @@ public final class OracleSubscriptionsListCloudAccountDetailsMockTests { @Test public void testListCloudAccountDetails() throws Exception { - String responseStr = "{\"cloudAccountName\":\"zrdpsovwxznptgoe\",\"cloudAccountHomeRegion\":\"bbabp\"}"; + String responseStr = "{\"cloudAccountName\":\"wotmmwllcolsrsxa\",\"cloudAccountHomeRegion\":\"efh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); 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 index 724f4a405c38..623ef3ff586c 100644 --- 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 @@ -20,7 +20,7 @@ public final class OracleSubscriptionsListSaasSubscriptionDetailsMockTests { @Test public void testListSaasSubscriptionDetails() throws Exception { String responseStr - = "{\"id\":\"vf\",\"subscriptionName\":\"kvntjlrigjkskyri\",\"timeCreated\":\"2020-12-31T15:34:24Z\",\"offerId\":\"idsxwaabzmifry\",\"planId\":\"nmmaxrizkzob\",\"saasSubscriptionStatus\":\"pxl\",\"publisherId\":\"lnelxieixynl\",\"purchaserEmailId\":\"ecwcrojphslhcawj\",\"purchaserTenantId\":\"i\",\"termUnit\":\"wfmvigorqjbt\",\"isAutoRenew\":false,\"isFreeTrial\":true}"; + = "{\"id\":\"cgjokjljnhvlq\",\"subscriptionName\":\"ek\",\"timeCreated\":\"2021-01-20T04:18:54Z\",\"offerId\":\"snbksdqhj\",\"planId\":\"klxesl\",\"saasSubscriptionStatus\":\"hustcpoqmavnwqjw\",\"publisherId\":\"knlejjjkxybwfd\",\"purchaserEmailId\":\"jbzten\",\"purchaserTenantId\":\"kzykjtjk\",\"termUnit\":\"xfwush\",\"isAutoRenew\":false,\"isFreeTrial\":true}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); 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 index 6355d83cbec6..cd497785a97f 100644 --- 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 @@ -11,22 +11,20 @@ public final class PeerDbDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PeerDbDetails model = BinaryData - .fromString("{\"peerDbId\":\"kwcf\",\"peerDbOcid\":\"ljyxgtczhe\",\"peerDbLocation\":\"bsdshmkxmaehvbbx\"}") - .toObject(PeerDbDetails.class); - Assertions.assertEquals("kwcf", model.peerDbId()); - Assertions.assertEquals("ljyxgtczhe", model.peerDbOcid()); - Assertions.assertEquals("bsdshmkxmaehvbbx", model.peerDbLocation()); + PeerDbDetails model + = BinaryData.fromString("{\"peerDbId\":\"ufactk\",\"peerDbOcid\":\"zov\",\"peerDbLocation\":\"j\"}") + .toObject(PeerDbDetails.class); + Assertions.assertEquals("ufactk", model.peerDbId()); + Assertions.assertEquals("zov", model.peerDbOcid()); + Assertions.assertEquals("j", model.peerDbLocation()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PeerDbDetails model = new PeerDbDetails().withPeerDbId("kwcf") - .withPeerDbOcid("ljyxgtczhe") - .withPeerDbLocation("bsdshmkxmaehvbbx"); + PeerDbDetails model = new PeerDbDetails().withPeerDbId("ufactk").withPeerDbOcid("zov").withPeerDbLocation("j"); model = BinaryData.fromObject(model).toObject(PeerDbDetails.class); - Assertions.assertEquals("kwcf", model.peerDbId()); - Assertions.assertEquals("ljyxgtczhe", model.peerDbOcid()); - Assertions.assertEquals("bsdshmkxmaehvbbx", model.peerDbLocation()); + Assertions.assertEquals("ufactk", model.peerDbId()); + Assertions.assertEquals("zov", model.peerDbOcid()); + Assertions.assertEquals("j", model.peerDbLocation()); } } 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 index a17bc11edee1..252b9b04d52e 100644 --- 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 @@ -11,16 +11,16 @@ public final class PortRangeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PortRange model = BinaryData.fromString("{\"min\":495294265,\"max\":108593741}").toObject(PortRange.class); - Assertions.assertEquals(495294265, model.min()); - Assertions.assertEquals(108593741, model.max()); + PortRange model = BinaryData.fromString("{\"min\":772106102,\"max\":2101794539}").toObject(PortRange.class); + Assertions.assertEquals(772106102, model.min()); + Assertions.assertEquals(2101794539, model.max()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PortRange model = new PortRange().withMin(495294265).withMax(108593741); + PortRange model = new PortRange().withMin(772106102).withMax(2101794539); model = BinaryData.fromObject(model).toObject(PortRange.class); - Assertions.assertEquals(495294265, model.min()); - Assertions.assertEquals(108593741, model.max()); + Assertions.assertEquals(772106102, model.min()); + Assertions.assertEquals(2101794539, 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 index add5e03dde2f..bf40cf0402dc 100644 --- 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 @@ -12,12 +12,12 @@ public final class PrivateIpAddressPropertiesInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateIpAddressPropertiesInner model = BinaryData.fromString( - "{\"displayName\":\"lfmmdnbbglzpswi\",\"hostnameLabel\":\"d\",\"ocid\":\"cwyhzdxssa\",\"ipAddress\":\"bzmnvdfznud\",\"subnetId\":\"od\"}") + "{\"displayName\":\"yhtozfikdowwqu\",\"hostnameLabel\":\"v\",\"ocid\":\"zx\",\"ipAddress\":\"lvithhqzonosgg\",\"subnetId\":\"hcohfwdsjnk\"}") .toObject(PrivateIpAddressPropertiesInner.class); - Assertions.assertEquals("lfmmdnbbglzpswi", model.displayName()); - Assertions.assertEquals("d", model.hostnameLabel()); - Assertions.assertEquals("cwyhzdxssa", model.ocid()); - Assertions.assertEquals("bzmnvdfznud", model.ipAddress()); - Assertions.assertEquals("od", model.subnetId()); + Assertions.assertEquals("yhtozfikdowwqu", model.displayName()); + Assertions.assertEquals("v", model.hostnameLabel()); + Assertions.assertEquals("zx", model.ocid()); + Assertions.assertEquals("lvithhqzonosgg", model.ipAddress()); + Assertions.assertEquals("hcohfwdsjnk", 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 index 1d4b190e7557..b9a0a01c8203 100644 --- 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 @@ -11,17 +11,19 @@ public final class PrivateIpAddressesFilterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateIpAddressesFilter model = BinaryData.fromString("{\"subnetId\":\"r\",\"vnicId\":\"gccymvaolpssl\"}") - .toObject(PrivateIpAddressesFilter.class); - Assertions.assertEquals("r", model.subnetId()); - Assertions.assertEquals("gccymvaolpssl", model.vnicId()); + PrivateIpAddressesFilter model + = BinaryData.fromString("{\"subnetId\":\"bmnzbtbhjpgl\",\"vnicId\":\"fgohdneuelfphs\"}") + .toObject(PrivateIpAddressesFilter.class); + Assertions.assertEquals("bmnzbtbhjpgl", model.subnetId()); + Assertions.assertEquals("fgohdneuelfphs", model.vnicId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateIpAddressesFilter model = new PrivateIpAddressesFilter().withSubnetId("r").withVnicId("gccymvaolpssl"); + PrivateIpAddressesFilter model + = new PrivateIpAddressesFilter().withSubnetId("bmnzbtbhjpgl").withVnicId("fgohdneuelfphs"); model = BinaryData.fromObject(model).toObject(PrivateIpAddressesFilter.class); - Assertions.assertEquals("r", model.subnetId()); - Assertions.assertEquals("gccymvaolpssl", model.vnicId()); + Assertions.assertEquals("bmnzbtbhjpgl", model.subnetId()); + Assertions.assertEquals("fgohdneuelfphs", 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 index a01a857864ae..107554a535ae 100644 --- 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 @@ -18,16 +18,16 @@ public final class ProfileTypeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProfileType model = BinaryData.fromString( - "{\"consumerGroup\":\"Tpurgent\",\"displayName\":\"tpwoqhihejq\",\"hostFormat\":\"Fqdn\",\"isRegional\":true,\"protocol\":\"TCP\",\"sessionMode\":\"Direct\",\"syntaxFormat\":\"Long\",\"tlsAuthentication\":\"Mutual\",\"value\":\"cypsxjv\"}") + "{\"consumerGroup\":\"Low\",\"displayName\":\"vdxec\",\"hostFormat\":\"Ip\",\"isRegional\":true,\"protocol\":\"TCPS\",\"sessionMode\":\"Redirect\",\"syntaxFormat\":\"Long\",\"tlsAuthentication\":\"Mutual\",\"value\":\"zlhp\"}") .toObject(ProfileType.class); - Assertions.assertEquals(ConsumerGroup.TPURGENT, model.consumerGroup()); - Assertions.assertEquals("tpwoqhihejq", model.displayName()); - Assertions.assertEquals(HostFormatType.FQDN, model.hostFormat()); + Assertions.assertEquals(ConsumerGroup.LOW, model.consumerGroup()); + Assertions.assertEquals("vdxec", model.displayName()); + Assertions.assertEquals(HostFormatType.IP, model.hostFormat()); Assertions.assertTrue(model.isRegional()); - Assertions.assertEquals(ProtocolType.TCP, model.protocol()); - Assertions.assertEquals(SessionModeType.DIRECT, model.sessionMode()); + Assertions.assertEquals(ProtocolType.TCPS, model.protocol()); + Assertions.assertEquals(SessionModeType.REDIRECT, model.sessionMode()); Assertions.assertEquals(SyntaxFormatType.LONG, model.syntaxFormat()); Assertions.assertEquals(TlsAuthenticationType.MUTUAL, model.tlsAuthentication()); - Assertions.assertEquals("cypsxjv", model.value()); + Assertions.assertEquals("zlhp", model.value()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/RemoveVirtualMachineFromExadbVmClusterDetailsTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/RemoveVirtualMachineFromExadbVmClusterDetailsTests.java index ca025db512cc..142729f8fa44 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/RemoveVirtualMachineFromExadbVmClusterDetailsTests.java +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/RemoveVirtualMachineFromExadbVmClusterDetailsTests.java @@ -13,19 +13,18 @@ public final class RemoveVirtualMachineFromExadbVmClusterDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RemoveVirtualMachineFromExadbVmClusterDetails model = BinaryData - .fromString( - "{\"dbNodes\":[{\"dbNodeId\":\"nwiaaomyl\"},{\"dbNodeId\":\"eazulcs\"},{\"dbNodeId\":\"thwwn\"}]}") - .toObject(RemoveVirtualMachineFromExadbVmClusterDetails.class); - Assertions.assertEquals("nwiaaomyl", model.dbNodes().get(0).dbNodeId()); + RemoveVirtualMachineFromExadbVmClusterDetails model + = BinaryData.fromString("{\"dbNodes\":[{\"dbNodeId\":\"gdslqxihhrmoo\"},{\"dbNodeId\":\"z\"}]}") + .toObject(RemoveVirtualMachineFromExadbVmClusterDetails.class); + Assertions.assertEquals("gdslqxihhrmoo", model.dbNodes().get(0).dbNodeId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RemoveVirtualMachineFromExadbVmClusterDetails model = new RemoveVirtualMachineFromExadbVmClusterDetails() - .withDbNodes(Arrays.asList(new DbNodeDetails().withDbNodeId("nwiaaomyl"), - new DbNodeDetails().withDbNodeId("eazulcs"), new DbNodeDetails().withDbNodeId("thwwn"))); + RemoveVirtualMachineFromExadbVmClusterDetails model + = new RemoveVirtualMachineFromExadbVmClusterDetails().withDbNodes(Arrays + .asList(new DbNodeDetails().withDbNodeId("gdslqxihhrmoo"), new DbNodeDetails().withDbNodeId("z"))); model = BinaryData.fromObject(model).toObject(RemoveVirtualMachineFromExadbVmClusterDetails.class); - Assertions.assertEquals("nwiaaomyl", model.dbNodes().get(0).dbNodeId()); + Assertions.assertEquals("gdslqxihhrmoo", model.dbNodes().get(0).dbNodeId()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorInnerTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorInnerTests.java new file mode 100644 index 000000000000..47af8c421a46 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorInnerTests.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.fluent.models.ResourceAnchorInner; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorProperties; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ResourceAnchorInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ResourceAnchorInner model = BinaryData.fromString( + "{\"properties\":{\"provisioningState\":\"Succeeded\",\"linkedCompartmentId\":\"eta\"},\"location\":\"tsxoatftgz\",\"tags\":{\"vefloccsrmozihmi\":\"bs\",\"wtxxpkyjcx\":\"g\",\"ycilrmcaykggnox\":\"jxgrytfmp\",\"pfnznthjtwkj\":\"ztrksxwpndf\"},\"id\":\"osrxuzvoa\",\"name\":\"ktcqio\",\"type\":\"mgbzahgxqdlyrtl\"}") + .toObject(ResourceAnchorInner.class); + Assertions.assertEquals("tsxoatftgz", model.location()); + Assertions.assertEquals("bs", model.tags().get("vefloccsrmozihmi")); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ResourceAnchorInner model = new ResourceAnchorInner().withLocation("tsxoatftgz") + .withTags(mapOf("vefloccsrmozihmi", "bs", "wtxxpkyjcx", "g", "ycilrmcaykggnox", "jxgrytfmp", "pfnznthjtwkj", + "ztrksxwpndf")) + .withProperties(new ResourceAnchorProperties()); + model = BinaryData.fromObject(model).toObject(ResourceAnchorInner.class); + Assertions.assertEquals("tsxoatftgz", model.location()); + Assertions.assertEquals("bs", model.tags().get("vefloccsrmozihmi")); + } + + // 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/ResourceAnchorListResultTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorListResultTests.java new file mode 100644 index 000000000000..29edf8d1bdcb --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorListResultTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.implementation.models.ResourceAnchorListResult; +import org.junit.jupiter.api.Assertions; + +public final class ResourceAnchorListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ResourceAnchorListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"linkedCompartmentId\":\"ruswhv\"},\"location\":\"zznvfbyc\",\"tags\":{\"xzv\":\"jww\"},\"id\":\"mwmxqhndvnoamld\",\"name\":\"ehaohdjhh\",\"type\":\"lzok\"}],\"nextLink\":\"ox\"}") + .toObject(ResourceAnchorListResult.class); + Assertions.assertEquals("zznvfbyc", model.value().get(0).location()); + Assertions.assertEquals("jww", model.value().get(0).tags().get("xzv")); + Assertions.assertEquals("ox", model.nextLink()); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorPropertiesTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorPropertiesTests.java new file mode 100644 index 000000000000..1cc49339d244 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorPropertiesTests.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorProperties; + +public final class ResourceAnchorPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ResourceAnchorProperties model + = BinaryData.fromString("{\"provisioningState\":\"Succeeded\",\"linkedCompartmentId\":\"rltzkatbhjmz\"}") + .toObject(ResourceAnchorProperties.class); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ResourceAnchorProperties model = new ResourceAnchorProperties(); + model = BinaryData.fromObject(model).toObject(ResourceAnchorProperties.class); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorUpdateTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorUpdateTests.java new file mode 100644 index 000000000000..eb7727b709a3 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorUpdateTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorUpdate; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ResourceAnchorUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ResourceAnchorUpdate model + = BinaryData.fromString("{\"tags\":{\"qeqala\":\"s\",\"tgfebwln\":\"vlagun\",\"av\":\"mhyreeudz\"}}") + .toObject(ResourceAnchorUpdate.class); + Assertions.assertEquals("s", model.tags().get("qeqala")); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ResourceAnchorUpdate model + = new ResourceAnchorUpdate().withTags(mapOf("qeqala", "s", "tgfebwln", "vlagun", "av", "mhyreeudz")); + model = BinaryData.fromObject(model).toObject(ResourceAnchorUpdate.class); + Assertions.assertEquals("s", model.tags().get("qeqala")); + } + + // 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/ResourceAnchorsCreateOrUpdateMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsCreateOrUpdateMockTests.java new file mode 100644 index 000000000000..cf5da70601b3 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsCreateOrUpdateMockTests.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchor; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchorProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +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 ResourceAnchorsCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"linkedCompartmentId\":\"culregpqt\"},\"location\":\"jhvrztnvgyshqrdg\",\"tags\":{\"fa\":\"mewjzlpyk\",\"zrransyb\":\"zwjcaye\",\"nkfscjfn\":\"lpolwzrghsrle\"},\"id\":\"jwvuag\",\"name\":\"qwtltngvmreupt\",\"type\":\"klzmijajw\"}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ResourceAnchor response = manager.resourceAnchors() + .define("wmn") + .withRegion("wkudrbcpf") + .withExistingResourceGroup("clctzey") + .withTags(mapOf("irtneemmjau", "dqyemebunaucm", "rwgudasmxub", "cgxefnohaitraniz")) + .withProperties(new ResourceAnchorProperties()) + .create(); + + Assertions.assertEquals("jhvrztnvgyshqrdg", response.location()); + Assertions.assertEquals("mewjzlpyk", response.tags().get("fa")); + } + + // 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/ResourceAnchorsGetByResourceGroupWithResponseMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsGetByResourceGroupWithResponseMockTests.java new file mode 100644 index 000000000000..6b2f20ca462d --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsGetByResourceGroupWithResponseMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.oracledatabase.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchor; +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 ResourceAnchorsGetByResourceGroupWithResponseMockTests { + @Test + public void testGetByResourceGroupWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"provisioningState\":\"Provisioning\",\"linkedCompartmentId\":\"ossscyva\"},\"location\":\"ppuacvfyeowp\",\"tags\":{\"ttehdp\":\"tjdhsoymhpvtyq\"},\"id\":\"ou\",\"name\":\"stkfvvdshxcdeds\",\"type\":\"enygnxcgjtfrnquk\"}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ResourceAnchor response = manager.resourceAnchors() + .getByResourceGroupWithResponse("lefksxq", "eazfpxgnmqvzvlu", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("ppuacvfyeowp", response.location()); + Assertions.assertEquals("tjdhsoymhpvtyq", response.tags().get("ttehdp")); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListByResourceGroupMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListByResourceGroupMockTests.java new file mode 100644 index 000000000000..4e399b47e7c1 --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListByResourceGroupMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.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.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchor; +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 ResourceAnchorsListByResourceGroupMockTests { + @Test + public void testListByResourceGroup() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Provisioning\",\"linkedCompartmentId\":\"rxsmyltrw\"},\"location\":\"fmtbgwjdxwn\",\"tags\":{\"wzzqseuzuukykcy\":\"urrdreyzjwhsetww\",\"ey\":\"hyqqzzdcy\",\"pew\":\"tewfopazdazgbsq\"},\"id\":\"c\",\"name\":\"utmdpvozg\",\"type\":\"qjbknl\"}]}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.resourceAnchors().listByResourceGroup("rf", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("fmtbgwjdxwn", response.iterator().next().location()); + Assertions.assertEquals("urrdreyzjwhsetww", response.iterator().next().tags().get("wzzqseuzuukykcy")); + } +} diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListMockTests.java b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListMockTests.java new file mode 100644 index 000000000000..1766c3aa04da --- /dev/null +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/test/java/com/azure/resourcemanager/oracledatabase/generated/ResourceAnchorsListMockTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.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.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.oracledatabase.OracleDatabaseManager; +import com.azure.resourcemanager.oracledatabase.models.ResourceAnchor; +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 ResourceAnchorsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"linkedCompartmentId\":\"inxojjlux\"},\"location\":\"hilzzdzzq\",\"tags\":{\"vribqlotokht\":\"ezay\",\"xwjyofgwhnk\":\"wtaznkcqw\"},\"id\":\"tlwljssmcts\",\"name\":\"ldkpwolgisu\",\"type\":\"xbteogfgfiijryk\"}]}"; + + 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("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.resourceAnchors().list(com.azure.core.util.Context.NONE); + + Assertions.assertEquals("hilzzdzzq", response.iterator().next().location()); + Assertions.assertEquals("ezay", response.iterator().next().tags().get("vribqlotokht")); + } +} 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 index 812805af99d8..35680b1a4742 100644 --- 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 @@ -12,16 +12,16 @@ public final class RestoreAutonomousDatabaseDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RestoreAutonomousDatabaseDetails model = BinaryData.fromString("{\"timestamp\":\"2021-07-20T17:37:51Z\"}") + RestoreAutonomousDatabaseDetails model = BinaryData.fromString("{\"timestamp\":\"2021-03-05T15:56:58Z\"}") .toObject(RestoreAutonomousDatabaseDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T17:37:51Z"), model.timestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-05T15:56:58Z"), model.timestamp()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RestoreAutonomousDatabaseDetails model - = new RestoreAutonomousDatabaseDetails().withTimestamp(OffsetDateTime.parse("2021-07-20T17:37:51Z")); + = new RestoreAutonomousDatabaseDetails().withTimestamp(OffsetDateTime.parse("2021-03-05T15:56:58Z")); model = BinaryData.fromObject(model).toObject(RestoreAutonomousDatabaseDetails.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T17:37:51Z"), model.timestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-05T15:56:58Z"), 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 index 1cbd3fc5850b..7a81777097d1 100644 --- 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 @@ -11,7 +11,7 @@ public final class SaasSubscriptionDetailsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SaasSubscriptionDetailsInner model = BinaryData.fromString( - "{\"id\":\"w\",\"subscriptionName\":\"mslyzrpzbchckqqz\",\"timeCreated\":\"2021-07-29T22:35:12Z\",\"offerId\":\"iysui\",\"planId\":\"ynkedyatrwyhqmib\",\"saasSubscriptionStatus\":\"hwit\",\"publisherId\":\"ypyynpcdpumnzg\",\"purchaserEmailId\":\"z\",\"purchaserTenantId\":\"abikns\",\"termUnit\":\"gj\",\"isAutoRenew\":false,\"isFreeTrial\":true}") + "{\"id\":\"jzkzi\",\"subscriptionName\":\"vvcnayr\",\"timeCreated\":\"2021-08-18T18:02:42Z\",\"offerId\":\"xxmueedn\",\"planId\":\"dvstkw\",\"saasSubscriptionStatus\":\"tchealmf\",\"publisherId\":\"d\",\"purchaserEmailId\":\"ygdvwv\",\"purchaserTenantId\":\"iohgwxrtfud\",\"termUnit\":\"pxgy\",\"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 index c3a360e0fb53..c251f36bf914 100644 --- 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 @@ -14,22 +14,22 @@ public final class ScheduledOperationsTypeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScheduledOperationsType model = BinaryData.fromString( - "{\"dayOfWeek\":{\"name\":\"Wednesday\"},\"scheduledStartTime\":\"opqgikyzirtxdyux\",\"scheduledStopTime\":\"jntpsewgioilqu\"}") + "{\"dayOfWeek\":{\"name\":\"Sunday\"},\"scheduledStartTime\":\"jgcyztsfmznba\",\"scheduledStopTime\":\"ph\"}") .toObject(ScheduledOperationsType.class); - Assertions.assertEquals(DayOfWeekName.WEDNESDAY, model.dayOfWeek().name()); - Assertions.assertEquals("opqgikyzirtxdyux", model.scheduledStartTime()); - Assertions.assertEquals("jntpsewgioilqu", model.scheduledStopTime()); + Assertions.assertEquals(DayOfWeekName.SUNDAY, model.dayOfWeek().name()); + Assertions.assertEquals("jgcyztsfmznba", model.scheduledStartTime()); + Assertions.assertEquals("ph", model.scheduledStopTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ScheduledOperationsType model - = new ScheduledOperationsType().withDayOfWeek(new DayOfWeek().withName(DayOfWeekName.WEDNESDAY)) - .withScheduledStartTime("opqgikyzirtxdyux") - .withScheduledStopTime("jntpsewgioilqu"); + = new ScheduledOperationsType().withDayOfWeek(new DayOfWeek().withName(DayOfWeekName.SUNDAY)) + .withScheduledStartTime("jgcyztsfmznba") + .withScheduledStopTime("ph"); model = BinaryData.fromObject(model).toObject(ScheduledOperationsType.class); - Assertions.assertEquals(DayOfWeekName.WEDNESDAY, model.dayOfWeek().name()); - Assertions.assertEquals("opqgikyzirtxdyux", model.scheduledStartTime()); - Assertions.assertEquals("jntpsewgioilqu", model.scheduledStopTime()); + Assertions.assertEquals(DayOfWeekName.SUNDAY, model.dayOfWeek().name()); + Assertions.assertEquals("jgcyztsfmznba", model.scheduledStartTime()); + Assertions.assertEquals("ph", 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 index eebd75250939..a5413c9f4088 100644 --- 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 @@ -14,22 +14,22 @@ public final class ScheduledOperationsTypeUpdateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ScheduledOperationsTypeUpdate model = BinaryData.fromString( - "{\"dayOfWeek\":{\"name\":\"Tuesday\"},\"scheduledStartTime\":\"tmczuomejwcwwqi\",\"scheduledStopTime\":\"nssxmojmsvpk\"}") + "{\"dayOfWeek\":{\"name\":\"Tuesday\"},\"scheduledStartTime\":\"tdrjfutacoebj\",\"scheduledStopTime\":\"wzcjznmwcpmgua\"}") .toObject(ScheduledOperationsTypeUpdate.class); Assertions.assertEquals(DayOfWeekName.TUESDAY, model.dayOfWeek().name()); - Assertions.assertEquals("tmczuomejwcwwqi", model.scheduledStartTime()); - Assertions.assertEquals("nssxmojmsvpk", model.scheduledStopTime()); + Assertions.assertEquals("tdrjfutacoebj", model.scheduledStartTime()); + Assertions.assertEquals("wzcjznmwcpmgua", model.scheduledStopTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ScheduledOperationsTypeUpdate model = new ScheduledOperationsTypeUpdate().withDayOfWeek(new DayOfWeekUpdate().withName(DayOfWeekName.TUESDAY)) - .withScheduledStartTime("tmczuomejwcwwqi") - .withScheduledStopTime("nssxmojmsvpk"); + .withScheduledStartTime("tdrjfutacoebj") + .withScheduledStopTime("wzcjznmwcpmgua"); model = BinaryData.fromObject(model).toObject(ScheduledOperationsTypeUpdate.class); Assertions.assertEquals(DayOfWeekName.TUESDAY, model.dayOfWeek().name()); - Assertions.assertEquals("tmczuomejwcwwqi", model.scheduledStartTime()); - Assertions.assertEquals("nssxmojmsvpk", model.scheduledStopTime()); + Assertions.assertEquals("tdrjfutacoebj", model.scheduledStartTime()); + Assertions.assertEquals("wzcjznmwcpmgua", 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 index 0ae21f0eb96d..cc58ac5c04a6 100644 --- 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 @@ -12,8 +12,8 @@ public final class SystemVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SystemVersionInner model = BinaryData.fromString( - "{\"properties\":{\"systemVersion\":\"sluicpdggkzz\"},\"id\":\"mbmpaxmodfvuefy\",\"name\":\"sbpfvmwyhr\",\"type\":\"ouyftaakc\"}") + "{\"properties\":{\"systemVersion\":\"mbqfqvmk\"},\"id\":\"oz\",\"name\":\"pvhelxprg\",\"type\":\"yat\"}") .toObject(SystemVersionInner.class); - Assertions.assertEquals("sluicpdggkzz", model.properties().systemVersion()); + Assertions.assertEquals("mbqfqvmk", model.properties().systemVersion()); } } 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 index 9756ce4fc663..3a2cc7bb0fd1 100644 --- 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 @@ -12,9 +12,9 @@ public final class SystemVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SystemVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"systemVersion\":\"mond\"},\"id\":\"quxvypomgkop\",\"name\":\"whojvp\",\"type\":\"jqg\"},{\"properties\":{\"systemVersion\":\"smocmbq\"},\"id\":\"vmkcx\",\"name\":\"zapvhelx\",\"type\":\"rgly\"}],\"nextLink\":\"dd\"}") + "{\"value\":[{\"properties\":{\"systemVersion\":\"rjxgciqib\"},\"id\":\"osx\",\"name\":\"dqrhzoymib\",\"type\":\"rq\"},{\"properties\":{\"systemVersion\":\"bahwfl\"},\"id\":\"zdtmhrkwofy\",\"name\":\"voqacpiexpbt\",\"type\":\"iwbwoenwashrtdtk\"},{\"properties\":{\"systemVersion\":\"qxwbpokulpiu\"},\"id\":\"aasipqi\",\"name\":\"obyu\",\"type\":\"erpqlpqwcciuqg\"},{\"properties\":{\"systemVersion\":\"butauvfb\"},\"id\":\"uwhhmhykojoxafn\",\"name\":\"dlpichkoymkcdyhb\",\"type\":\"kkpwdreqnovvq\"}],\"nextLink\":\"vljxywsu\"}") .toObject(SystemVersionListResult.class); - Assertions.assertEquals("mond", model.value().get(0).properties().systemVersion()); - Assertions.assertEquals("dd", model.nextLink()); + Assertions.assertEquals("rjxgciqib", model.value().get(0).properties().systemVersion()); + Assertions.assertEquals("vljxywsu", 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 index 505d1ca941ce..403be4df6527 100644 --- 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 @@ -12,7 +12,7 @@ public final class SystemVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SystemVersionProperties model - = BinaryData.fromString("{\"systemVersion\":\"wiyzvqtmnubexkp\"}").toObject(SystemVersionProperties.class); - Assertions.assertEquals("wiyzvqtmnubexkp", model.systemVersion()); + = BinaryData.fromString("{\"systemVersion\":\"dckcbc\"}").toObject(SystemVersionProperties.class); + Assertions.assertEquals("dckcbc", model.systemVersion()); } } 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 index 8d675cb8bdda..f0ec028a6d9b 100644 --- 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 @@ -21,7 +21,7 @@ public final class SystemVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"systemVersion\":\"nsjlpjrtws\"},\"id\":\"vv\",\"name\":\"icphvtrrmhw\",\"type\":\"bfdpyflubhv\"}"; + = "{\"properties\":{\"systemVersion\":\"aoyte\"},\"id\":\"puvjmvqmtd\",\"name\":\"ckygroejnndljdju\",\"type\":\"kb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,10 +30,9 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - SystemVersion response = manager.systemVersions() - .getWithResponse("rdfjmzsyzfhotl", "ikcyyc", com.azure.core.util.Context.NONE) - .getValue(); + SystemVersion response + = manager.systemVersions().getWithResponse("yf", "x", com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals("nsjlpjrtws", response.properties().systemVersion()); + Assertions.assertEquals("aoyte", response.properties().systemVersion()); } } 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 index b24025315f01..644fb03a102e 100644 --- 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 @@ -22,7 +22,7 @@ public final class SystemVersionsListByLocationMockTests { @Test public void testListByLocation() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"systemVersion\":\"whhmemhooc\"},\"id\":\"tnpqmemczjk\",\"name\":\"mykyujxsglhs\",\"type\":\"rryejylmbkzudnig\"}]}"; + = "{\"value\":[{\"properties\":{\"systemVersion\":\"kceysfaqegplw\"},\"id\":\"shwddkvbxgk\",\"name\":\"usybwptdaca\",\"type\":\"vvlfntymtp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testListByLocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.systemVersions().listByLocation("glrocuy", com.azure.core.util.Context.NONE); + = manager.systemVersions().listByLocation("req", com.azure.core.util.Context.NONE); - Assertions.assertEquals("whhmemhooc", response.iterator().next().properties().systemVersion()); + Assertions.assertEquals("kceysfaqegplw", response.iterator().next().properties().systemVersion()); } } 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 index 0d3a165e74a7..ad1a34e47424 100644 --- 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 @@ -13,18 +13,18 @@ public final class VirtualNetworkAddressInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualNetworkAddressInner model = BinaryData.fromString( - "{\"properties\":{\"ipAddress\":\"bncblylpstdbhhx\",\"vmOcid\":\"zdzucerscdntnevf\",\"ocid\":\"jmygtdsslswtmwer\",\"domain\":\"fzp\",\"lifecycleDetails\":\"semwabnet\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Terminating\",\"timeAssigned\":\"2021-01-22T19:10:23Z\"},\"id\":\"plvwiwubmwmbes\",\"name\":\"dnkwwtppjflcxog\",\"type\":\"okonzmnsikvmkqz\"}") + "{\"properties\":{\"ipAddress\":\"utiiswacf\",\"vmOcid\":\"dkzzewkfvhqcrail\",\"ocid\":\"n\",\"domain\":\"fuflrwdmhdlx\",\"lifecycleDetails\":\"rxsagafcnihgwqa\",\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Available\",\"timeAssigned\":\"2021-11-13T04:56:11Z\"},\"id\":\"vkcvqvpkeqd\",\"name\":\"vdrhvoo\",\"type\":\"sotbob\"}") .toObject(VirtualNetworkAddressInner.class); - Assertions.assertEquals("bncblylpstdbhhx", model.properties().ipAddress()); - Assertions.assertEquals("zdzucerscdntnevf", model.properties().vmOcid()); + Assertions.assertEquals("utiiswacf", model.properties().ipAddress()); + Assertions.assertEquals("dkzzewkfvhqcrail", model.properties().vmOcid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualNetworkAddressInner model = new VirtualNetworkAddressInner().withProperties( - new VirtualNetworkAddressProperties().withIpAddress("bncblylpstdbhhx").withVmOcid("zdzucerscdntnevf")); + new VirtualNetworkAddressProperties().withIpAddress("utiiswacf").withVmOcid("dkzzewkfvhqcrail")); model = BinaryData.fromObject(model).toObject(VirtualNetworkAddressInner.class); - Assertions.assertEquals("bncblylpstdbhhx", model.properties().ipAddress()); - Assertions.assertEquals("zdzucerscdntnevf", model.properties().vmOcid()); + Assertions.assertEquals("utiiswacf", model.properties().ipAddress()); + Assertions.assertEquals("dkzzewkfvhqcrail", 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 index 0b87616ef5ef..71d4685cf550 100644 --- 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 @@ -12,10 +12,10 @@ public final class VirtualNetworkAddressListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualNetworkAddressListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"ipAddress\":\"lkzgxhuriplbp\",\"vmOcid\":\"xunkbebxmubyynt\",\"ocid\":\"rbqtkoie\",\"domain\":\"eotg\",\"lifecycleDetails\":\"l\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Available\",\"timeAssigned\":\"2021-03-25T05:26:25Z\"},\"id\":\"wzizxbmpgcjefuzm\",\"name\":\"vpbttd\",\"type\":\"morppxebmnzbtbh\"},{\"properties\":{\"ipAddress\":\"lkfg\",\"vmOcid\":\"dneu\",\"ocid\":\"fphsdyhtozfikdow\",\"domain\":\"uuvxz\",\"lifecycleDetails\":\"lvithhqzonosgg\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Terminating\",\"timeAssigned\":\"2021-09-10T06:03:01Z\"},\"id\":\"sjnkal\",\"name\":\"utiiswacf\",\"type\":\"gdkz\"},{\"properties\":{\"ipAddress\":\"kfvhqcrailvpn\",\"vmOcid\":\"fuflrwdmhdlx\",\"ocid\":\"rxsagafcnihgwqa\",\"domain\":\"edgfbcvkcvq\",\"lifecycleDetails\":\"keqdcvdrhvoods\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Terminating\",\"timeAssigned\":\"2021-02-17T19:25:45Z\"},\"id\":\"pcjwv\",\"name\":\"hdldwmgxcxrsl\",\"type\":\"mutwuoe\"}],\"nextLink\":\"pkhjwni\"}") + "{\"value\":[{\"properties\":{\"ipAddress\":\"mbmpaxmodfvuefy\",\"vmOcid\":\"bpfvm\",\"ocid\":\"hrfou\",\"domain\":\"taakc\",\"lifecycleDetails\":\"iyzvqtmnub\",\"provisioningState\":\"Canceled\",\"lifecycleState\":\"Terminated\",\"timeAssigned\":\"2021-05-08T13:31:38Z\"},\"id\":\"ondjmq\",\"name\":\"xvy\",\"type\":\"omgkopkwho\"}],\"nextLink\":\"pajqgxysm\"}") .toObject(VirtualNetworkAddressListResult.class); - Assertions.assertEquals("lkzgxhuriplbp", model.value().get(0).properties().ipAddress()); - Assertions.assertEquals("xunkbebxmubyynt", model.value().get(0).properties().vmOcid()); - Assertions.assertEquals("pkhjwni", model.nextLink()); + Assertions.assertEquals("mbmpaxmodfvuefy", model.value().get(0).properties().ipAddress()); + Assertions.assertEquals("bpfvm", model.value().get(0).properties().vmOcid()); + Assertions.assertEquals("pajqgxysm", 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 index e394cf890e75..e6ae7ee86562 100644 --- 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 @@ -12,18 +12,18 @@ public final class VirtualNetworkAddressPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VirtualNetworkAddressProperties model = BinaryData.fromString( - "{\"ipAddress\":\"qkdltfz\",\"vmOcid\":\"hhvh\",\"ocid\":\"r\",\"domain\":\"dkwobdagx\",\"lifecycleDetails\":\"bqdxbx\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Failed\",\"timeAssigned\":\"2021-01-22T07:28:26Z\"}") + "{\"ipAddress\":\"opcjwvnhd\",\"vmOcid\":\"wmgxcxrsl\",\"ocid\":\"utwu\",\"domain\":\"grpkhjwniyqs\",\"lifecycleDetails\":\"i\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Terminated\",\"timeAssigned\":\"2021-03-11T02:43:20Z\"}") .toObject(VirtualNetworkAddressProperties.class); - Assertions.assertEquals("qkdltfz", model.ipAddress()); - Assertions.assertEquals("hhvh", model.vmOcid()); + Assertions.assertEquals("opcjwvnhd", model.ipAddress()); + Assertions.assertEquals("wmgxcxrsl", model.vmOcid()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VirtualNetworkAddressProperties model - = new VirtualNetworkAddressProperties().withIpAddress("qkdltfz").withVmOcid("hhvh"); + = new VirtualNetworkAddressProperties().withIpAddress("opcjwvnhd").withVmOcid("wmgxcxrsl"); model = BinaryData.fromObject(model).toObject(VirtualNetworkAddressProperties.class); - Assertions.assertEquals("qkdltfz", model.ipAddress()); - Assertions.assertEquals("hhvh", model.vmOcid()); + Assertions.assertEquals("opcjwvnhd", model.ipAddress()); + Assertions.assertEquals("wmgxcxrsl", 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 index 39b4ca5fab4d..0726393484e8 100644 --- 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 @@ -22,7 +22,7 @@ public final class VirtualNetworkAddressesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"ipAddress\":\"hqykizmdk\",\"vmOcid\":\"oafcluqvox\",\"ocid\":\"cjimryvwgcwwpbmz\",\"domain\":\"esyds\",\"lifecycleDetails\":\"efoh\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Failed\",\"timeAssigned\":\"2021-01-07T15:19:45Z\"},\"id\":\"dy\",\"name\":\"leallklm\",\"type\":\"khlowkxxpv\"}"; + = "{\"properties\":{\"ipAddress\":\"iswskuk\",\"vmOcid\":\"asbvw\",\"ocid\":\"pkxkdtxfk\",\"domain\":\"lq\",\"lifecycleDetails\":\"w\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Provisioning\",\"timeAssigned\":\"2021-06-28T03:53:06Z\"},\"id\":\"gtywatmqaqkue\",\"name\":\"tgroesh\",\"type\":\"ygzc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); VirtualNetworkAddress response = manager.virtualNetworkAddresses() - .define("hqepvufhbzehewh") - .withExistingCloudVmCluster("kuma", "jcaacfdmmcpugm") - .withProperties(new VirtualNetworkAddressProperties().withIpAddress("nlbqnbldxeaclg").withVmOcid("horimkr")) + .define("ycblevpmcl") + .withExistingCloudVmCluster("j", "bajbuscgduusi") + .withProperties(new VirtualNetworkAddressProperties().withIpAddress("xkyxlzgs").withVmOcid("kzzltafhbzf")) .create(); - Assertions.assertEquals("hqykizmdk", response.properties().ipAddress()); - Assertions.assertEquals("oafcluqvox", response.properties().vmOcid()); + Assertions.assertEquals("iswskuk", response.properties().ipAddress()); + Assertions.assertEquals("asbvw", 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 index a4ab9548bb7a..bf32c23f51cb 100644 --- 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 @@ -21,7 +21,7 @@ public final class VirtualNetworkAddressesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"ipAddress\":\"rouuxvnsasbcry\",\"vmOcid\":\"dizr\",\"ocid\":\"lobdxna\",\"domain\":\"mkmlmvevfx\",\"lifecycleDetails\":\"pj\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Failed\",\"timeAssigned\":\"2021-05-23T07:43:32Z\"},\"id\":\"rdddtfgxqbawpcb\",\"name\":\"nzqcy\",\"type\":\"napqo\"}"; + = "{\"properties\":{\"ipAddress\":\"nlzafwxudgnh\",\"vmOcid\":\"okrtalvnb\",\"ocid\":\"pbeme\",\"domain\":\"clvdjjukyrdnqod\",\"lifecycleDetails\":\"hhxhq\",\"provisioningState\":\"Provisioning\",\"lifecycleState\":\"Provisioning\",\"timeAssigned\":\"2021-06-09T02:34:33Z\"},\"id\":\"gyipem\",\"name\":\"hgav\",\"type\":\"czuejdtxptl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); VirtualNetworkAddress response = manager.virtualNetworkAddresses() - .getWithResponse("xbannovvoxc", "ytprwnwvroev", "tlyo", com.azure.core.util.Context.NONE) + .getWithResponse("ztwhghmupg", "yjtcdxabbujftab", "nbbklqpxzucafed", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rouuxvnsasbcry", response.properties().ipAddress()); - Assertions.assertEquals("dizr", response.properties().vmOcid()); + Assertions.assertEquals("nlzafwxudgnh", response.properties().ipAddress()); + Assertions.assertEquals("okrtalvnb", 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 index 0c95360b8386..935561eafd49 100644 --- 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 @@ -22,7 +22,7 @@ public final class VirtualNetworkAddressesListByCloudVmClusterMockTests { @Test public void testListByCloudVmCluster() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"ipAddress\":\"jkmfxapjwo\",\"vmOcid\":\"qnobp\",\"ocid\":\"cdabtqwpwya\",\"domain\":\"zasqbucljgkyexao\",\"lifecycleDetails\":\"yaipidsda\",\"provisioningState\":\"Succeeded\",\"lifecycleState\":\"Failed\",\"timeAssigned\":\"2021-03-06T23:02:25Z\"},\"id\":\"mfqwa\",\"name\":\"lnqnmcjn\",\"type\":\"zqdqxt\"}]}"; + = "{\"value\":[{\"properties\":{\"ipAddress\":\"wmoaiancznvodrrs\",\"vmOcid\":\"lxydkxrxv\",\"ocid\":\"xiwkgfbql\",\"domain\":\"qkhychocok\",\"lifecycleDetails\":\"ehurqlr\",\"provisioningState\":\"Failed\",\"lifecycleState\":\"Provisioning\",\"timeAssigned\":\"2021-09-28T05:58:32Z\"},\"id\":\"rkphyjdxr\",\"name\":\"vjuqdbrxmrgchb\",\"type\":\"pxkiyf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListByCloudVmCluster() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.virtualNetworkAddresses() - .listByCloudVmCluster("lewjwiuubwef", "sfapaqtferrq", com.azure.core.util.Context.NONE); + .listByCloudVmCluster("h", "zhomewjjstliu", com.azure.core.util.Context.NONE); - Assertions.assertEquals("jkmfxapjwo", response.iterator().next().properties().ipAddress()); - Assertions.assertEquals("qnobp", response.iterator().next().properties().vmOcid()); + Assertions.assertEquals("wmoaiancznvodrrs", response.iterator().next().properties().ipAddress()); + Assertions.assertEquals("lxydkxrxv", response.iterator().next().properties().vmOcid()); } } diff --git a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/tsp-location.yaml b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/tsp-location.yaml index 53b5a51651ef..beacaf6bd311 100644 --- a/sdk/oracledatabase/azure-resourcemanager-oracledatabase/tsp-location.yaml +++ b/sdk/oracledatabase/azure-resourcemanager-oracledatabase/tsp-location.yaml @@ -1,5 +1,5 @@ directory: specification/oracle/Oracle.Database.Management -commit: 6267b64842af3d744c5b092a3f3beef49729ad6d +commit: 817d1dd38cab5e7fb8445624ecdf82a4d192b73b repo: Azure/azure-rest-api-specs additionalDirectories: - specification/oracle/Oracle.Database.Management/models