Skip to content

Commit edd5b0f

Browse files
authored
Merge pull request #32 from oracle/release_2020-11-10
Releasing version 1.7.0
2 parents 0786310 + e5d6d72 commit edd5b0f

File tree

375 files changed

+8930
-1004
lines changed

Some content is hidden

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

375 files changed

+8930
-1004
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@ 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.7.0 - 2020-11-10
7+
### Added
8+
- Support for the 21C autonomous database version in the Database service
9+
- Support for creating a Data Guard association with a standby database from a database software image in the - Database service
10+
- Support for specifying a TDE wallet password when creating a database or database system in the Database service
11+
- Support for enabling access control lists for autonomous databases on Exadata Cloud At Customer in the Database - service
12+
- Support for private DNS resolvers, resolver endpoints, and views in the DNS service
13+
- Support for getting a VCN and resolver association in the Networking service
14+
- Support for additional parameters when updating subnets and VLANs in the Networking service
15+
- Support for analytics clusters (database accelerators) in the MySQL Database service
16+
- Support for migrations to Java Cloud Service and Oracle Weblogic Server instances that use existing databases in the Application Migration service
17+
- Support for specifying reserved IPs when creating load balancers in the Load Balancing service
18+
19+
20+
### Breaking
21+
- Updated the property of `lifecycleState` type from `string` to `model.MigrationLifecycleStates` from the model of `ListMigrationsRequest` in the application migration service
22+
- Updated the property of `lifecycleState` type from `string` to `model.SourceLifecycleStates` from the model of `ListSourcesRequest` in the application migration service
23+
624
## 1.6.3 - 2020-11-03
725
### Added
826
- Support for calling Oracle Cloud Infrastructure services in the uk-cardiff-1 region

examples/javascript/audit.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ const identity = require("oci-identity");
1414
const audit = require("oci-audit");
1515
const common = require("oci-common");
1616

17-
const configurationFilePath = "~/.oci/config";
18-
const configProfile = "DEFAULT";
19-
20-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
21-
configurationFilePath,
22-
configProfile
23-
);
17+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2418

2519
const compartmentId = provider.getTenantId() || "";
2620

examples/javascript/authentication.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
const common = require("oci-common");
7+
8+
/*
9+
* TODO: Fill in config path / profile with appropriate values to opt out of SDK
10+
* default config path / profile. (~/.oci/config & DEFAULT respectively.)
11+
*
12+
* NOTE: SDK, will revert to using default profile if required fields are not found from specified profile.
13+
*/
14+
const configurationFilePath = "<your_config_file_path>";
15+
const profile = "<your_config_profile_name>";
16+
17+
export const provider = new common.ConfigFileAuthenticationDetailsProvider(
18+
configurationFilePath,
19+
profile
20+
);

examples/javascript/circuit-breaker.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@
66
const common = require("oci-common");
77
const identity = require("oci-identity");
88
const audit = require("oci-audit");
9-
const configurationFilePath = "~/.oci/config";
10-
const configProfile = "DEFAULT";
119

1210
/* This script demostrates how to create a circuit breaker and share the circuit breaker among clients.
1311
*/
14-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
15-
configurationFilePath,
16-
configProfile
17-
);
12+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1813
const compartmentId = provider.getTenantId();
1914

