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
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/).

## 2.60.1 - 2023-04-25
### Added
- Support for enabling mTLS authentication with Listener and for providing custom value for TLS port and Non-TLS Port during AVM Cluster Creation in Database service
- Support for usedDataStorageSizeInGbs property for autonomous database in the Database service
- Support for csiNumber organization in Tenant Manager Control Plane service
- Support for creating and updating an infrastructure with LACP support in Database service
- Support for changePrivateEndpointOutboundConnection operation in Integration Cloud service
- Support for Enable Process in Integration Cloud service
- Support for Disaster Recovery, DR enablement, switchover, and failover feature in Fusion Apps service
- Support for discovery and monitoring of External Exadata infrastructure in Database Management Service

## 2.60.0 - 2023-04-18
### Added
- Support for private endpoints in the Digital Assistant service
Expand Down
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.60.0</version>
<version>2.60.1</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.60.0</version>
<version>2.60.1</version>
</dependency>
</dependencies>
</project>
12 changes: 6 additions & 6 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.60.0</version>
<version>2.60.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>oci-java-sdk-addons-graalvm</artifactId>
Expand Down Expand Up @@ -132,30 +132,30 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-objectstorage-extensions</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-identity</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-objectstorage-extensions</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-core</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
10 changes: 5 additions & 5 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.60.0</version>
<version>2.60.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -38,24 +38,24 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-core</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-identity</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-keymanagement</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.nio.file.Paths;
import java.security.KeyPair;
import java.security.interfaces.RSAPublicKey;
import java.time.Duration;

import static com.oracle.bmc.http.internal.RestClient.generateRequestId;

Expand Down Expand Up @@ -88,12 +89,13 @@ public OkeWorkloadIdentityResourcePrincipalsFederationClient(
@Override
public String getSecurityToken() {
try {
String token =
refreshAndGetSecurityTokenIfExpiringWithin(
getSecurityTokenAdapter().getTokenValidDuration().dividedBy(2));
return token;
Duration time = Duration.ZERO;
if (getSecurityTokenAdapter().isValid()) {
time = getSecurityTokenAdapter().getTokenValidDuration().dividedBy(2);
}
return refreshAndGetSecurityTokenIfExpiringWithin(time);
} catch (Exception e) {
LOG.info("Refresh RPST token failed, use cached RPST token.");
LOG.info("Refresh RPST token failed, use cached RPST token.", e);
return getSecurityTokenAdapter().getSecurityToken();
}
}
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.60.0</version>
<version>2.60.1</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.60.0</version>
<version>2.60.1</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.60.0</version>
<version>2.60.1</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.60.0</version>
<version>2.60.1</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.60.0</version>
<version>2.60.1</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.60.0</version>
<version>2.60.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>oci-java-sdk-adm</artifactId>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ public interface ApplicationDependencyManagement extends AutoCloseable {
*/
void setRegion(String regionId);

/**
* Determines whether realm specific endpoint should be used or not.
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
*/
void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled);

/**
* Cancel work request with the given ID.
* @param request The request object containing the details to send
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ public interface ApplicationDependencyManagementAsync extends AutoCloseable {
*/
void setRegion(String regionId);

/**
* Determines whether realm specific endpoint should be used or not.
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
*/
void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled);

