Skip to content

Commit c49c11a

Browse files
authored
Merge pull request #26 from oracle/release_2020-10-06
Releasing version 1.5.7
2 parents 68013fa + 25f47f5 commit c49c11a

File tree

554 files changed

+12750
-2334
lines changed

Some content is hidden

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

554 files changed

+12750
-2334
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/).
55

6+
## 1.5.7 - 2020-10-06
7+
### Added
8+
- Support for calling Oracle Cloud Infrastructure services in the me-dubai-1 region
9+
- Support for rotating keys on autonomous container databases and autonomous databases in the Database service
10+
- Support for cloud Exadata infrastructure and cloud VM clusters in the Database service
11+
- Support for controlling the display of tax banners in the Marketplace service
12+
- Support for application references, patch changes, generic JDBC and MySQL data asset types, and publishing tasks to OCI Dataflow in the Data Integration service
13+
- Support for disabling the legacy Instance Metadata endpoints v1 in the Compute service
14+
- Support for instance configurations specifying instance options in the Compute Management service
15+
616
## 1.5.6 - 2020-09-29
717
### Added
818
- Support for specifying custom content dispositions when downloading objects in the Object Storage service

lib/analytics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-analytics",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Analytics Service",
55
"repository": {
66
"type": "git",

lib/announcementsservice/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-announcementsservice",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Announcement Service",
55
"repository": {
66
"type": "git",

lib/apigateway/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apigateway",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for API gateway service",
55
"repository": {
66
"type": "git",

lib/applicationmigration/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-applicationmigration",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Application Migration service",
55
"repository": {
66
"type": "git",

lib/audit/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-audit",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Audit Service",
55
"repository": {
66
"type": "git",

lib/autoscaling/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-autoscaling",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Autoscaling Service",
55
"repository": {
66
"type": "git",

lib/bds/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-bds",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for BDS Service",
55
"repository": {
66
"type": "git",

lib/blockchain/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-blockchain",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Blockchain Service",
55
"repository": {
66
"type": "git",

lib/budget/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-budget",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Budget Service",
55
"repository": {
66
"type": "git",

lib/cims/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cims",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Cims ",
55
"repository": {
66
"type": "git",

lib/cloudguard/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cloudguard",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Cloud Guard Service",
55
"repository": {
66
"type": "git",

lib/common/lib/headers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/* This utility adds extra headers to each request before being sent over wire*/
77

8-
import { version } from "../../../package.json";
8+
import { version } from "../package.json";
99
import { isBrowser, isEmpty } from "./utils";
1010
const uuidv1 = require("uuid/v1");
1111

lib/common/lib/helper.ts

+70-66
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ export async function getStringFromResponseBody(body: any): Promise<string> {
6565
if (body instanceof Readable) {
6666
// body is a stream type
6767
return readStringFromReadable(body);
68-
} else if (body instanceof Blob) {
69-
// body is a blob type
70-
return readStringFromBlob(body);
71-
} else if (body instanceof ReadableStream) {
72-
// body is a fetch readableStream type
73-
return readStringFromFetchReadableStream(body);
74-
} else {
68+
}
69+
// else if (body instanceof Blob) {
70+
// // body is a blob type
71+
// return readStringFromBlob(body);
72+
// } else if (body instanceof ReadableStream) {
73+
// // body is a fetch readableStream type
74+
// return readStringFromFetchReadableStream(body);
75+
// }
76+
else {
7577
// unknown type, unable to read body content for signing, reject it
7678
throw new Error("Unable to read body content to sign the request");
7779
}
@@ -99,52 +101,52 @@ export async function readStringFromReadable(readable: Readable): Promise<string
99101
}
100102

101103
// read string from fetch ReadbaleString asynchronously, return a string content of it
102-
export async function readStringFromFetchReadableStream(readable: ReadableStream): Promise<string> {
103-
let contentBuffer: Array<string> = [];
104-
const reader = readable.getReader();
105-
const decoder = new TextDecoder("utf-8");
106-
107-
return new Promise<string>((resolve, reject) => {
108-
reader
109-
.read()
110-
.then(function processText({ done, value }): any {
111-
if (done) {
112-
// reading stream done, resolve it
113-
resolve(contentBuffer.join(""));
114-
}
115-
116-
// put each chunk into a buffer
117-
contentBuffer.push(decoder.decode(value));
118-
119-
// read more data and call processText function again to read more
120-
return reader.read().then(processText);
121-
})
122-
.catch(function(e) {
123-
// reject if has error
124-
reject(e);
125-
});
126-
});
127-
}
104+
// export async function readStringFromFetchReadableStream(readable: ReadableStream): Promise<string> {
105+
// let contentBuffer: Array<string> = [];
106+
// const reader = readable.getReader();
107+
// const decoder = new TextDecoder("utf-8");
108+
109+
// return new Promise<string>((resolve, reject) => {
110+
// reader
111+
// .read()
112+
// .then(function processText({ done, value }): any {
113+
// if (done) {
114+
// // reading stream done, resolve it
115+
// resolve(contentBuffer.join(""));
116+
// }
117+
118+
// // put each chunk into a buffer
119+
// contentBuffer.push(decoder.decode(value));
120+
121+
// // read more data and call processText function again to read more
122+
// return reader.read().then(processText);
123+
// })
124+
// .catch(function(e) {
125+
// // reject if has error
126+
// reject(e);
127+
// });
128+
// });
129+
// }
128130

129131
// read string from Blob asynchronously, return a string content of it
130-
export async function readStringFromBlob(blob: Blob): Promise<string> {
131-
const reader = new FileReader();
132+
// export async function readStringFromBlob(blob: Blob): Promise<string> {
133+
// const reader = new FileReader();
132134

133-
return new Promise<string>((resolve, reject) => {
134-
reader.onerror = err => {
135-
reader.abort();
136-
reject(err);
137-
};
135+
// return new Promise<string>((resolve, reject) => {
136+
// reader.onerror = err => {
137+
// reader.abort();
138+
// reject(err);
139+
// };
138140

139-
reader.onload = () => {
140-
// read as Text is called, so this will be a string
141-
resolve(reader.result as string);
142-
};
141+
// reader.onload = () => {
142+
// // read as Text is called, so this will be a string
143+
// resolve(reader.result as string);
144+
// };
143145

144-
// utf-8 default encoding is used here
145-
reader.readAsText(blob);
146-
});
147-
}
146+
// // utf-8 default encoding is used here
147+
// reader.readAsText(blob);
148+
// });
149+
// }
148150

149151
// returns duplicated body for separate consumption by signer and Fetch Request
150152
export function getSignerAndReqBody(
@@ -174,17 +176,17 @@ export function getSignerAndReqBody(
174176
const reqBody = body.pipe(new PassThrough());
175177
return { signerBody: signerbody, requestBody: reqBody };
176178
}
177-
//if body instance of blob, can be duplicated.
178-
else if (body instanceof Blob) {
179-
return { signerBody: body, requestBody: body };
180-
}
181-
// if body instance of ReadableStream, tee() it.
182-
else if (body instanceof ReadableStream) {
183-
// body.tee() not supported in IE.
184-
// https://jira.oci.oraclecorp.com/browse/DEX-7126
185-
const duplicateStream = body.tee();
186-
return { signerBody: duplicateStream[0], requestBody: duplicateStream[1] };
187-
}
179+
// //if body instance of blob, can be duplicated.
180+
// else if (body instanceof Blob) {
181+
// return { signerBody: body, requestBody: body };
182+
// }
183+
// // if body instance of ReadableStream, tee() it.
184+
// else if (body instanceof ReadableStream) {
185+
// // body.tee() not supported in IE.
186+
// // https://jira.oci.oraclecorp.com/browse/DEX-7126
187+
// const duplicateStream = body.tee();
188+
// return { signerBody: duplicateStream[0], requestBody: duplicateStream[1] };
189+
// }
188190
// unknown type, unable to read body content.
189191
else throw new Error("Unable to read body content");
190192
}
@@ -222,13 +224,15 @@ export async function getStringFromRequestBody(body: any): Promise<string> {
222224
if (body instanceof Readable) {
223225
// body is a stream type
224226
return readStringFromReadable(body);
225-
} else if (body instanceof Blob) {
226-
// body is a blob type
227-
return readStringFromBlob(body);
228-
} else if (body instanceof ReadableStream) {
229-
// body is a fetch readableStream type
230-
return readStringFromFetchReadableStream(body);
231-
} else {
227+
}
228+
// else if (body instanceof Blob) {
229+
// // body is a blob type
230+
// return readStringFromBlob(body);
231+
// } else if (body instanceof ReadableStream) {
232+
// // body is a fetch readableStream type
233+
// return readStringFromFetchReadableStream(body);
234+
// }
235+
else {
232236
// unknown type, unable to read body content for signing, reject it
233237
throw new Error("Unable to read body content to sign the request");
234238
}

lib/common/lib/region.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export class Region {
5454
"tus": "us-gov-phoenix-1",
5555
"sjc": "us-sanjose-1",
5656
"brs": "uk-gov-cardiff-1",
57-
"nja": "ap-chiyoda-1"
57+
"nja": "ap-chiyoda-1",
58+
"dxb": "me-dubai-1"
5859
};
5960

6061
private static KNOWN_REGIONS: Map<string, Region> = new Map();
@@ -99,6 +100,7 @@ export class Region {
99100
public static EU_AMSTERDAM_1: Region = Region.register("eu-amsterdam-1", Realm.OC1);
100101
public static ME_JEDDAH_1: Region = Region.register("me-jeddah-1", Realm.OC1);
101102
public static US_SANJOSE_1: Region = Region.register("us-sanjose-1", Realm.OC1);
103+
public static ME_DUBAI_1: Region = Region.register("me-dubai-1", Realm.OC1);
102104

103105
// OC2
104106
public static US_LANGLEY_1: Region = Region.register("us-langley-1", Realm.OC2);

lib/common/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-common",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI Common module for NodeJS",
55
"repository": {
66
"type": "git",
@@ -32,6 +32,7 @@
3232
"@types/jsonwebtoken": "^8.5.0",
3333
"@types/jssha": "^2.0.0",
3434
"@types/mocha": "^5.2.5",
35+
"@types/node": "10.17.0",
3536
"@types/sshpk": "^1.10.3",
3637
"awesome-typescript-loader": "3.1.3",
3738
"chai": "^4.2.0",

lib/common/tests/region.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ describe("Test Region", () => {
3838
Region.UK_GOV_LONDON_1,
3939
Region.US_SANJOSE_1,
4040
Region.UK_GOV_CARDIFF_1,
41-
Region.AP_CHIYODA_1
41+
Region.AP_CHIYODA_1,
42+
Region.ME_DUBAI_1
4243
];
4344
it("should register a region sucessfully ", function() {
4445
const region = Region.register(regionId, realm);

lib/containerengine/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-containerengine",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "OCI NodeJS client for Container Engine",
55
"repository": {
66
"type": "git",

lib/core/lib/model/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ import * as InstanceConfigurationCreateVolumeDetails from "./instance-configurat
388388
export import InstanceConfigurationCreateVolumeDetails = InstanceConfigurationCreateVolumeDetails.InstanceConfigurationCreateVolumeDetails;
389389
import * as InstanceConfigurationInstanceDetails from "./instance-configuration-instance-details";
390390
export import InstanceConfigurationInstanceDetails = InstanceConfigurationInstanceDetails.InstanceConfigurationInstanceDetails;
391+
import * as InstanceConfigurationInstanceOptions from "./instance-configuration-instance-options";
392+
export import InstanceConfigurationInstanceOptions = InstanceConfigurationInstanceOptions.InstanceConfigurationInstanceOptions;
391393
import * as InstanceConfigurationInstanceSourceDetails from "./instance-configuration-instance-source-details";
392394
export import InstanceConfigurationInstanceSourceDetails = InstanceConfigurationInstanceSourceDetails.InstanceConfigurationInstanceSourceDetails;
393395
import * as InstanceConfigurationLaunchInstanceAgentConfigDetails from "./instance-configuration-launch-instance-agent-config-details";
@@ -406,6 +408,8 @@ import * as InstanceConsoleConnection from "./instance-console-connection";
406408
export import InstanceConsoleConnection = InstanceConsoleConnection.InstanceConsoleConnection;
407409
import * as InstanceCredentials from "./instance-credentials";
408410
export import InstanceCredentials = InstanceCredentials.InstanceCredentials;
411+
import * as InstanceOptions from "./instance-options";
412+
export import InstanceOptions = InstanceOptions.InstanceOptions;
409413
import * as InstancePool from "./instance-pool";
410414
export import InstancePool = InstancePool.InstancePool;
411415
import * as InstancePoolInstanceLoadBalancerBackend from "./instance-pool-instance-load-balancer-backend";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Core Services API
3+
* API covering the [Networking](/iaas/Content/Network/Concepts/overview.htm),
4+
[Compute](/iaas/Content/Compute/Concepts/computeoverview.htm), and
5+
[Block Volume](/iaas/Content/Block/Concepts/overview.htm) services. Use this API
6+
to manage resources such as virtual cloud networks (VCNs), compute instances, and
7+
block storage volumes.
8+
9+
* OpenAPI spec version: 20160918
10+
*
11+
*
12+
* NOTE: This class is auto generated by OracleSDKGenerator.
13+
* Do not edit the class manually.
14+
*
15+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
16+
* 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.
17+
*/
18+
19+
import * as model from "../model";
20+
import common = require("oci-common");
21+
22+
/**
23+
* Optional mutable instance options. As a part of Instance Metadata Service Security Header, This allows user to disable the legacy imds endpoints.
24+
*/
25+
export interface InstanceConfigurationInstanceOptions {
26+
/**
27+
* Whether to disable the legacy (/v1) instance metadata service endpoints.
28+
* Customers who have migrated to /v2 should set this to true for added security.
29+
* Default is false.
30+
*
31+
*/
32+
"areLegacyImdsEndpointsDisabled"?: boolean;
33+
}
34+
35+
export namespace InstanceConfigurationInstanceOptions {
36+
export function getJsonObj(obj: InstanceConfigurationInstanceOptions): object {
37+
const jsonObj = { ...obj, ...{} };
38+
39+
return jsonObj;
40+
}
41+
}

0 commit comments

Comments
 (0)