Skip to content

Commit d6004e2

Browse files
authored
Merge pull request #7 from oracle/release_2020-06-23
Releasing version 1.2.0
2 parents 64951ac + 01d18ce commit d6004e2

File tree

627 files changed

+33115
-229
lines changed

Some content is hidden

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

627 files changed

+33115
-229
lines changed

CHANGELOG.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
# Change Log
2-
32
All notable changes to this project will be documented in this file.
43

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

7-
## 1.1.1 - 2020-06-16
8-
6+
## 1.2.0 - 2020-06-23
97
### Added
8+
- Support for the Data Integration service
9+
- Support for updating database home IDs on databases in the Database service
10+
- Support for backing up autonomous databases on Cloud at Customer in the Database service
11+
- Support for managing autonomous VM clusters on Cloud at Customer in the Database service
12+
- Support for accessing data assets via private endpoints in the Data Catalog service
13+
- Support for dependency archive zip files to be specified for use by applications in the Data Flow service
14+
1015

16+
### Breaking
17+
- Attribute LifecycleState in the Data Catalog service has restricted values to LifecycleState ENUMs (CREATING, ACTIVE, INACTIVE, UPDATING, DELETING, DELETED, FAILED, MOVING, UNKNOWN_VALUE)
18+
- Attribute HarvestStatus in the Data Catalog service has restricted values to HarvestStatus ENUMs (COMPLETE, ERROR, IN_PROGRESS, DEFERRED, UNKNOWN_VALUE)
19+
- Attribute TermWorkflowStatus in the Data Catalog service has restricted values to TermWorkflowStatus ENUMs (NEW, APPROVED, UNDER_REVIEW, ESCALATED, UNKNOWN_VALUE)
20+
- Attribute JobType in the Data Catalog service has restricted values to JobType ENUMs (HARVEST, PROFILING, SAMPLING, PREVIEW, IMPORT, EXPORT, INTERNAL, PURGE, IMMEDIATE, SCHEDULED, IMMEDIATE_EXECUTION, SCHEDULED_EXECUTION, SCHEDULED_EXECUTION_INSTANCE, UNKNOWN_VALUE)
21+
- Attribute JobExecutionState in the Data Catalog service has restricted values to JobExecutionState ENUMs (CREATED, IN_PROGRESS, INACTIVE, FAILED, SUCCEEDED, CANCELED, UNKNOWN_VALUE)
22+
23+
## 1.1.1 - 2020-06-16
24+
### Added
1125
- Support for creating a new database from an existing database based on a given timestamp in the Database service
1226
- Support for enabling archive log backups of databases in the Database service
1327
- Support for returning the database version on autonomous container databases in the Database service
@@ -16,31 +30,25 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
1630
- Support for filtering of list APIs for groups, identity providers, identity provider groups, compartments, dynamic groups, network sources, policies, and users by name or lifecycle state in the Identity Service
1731

1832
## 1.1.0 - 2020-06-09
19-
2033
### Added
21-
2234
- Support for returning the database version of backups in the Database service
2335
- Support for patching on Exadata Cloud at Customer resources in the Database service
2436
- Support for new lifecycle substates on instances in the Digital Assistant service
2537
- Support for file servers in the Integration service
2638
- Support for deleting non-empty tag namespaces and bulk deleting tags in the Identity service
2739
- Support for bulk move and bulk delete of resources by compartment in the Identity service
2840

29-
### Breaking
3041

42+
### Breaking
3143
- Parameter LifecycleState removed state OFFLINE and added DISCONNECTED in the Database service
3244

3345
## 1.0.2 - 2020-06-02
34-
3546
### Added
36-
3747
- Support for optionally supplying a signature when deleting an agreement in the Marketplace service
3848
- Support for launching paid listings in non-US regions in the Marketplace service
3949
- Support for returning the image id of packages in the Marketplace service
4050
- Support for calling Oracle Cloud Infrastructure services in the ap-chuncheon-1 region
4151

4252
## 1.0.1 - 2020-05-27
43-
4453
### Added
45-
4654
- Initial Release

