Skip to content

Commit 351689c

Browse files
Releasing version 3.44.2
Releasing version 3.44.2
2 parents c031452 + 87d8e94 commit 351689c

File tree

332 files changed

+1826
-848
lines changed

Some content is hidden

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

332 files changed

+1826
-848
lines changed

bmc-accessgovernancecp/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk</artifactId>
7-
<version>3.44.1</version>
7+
<version>3.44.2</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>oci-java-sdk-accessgovernancecp</artifactId>
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>com.oracle.oci.sdk</groupId>
1717
<artifactId>oci-java-sdk-common</artifactId>
18-
<version>3.44.1</version>
18+
<version>3.44.2</version>
1919
</dependency>
2020
</dependencies>
2121
</project>

bmc-accessgovernancecp/src/main/resources/com/oracle/bmc/accessgovernancecp/client.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# 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.
44
#
55

6-
java.client.codegen.version = 2.78
7-
java.minimum.client.codegen.version.from.client = 2.26
6+
java.client.codegen.version = 2.100
7+
java.minimum.client.codegen.version.from.client = 2.100
88

99
# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220518")

bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk-addons</artifactId>
7-
<version>3.44.1</version>
7+
<version>3.44.2</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

@@ -17,14 +17,14 @@
1717
<dependency>
1818
<groupId>com.oracle.oci.sdk</groupId>
1919
<artifactId>oci-java-sdk-bom</artifactId>
20-
<version>3.44.1</version>
20+
<version>3.44.2</version>
2121
<type>pom</type>
2222
<scope>import</scope>
2323
</dependency>
2424
<dependency>
2525
<groupId>com.oracle.oci.sdk</groupId>
2626
<artifactId>oci-java-sdk-common-httpclient-jersey</artifactId>
27-
<version>3.44.1</version>
27+
<version>3.44.2</version>
2828
<type>pom</type>
2929
<scope>import</scope>
3030
</dependency>

bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk-addons</artifactId>
7-
<version>3.44.1</version>
7+
<version>3.44.2</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

@@ -17,14 +17,14 @@
1717
<dependency>
1818
<groupId>com.oracle.oci.sdk</groupId>
1919
<artifactId>oci-java-sdk-bom</artifactId>
20-
<version>3.44.1</version>
20+
<version>3.44.2</version>
2121
<type>pom</type>
2222
<scope>import</scope>
2323
</dependency>
2424
<dependency>
2525
<groupId>com.oracle.oci.sdk</groupId>
2626
<artifactId>oci-java-sdk-common-httpclient-jersey3</artifactId>
27-
<version>3.44.1</version>
27+
<version>3.44.2</version>
2828
<type>pom</type>
2929
<scope>import</scope>
3030
</dependency>

bmc-addons/bmc-apache-connector-provider/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.oci.sdk</groupId>
77
<artifactId>oci-java-sdk-addons</artifactId>
8-
<version>3.44.1</version>
8+
<version>3.44.2</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>com.oracle.oci.sdk</groupId>
2020
<artifactId>oci-java-sdk-common</artifactId>
21-
<version>3.44.1</version>
21+
<version>3.44.2</version>
2222
</dependency>
2323
</dependencies>
2424
</project>

bmc-addons/bmc-oke-workload-identity/pom.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>oci-java-sdk-addons</artifactId>
66
<groupId>com.oracle.oci.sdk</groupId>
7-
<version>3.44.1</version>
7+
<version>3.44.2</version>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
1010

@@ -38,25 +38,25 @@
3838
<dependency>
3939
<groupId>com.oracle.oci.sdk</groupId>
4040
<artifactId>oci-java-sdk-common</artifactId>
41-
<version>3.44.1</version>
41+
<version>3.44.2</version>
4242
<scope>compile</scope>
4343
</dependency>
4444
<dependency>
4545
<groupId>com.oracle.oci.sdk</groupId>
4646
<artifactId>oci-java-sdk-core</artifactId>
47-
<version>3.44.1</version>
47+
<version>3.44.2</version>
4848
<scope>test</scope>
4949
</dependency>
5050
<dependency>
5151
<groupId>com.oracle.oci.sdk</groupId>
5252
<artifactId>oci-java-sdk-identity</artifactId>
53-
<version>3.44.1</version>
53+
<version>3.44.2</version>
5454
<scope>test</scope>
5555
</dependency>
5656
<dependency>
5757
<groupId>com.oracle.oci.sdk</groupId>
5858
<artifactId>oci-java-sdk-keymanagement</artifactId>
59-
<version>3.44.1</version>
59+
<version>3.44.2</version>
6060
<scope>test</scope>
6161
</dependency>
6262
<dependency>

