Skip to content

Commit 2810211

Browse files
Releasing version 2.70.2
Releasing version 2.70.2
2 parents ff26c00 + 40cf749 commit 2810211

File tree

222 files changed

+2391
-370
lines changed

Some content is hidden

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

222 files changed

+2391
-370
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions

examples/typescript/objectstorage.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import common = require("oci-common");
2020
import st = require("stream");
2121
import { createReadStream, statSync } from "fs";
2222
import { NodeFSBlob } from "oci-objectstorage";
23+
// If using Node JS version >= 18, import the following package for working with streams
24+
// import consumers from 'stream/consumers';
2325

2426
const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider();
2527
const args = process.argv.slice(2);
@@ -114,13 +116,20 @@ const client = new os.ObjectStorageClient({ authenticationDetailsProvider: provi
114116
}
115117
})();
116118

117-
function compareStreams(stream1: st.Readable, stream2: st.Readable): boolean {
119+
function compareStreams(stream1: any, stream2: any): boolean {
118120
return streamToString(stream1) === streamToString(stream2);
119121
}
122+
// When using NodeJS version >= 18, use the following definition for the function
123+
/*
124+
async function streamToString(stream: any) {
125+
const data = await consumers.buffer(getObjectResponse.value as NodeJS.ReadableStream).toString("utf8");
126+
return data;
127+
}
128+
*/
120129

121-
function streamToString(stream: st.Readable) {
130+
function streamToString(stream: any) {
122131
let output = "";
123-
stream.on("data", function(data) {
132+
stream.on("data", function(data: any) {
124133
output += data.toString();
125134
});
126135
stream.on("end", function() {

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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Apm Traces Service",
55
"repository": {
66
"type": "git",

lib/applicationmigration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-applicationmigration",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Application Migration 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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Budget 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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Cloud Migrations Service",
55
"repository": {
66
"type": "git",

lib/common/lib/auth/url-based-x509-certificate-supplier.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import CertificateAndPrivateKeyPair from "./certificate-and-privatekey-pair";
99
import Refreshable from "./models/refreshable";
1010
import { getStringFromResponseBody } from "../helper";
1111
import CircuitBreaker from "../circuit-breaker";
12+
import fetch, { Response } from "node-fetch";
1213

1314
/**
1415
* A class that retrieves certificate based on metadata service url
@@ -85,13 +86,16 @@ export class ResourceDetails {
8586
private headers: Headers,
8687
private circuitBreaker: CircuitBreaker
8788
) {}
89+
private METADATA_AUTH_HEADERS = "Bearer Oracle";
90+
private AUTHORIZATION = "Authorization";
8891

8992
async send(): Promise<Response> {
9093
const httpClient = new FetchHttpClient(null, this.circuitBreaker);
91-
const response = await httpClient.send({
92-
uri: this.url,
94+
const metaDataHeaders: any = {};
95+
metaDataHeaders[this.AUTHORIZATION] = this.METADATA_AUTH_HEADERS;
96+
const response = await fetch(this.url, {
9397
method: "GET",
94-
headers: this.headers
98+
headers: metaDataHeaders
9599
});
96100
return response;
97101
}

lib/common/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-common",
3-
"version": "2.70.1",
3+
"version": "2.70.2",
44
"description": "OCI Common module for NodeJS",
55
"repository": {
66
"type": "git",
@@ -36,14 +36,16 @@
3636
"@types/chai": "4.1.7",
3737
"@types/node": "14.14.43",
3838
"@types/mocha": "5.2.5",
39+
"@types/node-fetch": "2.6.5",
3940
"awesome-typescript-loader": "3.1.3",
4041
"chai": "^4.2.0",
4142
"mocha": "^5.2.0",
4243
"source-map-loader": "0.2.1",
4344
"ts-node": "^8.0.2",
4445
"typescript": "4.1.3",
4546
"webpack": "4.0.0",
46-
"webpack-cli": "^3.3.0"
47+
"webpack-cli": "^3.3.0",
48+
"node-fetch": "2.6.5"
4749
},
4850
"publishConfig": {
4951
"registry": "https://registry.npmjs.org"

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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
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.70.1",
3+
"version": "2.70.2",
44
"description": "OCI NodeJS client for Dashboard Service Service",
55
"repository": {
66
"type": "git",

lib/database/lib/model/exadata-infrastructure-summary.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ export namespace ExadataInfrastructureSummary {
249249
X8 = "X8",
250250
X8M = "X8M",
251251
X9M = "X9M",
252+
X10M = "X10M",
252253
/**
253254
* This value is used if a service returns a value for this enum that is not recognized by this
254255
* version of the SDK.

lib/database/lib/model/exadata-infrastructure.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ export namespace ExadataInfrastructure {
247247
X8 = "X8",
248248
X8M = "X8M",
249249
X9M = "X9M",
250+
X10M = "X10M",
250251
/**
251252
* This value is used if a service returns a value for this enum that is not recognized by this
252253
* version of the SDK.

0 commit comments

Comments
 (0)