examples/javascript/objectstorage.js

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
const os = require("oci-objectstorage");
1515
const common = require("oci-common");
16-
const st = require("stream");
16+
const fs = require("fs");
1717

1818
const configurationFilePath = "~/.oci/config";
1919
const configProfile = "DEFAULT";
@@ -69,21 +69,17 @@ client.region = common.Region.US_PHOENIX_1;
6969
console.log("Get bucket executed successfully." + getBucketResponse.bucket);
7070

7171
// Create stream to upload
72-
const ObjectData =
73-
"Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data";
74-
const putObjectStream = new st.Readable();
75-
putObjectStream._read = function() {};
76-
putObjectStream.push(ObjectData);
77-
putObjectStream.push(null); // null defines end of the stream
72+
const fileLocation = "/Users/File/location";
73+
const stats = fs.statSync(fileLocation);
74+
const objectData = fs.createReadStream(fileLocation);
7875

7976
console.log("Bucket is created. Now adding object to the Bucket.");
8077
const putObjectRequest = {
8178
namespaceName: namespace,
8279
bucketName: bucket,
83-
putObjectBody: putObjectStream,
80+
putObjectBody: objectData,
8481
objectName: object,
85-
contentLength: ObjectData.length,
86-
contentType: "application/octet-stream"
82+
contentLength: stats.size
8783
};
8884
const putObjectResponse = await client.putObject(putObjectRequest);
8985
console.log("Put Object executed successfully" + putObjectResponse);
@@ -97,10 +93,9 @@ client.region = common.Region.US_PHOENIX_1;
9793
const getObjectResponse = await client.getObject(getObjectRequest);
9894
console.log("Get Object executed successfully.");
9995

100-
console.log(
101-
"Upload stream and downloaded stream are same? ",
102-
await compareStreams(putObjectStream, getObjectResponse.value)
103-
);
96+
const isSameStream = compareStreams(objectData, getObjectResponse.value);
97+
console.log(`Upload stream and downloaded stream are same? ${isSameStream}`);
98+
10499
console.log("Delete Object");
105100
const deleteObjectRequest = {
106101
namespaceName: namespace,
@@ -122,17 +117,16 @@ client.region = common.Region.US_PHOENIX_1;
122117
}
123118
})();
124119