bmc-addons/bmc-resteasy-client-configurator/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk-addons</artifactId>
7-
<version>3.44.1</version>
7+
<version>3.44.2</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

@@ -23,7 +23,7 @@
2323
<dependency>
2424
<groupId>com.oracle.oci.sdk</groupId>
2525
<artifactId>oci-java-sdk-common</artifactId>
26-
<version>3.44.1</version>
26+
<version>3.44.2</version>
2727
</dependency>
2828
</dependencies>
2929
</project>

bmc-addons/bmc-sasl-oke-workload-identity/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>oci-java-sdk-addons</artifactId>
66
<groupId>com.oracle.oci.sdk</groupId>
7-
<version>3.44.1</version>
7+
<version>3.44.2</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
@@ -39,13 +39,13 @@
3939
<dependency>
4040
<groupId>com.oracle.oci.sdk</groupId>
4141
<artifactId>oci-java-sdk-addons-sasl</artifactId>
42-
<version>3.44.1</version>
42+
<version>3.44.2</version>
4343
<scope>compile</scope>
4444
</dependency>
4545
<dependency>
4646
<groupId>com.oracle.oci.sdk</groupId>
4747
<artifactId>oci-java-sdk-addons-oke-workload-identity</artifactId>
48-
<version>3.44.1</version>
48+
<version>3.44.2</version>
4949
<scope>compile</scope>
5050
</dependency>
5151
</dependencies>

bmc-addons/bmc-sasl/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.oci.sdk</groupId>
77
<artifactId>oci-java-sdk-addons</artifactId>
8-
<version>3.44.1</version>
8+
<version>3.44.2</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -60,7 +60,7 @@
6060
<dependency>
6161
<groupId>com.oracle.oci.sdk</groupId>
6262
<artifactId>oci-java-sdk-common</artifactId>
63-
<version>3.44.1</version>
63+
<version>3.44.2</version>
6464
</dependency>
6565
</dependencies>
6666

bmc-addons/bmc-sse-support-jersey3/pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>oci-java-sdk-addons</artifactId>
77
<groupId>com.oracle.oci.sdk</groupId>
8-
<version>3.44.1</version>
8+
<version>3.44.2</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>
@@ -150,12 +150,12 @@
150150
<dependency>
151151
<groupId>com.oracle.oci.sdk</groupId>
152152
<artifactId>oci-java-sdk-common</artifactId>
153-
<version>3.44.1</version>
153+
<version>3.44.2</version>
154154
</dependency>
155155
<dependency>
156156
<groupId>com.oracle.oci.sdk</groupId>
157157
<artifactId>oci-java-sdk-generativeaiinference</artifactId>
158-
<version>3.44.1</version>
158+
<version>3.44.2</version>
159159
<scope>test</scope>
160160
</dependency>
161161
<dependency>
@@ -164,7 +164,7 @@
164164
but the code in it needs it. -->
165165
<groupId>com.oracle.oci.sdk</groupId>
166166
<artifactId>oci-java-sdk-common-httpclient-jersey3</artifactId>
167-
<version>3.44.1</version>
167+
<version>3.44.2</version>
168168
</dependency>
169169
</dependencies>
170170

bmc-addons/bmc-sse-support-jersey3/src/test/java/com/oracle/bmc/http/client/jersey3/sse/GenerateTextExample.java

+25-13
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
import com.oracle.bmc.Region;
1515
import com.oracle.bmc.auth.SessionTokenAuthenticationDetailsProvider;
1616
import com.oracle.bmc.generativeaiinference.GenerativeAiInferenceClient;
17-
import com.oracle.bmc.generativeaiinference.GenerativeAiInferenceSseHelper;
1817
import com.oracle.bmc.generativeaiinference.model.*;
1918
import com.oracle.bmc.generativeaiinference.requests.GenerateTextRequest;
2019
import com.oracle.bmc.generativeaiinference.responses.GenerateTextResponse;
21-
import com.oracle.bmc.http.ClientConfigurator;
2220
import com.oracle.bmc.retrier.RetryConfiguration;
2321

