Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
182 changes: 182 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ For details on compatibility, advanced configurations, and add-ons, see [Configu
-Doci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsClient=false -Doci.javasdk.ConnectionPoolingApacheConfigurator.enabled.com.oracle.bmc.vault.VaultsAsyncClient=false
```
- The global property applies to all supported clients. The per-class property applies only to the named client class. Both properties default to `"true"`, and the configurator is used only when both the global property and that client class property are enabled.
- If TLS initialization fails, Apache connector configuration now throws `SSLInitializationException`; it no longer maps `https` routes to plaintext. Applications that intentionally require plaintext transport can provide an explicit connection manager or perform the former fallback themselves, as shown in [PlainConnectionSocketFactoryExample.java](/bmc-examples/src/main/java/PlainConnectionSocketFactoryExample.java).

## Examples

Expand Down
4 changes: 2 additions & 2 deletions bmc-accessgovernancecp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>oci-java-sdk-accessgovernancecp</artifactId>
Expand All @@ -16,7 +16,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
</dependency>
</dependencies>
</project>
4 changes: 2 additions & 2 deletions bmc-addons/bmc-apache-connector-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-addons</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -18,7 +18,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
</dependency>
</dependencies>
</project>
10 changes: 5 additions & 5 deletions bmc-addons/bmc-graalvm-addon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>oci-java-sdk-addons</artifactId>
<groupId>com.oracle.oci.sdk</groupId>
<version>2.93.0</version>
<version>2.95.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>oci-java-sdk-addons-graalvm</artifactId>
Expand Down Expand Up @@ -127,24 +127,24 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-objectstorage-extensions</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-identity</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-core</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"com.oracle.bmc.databasetools.SdkClientsMetadata",
"com.oracle.bmc.databasetoolsruntime.SdkClientsMetadata",
"com.oracle.bmc.datacatalog.SdkClientsMetadata",
"com.oracle.bmc.datacc.SdkClientsMetadata",
"com.oracle.bmc.dataflow.SdkClientsMetadata",
"com.oracle.bmc.dataintegration.SdkClientsMetadata",
"com.oracle.bmc.datalabelingservice.SdkClientsMetadata",
Expand Down
4 changes: 2 additions & 2 deletions bmc-addons/bmc-oke-workload-identity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>oci-java-sdk-addons</artifactId>
<groupId>com.oracle.oci.sdk</groupId>
<version>2.93.0</version>
<version>2.95.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
4 changes: 2 additions & 2 deletions bmc-addons/bmc-resteasy-client-configurator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-addons</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
</dependency>
</dependencies>
</project>
4 changes: 2 additions & 2 deletions bmc-addons/bmc-sasl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>oci-java-sdk-addons</artifactId>
<groupId>com.oracle.oci.sdk</groupId>
<version>2.93.0</version>
<version>2.95.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -62,7 +62,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion bmc-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions bmc-adm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>oci-java-sdk-adm</artifactId>
Expand All @@ -16,7 +16,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
</dependency>
</dependencies>
</project>
4 changes: 2 additions & 2 deletions bmc-aidataplatform/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>oci-java-sdk-aidataplatform</artifactId>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.93.0</version>
<version>2.95.0</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,19 @@ ChangeAiDataPlatformCompartmentResponse changeAiDataPlatformCompartment(
*/
DeleteAiDataPlatformResponse deleteAiDataPlatform(DeleteAiDataPlatformRequest request);

/**
* The AiDataPlatform will be enabled with AI features
*
* @param request The request object containing the details to send
* @return A response object containing details about the completed operation
* @throws BmcException when an error occurs.
* This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided.
* The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
*
* <b>Example: </b>Click <a href="https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/aidataplatform/EnableAiFeatureExample.java.html" target="_blank" rel="noopener noreferrer" >here</a> to see how to use EnableAiFeature API.
*/
EnableAiFeatureResponse enableAiFeature(EnableAiFeatureRequest request);

/**
* Gets information about a AiDataPlatform.
* @param request The request object containing the details to send
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,22 @@ java.util.concurrent.Future<DeleteAiDataPlatformResponse> deleteAiDataPlatform(
DeleteAiDataPlatformRequest, DeleteAiDataPlatformResponse>
handler);

/**
* The AiDataPlatform will be enabled with AI features
*
*
* @param request The request object containing the details to send
* @param handler The request handler to invoke upon completion, may be null.
* @return A Future that can be used to get the response if no AsyncHandler was
* provided. Note, if you provide an AsyncHandler and use the Future, some
* types of responses (like java.io.InputStream) may not be able to be read in
* both places as the underlying stream may only be consumed once.
*/
java.util.concurrent.Future<EnableAiFeatureResponse> enableAiFeature(
EnableAiFeatureRequest request,
com.oracle.bmc.responses.AsyncHandler<EnableAiFeatureRequest, EnableAiFeatureResponse>
handler);

/**
* Gets information about a AiDataPlatform.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,58 @@ protected void beforeRetryAction() {}
}
}

@Override
public java.util.concurrent.Future<EnableAiFeatureResponse> enableAiFeature(
EnableAiFeatureRequest request,
final com.oracle.bmc.responses.AsyncHandler<
EnableAiFeatureRequest, EnableAiFeatureResponse>
handler) {
LOG.trace("Called async enableAiFeature");
final EnableAiFeatureRequest interceptedRequest =
EnableAiFeatureConverter.interceptRequest(request);
final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
EnableAiFeatureConverter.fromRequest(client, interceptedRequest);
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.ServiceDetails serviceDetails =
new com.oracle.bmc.ServiceDetails(
"AiDataPlatform",
"EnableAiFeature",
ib.getRequestUri().toString(),
"https://docs.oracle.com/iaas/api/#/en/ai-data-platform/20240831/AiDataPlatform/EnableAiFeature");
final java.util.function.Function<javax.ws.rs.core.Response, EnableAiFeatureResponse>
transformer =
EnableAiFeatureConverter.fromResponse(
java.util.Optional.of(serviceDetails));
com.oracle.bmc.responses.AsyncHandler<EnableAiFeatureRequest, EnableAiFeatureResponse>
handlerToUse = handler;

java.util.function.Function<
com.oracle.bmc.responses.AsyncHandler<
EnableAiFeatureRequest, EnableAiFeatureResponse>,
java.util.concurrent.Future<EnableAiFeatureResponse>>
futureSupplier =
client.postFutureSupplier(
interceptedRequest,
interceptedRequest.getEnableAiFeatureDetails(),
ib,
transformer);

if (this.authenticationDetailsProvider
instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) {
return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper<
EnableAiFeatureRequest, EnableAiFeatureResponse>(
(com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider)
this.authenticationDetailsProvider,
handlerToUse,
futureSupplier) {
@Override
protected void beforeRetryAction() {}
};
} else {
return futureSupplier.apply(handlerToUse);
}
}

@Override
public java.util.concurrent.Future<GetAiDataPlatformResponse> getAiDataPlatform(
GetAiDataPlatformRequest request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,48 @@ public DeleteAiDataPlatformResponse deleteAiDataPlatform(DeleteAiDataPlatformReq
});
}

@Override
public EnableAiFeatureResponse enableAiFeature(EnableAiFeatureRequest request) {
LOG.trace("Called enableAiFeature");
final EnableAiFeatureRequest interceptedRequest =
EnableAiFeatureConverter.interceptRequest(request);
com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
EnableAiFeatureConverter.fromRequest(client, interceptedRequest);

final com.oracle.bmc.retrier.BmcGenericRetrier retrier =
com.oracle.bmc.retrier.Retriers.createPreferredRetrier(
interceptedRequest.getRetryConfiguration(), retryConfiguration, true);
com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib);
com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier);
com.oracle.bmc.ServiceDetails serviceDetails =
new com.oracle.bmc.ServiceDetails(
"AiDataPlatform",
"EnableAiFeature",
ib.getRequestUri().toString(),
"https://docs.oracle.com/iaas/api/#/en/ai-data-platform/20240831/AiDataPlatform/EnableAiFeature");
java.util.function.Function<javax.ws.rs.core.Response, EnableAiFeatureResponse>
transformer =
EnableAiFeatureConverter.fromResponse(
java.util.Optional.of(serviceDetails));
return retrier.execute(
interceptedRequest,
retryRequest -> {
final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier =
new com.oracle.bmc.retrier.TokenRefreshRetrier(
authenticationDetailsProvider);
return tokenRefreshRetrier.execute(
retryRequest,
retriedRequest -> {
javax.ws.rs.core.Response response =
client.post(
ib,
retriedRequest.getEnableAiFeatureDetails(),
retriedRequest);
return transformer.apply(response);
});
});
}

@Override
public GetAiDataPlatformResponse getAiDataPlatform(GetAiDataPlatformRequest request) {
LOG.trace("Called getAiDataPlatform");
Expand Down
Loading