Skip to content

Commit 89154d3

Browse files
author
SDKAuto
committed
CodeGen from PR 33466 in Azure/azure-rest-api-specs
Merge 0ad472fb69790e09d5566fe832d026635692e4a8 into 24b107a9ae827ff57cefa6d26c434e224c7799a2
1 parent 8503bc9 commit 89154d3

File tree

383 files changed

+20923
-6251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

383 files changed

+20923
-6251
lines changed

sdk/oracledatabase/azure-resourcemanager-oracledatabase/CHANGELOG.md

Lines changed: 448 additions & 4 deletions
Large diffs are not rendered by default.

sdk/oracledatabase/azure-resourcemanager-oracledatabase/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager OracleDatabase client library for Java.
44

5-
This package contains Microsoft Azure SDK for OracleDatabase Management SDK. Package tag package-2023-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for OracleDatabase Management SDK. Package tag package-2025-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
OracleDatabaseManager manager = OracleDatabaseManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
100100
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
101101
[coc]: https://opensource.microsoft.com/codeofconduct/
102102
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
103-
104-

sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md

Lines changed: 917 additions & 122 deletions
Large diffs are not rendered by default.

sdk/oracledatabase/azure-resourcemanager-oracledatabase/pom.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for OracleDatabase Management</name>
21-
<description>This package contains Microsoft Azure SDK for OracleDatabase Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-09-01.</description>
21+
<description>This package contains Microsoft Azure SDK for OracleDatabase Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2025-03-01.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,13 +45,10 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48+
<revapi.skip>true</revapi.skip>
49+
<spotless.skip>false</spotless.skip>
4850
</properties>
4951
<dependencies>
50-
<dependency>
51-
<groupId>com.azure</groupId>
52-
<artifactId>azure-json</artifactId>
53-
<version>1.5.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
54-
</dependency>
5552
<dependency>
5653
<groupId>com.azure</groupId>
5754
<artifactId>azure-core</artifactId>
@@ -62,6 +59,11 @@
6259
<artifactId>azure-core-management</artifactId>
6360
<version>1.17.0</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
6461
</dependency>
62+
<dependency>
63+
<groupId>com.azure</groupId>
64+
<artifactId>azure-json</artifactId>
65+
<version>1.5.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
66+
</dependency>
6567
<dependency>
6668
<groupId>com.azure</groupId>
6769
<artifactId>azure-core-test</artifactId>

sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/OracleDatabaseManager.java

