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))
+ .