From f75b901a4df4bdf0788e5f8322bed9ec1dfc67d8 Mon Sep 17 00:00:00 2001 From: jyotisaini Date: Tue, 7 Jul 2020 18:17:30 +0000 Subject: [PATCH] Releasing version 1.2.2 --- CHANGELOG.md | 8 + examples/javascript/logging.js | 39 ++ examples/typescript/audit.ts | 11 +- examples/typescript/database.ts | 4 +- examples/typescript/identity.ts | 8 +- examples/typescript/launch_instance.ts | 3 +- examples/typescript/logging.ts | 6 +- examples/typescript/move-compartment.ts | 14 +- examples/typescript/objectstorage.ts | 3 +- examples/typescript/streaming.ts | 2 +- examples/typescript/tagging.ts | 5 +- lib/analytics/lib/client.ts | 67 +++ .../lib/model/analytics-instance-summary.ts | 7 +- lib/analytics/lib/model/analytics-instance.ts | 7 +- ...ytics-instance-network-endpoint-details.ts | 39 ++ .../create-analytics-instance-details.ts | 7 +- lib/analytics/lib/model/index.ts | 13 + .../lib/model/network-endpoint-details.ts | 48 ++ .../lib/model/network-endpoint-type.ts} | 31 +- .../lib/model/private-endpoint-details.ts | 49 ++ .../lib/model/public-endpoint-details.ts | 55 ++ lib/analytics/lib/model/sort-by.ts | 1 + .../lib/model/virtual-cloud-network.ts} | 36 +- .../lib/model/work-request-action-result.ts | 1 + .../lib/model/work-request-operation-type.ts | 1 + ...tics-instance-network-endpoint-request.ts} | 27 +- lib/analytics/lib/request/index.ts | 2 + ...ics-instance-network-endpoint-response.ts} | 15 +- lib/analytics/lib/response/index.ts | 2 + lib/analytics/package.json | 2 +- lib/announcementsservice/package.json | 2 +- lib/apigateway/package.json | 2 +- lib/applicationmigration/package.json | 2 +- lib/audit/package.json | 2 +- lib/autoscaling/package.json | 2 +- lib/bds/package.json | 2 +- lib/budget/package.json | 2 +- lib/cims/package.json | 2 +- lib/common/package.json | 2 +- lib/containerengine/package.json | 2 +- lib/core/lib/client.ts | 499 +----------------- .../accept-local-peering-token-details.ts | 39 -- ...nnect-local-peering-connections-details.ts | 39 -- ...create-local-peering-connection-details.ts | 46 -- lib/core/lib/model/index.ts | 12 - .../lib/model/local-peering-connection.ts | 114 ---- .../lib/model/local-peering-token-details.ts | 39 -- ...update-local-peering-connection-details.ts | 38 -- .../accept-local-peering-token-request.ts | 26 - ...nnect-local-peering-connections-request.ts | 32 -- ...delete-local-peering-connection-request.ts | 29 - .../generate-local-peering-token-request.ts | 22 - .../get-local-peering-connection-request.ts | 22 - lib/core/lib/request/index.ts | 16 - .../lib/request/launch-instance-request.ts | 5 - .../list-local-peering-connections-request.ts | 41 -- ...update-local-peering-connection-request.ts | 33 -- .../accept-local-peering-token-response.ts | 24 - ...reate-local-peering-connection-response.ts | 33 -- ...elete-local-peering-connection-response.ts | 24 - lib/core/lib/response/index.ts | 16 - ...list-local-peering-connections-response.ts | 35 -- lib/core/lib/virtualnetwork-waiter.ts | 38 -- lib/core/package.json | 2 +- lib/database/lib/client.ts | 10 + .../lib/model/autonomous-database-summary.ts | 2 +- lib/database/lib/model/autonomous-database.ts | 2 +- .../model/create-autonomous-database-base.ts | 2 +- ...r-autonomous-database-data-safe-details.ts | 35 ++ lib/database/lib/model/index.ts | 4 + ...r-autonomous-database-data-safe-details.ts | 35 ++ .../update-autonomous-database-details.ts | 18 + ...r-autonomous-database-data-safe-request.ts | 4 + ...r-autonomous-database-data-safe-request.ts | 4 + lib/database/package.json | 2 +- lib/datacatalog/package.json | 2 +- lib/dataflow/package.json | 2 +- lib/dataintegration/package.json | 2 +- lib/datasafe/package.json | 2 +- lib/datascience/package.json | 2 +- lib/dns/package.json | 2 +- lib/dts/package.json | 2 +- lib/email/package.json | 2 +- lib/events/package.json | 2 +- lib/filestorage/package.json | 2 +- lib/functions/package.json | 2 +- lib/healthchecks/package.json | 2 +- lib/identity/lib/client.ts | 22 +- .../bulk-action-resource-type-collection.ts | 4 +- .../lib/model/bulk-action-resource-type.ts | 8 +- .../lib/model/bulk-action-resource.ts | 31 +- .../model/identity-provider-group-summary.ts | 4 + ...list-bulk-action-resource-types-request.ts | 2 +- lib/identity/package.json | 2 +- lib/integration/package.json | 2 +- lib/keymanagement/package.json | 2 +- lib/limits/package.json | 2 +- lib/loadbalancer/package.json | 2 +- lib/marketplace/package.json | 2 +- lib/monitoring/package.json | 2 +- lib/mysql/package.json | 2 +- lib/nosql/package.json | 2 +- lib/objectstorage/lib/client.ts | 73 +++ lib/objectstorage/lib/model/index.ts | 4 + .../lib/model/reencrypt-object-details.ts | 63 +++ .../lib/model/s-se-customer-key-details.ts | 53 ++ .../lib/request/copy-object-request.ts | 12 +- .../create-multipart-upload-request.ts | 6 +- .../lib/request/get-object-request.ts | 6 +- .../lib/request/head-object-request.ts | 6 +- lib/objectstorage/lib/request/index.ts | 2 + .../lib/request/put-object-request.ts | 6 +- .../lib/request/reencrypt-object-request.ts | 45 ++ .../lib/request/upload-part-request.ts | 6 +- lib/objectstorage/lib/response/index.ts | 2 + .../response/reencrypt-object-response.ts} | 14 +- lib/objectstorage/package.json | 2 +- lib/oce/package.json | 2 +- lib/ocvp/package.json | 2 +- lib/oda/package.json | 2 +- lib/ons/package.json | 2 +- lib/osmanagement/package.json | 2 +- lib/resourcemanager/package.json | 2 +- lib/resourcesearch/package.json | 2 +- lib/secrets/package.json | 2 +- lib/streaming/package.json | 2 +- lib/usageapi/package.json | 2 +- lib/vault/package.json | 2 +- lib/waas/package.json | 2 +- lib/workrequests/package.json | 2 +- package.json | 2 +- 131 files changed, 936 insertions(+), 1380 deletions(-) create mode 100644 examples/javascript/logging.js create mode 100644 lib/analytics/lib/model/change-analytics-instance-network-endpoint-details.ts create mode 100644 lib/analytics/lib/model/network-endpoint-details.ts rename lib/{core/lib/response/connect-local-peering-connections-response.ts => analytics/lib/model/network-endpoint-type.ts} (51%) create mode 100644 lib/analytics/lib/model/private-endpoint-details.ts create mode 100644 lib/analytics/lib/model/public-endpoint-details.ts rename lib/{core/lib/response/update-local-peering-connection-response.ts => analytics/lib/model/virtual-cloud-network.ts} (53%) rename lib/{core/lib/request/create-local-peering-connection-request.ts => analytics/lib/request/change-analytics-instance-network-endpoint-request.ts} (52%) rename lib/{core/lib/response/get-local-peering-connection-response.ts => analytics/lib/response/change-analytics-instance-network-endpoint-response.ts} (71%) delete mode 100644 lib/core/lib/model/accept-local-peering-token-details.ts delete mode 100644 lib/core/lib/model/connect-local-peering-connections-details.ts delete mode 100644 lib/core/lib/model/create-local-peering-connection-details.ts delete mode 100644 lib/core/lib/model/local-peering-connection.ts delete mode 100644 lib/core/lib/model/local-peering-token-details.ts delete mode 100644 lib/core/lib/model/update-local-peering-connection-details.ts delete mode 100644 lib/core/lib/request/accept-local-peering-token-request.ts delete mode 100644 lib/core/lib/request/connect-local-peering-connections-request.ts delete mode 100644 lib/core/lib/request/delete-local-peering-connection-request.ts delete mode 100644 lib/core/lib/request/generate-local-peering-token-request.ts delete mode 100644 lib/core/lib/request/get-local-peering-connection-request.ts delete mode 100644 lib/core/lib/request/list-local-peering-connections-request.ts delete mode 100644 lib/core/lib/request/update-local-peering-connection-request.ts delete mode 100644 lib/core/lib/response/accept-local-peering-token-response.ts delete mode 100644 lib/core/lib/response/create-local-peering-connection-response.ts delete mode 100644 lib/core/lib/response/delete-local-peering-connection-response.ts delete mode 100644 lib/core/lib/response/list-local-peering-connections-response.ts create mode 100644 lib/database/lib/model/deregister-autonomous-database-data-safe-details.ts create mode 100644 lib/database/lib/model/register-autonomous-database-data-safe-details.ts create mode 100644 lib/objectstorage/lib/model/reencrypt-object-details.ts create mode 100644 lib/objectstorage/lib/model/s-se-customer-key-details.ts create mode 100644 lib/objectstorage/lib/request/reencrypt-object-request.ts rename lib/{core/lib/response/generate-local-peering-token-response.ts => objectstorage/lib/response/reencrypt-object-response.ts} (72%) 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: *