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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1,440 changes: 1,152 additions & 288 deletions CHANGELOG.md

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ For basic set up, see [Getting Started](https://docs.oracle.com/iaas/Content/API
For details on compatibility, advanced configurations, and add-ons, see [Configuration](https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdkconfig.htm).

- *Circuit Breaker*: By default, circuit breaker feature is enabled, if it is not expected, please explicitly set the environment variable:
```
export OCI_SDK_DEFAULT_CIRCUITBREAKER_ENABLED=FALSE
```
```
export OCI_SDK_DEFAULT_CIRCUITBREAKER_ENABLED=FALSE
```
- *Token Refresh Retries*: By default, the token refresh retires are enabled for 401s and processing exceptions. You have the flexibility to disable these retries if needed. This can be achieved by setting the system property
```
System.setProperty("oci.javasdk.token.refresh.enabled", "false");
```

## 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.82.0</version>
<version>2.91.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.82.0</version>
<version>2.91.0</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp;

import com.oracle.bmc.accessgovernancecp.internal.http.*;
import com.oracle.bmc.accessgovernancecp.requests.*;
import com.oracle.bmc.accessgovernancecp.responses.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
* Async client implementation for AccessGovernanceCP service. <br/>
Expand All @@ -28,7 +30,7 @@ public class AccessGovernanceCPAsyncClient implements AccessGovernanceCPAsync {
*/
public static final com.oracle.bmc.Service SERVICE =
com.oracle.bmc.Services.serviceBuilder()
.serviceName("ACCESSGOVERNANCECP")
.serviceName(AccessGovernanceCPClient.class.getName())
.serviceEndpointPrefix("")
.serviceEndpointTemplate(
"https://cp-prod.access-governance.{region}.oci.{secondLevelDomain}")
Expand All @@ -52,6 +54,10 @@ public class AccessGovernanceCPAsyncClient implements AccessGovernanceCPAsync {
private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse;
private String regionId;

// This pattern matches substrings that are enclosed within curly braces {}
private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES =
Pattern.compile("\\{([^}]+)\\}");

/**
* Used to synchronize any updates on the `this.client` object.
*/
Expand Down Expand Up @@ -262,6 +268,11 @@ public AccessGovernanceCPAsyncClient(
java.util.List<com.oracle.bmc.http.ClientConfigurator> allConfigurators =
new java.util.ArrayList<>(additionalClientConfigurators);
allConfigurators.addAll(authenticationDetailsConfigurators);
java.util.List<com.oracle.bmc.internal.SpiClientConfigurator>
additionalSpiClientConfigurators =
com.oracle.bmc.util.internal.SpiClientConfiguratorUtils
.getEnabledSpiClientConfigurators();
allConfigurators.addAll(additionalSpiClientConfigurators);
this.restClientFactory =
restClientFactoryBuilder
.clientConfigurator(clientConfigurator)
Expand Down Expand Up @@ -402,12 +413,21 @@ public void setEndpoint(String endpoint) {

@Override
public String getEndpoint() {
String endpoint = null;
java.net.URI uri = client.getBaseTarget().getUri();
if (uri != null) {
endpoint = uri.toString();
String value = client.getEndpoint();
if (value.contains("{")) {
Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value);
java.lang.StringBuilder params = new java.lang.StringBuilder();
while (matcher.find()) {
if (params.length() > 0) {
params.append(", ");
}
params.append("{").append(matcher.group(1)).append("}");
}
LOG.warn(
"Parameters like {} get replaced with appropriate values at request time.",
params.toString());
}
return endpoint;
return client.getEndpoint();
}

@Override
Expand Down Expand Up @@ -437,15 +457,7 @@ 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
*/
@Override
public synchronized void useRealmSpecificEndpointTemplate(
boolean useOfRealmSpecificEndpointTemplateEnabled) {
setEndpoint(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp;

import com.oracle.bmc.accessgovernancecp.internal.http.*;
import com.oracle.bmc.accessgovernancecp.requests.*;
import com.oracle.bmc.accessgovernancecp.responses.*;
import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration;
import com.oracle.bmc.util.CircuitBreakerUtils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220518")
public class AccessGovernanceCPClient implements AccessGovernanceCP {
Expand All @@ -17,7 +18,7 @@ public class AccessGovernanceCPClient implements AccessGovernanceCP {
*/
public static final com.oracle.bmc.Service SERVICE =
com.oracle.bmc.Services.serviceBuilder()
.serviceName("ACCESSGOVERNANCECP")
.serviceName(AccessGovernanceCPClient.class.getName())
.serviceEndpointPrefix("")
.serviceEndpointTemplate(
"https://cp-prod.access-governance.{region}.oci.{secondLevelDomain}")
Expand Down Expand Up @@ -52,6 +53,10 @@ com.oracle.bmc.http.internal.RestClient getClient() {
circuitBreakerConfiguration;
private String regionId;

// This pattern matches substrings that are enclosed within curly braces {}
private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES =
Pattern.compile("\\{([^}]+)\\}");

/**
* Used to synchronize any updates on the `this.client` object.
*/
Expand Down Expand Up @@ -304,6 +309,11 @@ protected AccessGovernanceCPClient(
java.util.List<com.oracle.bmc.http.ClientConfigurator> allConfigurators =
new java.util.ArrayList<>(additionalClientConfigurators);
allConfigurators.addAll(authenticationDetailsConfigurators);
java.util.List<com.oracle.bmc.internal.SpiClientConfigurator>
additionalSpiClientConfigurators =
com.oracle.bmc.util.internal.SpiClientConfiguratorUtils
.getEnabledSpiClientConfigurators();
allConfigurators.addAll(additionalSpiClientConfigurators);
this.restClientFactory =
restClientFactoryBuilder
.clientConfigurator(clientConfigurator)
Expand Down Expand Up @@ -491,12 +501,21 @@ public void setEndpoint(String endpoint) {

@Override
public String getEndpoint() {
String endpoint = null;
java.net.URI uri = client.getBaseTarget().getUri();
if (uri != null) {
endpoint = uri.toString();
String value = client.getEndpoint();
if (value.contains("{")) {
Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value);
java.lang.StringBuilder params = new java.lang.StringBuilder();
while (matcher.find()) {
if (params.length() > 0) {
params.append(", ");
}
params.append("{").append(matcher.group(1)).append("}");
}
LOG.warn(
"Parameters like {} get replaced with appropriate values at request time.",
params.toString());
}
return endpoint;
return client.getEndpoint();
}

@Override
Expand Down Expand Up @@ -526,15 +545,7 @@ 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
*/
@Override
public synchronized void useRealmSpecificEndpointTemplate(
boolean useOfRealmSpecificEndpointTemplateEnabled) {
setEndpoint(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.internal.http;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.internal.http;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.internal.http;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.internal.http;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.internal.http;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.internal.http;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.internal.http;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.internal.http;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.accessgovernancecp.model;
Expand Down
Loading