Skip to content

Commit 982d13f

Browse files
Releasing version 2.86.0
Releasing version 2.86.0
2 parents 1edc1ad + 4e94614 commit 982d13f

File tree

793 files changed

+8650
-1982
lines changed

Some content is hidden

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

793 files changed

+8650
-1982
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/).
6+
## 2.86.0 - 2024-04-30
7+
### Added
8+
- Support for enabling unified auditing for DBHome in the Database service
9+
- Support for listing minor Grid Infrastructure (GI) versions available for custom GI software image creation in the Database service
10+
- Support for network security groups in the Recovery Cloud service
11+
- Support for lineage metadata import in the Data Catalog service
12+
- Support for workspace properties in workspace create and update operations in the Data Integration service
13+
- Support for monitoring ExaCC databases in the Database Management service
14+
- Support for validations on target and policy before the masking process in the Data Safe service
15+
16+
### Breaking Changes
17+
- The type of property `allSqlStatementsFetched` was changed from string to `SqlTuningSet.AllSqlStatementsFetched` in the model `SqlTuningSet` in the Database Management service
18+
- The type of property `accepted` was changed from string to `SqlTuningSet.AllSqlStatementsFetched` in the models `SqlPlanBaseline` and `SqlPlanBaselineSummary` in the Database Management service
19+
- The type of property `fixed` was changed from string to `SqlTuningSet.Fixed` in the models `SqlPlanBaseline` and `SqlPlanBaselineSummary` in the Database Management service in the .NET SDK
20+
- The type of property `reproduced` was changed from string to `SqlTuningSet.Reproduced` in the models `SqlPlanBaseline` and `SqlPlanBaselineSummary` in the Database Management service
21+
- The type of property `autoPurge` was changed from string to `SqlTuningSet.AutoPurge` in the models `SqlPlanBaseline` and `SqlPlanBaselineSummary` in the Database Management service
22+
- The type of property `adaptive` was changed from string to `SqlTuningSet.Adaptive` in the models `SqlPlanBaseline` and `SqlPlanBaselineSummary` in the Database Management service
23+
24+
625
## 2.85.0 - 2024-04-23
726
### Added
827
- Support for the Cluster Placement Groups service

examples/typescript/generate-text.ts

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
import * as genai from "oci-generativeaiinference";
1212
import common = require("oci-common");
13+
import { Readable } from "stream";
14+
import * as readline from "readline";
1315

1416
(async () => {
1517
const region = "us-chicago-1";
@@ -61,27 +63,50 @@ import common = require("oci-common");
6163
.inferenceResponse as genai.models.CohereLlmInferenceResponse).generatedTexts[0].text
6264
);
6365

64-
// Attempt to generate text as SSE stream (throws error)
66+
// Generate text as stream response
6567
try {
6668
inference_request.isStream = true;
67-
const responseStream = await client.generateText(req_body);
68-
69+
const [major, minor, patch] = process.versions.node.split(".").map(Number);
70+
console.log("Version: " + major);
6971
let streamData = "";
70-
const lines = String(responseStream).split("\n");
7172

72-
lines.forEach(line => {
73-
if (line.trim() === "") {
74-
} else {
75-
if (line.startsWith("data:")) {
76-
const data = JSON.parse(line.substring(6).trim());
77-
streamData += data.text;
73+
if (major >= 18) {
74+
// If node version is above 18
75+
const readablestream = (await client.generateText(req_body)) as ReadableStream<Uint8Array>;
76+
const reader = readablestream.pipeThrough(new TextDecoderStream()).getReader();
77+
let streamData = "";
78+
while (true) {
79+
const { done, value } = await reader.read();
80+
if (done) break;
81+
if (value) {
82+
streamData = parseEvent(value);
83+
process.stdout.write(streamData);
7884
}
7985
}
80-
});
81-
console.log("Stream Response: ", streamData);
86+
console.log("\n");
87+
} else {
88+
// If node version is below 18 or above 14
89+
const readablestream = ((await client.generateText(req_body)) as unknown) as Readable;
90+
const eventstream = readline.createInterface({ input: readablestream });
91+
eventstream.on("line", (chunk: string) => {
92+
streamData = parseEvent(chunk);
93+
process.stdout.write(streamData);
94+
});
95+
eventstream.on("close", () => {
96+
console.log("\n");
97+
});
98+
}
8299
} catch (e) {
83100
console.log(e);
84101
}
85-
86-
client.close();
87102
})();
103+
104+
function parseEvent(eventData: string): string {
105+
if (eventData.startsWith("data:")) {
106+
const data = JSON.parse(eventData.substring(6).trim());
107+
if ("text" in data) {
108+
return data.text;
109+
}
110+
}
111+
return "";
112+
}

