Skip to content

Commit 232a26f

Browse files
authored
Merge branch 'master' into spavlusieva-patch-1
2 parents 2146f3f + 2810211 commit 232a26f

File tree

3,870 files changed

+186340
-15095
lines changed

Some content is hidden

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

3,870 files changed

+186340
-15095
lines changed

CHANGELOG.md

Lines changed: 203 additions & 0 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Contributing to the Oracle Cloud Infrastructure SDK for TypeScript and JavaScript
2-
3-
_Copyright (c) 2020, 2023 Oracle and/or its affiliates. All rights reserved._
1+
# Contributing to this repository
42

53
We welcome your contributions! There are multiple ways to contribute.
64

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ This project welcomes contributions from the community. Before submitting a pull
6767

6868
Please consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process
6969

70+
## Security
71+
72+
Please consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process
73+
7074
## License
7175

7276
Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.

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() {

index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,7 @@ export import recovery = require("oci-recovery");
210210
export import vbsinst = require("oci-vbsinst");
211211
export import identitydomains = require("oci-identitydomains");
212212
export import accessgovernancecp = require("oci-accessgovernancecp");
213+
export import ocicontrolcenter = require("oci-ocicontrolcenter");
214+
export import osmanagementhub = require("oci-osmanagementhub");
215+
export import fleetsoftwareupdate = require("oci-fleetsoftwareupdate");
216+
export import computecloudatcustomer = require("oci-computecloudatcustomer");

lib/accessgovernancecp/lib/client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class AccessGovernanceCPClient {
3737
protected "_clientConfiguration": common.ClientConfiguration;
3838
protected _circuitBreaker = null;
3939
protected _httpOptions: any = undefined;
40+
protected _bodyDuplexMode: any = undefined;
4041
public targetService = "AccessGovernanceCP";
4142
protected _regionId: string = "";
4243
protected "_region": common.Region;
@@ -56,6 +57,9 @@ export class AccessGovernanceCPClient {
5657
this._httpOptions = clientConfiguration.httpOptions
5758
? clientConfiguration.httpOptions
5859
: undefined;
60+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
61+
? clientConfiguration.bodyDuplexMode
62+
: undefined;
5963
}
6064
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
6165
const specCircuitBreakerEnabled = true;
@@ -68,7 +72,12 @@ export class AccessGovernanceCPClient {
6872
}
6973
this._httpClient =
7074
params.httpClient ||
71-
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
75+
new common.FetchHttpClient(
76+
requestSigner,
77+
this._circuitBreaker,
78+
this._httpOptions,
79+
this._bodyDuplexMode
80+
);
7281

7382
if (
7483
params.authenticationDetailsProvider &&

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

lib/adm/lib/client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export class ApplicationDependencyManagementClient {
3636
protected "_clientConfiguration": common.ClientConfiguration;
3737
protected _circuitBreaker = null;
3838
protected _httpOptions: any = undefined;
39+
protected _bodyDuplexMode: any = undefined;
3940
public targetService = "ApplicationDependencyManagement";
4041
protected _regionId: string = "";
4142
protected "_region": common.Region;
@@ -55,6 +56,9 @@ export class ApplicationDependencyManagementClient {
5556
this._httpOptions = clientConfiguration.httpOptions
5657
? clientConfiguration.httpOptions
5758
: undefined;
59+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
60+
? clientConfiguration.bodyDuplexMode
61+
: undefined;
5862
}
5963
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
6064
const specCircuitBreakerEnabled = true;
@@ -67,7 +71,12 @@ export class ApplicationDependencyManagementClient {
6771
}
6872
this._httpClient =
6973
params.httpClient ||
70-
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
74+
new common.FetchHttpClient(
75+
requestSigner,
76+
this._circuitBreaker,
77+
this._httpOptions,
78+
this._bodyDuplexMode
79+
);
7180

7281
if (
7382
params.authenticationDetailsProvider &&

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

lib/aianomalydetection/lib/client.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export class AnomalyDetectionClient {
4040
protected "_clientConfiguration": common.ClientConfiguration;
4141
protected _circuitBreaker = null;
4242
protected _httpOptions: any = undefined;
43+
protected _bodyDuplexMode: any = undefined;
4344
public targetService = "AnomalyDetection";
4445
protected _regionId: string = "";
4546
protected "_region": common.Region;
@@ -59,6 +60,9 @@ export class AnomalyDetectionClient {
5960
this._httpOptions = clientConfiguration.httpOptions
6061
? clientConfiguration.httpOptions
6162
: undefined;
63+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
64+
? clientConfiguration.bodyDuplexMode
65+
: undefined;
6266
}
6367
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
6468
const specCircuitBreakerEnabled = true;
@@ -71,7 +75,12 @@ export class AnomalyDetectionClient {
7175
}
7276
this._httpClient =
7377
params.httpClient ||
74-
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
78+
new common.FetchHttpClient(
79+
requestSigner,
80+
this._circuitBreaker,
81+
this._httpOptions,
82+
this._bodyDuplexMode
83+
);
7584

7685
if (
7786
params.authenticationDetailsProvider &&

0 commit comments

Comments
 (0)