Lines changed: 94 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,37 @@
1111
import com.azure.core.http.HttpPipelinePosition;
1212
import com.azure.core.http.policy.AddDatePolicy;
1313
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
14-
import com.azure.core.http.policy.HttpLoggingPolicy;
14+
import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
1515
import com.azure.core.http.policy.HttpLogOptions;
16+
import com.azure.core.http.policy.HttpLoggingPolicy;
1617
import com.azure.core.http.policy.HttpPipelinePolicy;
1718
import com.azure.core.http.policy.HttpPolicyProviders;
1819
import com.azure.core.http.policy.RequestIdPolicy;
1920
import com.azure.core.http.policy.RetryOptions;
2021
import com.azure.core.http.policy.RetryPolicy;
2122
import com.azure.core.http.policy.UserAgentPolicy;
22-
import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
2323
import com.azure.core.management.profile.AzureProfile;
2424
import com.azure.core.util.Configuration;
25+
import com.azure.core.util.CoreUtils;
2526
import com.azure.core.util.logging.ClientLogger;
2627
import com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseResourceManager;
2728
import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseBackupsImpl;
2829
import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseCharacterSetsImpl;
2930
import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseNationalCharacterSetsImpl;
30-
import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabasesImpl;
3131
import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseVersionsImpl;
32+
import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabasesImpl;
3233
import com.azure.resourcemanager.oracledatabase.implementation.CloudExadataInfrastructuresImpl;
3334
import com.azure.resourcemanager.oracledatabase.implementation.CloudVmClustersImpl;
3435
import com.azure.resourcemanager.oracledatabase.implementation.DbNodesImpl;
3536
import com.azure.resourcemanager.oracledatabase.implementation.DbServersImpl;
3637
import com.azure.resourcemanager.oracledatabase.implementation.DbSystemShapesImpl;
3738
import com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateViewsImpl;
3839
import com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateZonesImpl;
40+
import com.azure.resourcemanager.oracledatabase.implementation.ExadbVmClustersImpl;
41+
import com.azure.resourcemanager.oracledatabase.implementation.ExascaleDbNodesImpl;
42+
import com.azure.resourcemanager.oracledatabase.implementation.ExascaleDbStorageVaultsImpl;
43+
import com.azure.resourcemanager.oracledatabase.implementation.FlexComponentsImpl;
44+
import com.azure.resourcemanager.oracledatabase.implementation.GiMinorVersionsImpl;
3945
import com.azure.resourcemanager.oracledatabase.implementation.GiVersionsImpl;
4046
import com.azure.resourcemanager.oracledatabase.implementation.OperationsImpl;
4147
import com.azure.resourcemanager.oracledatabase.implementation.OracleDatabaseResourceManagerBuilder;
@@ -45,15 +51,20 @@
4551
import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseBackups;
4652
import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseCharacterSets;
4753
import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseNationalCharacterSets;
48-
import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabases;
4954
import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabaseVersions;
55+
import com.azure.resourcemanager.oracledatabase.models.AutonomousDatabases;
5056
import com.azure.resourcemanager.oracledatabase.models.CloudExadataInfrastructures;
5157
import com.azure.resourcemanager.oracledatabase.models.CloudVmClusters;
5258
import com.azure.resourcemanager.oracledatabase.models.DbNodes;
5359
import com.azure.resourcemanager.oracledatabase.models.DbServers;
5460
import com.azure.resourcemanager.oracledatabase.models.DbSystemShapes;
5561
import com.azure.resourcemanager.oracledatabase.models.DnsPrivateViews;
5662
import com.azure.resourcemanager.oracledatabase.models.DnsPrivateZones;
63+
import com.azure.resourcemanager.oracledatabase.models.ExadbVmClusters;
64+
import com.azure.resourcemanager.oracledatabase.models.ExascaleDbNodes;
65+
import com.azure.resourcemanager.oracledatabase.models.ExascaleDbStorageVaults;
66+
import com.azure.resourcemanager.oracledatabase.models.FlexComponents;
67+
import com.azure.resourcemanager.oracledatabase.models.GiMinorVersions;
5768
import com.azure.resourcemanager.oracledatabase.models.GiVersions;
5869
import com.azure.resourcemanager.oracledatabase.models.Operations;
5970
import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptions;
@@ -63,6 +74,7 @@
6374
import java.time.temporal.ChronoUnit;
6475
import java.util.ArrayList;
6576
import java.util.List;
77+
import java.util.Map;
6678
import java.util.Objects;
6779
import java.util.stream.Collectors;
6880