/**
* Cancel work request with the given ID.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class ApplicationDependencyManagementAsyncClient
signingStrategyRequestSignerFactories;
private final boolean isNonBufferingApacheClient;
private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse;
private String regionId;

/**
* Used to synchronize any updates on the `this.client` object.
Expand Down Expand Up @@ -283,6 +284,7 @@ public ApplicationDependencyManagementAsyncClient(
(com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider;

if (provider.getRegion() != null) {
this.regionId = provider.getRegion().getRegionId();
this.setRegion(provider.getRegion());
if (endpoint != null) {
LOG.info(
Expand Down Expand Up @@ -410,6 +412,7 @@ public String getEndpoint() {

@Override
public void setRegion(com.oracle.bmc.Region region) {
this.regionId = region.getRegionId();
java.util.Optional<String> endpoint =
com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE));
if (endpoint.isPresent()) {
Expand All @@ -423,6 +426,7 @@ public void setRegion(com.oracle.bmc.Region region) {
@Override
public void setRegion(String regionId) {
regionId = regionId.toLowerCase(java.util.Locale.ENGLISH);
this.regionId = regionId;
try {
com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId);
setRegion(region);
Expand All @@ -433,6 +437,23 @@ public void setRegion(String regionId) {
}
}

/**
* This method should be used to enable or disable the use of realm-specific endpoint template.
* The default value is null. To enable the use of endpoint template defined for the realm in
* use, set the flag to true To disable the use of endpoint template defined for the realm in
* use, set the flag to false
*
* @param useOfRealmSpecificEndpointTemplateEnabled This flag can be set to true or false to
* enable or disable the use of realm-specific endpoint template respectively
*/
public synchronized void useRealmSpecificEndpointTemplate(
boolean useOfRealmSpecificEndpointTemplateEnabled) {
setEndpoint(
com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils
.getRealmSpecificEndpointTemplate(
useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE));
}

@Override
public void close() {
client.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ com.oracle.bmc.http.internal.RestClient getClient() {
private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse;
private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration
circuitBreakerConfiguration;
private String regionId;

/**
* Used to synchronize any updates on the `this.client` object.
Expand Down Expand Up @@ -360,6 +361,7 @@ protected ApplicationDependencyManagementClient(
(com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider;

if (provider.getRegion() != null) {
this.regionId = provider.getRegion().getRegionId();
this.setRegion(provider.getRegion());
if (endpoint != null) {
LOG.info(
Expand Down Expand Up @@ -498,6 +500,7 @@ public String getEndpoint() {

@Override
public void setRegion(com.oracle.bmc.Region region) {
this.regionId = region.getRegionId();
java.util.Optional<String> endpoint =
com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE));
if (endpoint.isPresent()) {
Expand All @@ -511,6 +514,7 @@ public void setRegion(com.oracle.bmc.Region region) {
@Override
public void setRegion(String regionId) {
regionId = regionId.toLowerCase(java.util.Locale.ENGLISH);
this.regionId = regionId;
try {
com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId);
setRegion(region);
Expand All @@ -521,6 +525,23 @@ public void setRegion(String regionId) {
}
}

/**
* This method should be used to enable or disable the use of realm-specific endpoint template.
* The default value is null. To enable the use of endpoint template defined for the realm in
* use, set the flag to true To disable the use of endpoint template defined for the realm in
* use, set the flag to false
*
* @param useOfRealmSpecificEndpointTemplateEnabled This flag can be set to true or false to
* enable or disable the use of realm-specific endpoint template respectively
*/
public synchronized void useRealmSpecificEndpointTemplate(
boolean useOfRealmSpecificEndpointTemplateEnabled) {
setEndpoint(
com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils
.getRealmSpecificEndpointTemplate(
useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE));
}

@Override
public void close() {
client.close();
Expand Down
4 changes: 2 additions & 2 deletions bmc-aianomalydetection/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.60.0</version>
<version>2.60.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>oci-java-sdk-aianomalydetection</artifactId>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>2.60.0</version>
<version>2.60.1</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ public interface AnomalyDetection extends AutoCloseable {
*/
void setRegion(String regionId);

/**
* Determines whether realm specific endpoint should be used or not.
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
*/
void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled);

/**
* Cancel work request with the given ID.
* @param request The request object containing the details to send
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ public interface AnomalyDetectionAsync extends AutoCloseable {
*/
void setRegion(String regionId);

/**
* Determines whether realm specific endpoint should be used or not.
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
*/
void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled);

/**
* Cancel work request with the given ID.
*
Expand Down
Loading