22+
import java.io.BufferedReader;
23+
import java.io.InputStream;
24+
import java.io.InputStreamReader;
25+
2426
/**
2527
* This class provides an example of how to use OCI Generative AI Service to generate text.
2628
*
@@ -40,7 +42,7 @@ public class GenerateTextExample {
4042
// TODO: Please update config profile name and use the compartmentId that has policies grant
4143
// permissions for using Generative AI Service
4244
private static final String CONFIG_PROFILE = "DEFAULT";
43-
private static final String COMPARTMENT_ID = "compartment_id";
45+
private static final String COMPARTMENT_ID = "<compartment_id>";
4446

4547
/**
4648
* The entry point for the example.
@@ -69,13 +71,9 @@ public static void main(String[] args) throws Exception {
6971
.build();
7072
// Create and add new additional client configurator for sse support by using appropriate
7173
// reader function
72-
SseSupport sseSupport =
73-
new SseSupport(GenerativeAiInferenceSseHelper.generateTextResultReader);
74-
ClientConfigurator clientConfigurator = sseSupport.getClientConfigurator();
7574
final GenerativeAiInferenceClient generativeAiInferenceClient =
7675
GenerativeAiInferenceClient.builder()
7776
.configuration(clientConfiguration)
78-
.additionalClientConfigurator(clientConfigurator)
7977
.build(provider);
8078
generativeAiInferenceClient.setEndpoint(ENDPOINT);
8179
generativeAiInferenceClient.setRegion(REGION);
@@ -110,13 +108,27 @@ public static void main(String[] args) throws Exception {
110108

111109
GenerateTextResponse generateTextResponse =
112110
generativeAiInferenceClient.generateText(generateTextRequest);
113-
CohereLlmInferenceResponse res =
114-
(CohereLlmInferenceResponse)
115-
generateTextResponse.getGenerateTextResult().getInferenceResponse();
116-
for (GeneratedText genText : res.getGeneratedTexts()) {
117-
System.out.print(genText.getText());
111+
InputStream is = generateTextResponse.getEventStream();
112+
// NOTE : Use try-with-resources or explicitly call is.close() to close the stream. This is
113+
// important to avoid the issue mentioned in the link below
114+
// https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdktroubleshooting.htm#javasdktroubleshooting_topic_program_hangs_for_an_indefinite_time
115+
if (is != null) {
116+
try (BufferedReader reader = new BufferedReader(new InputStreamReader(is))) {
117+
String line;
118+
StringBuilder sb = new StringBuilder();
119+
while ((line = reader.readLine()) != null) {
120+
sb.append(line);
121+
System.out.println(line);
122+
}
123+
}
124+
} else {
125+
CohereLlmInferenceResponse res =
126+
(CohereLlmInferenceResponse)
127+
generateTextResponse.getGenerateTextResult().getInferenceResponse();
128+
for (GeneratedText genText : res.getGeneratedTexts()) {
129+
System.out.print(genText.getText());
130+
}
118131
}
119-
120132
generativeAiInferenceClient.close();
121133
}
122134
}

bmc-addons/bmc-sse-support/pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>oci-java-sdk-addons</artifactId>
77
<groupId>com.oracle.oci.sdk</groupId>
8-
<version>3.44.1</version>
8+
<version>3.44.2</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>
@@ -150,12 +150,12 @@
150150
<dependency>
151151
<groupId>com.oracle.oci.sdk</groupId>
152152
<artifactId>oci-java-sdk-common</artifactId>
153-
<version>3.44.1</version>
153+
<version>3.44.2</version>
154154
</dependency>
155155
<dependency>
156156
<groupId>com.oracle.oci.sdk</groupId>
157157
<artifactId>oci-java-sdk-generativeaiinference</artifactId>
158-
<version>3.44.1</version>
158+
<version>3.44.2</version>
159159
<scope>test</scope>
160160
</dependency>
161161
<dependency>
@@ -164,7 +164,7 @@
164164
but the code in it needs it. -->
165165
<groupId>com.oracle.oci.sdk</groupId>
166166
<artifactId>oci-java-sdk-common-httpclient-jersey</artifactId>
167-
<version>3.44.1</version>
167+
<version>3.44.2</version>
168168
</dependency>
169169
</dependencies>
170170

0 commit comments

Comments
 (0)