@@ -78,6 +90,10 @@ public final class OracleDatabaseManager {
7890

7991
private CloudVmClusters cloudVmClusters;
8092

93+
private ExadbVmClusters exadbVmClusters;
94+
95+
private ExascaleDbStorageVaults exascaleDbStorageVaults;
96+
8197
private AutonomousDatabaseCharacterSets autonomousDatabaseCharacterSets;
8298

8399
private AutonomousDatabaseNationalCharacterSets autonomousDatabaseNationalCharacterSets;
@@ -90,8 +106,12 @@ public final class OracleDatabaseManager {
90106

91107
private DnsPrivateZones dnsPrivateZones;
92108

109+
private FlexComponents flexComponents;
110+
93111
private GiVersions giVersions;
94112

113+
private GiMinorVersions giMinorVersions;
114+
95115
private SystemVersions systemVersions;
96116

97117
private OracleSubscriptions oracleSubscriptions;
@@ -104,6 +124,8 @@ public final class OracleDatabaseManager {
104124

105125
private VirtualNetworkAddresses virtualNetworkAddresses;
106126

127+
private ExascaleDbNodes exascaleDbNodes;
128+
107129
private final OracleDatabaseResourceManager clientObject;
108130

109131
private OracleDatabaseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -156,6 +178,9 @@ public static Configurable configure() {
156178
*/
157179
public static final class Configurable {
158180
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
181+
private static final String SDK_VERSION = "version";
182+
private static final Map<String, String> PROPERTIES
183+
= CoreUtils.getProperties("azure-resourcemanager-oracledatabase.properties");
159184

160185
private HttpClient httpClient;
161186
private HttpLogOptions httpLogOptions;
@@ -263,12 +288,14 @@ public OracleDatabaseManager authenticate(TokenCredential credential, AzureProfi
263288
Objects.requireNonNull(credential, "'credential' cannot be null.");
264289
Objects.requireNonNull(profile, "'profile' cannot be null.");
265290

291+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
292+
266293
StringBuilder userAgentBuilder = new StringBuilder();
267294
userAgentBuilder.append("azsdk-java")
268295
.append("-")
269296
.append("com.azure.resourcemanager.oracledatabase")
270297
.append("/")
271-
.append("1.0.0");
298+
.append(clientVersion);
272299
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
273300
userAgentBuilder.append(" (")
274301
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -301,7 +328,7 @@ public OracleDatabaseManager authenticate(TokenCredential credential, AzureProfi
301328
HttpPolicyProviders.addBeforeRetryPolicies(policies);
302329
policies.add(retryPolicy);
303330
policies.add(new AddDatePolicy());
304-
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
331+
policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
305332
policies.addAll(this.policies.stream()
306333
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
307334
.collect(Collectors.toList()));
@@ -363,6 +390,31 @@ public CloudVmClusters cloudVmClusters() {
363390
return cloudVmClusters;
364391
}
365392

393+
/**
394+
* Gets the resource collection API of ExadbVmClusters. It manages ExadbVmCluster.
395+
*
396+
* @return Resource collection API of ExadbVmClusters.
397+
*/
398+
public ExadbVmClusters exadbVmClusters() {
399+
if (this.exadbVmClusters == null) {
400+
this.exadbVmClusters = new ExadbVmClustersImpl(clientObject.getExadbVmClusters(), this);
401+
}
402+
return exadbVmClusters;
403+
}
404+
405+
/**
406+
* Gets the resource collection API of ExascaleDbStorageVaults. It manages ExascaleDbStorageVault.
407+
*
408+
* @return Resource collection API of ExascaleDbStorageVaults.
409+
*/
410+
public ExascaleDbStorageVaults exascaleDbStorageVaults() {
411+
if (this.exascaleDbStorageVaults == null) {
412+
this.exascaleDbStorageVaults
413+
= new ExascaleDbStorageVaultsImpl(clientObject.getExascaleDbStorageVaults(), this);
414+
}
415+
return exascaleDbStorageVaults;
416+
}
417+
366418
/**
367419
* Gets the resource collection API of AutonomousDatabaseCharacterSets.
368420
*
@@ -438,6 +490,18 @@ public DnsPrivateZones dnsPrivateZones() {
438490
return dnsPrivateZones;
439491
}
440492

493+
/**
494+
* Gets the resource collection API of FlexComponents.
495+
*
496+
* @return Resource collection API of FlexComponents.
497+
*/
498+
public FlexComponents flexComponents() {
499+
if (this.flexComponents == null) {
500+
this.flexComponents = new FlexComponentsImpl(clientObject.getFlexComponents(), this);
501+
}
502+
return flexComponents;
503+
}
504+
441505
/**
442506
* Gets the resource collection API of GiVersions.
443507
*
@@ -450,6 +514,18 @@ public GiVersions giVersions() {
450514
return giVersions;
451515
}
452516

517+
/**
518+
* Gets the resource collection API of GiMinorVersions.
519+
*
520+
* @return Resource collection API of GiMinorVersions.
521+
*/
522+
public GiMinorVersions giMinorVersions() {
523+
if (this.giMinorVersions == null) {
524+
this.giMinorVersions = new GiMinorVersionsImpl(clientObject.getGiMinorVersions(), this);
525+
}
526+
return giMinorVersions;
527+
}
528+
453529
/**
454530
* Gets the resource collection API of SystemVersions.
455531
*
@@ -524,6 +600,18 @@ public VirtualNetworkAddresses virtualNetworkAddresses() {
524600
return virtualNetworkAddresses;
525601
}
526602

603+
/**
604+
* Gets the resource collection API of ExascaleDbNodes.
605+
*
606+
* @return Resource collection API of ExascaleDbNodes.
607+
*/
608+
public ExascaleDbNodes exascaleDbNodes() {
609+
if (this.exascaleDbNodes == null) {
610+
this.exascaleDbNodes = new ExascaleDbNodesImpl(clientObject.getExascaleDbNodes(), this);
611+
}
612+
return exascaleDbNodes;
613+
}
614+
527615
/**
528616
* Gets wrapped service client OracleDatabaseResourceManager providing direct access to the underlying
529617
* auto-generated API implementation, based on Azure REST API.

sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseBackupsClient.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ public interface AutonomousDatabaseBackupsClient {
3030
* {@link PagedIterable}.
3131
*/
3232
@ServiceMethod(returns = ReturnType.COLLECTION)
33-
PagedIterable<AutonomousDatabaseBackupInner> listByAutonomousDatabase(String resourceGroupName,
34-
String autonomousdatabasename);
33+
PagedIterable<AutonomousDatabaseBackupInner> listByParent(String resourceGroupName, String autonomousdatabasename);
3534

3635
/**
3736
* List AutonomousDatabaseBackup resources by AutonomousDatabase.
@@ -46,8 +45,8 @@ PagedIterable<AutonomousDatabaseBackupInner> listByAutonomousDatabase(String res
4645
* {@link PagedIterable}.
4746
*/
4847
@ServiceMethod(returns = ReturnType.COLLECTION)
49-
PagedIterable<AutonomousDatabaseBackupInner> listByAutonomousDatabase(String resourceGroupName,
50-
String autonomousdatabasename, Context context);
48+
PagedIterable<AutonomousDatabaseBackupInner> listByParent(String resourceGroupName, String autonomousdatabasename,
49+
Context context);
5150

5251
/**
5352
* Get a AutonomousDatabaseBackup.

sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseCharacterSetsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
public interface AutonomousDatabaseCharacterSetsClient {
1818
/**
19-
* List AutonomousDatabaseCharacterSet resources by Location.
19+
* List AutonomousDatabaseCharacterSet resources by SubscriptionLocationResource.
2020
*
2121
* @param location The name of the Azure region.
2222
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -29,7 +29,7 @@ public interface AutonomousDatabaseCharacterSetsClient {
2929
PagedIterable<AutonomousDatabaseCharacterSetInner> listByLocation(String location);
3030

3131
/**
32-
* List AutonomousDatabaseCharacterSet resources by Location.
32+
* List AutonomousDatabaseCharacterSet resources by SubscriptionLocationResource.
3333
*
3434
* @param location The name of the Azure region.
3535
* @param context The context to associate with this operation.

sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseNationalCharacterSetsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
public interface AutonomousDatabaseNationalCharacterSetsClient {
1919
/**
20-
* List AutonomousDatabaseNationalCharacterSet resources by Location.
20+
* List AutonomousDatabaseNationalCharacterSet resources by SubscriptionLocationResource.
2121
*
2222
* @param location The name of the Azure region.
2323
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -30,7 +30,7 @@ public interface AutonomousDatabaseNationalCharacterSetsClient {
3030
PagedIterable<AutonomousDatabaseNationalCharacterSetInner> listByLocation(String location);
3131

3232
/**
33-
* List AutonomousDatabaseNationalCharacterSet resources by Location.
33+
* List AutonomousDatabaseNationalCharacterSet resources by SubscriptionLocationResource.
3434
*
3535
* @param location The name of the Azure region.
3636
* @param context The context to associate with this operation.

sdk/oracledatabase/azure-resourcemanager-oracledatabase/src/main/java/com/azure/resourcemanager/oracledatabase/fluent/AutonomousDatabaseVersionsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
public interface AutonomousDatabaseVersionsClient {
1818
/**
19-
* List AutonomousDbVersion resources by Location.
19+
* List AutonomousDbVersion resources by SubscriptionLocationResource.
2020
*
2121
* @param location The name of the Azure region.
2222
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -28,7 +28,7 @@ public interface AutonomousDatabaseVersionsClient {
2828
PagedIterable<AutonomousDbVersionInner> listByLocation(String location);
2929

3030
/**
31-
* List AutonomousDbVersion resources by Location.
31+
* List AutonomousDbVersion resources by SubscriptionLocationResource.
3232
*
3333
* @param location The name of the Azure region.
3434
* @param context The context to associate with this operation.

0 commit comments

Comments
 (0)