Skip to content

Commit

Permalink
CodeGen from PR 3489 in test-repo-billy/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 81cbcc6683dbdde803b169be5c34bee0ea7ea90d into 2b91022c223ed3618c268c750f831b76fe0f4fb5
  • Loading branch information
SDKAuto committed Aug 26, 2024
1 parent 909ff02 commit 35a2b39
Show file tree
Hide file tree
Showing 229 changed files with 871 additions and 4,219 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2024-08-26)

### Features Added
- Azure Resource Manager OracleDatabase client library for Java. This package contains Microsoft Azure SDK for OracleDatabase Management SDK. Package tag package-2024-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes

### Bugs Fixed
#### `OracleDatabaseManager` was modified

* `fluent.OracleDatabaseResourceManager serviceClient()` -> `fluent.OracleDatabaseResourceManagerForTesting serviceClient()`

### Features Added

* `models.AzureSubscriptions` was added

* `models.AddSubscriptionOperationState` was added

#### `models.OracleSubscriptions` was modified

* `addAzureSubscriptions(models.AzureSubscriptions)` was added
* `addAzureSubscriptions(models.AzureSubscriptions,com.azure.core.util.Context)` was added

#### `models.OracleSubscriptionProperties` was modified

### Other Changes
* `lastOperationStatusDetail()` was added
* `azureSubscriptionIds()` was added
* `addSubscriptionOperationState()` was added