125-
async function compareStreams(stream1, stream2) {
126-
const dataforStream1 = await streamToString(stream1);
127-
const dataforStream2 = await streamToString(stream2);
128-
return dataforStream1 === dataforStream2;
120+
function compareStreams(stream1, stream2) {
121+
return streamToString(stream1) === streamToString(stream2);
129122
}
130123

131124
function streamToString(stream) {
132-
const chunks = [];
133-
return new Promise((resolve, reject) => {
134-
stream.on("data", chunk => chunks.push(chunk));
135-
stream.on("error", reject);
136-
stream.on("end", () => resolve(Buffer.concat(chunks).toString("utf8")));
125+
let output = "";
126+
stream.on("data", function(data) {
127+
output += data.toString();
128+
});
129+
stream.on("end", function() {
130+
return output;
137131
});
138132
}

examples/typescript/audit.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
import * as identity from "oci-identity";
12-
import { ConfigFileReader } from "oci-common/lib/config-file-reader";
1312
import * as audit from "oci-audit";
1413
import common = require("oci-common");
1514

@@ -20,14 +19,8 @@ const provider: common.ConfigFileAuthenticationDetailsProvider = new common.Conf
2019
configurationFilePath,
2120
configProfile
2221
);
23-
const config = ConfigFileReader.parseDefault(null);
24-
const profile = config.accumulator.configurationsByProfile.get("DEFAULT");
25-
let compartmentId = "";
26-
if (profile) {
27-
compartmentId = profile.get("tenancy") as string;
28-
} else {
29-
compartmentId = "";
30-
}
22+
23+
const compartmentId = provider.getTenantId();
3124

3225
let identityClient: identity.IdentityClient;
3326
let auditClient: audit.AuditClient;

examples/typescript/identity.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
import * as identity from "oci-identity";
99
import common = require("oci-common");
1010

11-
import { ConfigFileReader } from "oci-common/lib/config-file-reader";
12-
13-
const config = ConfigFileReader.parseDefault(null);
14-
1511
const configurationFilePath = "~/.oci/config";
1612
const configProfile = "DEFAULT";
1713

examples/typescript/objectstorage.ts

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import os = require("oci-objectstorage");
1515
import common = require("oci-common");
1616
import st = require("stream");
17+
import { createReadStream, statSync } from "fs";
1718

1819
const configurationFilePath = "~/.oci/config";
1920
const configProfile = "DEFAULT";
@@ -65,22 +66,18 @@ client.region = common.Region.US_PHOENIX_1;
6566
const getBucketResponse = await client.getBucket(getBucketRequest);
6667
console.log("Get bucket executed successfully." + getBucketResponse.bucket);
6768

68-
// Create stream to upload
69-
const ObjectData: string =
70-
"Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data";
71-
const putObjectStream = new st.Readable();
72-
putObjectStream._read = function() {};
73-
putObjectStream.push(ObjectData);
74-
putObjectStream.push(null); // null defines end of the stream
69+
// Create read stream to file
70+
const fileLocation = "/Users/File/location";
71+
const stats = statSync(fileLocation);
72+
const objectData = createReadStream(fileLocation);
7573

7674
console.log("Bucket is created. Now adding object to the Bucket.");
7775
const putObjectRequest: os.requests.PutObjectRequest = {
7876
namespaceName: namespace,
7977
bucketName: bucket,
80-
putObjectBody: putObjectStream,
78+
putObjectBody: objectData,
8179
objectName: object,
82-
contentLength: ObjectData.length,
83-
contentType: "application/octet-stream"
80+
contentLength: stats.size
8481
};
8582
const putObjectResponse = await client.putObject(putObjectRequest);
8683
console.log("Put Object executed successfully" + putObjectResponse);
@@ -94,10 +91,9 @@ client.region = common.Region.US_PHOENIX_1;
9491
const getObjectResponse = await client.getObject(getObjectRequest);
9592
console.log("Get Object executed successfully.");
9693

97-
console.log(
98-
"Upload stream and downloaded stream are same? ",
99-
await compareStreams(putObjectStream, getObjectResponse.value as st.Readable)
100-
);
94+
const isSameStream = compareStreams(objectData, getObjectResponse.value as st.Readable);
95+
console.log(`Upload stream and downloaded stream are same? ${isSameStream}`);
96+
10197
console.log("Delete Object");
10298
const deleteObjectRequest: os.requests.DeleteObjectRequest = {
10399
namespaceName: namespace,
@@ -119,17 +115,16 @@ client.region = common.Region.US_PHOENIX_1;
119115
}
120116
})();
121117

122-
async function compareStreams(stream1: st.Readable, stream2: st.Readable): Promise<boolean> {
123-
const dataforStream1 = await streamToString(stream1);
124-
const dataforStream2 = await streamToString(stream2);
125-
return dataforStream1 === dataforStream2;
118+
function compareStreams(stream1: st.Readable, stream2: st.Readable): boolean {
119+
return streamToString(stream1) === streamToString(stream2);
126120
}
127121

128122
function streamToString(stream: st.Readable) {
129-
const chunks: Buffer[] = [];
130-
return new Promise((resolve, reject) => {
131-
stream.on("data", chunk => chunks.push(chunk));
132-
stream.on("error", reject);
133-
stream.on("end", () => resolve(Buffer.concat(chunks).toString("utf8")));
123+
let output = "";
124+
stream.on("data", function(data) {
125+
output += data.toString();
126+
});
127+
stream.on("end", function() {
128+
return output;
134129
});
135130
}

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,4 @@ export import mysql = require("oci-mysql");
132132
export import nosql = require("oci-nosql");
133133
export import vault = require("oci-vault");
134134
export import secrets = require("oci-secrets");
135+
export import dataintegration = require("oci-dataintegration");

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": "1.1.1",
3+
"version": "1.2.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": "1.1.1",
3+
"version": "1.2.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": "1.1.1",
3+
"version": "1.2.0",
44
"description": "OCI NodeJS client for API gateway 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": "1.1.1",
3+
"version": "1.2.0",
44
"description": "OCI NodeJS client for Application Migration service",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)