Skip to content

Commit 4bfeb54

Browse files
authored
Merge pull request #36 from oracle/release_2020-12-15
Releasing version 1.10.0
2 parents a66af7e + 47d71c5 commit 4bfeb54

File tree

2,454 files changed

+18263
-2267
lines changed

Some content is hidden

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

2,454 files changed

+18263
-2267
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@ 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.10.0 - 2020-12-15
7+
### Added
8+
- Support for filtering listKeys based on KeyShape in KeyManagement service
9+
- Support for the Oracle Roving Edge Infrastructure service
10+
- Support for flexible ShapeDetails in Load Balancer service
11+
- Support for listing of harvested Rules, additional filtering for Logical Entity list calls in Data Catalog service
12+
- Support second level domain for audit SDK
13+
- Support for listing flex components in Database service
14+
- Support for APEX service for ADBS on OCI console for Database service
15+
- Support for Customer-Managed Key features as a part of the Database service
16+
- Support for Github configuration source provider as part of the Resource Manager service
17+
18+
### Breaking Changes
19+
- Removing deprecated createAutonomousDataWarehouse API from Database service
20+
- Removing deprecated createAutonomousDataWarehouseBackup API from Database service
21+
- Removing deprecated deleteAutonomousDataWarehouse API from Database service
22+
- Removing deprecated generateAutonomousDataWarehouseWallet API from Database service
23+
- Removing deprecated getAutonomousDataWarehouse API from Database service
24+
- Removing deprecated getAutonomousDataWarehouseBackup API from Database service
25+
- Removing deprecated listAutonomousDataWarehouseBackups API from Database service
26+
- Removing deprecated listAutonomousDataWarehouses API from Database service
27+
- Removing deprecated restoreAutonomousDataWarehouse API from Database service
28+
- Removing deprecated startAutonomousDataWarehouse API from Database service
29+
- Removing deprecated stopAutonomousDataWarehouse API from Database service
30+
- Removing deprecated updateAutonomousDataWarehouse API from Database service
31+
632
## 1.9.1 - 2020-12-08
733
### Added
834
- Support for Integration Service custom endpoint feature