lib/accessgovernancecp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-accessgovernancecp",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Access Governance Cp Service",
55
"repository": {
66
"type": "git",

lib/adm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-adm",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Adm Service",
55
"repository": {
66
"type": "git",

lib/aianomalydetection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aianomalydetection",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Ai Anomaly Detection Service",
55
"repository": {
66
"type": "git",

lib/aidocument/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aidocument",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Ai Document Service",
55
"repository": {
66
"type": "git",

lib/ailanguage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-ailanguage",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Ai Language Service",
55
"repository": {
66
"type": "git",

lib/aispeech/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aispeech",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Ai Speech Service",
55
"repository": {
66
"type": "git",

lib/aivision/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aivision",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Ai Vision Service",
55
"repository": {
66
"type": "git",

lib/analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-analytics",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Analytics Service",
55
"repository": {
66
"type": "git",

lib/announcementsservice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-announcementsservice",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Announcement Service",
55
"repository": {
66
"type": "git",

lib/apigateway/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apigateway",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for API gateway service",
55
"repository": {
66
"type": "git",

lib/apmconfig/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmconfig",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Apm Config Service",
55
"repository": {
66
"type": "git",

lib/apmcontrolplane/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmcontrolplane",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Apm Control Plane Service",
55
"repository": {
66
"type": "git",

lib/apmsynthetics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmsynthetics",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Apm Synthetics Service",
55
"repository": {
66
"type": "git",

lib/apmtraces/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmtraces",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Apm Traces Service",
55
"repository": {
66
"type": "git",

lib/appmgmtcontrol/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-appmgmtcontrol",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Appmgmt Control Service",
55
"repository": {
66
"type": "git",

lib/artifacts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-artifacts",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Artifacts Service",
55
"repository": {
66
"type": "git",

lib/audit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-audit",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Audit Service",
55
"repository": {
66
"type": "git",

lib/autoscaling/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-autoscaling",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Autoscaling Service",
55
"repository": {
66
"type": "git",

lib/bastion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-bastion",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Bastion Service",
55
"repository": {
66
"type": "git",

lib/bds/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-bds",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for BDS Service",
55
"repository": {
66
"type": "git",

lib/blockchain/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-blockchain",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Blockchain Service",
55
"repository": {
66
"type": "git",

lib/budget/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-budget",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Budget Service",
55
"repository": {
66
"type": "git",

lib/capacitymanagement/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-capacitymanagement",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Capacity Management Service",
55
"repository": {
66
"type": "git",

lib/certificates/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-certificates",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Certificates Service",
55
"repository": {
66
"type": "git",

lib/certificatesmanagement/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-certificatesmanagement",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Certificates Management Service",
55
"repository": {
66
"type": "git",

lib/cims/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cims",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Cims ",
55
"repository": {
66
"type": "git",

lib/cloudbridge/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cloudbridge",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Cloud Bridge Service",
55
"repository": {
66
"type": "git",

lib/cloudguard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cloudguard",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Cloud Guard Service",
55
"repository": {
66
"type": "git",

lib/cloudmigrations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cloudmigrations",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Cloud Migrations Service",
55
"repository": {
66
"type": "git",

lib/clusterplacementgroups/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-clusterplacementgroups",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Cluster Placement Groups Service",
55
"repository": {
66
"type": "git",

lib/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-common",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI Common module for NodeJS",
55
"repository": {
66
"type": "git",

lib/computecloudatcustomer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-computecloudatcustomer",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Compute Cloud At Customer Service",
55
"repository": {
66
"type": "git",

lib/computeinstanceagent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-computeinstanceagent",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Compute Instance Agent Service",
55
"repository": {
66
"type": "git",

lib/containerengine/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-containerengine",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Container Engine",
55
"repository": {
66
"type": "git",

lib/containerinstances/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-containerinstances",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Container Instances Service",
55
"repository": {
66
"type": "git",

lib/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-core",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Core",
55
"repository": {
66
"type": "git",

lib/dashboardservice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-dashboardservice",
3-
"version": "2.85.0",
3+
"version": "2.86.0",
44
"description": "OCI NodeJS client for Dashboard Service Service",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)