## 1.0.0 (2024-07-04)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager OracleDatabase client library for Java.

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

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-oracledatabase</artifactId>
<version>1.0.0</version>
<version>1.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
191 changes: 110 additions & 81 deletions sdk/oracledatabase/azure-resourcemanager-oracledatabase/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for OracleDatabase Management</name>
<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>
<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-2024-06-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseResourceManager;
import com.azure.resourcemanager.oracledatabase.fluent.OracleDatabaseResourceManagerForTesting;
import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseBackupsImpl;
import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseCharacterSetsImpl;
import com.azure.resourcemanager.oracledatabase.implementation.AutonomousDatabaseNationalCharacterSetsImpl;
Expand All @@ -38,7 +38,7 @@
import com.azure.resourcemanager.oracledatabase.implementation.DnsPrivateZonesImpl;
import com.azure.resourcemanager.oracledatabase.implementation.GiVersionsImpl;
import com.azure.resourcemanager.oracledatabase.implementation.OperationsImpl;
import com.azure.resourcemanager.oracledatabase.implementation.OracleDatabaseResourceManagerBuilder;
import com.azure.resourcemanager.oracledatabase.implementation.OracleDatabaseResourceManagerForTestingBuilder;
import com.azure.resourcemanager.oracledatabase.implementation.OracleSubscriptionsImpl;
import com.azure.resourcemanager.oracledatabase.implementation.SystemVersionsImpl;
import com.azure.resourcemanager.oracledatabase.implementation.VirtualNetworkAddressesImpl;
Expand Down Expand Up @@ -104,12 +104,12 @@ public final class OracleDatabaseManager {

private VirtualNetworkAddresses virtualNetworkAddresses;

private final OracleDatabaseResourceManager clientObject;
private final OracleDatabaseResourceManagerForTesting clientObject;

private OracleDatabaseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject = new OracleDatabaseResourceManagerBuilder().pipeline(httpPipeline)
this.clientObject = new OracleDatabaseResourceManagerForTestingBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
Expand Down Expand Up @@ -268,7 +268,7 @@ public OracleDatabaseManager authenticate(TokenCredential credential, AzureProfi
.append("-")
.append("com.azure.resourcemanager.oracledatabase")
.append("/")
.append("1.0.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -525,12 +525,12 @@ public VirtualNetworkAddresses virtualNetworkAddresses() {
}

/**
* Gets wrapped service client OracleDatabaseResourceManager providing direct access to the underlying
* Gets wrapped service client OracleDatabaseResourceManagerForTesting providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
*
* @return Wrapped service client OracleDatabaseResourceManager.
* @return Wrapped service client OracleDatabaseResourceManagerForTesting.
*/
public OracleDatabaseResourceManager serviceClient() {
public OracleDatabaseResourceManagerForTesting serviceClient() {
return this.clientObject;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import java.time.Duration;

/**
* The interface for OracleDatabaseResourceManager class.
* The interface for OracleDatabaseResourceManagerForTesting class.
*/
public interface OracleDatabaseResourceManager {
public interface OracleDatabaseResourceManagerForTesting {
/**
* Gets The ID of the target subscription. The value must be an UUID.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.azure.resourcemanager.oracledatabase.fluent.models.CloudAccountDetailsInner;
import com.azure.resourcemanager.oracledatabase.fluent.models.OracleSubscriptionInner;
import com.azure.resourcemanager.oracledatabase.fluent.models.SaasSubscriptionDetailsInner;
import com.azure.resourcemanager.oracledatabase.models.AzureSubscriptions;
import com.azure.resourcemanager.oracledatabase.models.OracleSubscriptionUpdate;

/**
Expand Down Expand Up @@ -211,6 +212,54 @@ public interface OracleSubscriptionsClient {
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(Context context);

/**
* Add Azure Subscriptions.
*
* @param body The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginAddAzureSubscriptions(AzureSubscriptions body);

/**
* Add Azure Subscriptions.
*
* @param body The content of the action request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginAddAzureSubscriptions(AzureSubscriptions body, Context context);

/**
* Add Azure Subscriptions.
*
* @param body The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void addAzureSubscriptions(AzureSubscriptions body);

/**
* Add Azure Subscriptions.
*
* @param body The content of the action request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void addAzureSubscriptions(AzureSubscriptions body, Context context);

/**
* List Activation Links.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.

/**
* Package containing the inner data models for OracleDatabaseResourceManager.
* Package containing the inner data models for OracleDatabaseResourceManagerForTesting.
* null.
*/
package com.azure.resourcemanager.oracledatabase.fluent.models;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.

/**
* Package containing the service clients for OracleDatabaseResourceManager.
* Package containing the service clients for OracleDatabaseResourceManagerForTesting.
* null.
*/
package com.azure.resourcemanager.oracledatabase.fluent;
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,22 @@ public final class AutonomousDatabaseBackupsClientImpl implements AutonomousData
/**
* The service client containing this operation class.
*/
private final OracleDatabaseResourceManagerImpl client;
private final OracleDatabaseResourceManagerForTestingImpl client;

/**
* Initializes an instance of AutonomousDatabaseBackupsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
AutonomousDatabaseBackupsClientImpl(OracleDatabaseResourceManagerImpl client) {
AutonomousDatabaseBackupsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) {
this.service = RestProxy.create(AutonomousDatabaseBackupsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabaseBackups to be used by
* the proxy service to perform REST calls.
* The interface defining all the services for OracleDatabaseResourceManagerForTestingAutonomousDatabaseBackups to
* be used by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "OracleDatabaseResour")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,23 @@ public final class AutonomousDatabaseCharacterSetsClientImpl implements Autonomo
/**
* The service client containing this operation class.
*/
private final OracleDatabaseResourceManagerImpl client;
private final OracleDatabaseResourceManagerForTestingImpl client;

/**
* Initializes an instance of AutonomousDatabaseCharacterSetsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
AutonomousDatabaseCharacterSetsClientImpl(OracleDatabaseResourceManagerImpl client) {
AutonomousDatabaseCharacterSetsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) {
this.service = RestProxy.create(AutonomousDatabaseCharacterSetsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabaseCharacterSets to be
* used by the proxy service to perform REST calls.
* The interface defining all the services for
* OracleDatabaseResourceManagerForTestingAutonomousDatabaseCharacterSets to be used by the proxy service to perform
* REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "OracleDatabaseResour")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,23 @@ public final class AutonomousDatabaseNationalCharacterSetsClientImpl
/**
* The service client containing this operation class.
*/
private final OracleDatabaseResourceManagerImpl client;
private final OracleDatabaseResourceManagerForTestingImpl client;

/**
* Initializes an instance of AutonomousDatabaseNationalCharacterSetsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
AutonomousDatabaseNationalCharacterSetsClientImpl(OracleDatabaseResourceManagerImpl client) {
AutonomousDatabaseNationalCharacterSetsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) {
this.service = RestProxy.create(AutonomousDatabaseNationalCharacterSetsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabaseNationalCharacterSets
* to be used by the proxy service to perform REST calls.
* The interface defining all the services for
* OracleDatabaseResourceManagerForTestingAutonomousDatabaseNationalCharacterSets to be used by the proxy service to
* perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "OracleDatabaseResour")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ public final class AutonomousDatabaseVersionsClientImpl implements AutonomousDat
/**
* The service client containing this operation class.
*/
private final OracleDatabaseResourceManagerImpl client;
private final OracleDatabaseResourceManagerForTestingImpl client;

/**
* Initializes an instance of AutonomousDatabaseVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
AutonomousDatabaseVersionsClientImpl(OracleDatabaseResourceManagerImpl client) {
AutonomousDatabaseVersionsClientImpl(OracleDatabaseResourceManagerForTestingImpl client) {
this.service = RestProxy.create(AutonomousDatabaseVersionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabaseVersions to be used by
* the proxy service to perform REST calls.
* The interface defining all the services for OracleDatabaseResourceManagerForTestingAutonomousDatabaseVersions to
* be used by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "OracleDatabaseResour")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,22 @@ public final class AutonomousDatabasesClientImpl implements AutonomousDatabasesC
/**
* The service client containing this operation class.
*/
private final OracleDatabaseResourceManagerImpl client;
private final OracleDatabaseResourceManagerForTestingImpl client;

/**
* Initializes an instance of AutonomousDatabasesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
AutonomousDatabasesClientImpl(OracleDatabaseResourceManagerImpl client) {
AutonomousDatabasesClientImpl(OracleDatabaseResourceManagerForTestingImpl client) {
this.service = RestProxy.create(AutonomousDatabasesService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for OracleDatabaseResourceManagerAutonomousDatabases to be used by the
* proxy service to perform REST calls.
* The interface defining all the services for OracleDatabaseResourceManagerForTestingAutonomousDatabases to be used
* by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "OracleDatabaseResour")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@ public final class CloudExadataInfrastructuresClientImpl implements CloudExadata
/**
* The service client containing this operation class.
*/
private final OracleDatabaseResourceManagerImpl client;
private final OracleDatabaseResourceManagerForTestingImpl client;

/**
* Initializes an instance of CloudExadataInfrastructuresClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
CloudExadataInfrastructuresClientImpl(OracleDatabaseResourceManagerImpl client) {
CloudExadataInfrastructuresClientImpl(OracleDatabaseResourceManagerForTestingImpl client) {
this.service = RestProxy.create(CloudExadataInfrastructuresService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for OracleDatabaseResourceManagerCloudExadataInfrastructures to be used
* by the proxy service to perform REST calls.
* The interface defining all the services for OracleDatabaseResourceManagerForTestingCloudExadataInfrastructures to
* be used by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "OracleDatabaseResour")
Expand Down
Loading

0 comments on commit 35a2b39

Please sign in to comment.