2015
(async () => {

examples/javascript/containerengine-cluster.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ const identity = require("oci-identity");
99
const wr = require("oci-workrequests");
1010
const common = require("oci-common");
1111

12-
const configurationFilePath = "~/.oci/config";
13-
const configProfile = "DEFAULT";
14-
15-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
16-
configurationFilePath,
17-
configProfile
18-
);
12+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1913
/**
2014
* The entry point for the example.
2115
*

examples/javascript/custom-retry.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313
const identity = require("oci-identity");
1414
const common = require("oci-common");
1515

16-
const configurationFilePath = "~/.oci/config";
17-
const configProfile = "DEFAULT";
18-
19-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
20-
configurationFilePath,
21-
configProfile
22-
);
16+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2317
const args = process.argv.slice(2);
2418
console.log(args);
2519
if (args.length !== 2) {

examples/javascript/database.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ const core = require("oci-core");
1616
const identity = require("oci-identity");
1717
const wr = require("oci-workrequests");
1818

19-
const configurationFilePath = "~/.oci/config";
20-
const configProfile = "DEFAULT";
21-
22-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
23-
configurationFilePath,
24-
configProfile
25-
);
19+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2620

2721
const args = process.argv.slice(2);
2822
console.log(args);

examples/javascript/filestorage.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ const common = require("oci-common");
1111

1212
const randomNumber = require("random-number-csprng");
1313

14-
const configurationFilePath = "~/.oci/config";
15-
const configProfile = "DEFAULT";
16-
17-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
18-
configurationFilePath,
19-
configProfile
20-
);
14+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2115

2216
/**
2317
* This file provides an example of how to use the File Storage service in the SDK for TypeScript.

examples/javascript/identity.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@
66
const common = require("oci-common");
77
const identity = require("oci-identity");
88

9-
const configurationFilePath = "~/.oci/config";
10-
const configProfile = "DEFAULT";
11-
12-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
13-
configurationFilePath,
14-
configProfile
15-
);
9+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1610

1711
const tenancyId = {
1812
tenancyId: provider.getTenantId() || ""

examples/javascript/invoke-function.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ const core = require("oci-core");
88
const identity = require("oci-identity");
99
const common = require("oci-common");
1010

11-
const configurationFilePath = "~/.oci/config";
12-
const configProfile = "DEFAULT";
13-
14-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
15-
configurationFilePath,
16-
configProfile
17-
);
11+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1812

1913
/**
2014
* This is a basic example of how to register and invoke a serverless Function

examples/javascript/keymanagement.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@
66
const kms = require("oci-keymanagement");
77
const common = require("oci-common");
88

9-
const configurationFilePath = "~/.oci/config";
10-
const configProfile = "DEFAULT";
11-
12-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
13-
configurationFilePath,
14-
configProfile
15-
);
9+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1610

1711
/* These examples assume you already have a Vault in ACTIVE state. If you need to create a new Vault, please
1812
* refer to the createVaultTest method in this file. Please keep in mind that KMS does not support immediate
@@ -116,16 +110,16 @@ kmsVaultClient.region = common.Region.US_PHOENIX_1;
116110
// After scheduling deletion, the Key will stay in SCHEDULING_DELETION state shortly and then
117111
// transit to PENDING_DELETION state. Wait a bit for the transition to happen.
118112
console.log("Wait a bit for the deletion scheduling to finish");
119-
delay(TRANSIENT_STATE_WAIT_TIME_MS);
113+
await delay(TRANSIENT_STATE_WAIT_TIME_MS);
120114

121115
await cancelKeyDetetionTest(kmsManagementClient, keyId);
122116
// After cancelling deletion, the Key will stay in CANCELLING_DELETION state shortly and then
123117
// transit to Enabled state. Wait a bit for the transition to happen.
124118
console.log("Wait a bit for the deletion cancelling to finish");
125-
delay(TRANSIENT_STATE_WAIT_TIME_MS);
119+
await delay(TRANSIENT_STATE_WAIT_TIME_MS);
126120

127121
await createKeyVersionTest(kmsManagementClient, keyId);
128-
delay(TRANSIENT_STATE_WAIT_TIME_MS);
122+
await delay(TRANSIENT_STATE_WAIT_TIME_MS);
129123
await listKeyVersionsTest(kmsManagementClient, keyId);
130124

131125
// Crypto Operations

examples/javascript/launch_instance.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ const identity = require("oci-identity");
1616
const wr = require("oci-workrequests");
1717
const common = require("oci-common");
1818

19-
const configurationFilePath = "~/.oci/config";
20-
const configProfile = "DEFAULT";
21-
22-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
23-
configurationFilePath,
24-
configProfile
25-
);
19+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2620
const args = process.argv.slice(2);
2721
console.log(args);
2822
if (args.length !== 3) {

examples/javascript/loadbalancer-ruleset.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@
66
const lb = require("oci-loadbalancer");
77
const common = require("oci-common");
88

9-
const configurationFilePath = "~/.oci/config";
10-
const configProfile = "DEFAULT";
11-
12-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
13-
configurationFilePath,
14-
configProfile
15-
);
9+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1610

1711
/**
1812
* Please refer to https://docs.cloud.oracle.com/iaas/api/#/en/loadbalancer/latest/RuleSet/CreateRuleSet

examples/javascript/logging.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ var bunyan = require("bunyan");
1515
// You can integrate with log4js, winston or any other logger as well.
1616
var bunLog = bunyan.createLogger({ name: "LoggingExample", level: "debug" });
1717
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-
);
18+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2619

2720
const tenancyId = {
2821
tenancyId: provider.getTenantId() || ""

examples/javascript/monitoring-alarm.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@
66
const mt = require("oci-monitoring");
77
const common = require("oci-common");
88

9-
const configurationFilePath = "~/.oci/config";
10-
const configProfile = "DEFAULT";
11-
12-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
13-
configurationFilePath,
14-
configProfile
15-
);
9+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1610
/**
1711
* This class demonstrates how to use the Monitoring api in the SDK for TypeScript. This will cover:
1812
*

examples/javascript/monitoring-post-metric.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@
1515
const mt = require("oci-monitoring");
1616
const common = require("oci-common");
1717

18-
const configurationFilePath = "~/.oci/config";
19-
const configProfile = "DEFAULT";
20-
21-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
22-
configurationFilePath,
23-
configProfile
24-
);
18+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2519

2620
const args = process.argv.slice(1);
2721
console.log(args);

examples/javascript/move-compartment.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@
1313

1414
const identity = require("oci-identity");
1515
const common = require("oci-common");
16-
const configurationFilePath = "~/.oci/config";
17-
const configProfile = "DEFAULT";
1816

19-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
20-
configurationFilePath,
21-
configProfile
22-
);
17+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2318

2419
const compartmentId = provider.getTenantId() || "";
2520

examples/javascript/objectstorage.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,7 @@ const os = require("oci-objectstorage");
1717
const common = require("oci-common");
1818
const fs = require("fs");
1919

20-
const configurationFilePath = "~/.oci/config";
21-
const configProfile = "DEFAULT";
22-
23-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
24-
configurationFilePath,
25-
configProfile
26-
);
27-
20+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2821
const args = process.argv.slice(2);
2922
console.log(args);
3023
if (args.length !== 3) {

examples/javascript/pagination.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@
55

66
const identity = require("oci-identity");
77
const common = require("oci-common");
8-
const configurationFilePath = "~/.oci/config";
9-
const configProfile = "DEFAULT";
108

11-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
12-
configurationFilePath,
13-
configProfile
14-
);
9+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1510

1611
const compartmentId = provider.getTenantId() || "";
1712

examples/javascript/raw-request.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ const promise = require("es6-promise");
88
require("isomorphic-fetch");
99
promise.polyfill();
1010

11-
const configurationFilePath = "~/.oci/config";
12-
const configProfile = "DEFAULT";
13-
14-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
15-
configurationFilePath,
16-
configProfile
17-
);
11+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1812

1913
const userID = "<INSERT_SAMPLE_USER_OCID_HERE>";
2014
(async () => {

examples/javascript/resourceresearch.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@
55

66
const resourceSearch = require("oci-resourcesearch");
77
const common = require("oci-common");
8-
const configurationFilePath = "~/.oci/config";
9-
const configProfile = "DEFAULT";
108

11-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
12-
configurationFilePath,
13-
configProfile
14-
);
9+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1510
// import ResourceSearchClient from "../../../../target/lib/resourcesearch/lib/client.js";
1611
let searchClient;
1712

examples/javascript/streaming.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222

2323
const st = require("oci-streaming");
2424
const common = require("oci-common");
25-
const configurationFilePath = "~/.oci/config";
26-
const profile = "DEFAULT";
2725

28-
const provider = new common.ConfigFileAuthenticationDetailsProvider(configurationFilePath, profile);
26+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
2927
const args = process.argv.slice(2);
3028
console.log(args);
3129
if (args.length !== 1) {

examples/javascript/tagging.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ const identity = require("oci-identity");
77
const common = require("oci-common");
88
const core = require("oci-core");
99

10-
const configurationFilePath = "~/.oci/config";
11-
const configProfile = "DEFAULT";
12-
13-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
14-
configurationFilePath,
15-
configProfile
16-
);
10+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
1711

1812
(async () => {
1913
const compartmentId = provider.getTenantId() || "";

examples/javascript/uploadmanager.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,7 @@ const { basename, join } = require("path");
2525
// import { readdir } from "fs";
2626
const { readdir } = require("fs");
2727

28-
const configurationFilePath = "~/.oci/config";
29-
const configProfile = "DEFAULT";
30-
31-
const provider = new common.ConfigFileAuthenticationDetailsProvider(
32-
configurationFilePath,
33-
configProfile
34-
);
28+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
3529
/*
3630
* This Sample take directory path as a commandline argument and
3731
* uploads all the files present in te directory to objectstorage using upload manager.

0 commit comments

Comments
 (0)