examples/javascript/blob-sample.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { Region } from "oci-common";
1717
*/
1818
async function uploadBlob(blob, objName) {
1919
const client = new ObjectStorageClient({ authenticationDetailsProvider: provider });
20-
client.region = Region.US_PHOENIX_1;
2120

2221
const uploadManager = new UploadManager(client, { enforceMD5: false });
2322
const namespaceName = "dex-us-phoenix-1";

examples/javascript/containerengine-cluster.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ const identityClient = new identity.IdentityClient({
4949
});
5050
const workRequestClient = new wr.WorkRequestClient({ authenticationDetailsProvider: provider });
5151

52-
containerEngineClient.regionId = "Sample-region";
53-
vcnClient.regionId = "Sample-region";
54-
identityClient.regionId = "Sample-region";
55-
workRequestClient.regionId = "Sample-region";
56-
5752
const VirtualNetworkWaiter = new core.VirtualNetworkWaiter(vcnClient, workRequestClient);
5853

5954
async function main() {

examples/javascript/create-preauth-req.js

Lines changed: 41 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,70 +12,67 @@
1212
* <ul>
1313
* <li>The first argument is the absloute directory path to read files from.</li>
1414
* <li>The second argument is the name of an existing bucket name to generate the url.</li>
15+
* <li>The third argument is the name of the namespace</li>
16+
* <li>The fourth argument is the regionId, i.e: "us-phoenix-1"</li>
17+
* <li>The fifth argument is second level domain i.e: "oraclecloud.com"</li>
1518
* </ul>
1619
*/
1720

18-
const os = require('oci-objectstorage');
19-
const common = require('oci-common');
20-
const { readdir } = require('fs');
21+
const os = require("oci-objectstorage");
22+
const common = require("oci-common");
23+
const { readdir } = require("fs");
2124

22-
const configurationFilePath = '~/.oci/config';
23-
const configProfile = 'DEFAULT';
24-
25-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
26-
configurationFilePath,
27-
configProfile
28-
);
25+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2926

3027
const args = process.argv.slice(2);
31-
if (args.length !== 3) {
28+
if (args.length !== 5) {
3229
console.error(
33-
'Unexpected number of arguments received. Consult the script header comments for expected arguments'
30+
"Unexpected number of arguments received. Consult the script header comments for expected arguments"
3431
);
3532
process.exit(-1);
3633
}
3734

3835
const filePath = args[0];
3936
const bucketName = args[1];
4037
const namespaceName = args[2];
41-
const serviceName = 'objectstorage'
38+
const regionId = args[3];
39+
const secondLevelDomain = args[4];
40+
const serviceName = "objectstorage";
4241

4342
const client = new os.ObjectStorageClient({
44-
authenticationDetailsProvider: provider
43+
authenticationDetailsProvider: provider
4544
});
46-
client.region = common.Region.US_PHOENIX_1;
4745

4846
(async () => {
49-
try {
50-
console.time(`Download Time ${filePath}`);
51-
52-
// set expiry date for the download url.
53-
const today = new Date();
54-
const neverExpires = new Date(today);
55-
neverExpires.setDate(neverExpires.getDate() + 25);
47+
try {
48+
console.time(`Download Time ${filePath}`);
5649

57-
// use date for generating a random unique id which can be used as a par id
58-
const parUniqueId = Date.now();
59-
const createPreauthenticatedRequestDetails = {
60-
name: parUniqueId.toString(),
61-
objectName: filePath,
62-
accessType: os.models.CreatePreauthenticatedRequestDetails.AccessType.ObjectRead,
63-
timeExpires: neverExpires
64-
};
65-
const createPreauthenticatedRequest = {
66-
bucketName: bucketName,
67-
namespaceName: namespaceName,
68-
createPreauthenticatedRequestDetails: createPreauthenticatedRequestDetails
69-
};
70-
// create pre authenticated request to generate the url
71-
const resp = await client.createPreauthenticatedRequest(createPreauthenticatedRequest);
72-
const baseUrl = `https://${serviceName}.${common.Region.US_PHOENIX_1.regionId}.${common.Realm.OC1.secondLevelDomain}`
73-
const downloadUrl = resp.preauthenticatedRequest.accessUri;
74-
console.log('download url for the file ' + filePath + ' is ' + baseUrl + downloadUrl);
50+
// set expiry date for the download url.
51+
const today = new Date();
52+
const neverExpires = new Date(today);
53+
neverExpires.setDate(neverExpires.getDate() + 25);
7554

76-
console.timeEnd(`Download Time ${filePath}`);
77-
} catch (error) {
78-
console.log('Error executing example ' + error);
79-
}
55+
// use date for generating a random unique id which can be used as a par id
56+
const parUniqueId = Date.now();
57+
const createPreauthenticatedRequestDetails = {
58+
name: parUniqueId.toString(),
59+
objectName: filePath,
60+
accessType: os.models.CreatePreauthenticatedRequestDetails.AccessType.ObjectRead,
61+
timeExpires: neverExpires
62+
};
63+
const createPreauthenticatedRequest = {
64+
bucketName: bucketName,
65+
namespaceName: namespaceName,
66+
createPreauthenticatedRequestDetails: createPreauthenticatedRequestDetails
67+
};
68+
// create pre authenticated request to generate the url
69+
const resp = await client.createPreauthenticatedRequest(createPreauthenticatedRequest);
70+
const baseUrl = `https://${serviceName}.${regionId}.${secondLevelDomain}`;
71+
const downloadUrl = resp.preauthenticatedRequest.accessUri;
72+
console.log("download url for the file " + filePath + " is " + baseUrl + downloadUrl);
8073

74+
console.timeEnd(`Download Time ${filePath}`);
75+
} catch (error) {
76+
console.log("Error executing example " + error);
77+
}
8178
})();

examples/javascript/custom-retry.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
@param args Arguments to provide to the example. The following arguments are expected:
77
* <ul>
88
* <li>The first argument is the OCID of the tenancy.</li>
9-
* <li>The second argument is region.</li>
109
* </ul>
1110
*/
1211

@@ -16,20 +15,18 @@ const common = require("oci-common");
1615
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1716
const args = process.argv.slice(2);
1817
console.log(args);
19-
if (args.length !== 2) {
18+
if (args.length !== 1) {
2019
console.error(
2120
"Unexpected number of arguments received. Consult the script header comments for expected arguments"
2221
);
2322
process.exit(-1);
2423
}
2524

2625
const tenancyId = args[0];
27-
const region = args[1];
2826

2927
const identityClient = new identity.IdentityClient({
3028
authenticationDetailsProvider: provider
3129
});
32-
identityClient.regionId = region;
3330

3431
async function getAvailabilityDomain() {
3532
const request = {

examples/javascript/database.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
* <ul>
77
* <li>The first argument is the OCID of the tenancy.</li>
88
* <li>The second argument is the OCID of the compartment.</li>
9-
* <li>The third argument is region.</li>
10-
* <li>The fourth argument is new password for DB System.</li>
9+
* <li>The third argument is new password for DB System.</li>
1110
* </ul>
1211
*/
1312
const common = require("oci-common");
@@ -20,7 +19,7 @@ const provider = new common.ConfigFileAuthenticationDetailsProvider();
2019

2120
const args = process.argv.slice(2);
2221
console.log(args);
23-
if (args.length !== 4) {
22+
if (args.length !== 3) {
2423
console.error(
2524
"Unexpected number of arguments received. Consult the script header comments for expected arguments"
2625
);
@@ -29,8 +28,7 @@ if (args.length !== 4) {
2928

3029
const tenancyId = args[0];
3130
const compartmentId = args[1];
32-
const region = args[2];
33-
const adminPassword = args[3];
31+
const adminPassword = args[2];
3432

3533
let subnetId = null;
3634
let vcnId = null;
@@ -39,18 +37,14 @@ let dbSystemId = null;
3937
const virtualNetworkClient = new core.VirtualNetworkClient({
4038
authenticationDetailsProvider: provider
4139
});
42-
virtualNetworkClient.regionId = region;
4340

4441
const workRequestClient = new wr.WorkRequestClient({ authenticationDetailsProvider: provider });
45-
workRequestClient.regionId = region;
4642

4743
const virtualNetworkWaiter = virtualNetworkClient.createWaiters(workRequestClient);
4844

4945
const identityClient = new identity.IdentityClient({ authenticationDetailsProvider: provider });
50-
identityClient.regionId = region;
5146

5247
const databaseClient = new database.DatabaseClient({ authenticationDetailsProvider: provider });
53-
databaseClient.regionId = region;
5448
// databaseClient._defaultHeaders = { "opc-host-serial": "FakeHostSerial" };
5549

5650
const databaseWaiter = databaseClient.createWaiters(workRequestClient);

examples/javascript/delete.js

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,16 @@
1515
* </ul>
1616
*/
1717

18-
const os = require('oci-objectstorage');
19-
const common = require('oci-common');
20-
const { readdir } = require('fs');
18+
const os = require("oci-objectstorage");
19+
const common = require("oci-common");
20+
const { readdir } = require("fs");
2121

22-
const configurationFilePath = '~/.oci/config';
23-
const configProfile = 'DEFAULT';
24-
25-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
26-
configurationFilePath,
27-
configProfile
28-
);
22+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2923

3024
const args = process.argv.slice(2);
3125
if (args.length !== 3) {
3226
console.error(
33-
'Unexpected number of arguments received. Consult the script header comments for expected arguments'
27+
"Unexpected number of arguments received. Consult the script header comments for expected arguments"
3428
);
3529
process.exit(-1);
3630
}
@@ -39,25 +33,23 @@ const fileName = args[0]; // for eg : "download.jpg";
3933
const namespaceName = args[1];
4034
const bucketName = args[2];
4135

42-
4336
const client = new os.ObjectStorageClient({
44-
authenticationDetailsProvider: provider
37+
authenticationDetailsProvider: provider
4538
});
46-
client.region = common.Region.US_PHOENIX_1;
4739

4840
(async () => {
49-
try {
50-
// build delete object request
51-
const deleteObjectRequest = {
52-
bucketName: bucketName,
53-
namespaceName: namespaceName,
54-
objectName: fileName
55-
};
56-
// delete object
57-
const resp = await client.deleteObject(deleteObjectRequest);
58-
console.log(resp);
59-
console.log(`Deleted ${fileName}.`);
60-
} catch (ex) {
61-
console.error(`Failed due to ${ex}`);
62-
}
41+
try {
42+
// build delete object request
43+
const deleteObjectRequest = {
44+
bucketName: bucketName,
45+
namespaceName: namespaceName,
46+
objectName: fileName
47+
};
48+
// delete object
49+
const resp = await client.deleteObject(deleteObjectRequest);
50+
console.log(resp);
51+
console.log(`Deleted ${fileName}.`);
52+
} catch (ex) {
53+
console.error(`Failed due to ${ex}`);
54+
}
6355
})();

examples/javascript/filestorage.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ const identityClient = new identity.IdentityClient({
7373
});
7474
const workRequestClient = new wr.WorkRequestClient({ authenticationDetailsProvider: provider });
7575

76-
fsClient.regionId = "us-phoenix-1";
77-
vcnClient.regionId = "us-phoenix-1";
78-
identityClient.regionId = "us-phoenix-1";
79-
workRequestClient.regionId = "us-phoenix-1";
80-
8176
const filestorageWaiter = fsClient.createWaiters();
8277
const vcnWaiter = vcnClient.createWaiters(workRequestClient);
8378
let vcn;

0 commit comments

Comments
 (0)