diff --git a/CHANGELOG.md b/CHANGELOG.md index e6e5ed7bcf..977cf92c29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 1.2.2 - 2020-07-07 +### Added +- Support for registering and deregistering autonomous dedicated databases with Data Safe in the Database service +- Support for switching between non-private-endpoints and private endpoints on autonomous databases in the Database service +- Support for returning group names when listing identity provider groups in the Identity service +- Support for server-side object re-encryption in the Object Storage service +- Support for private endpoint (ingress) and public endpoint whitelisting in the Analytics Cloud service + ## 1.2.1 - 2020-06-30 ### Added - Support for the Usage service diff --git a/examples/javascript/logging.js b/examples/javascript/logging.js new file mode 100644 index 0000000000..1ce7ab7d5e --- /dev/null +++ b/examples/javascript/logging.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +/* + * This is an example shows how to integrate a logger with the SDK + */ + +var identity = require("oci-identity"); +var common = require("oci-common"); +var bunyan = require("bunyan"); + +// Integrate bunyan logger with the SDK. Make sure bunyan logger in installed. +// You can integrate with log4js, winston or any other logger as well. +var bunLog = bunyan.createLogger({ name: "LoggingExample", level: "debug" }); +common.LOG.logger = bunLog; + +const configurationFilePath = "~/.oci/config"; +const configProfile = "DEFAULT"; + +const provider = new common.ConfigFileAuthenticationDetailsProvider( + configurationFilePath, + configProfile +); + +const tenancyId = { + tenancyId: provider.getTenantId() || "" +}; + +(async () => { + const identityClient = new identity.IdentityClient({ + authenticationDetailsProvider: provider + }); + const regions = await identityClient.listRegionSubscriptions(tenancyId); + for (let i = 0; i < regions.items.length; i++) { + console.log(`Region fetched ${regions.items[i].regionName}`); + } +})(); diff --git a/examples/typescript/audit.ts b/examples/typescript/audit.ts index 4607ec5d45..5af56d7241 100644 --- a/examples/typescript/audit.ts +++ b/examples/typescript/audit.ts @@ -1,8 +1,9 @@ -/* - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. - * 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. - coding: utf-8 - This script retrieves all audit logs across an Oracle Cloud Infrastructure Tenancy. +/** + * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +/* This script retrieves all audit logs across an Oracle Cloud Infrastructure Tenancy. for a timespan defined by startTime and endTime. This sample script retrieves Audit events for last 5 days. This script will work at a tenancy level only. diff --git a/examples/typescript/database.ts b/examples/typescript/database.ts index 2f0e30e857..282aefcaf0 100644 --- a/examples/typescript/database.ts +++ b/examples/typescript/database.ts @@ -1,8 +1,10 @@ /** * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * 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. + */ - @param args Arguments to provide to the example. The following arguments are expected: +/** + * @param args Arguments to provide to the example. The following arguments are expected: *