Skip to content

Commit fa4a65b

Browse files
authored
Merge pull request #11 from oracle/release_2020-07-07
Releasing version 1.2.2
2 parents 9e8e817 + f75b901 commit fa4a65b

File tree

131 files changed

+936
-1380
lines changed

Some content is hidden

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

131 files changed

+936
-1380
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ 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.2.2 - 2020-07-07
7+
### Added
8+
- Support for registering and deregistering autonomous dedicated databases with Data Safe in the Database service
9+
- Support for switching between non-private-endpoints and private endpoints on autonomous databases in the Database service
10+
- Support for returning group names when listing identity provider groups in the Identity service
11+
- Support for server-side object re-encryption in the Object Storage service
12+
- Support for private endpoint (ingress) and public endpoint whitelisting in the Analytics Cloud service
13+
614
## 1.2.1 - 2020-06-30
715
### Added
816
- Support for the Usage service

examples/javascript/logging.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3+
* 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.
4+
*/
5+
6+
/*
7+
* This is an example shows how to integrate a logger with the SDK
8+
*/
9+
10+
var identity = require("oci-identity");
11+
var common = require("oci-common");
12+
var bunyan = require("bunyan");
13+
14+
// Integrate bunyan logger with the SDK. Make sure bunyan logger in installed.
15+
// You can integrate with log4js, winston or any other logger as well.
16+
var bunLog = bunyan.createLogger({ name: "LoggingExample", level: "debug" });
17+
common.LOG.logger = bunLog;
18+
19+
const configurationFilePath = "~/.oci/config";
20+
const configProfile = "DEFAULT";
21+
22+
const provider = new common.ConfigFileAuthenticationDetailsProvider(
23+
configurationFilePath,
24+
configProfile
25+
);
26+
27+
const tenancyId = {
28+
tenancyId: provider.getTenantId() || ""
29+
};
30+
31+
(async () => {
32+
const identityClient = new identity.IdentityClient({
33+
authenticationDetailsProvider: provider
34+
});
35+
const regions = await identityClient.listRegionSubscriptions(tenancyId);
36+
for (let i = 0; i < regions.items.length; i++) {
37+
console.log(`Region fetched ${regions.items[i].regionName}`);
38+
}
39+
})();

examples/typescript/audit.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3-
* 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.
4-
coding: utf-8
5-
This script retrieves all audit logs across an Oracle Cloud Infrastructure Tenancy.
1+
/**
2+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3+
* 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.
4+
*/
5+
6+
/* This script retrieves all audit logs across an Oracle Cloud Infrastructure Tenancy.
67
for a timespan defined by startTime and endTime.
78
This sample script retrieves Audit events for last 5 days.
89
This script will work at a tenancy level only.

examples/typescript/database.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/**
22
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
33
* 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.
4+
*/
45

5-
@param args Arguments to provide to the example. The following arguments are expected:
6+
/**
7+
* @param args Arguments to provide to the example. The following arguments are expected:
68
* <ul>
79
* <li>The first argument is the OCID of the tenancy.</li>
810
* <li>The second argument is the OCID of the compartment.</li>

examples/typescript/identity.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/**
22
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
33
* 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.
4-
5-
This is an example where we will create a new user, a new group and assign that user to the group
6-
We will then remove the user from the group, delete the group, delete the user.
4+
*/
5+
6+
/**
7+
* This is an example where we will create a new user, a new group and assign that user to the group
8+
* We will then remove the user from the group, delete the group, delete the user.
79
*/
810
import * as identity from "oci-identity";
911
import common = require("oci-common");

examples/typescript/launch_instance.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* 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.
44
*/
55

6-
/* @param args Arguments to provide to the example. The following arguments are expected:
6+
/**
7+
* @param args Arguments to provide to the example. The following arguments are expected:
78
* <ul>
89
* <li>The first argument is the OCID of the tenancy.</li>
910
* <li>The second argument is the OCID of the compartment.</li>

examples/typescript/logging.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/**
22
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
33
* 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.
4-
5-
This is an example shows how to integrate a logger with the SDK
4+
*/
5+
6+
/**
7+
* This is an example shows how to integrate a logger with the SDK
68
*/
79

810
var oci = require("oci-sdk");

examples/typescript/move-compartment.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* 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.
44
*/
55

6-
/*
7-
This script provides an example on how to move a compartment to a different compartment
8-
This script will:
9-
* create cp_source_TSSDK under tenancy
10-
* create cp_target_TSSDK under tenancy
11-
* move cp_source_TSSDK under cp_target_TSSDK
12-
*/
6+
/**
7+
* This script provides an example on how to move a compartment to a different compartment
8+
* This script will:
9+
* create cp_source_TSSDK under tenancy
10+
* create cp_target_TSSDK under tenancy
11+
* move cp_source_TSSDK under cp_target_TSSDK
12+
*/
1313

1414
import * as identity from "oci-identity";
1515
import common = require("oci-common");

examples/typescript/objectstorage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* 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.
44
*/
55

6-
/* @param args Arguments to provide to the example. The following arguments are expected:
6+
/**
7+
* @param args Arguments to provide to the example. The following arguments are expected:
78
* <ul>
89
* <li>The first argument is the OCID of the compartment.</li>
910
* <li>The second is the name of bucket to create and later fetch</li>

examples/typescript/streaming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/**
7-
* This example provides an example of basic streaming usage.
7+
* This example provides an example of basic streaming usage.
88
* - List streams
99
* - Get a stream
1010
* - Create a stream

0 commit comments

Comments
 (0)