Skip to content

Commit 2f98cc0

Browse files
authored
Releasing version 2.6.1
Releasing version 2.6.1
2 parents 56d547a + f01e469 commit 2f98cc0

File tree

291 files changed

+13790
-314
lines changed

Some content is hidden

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

291 files changed

+13790
-314
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ 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+
## 2.6.1 - 2021-11-02
7+
### Added
8+
- Support for the Database Tools service
9+
- Support for scan listener port TCP and TCP SSL on cloud VM clusters in the Database service
10+
- Support for domains in the Identity service
11+
- Support for redeemable users and support rewards in the Usage service
12+
- Support for calling Oracle Cloud Infrastructure services in the ap-singapore-1 and eu-marseille-1 regions
13+
14+
### Changed
15+
- Endpoint for Identity service changed to include `.oci` subdomain
16+
617
## 2.6.0 - 2021-10-26
718
### Added
819
- Support for the Source Code Management service

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,4 @@ export import datalabelingservicedataplane = require("oci-datalabelingservicedat
172172
export import waf = require("oci-waf");
173173
export import certificates = require("oci-certificates");
174174
export import certificatesmanagement = require("oci-certificatesmanagement");
175+
export import databasetools = require("oci-databasetools");

lib/aianomalydetection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aianomalydetection",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Ai Anomaly Detection Service",
55
"repository": {
66
"type": "git",

lib/ailanguage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-ailanguage",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Ai Language Service",
55
"repository": {
66
"type": "git",

lib/analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-analytics",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Analytics Service",
55
"repository": {
66
"type": "git",

lib/announcementsservice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-announcementsservice",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Announcement Service",
55
"repository": {
66
"type": "git",

lib/apigateway/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apigateway",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for API gateway service",
55
"repository": {
66
"type": "git",

lib/apmconfig/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmconfig",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Apm Config Service",
55
"repository": {
66
"type": "git",

lib/apmcontrolplane/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmcontrolplane",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Apm Control Plane Service",
55
"repository": {
66
"type": "git",

lib/apmsynthetics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmsynthetics",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Apm Synthetics Service",
55
"repository": {
66
"type": "git",

lib/apmtraces/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmtraces",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Apm Traces Service",
55
"repository": {
66
"type": "git",

lib/applicationmigration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-applicationmigration",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Application Migration service",
55
"repository": {
66
"type": "git",

lib/artifacts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-artifacts",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Artifacts Service",
55
"repository": {
66
"type": "git",

lib/audit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-audit",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Audit Service",
55
"repository": {
66
"type": "git",

lib/autoscaling/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-autoscaling",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Autoscaling Service",
55
"repository": {
66
"type": "git",

lib/bastion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-bastion",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Bastion Service",
55
"repository": {
66
"type": "git",

lib/bds/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-bds",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for BDS Service",
55
"repository": {
66
"type": "git",

lib/blockchain/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-blockchain",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Blockchain Service",
55
"repository": {
66
"type": "git",

lib/budget/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-budget",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Budget Service",
55
"repository": {
66
"type": "git",

lib/certificates/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-certificates",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Certificates Service",
55
"repository": {
66
"type": "git",

lib/certificatesmanagement/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-certificatesmanagement",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Certificates Management Service",
55
"repository": {
66
"type": "git",

lib/cims/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cims",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Cims ",
55
"repository": {
66
"type": "git",

lib/cloudguard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cloudguard",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Cloud Guard Service",
55
"repository": {
66
"type": "git",

lib/common/lib/auth/config-file-auth.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,27 @@ export class ConfigFileAuthenticationDetailsProvider
5050
retrieveRegionFromRegionId(regionId: string): Region {
5151
let region: Region;
5252
try {
53-
return (region = Region.fromRegionId(regionId));
53+
region = Region.fromRegionId(regionId);
54+
if (!region) {
55+
console.warn(
56+
`Found regionId ${regionId} in config file, but not supported by this version of the SDK`
57+
);
58+
const fallbackSecondLevelDomain = process.env["OCI_DEFAULT_REALM"];
59+
// Before defaulting to Realm.OC1, check if user defined a second level domain for unknown region fallback.
60+
// If so, create a dummy realm with the second level domain set from the env.OCI_DEFAULT_REALM. Else default to OC1 realm.
61+
if (fallbackSecondLevelDomain) {
62+
console.warn(`Falling back to using second level domain: ${fallbackSecondLevelDomain}`);
63+
const unknownRealm = Realm.register("unknown", fallbackSecondLevelDomain);
64+
region = Region.register(regionId, unknownRealm);
65+
} else {
66+
// Proceed by assuming the region id in the config file belongs to OC1 realm.
67+
console.warn(`Falling back to using OC1 realm.`);
68+
region = Region.register(regionId, Realm.OC1);
69+
}
70+
}
71+
return region;
5472
} catch (e) {
55-
console.warn(
56-
`Found regionId ${regionId} in config file, but not supported by this version of the SDK`
57-
);
58-
// Proceed by assuming the region id in the config file belongs to OC1 realm.
59-
return (region = Region.register(regionId, Realm.OC1));
73+
throw new Error(`Error from retrying to retrieve region from regionId: ${e}`);
6074
}
6175
}
6276

lib/common/lib/circuit-breaker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default class CircuitBreaker {
7373
public static DefaultCircuitBreakerOverriden = false;
7474

7575
private static DefaultConfiguration: CircuitBreakerOptions = {
76-
timeout: 600000, // If our function takes longer than 60 minutes, trigger a failure
76+
timeout: 3600000, // If our function takes longer than 60 minutes, trigger a failure
7777
errorThresholdPercentage: 80, // When 80% of requests fail, trip the circuit
7878
resetTimeout: 30000, // After 30 seconds, try again.
7979
rollingCountTimeout: 120000,

lib/common/lib/endpoint-builder.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,19 @@ export class EndpointBuilder {
2020
public static createEndpointFromRegionId(template: string, regionId: string): string {
2121
const region = Region.fromRegionId(regionId);
2222
if (region) return EndpointBuilder.createEndpointFromRegion(template, region);
23-
24-
console.log(`Unknown regionId [${regionId}], Assuming its in default Realm OC1`);
25-
const defaultRealm = Realm.OC1;
23+
// If regionId does not return a known region, check to see if there is a fallback second level domain from env.OCI_DEFAULT_REALM
24+
// If no fallback for second level domain, default it to OC1's second level domain.
25+
const fallbackSecondLevelDomain = process.env["OCI_DEFAULT_REALM"];
26+
let secondLevelDomain = fallbackSecondLevelDomain
27+
? fallbackSecondLevelDomain
28+
: Realm.OC1.secondLevelDomain;
29+
console.log(
30+
`Unknown regionId [${regionId}], falling back to using ${secondLevelDomain} as the second level domain.`
31+
);
2632
return EndpointBuilder.createEndpointFromRegionIdAndSecondLevelDomain(
2733
template,
2834
regionId,
29-
defaultRealm.secondLevelDomain
35+
secondLevelDomain
3036
);
3137
}
3238

lib/common/lib/region.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ export class Region {
8383
public static SA_SANTIAGO_1: Region = Region.register("sa-santiago-1", Realm.OC1, "scl");
8484
public static SA_VINHEDO_1: Region = Region.register("sa-vinhedo-1", Realm.OC1, "vcp");
8585
public static IL_JERUSALEM_1: Region = Region.register("il-jerusalem-1", Realm.OC1, "mtz");
86+
public static EU_MARSEILLE_1: Region = Region.register("eu-marseille-1", Realm.OC1, "mrs");
87+
public static AP_SINGAPORE_1: Region = Region.register("ap-singapore-1", Realm.OC1, "sin");
8688

8789
// OC2
8890
public static US_LANGLEY_1: Region = Region.register("us-langley-1", Realm.OC2, "lfi");

lib/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-common",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI Common module for NodeJS",
55
"repository": {
66
"type": "git",

lib/common/tests/resources/regions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,17 @@
196196
"realmDomainComponent": "oraclecloud.com",
197197
"regionIdentifier": "il-jerusalem-1",
198198
"realmKey": "oc1"
199+
},
200+
{
201+
"regionKey": "mrs",
202+
"realmDomainComponent": "oraclecloud.com",
203+
"regionIdentifier": "eu-marseille-1",
204+
"realmKey": "oc1"
205+
},
206+
{
207+
"regionKey": "sin",
208+
"realmDomainComponent": "oraclecloud.com",
209+
"regionIdentifier": "ap-singapore-1",
210+
"realmKey": "oc1"
199211
}
200212
]

lib/computeinstanceagent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-computeinstanceagent",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Compute Instance Agent Service",
55
"repository": {
66
"type": "git",

lib/containerengine/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-containerengine",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Container Engine",
55
"repository": {
66
"type": "git",

lib/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-core",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Core",
55
"repository": {
66
"type": "git",

lib/database/lib/model/cloud-vm-cluster-summary.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ Example: `{\"Department\": \"Finance\"}`
213213
*
214214
*/
215215
"zoneId"?: string;
216+
/**
217+
* The TCP Single Client Access Name (SCAN) port. The default port is 1521. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
218+
*/
219+
"scanListenerPortTcp"?: number;
220+
/**
221+
* The TCPS Single Client Access Name (SCAN) port. The default port is 2484. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
222+
*/
223+
"scanListenerPortTcpSsl"?: number;
216224
}
217225

218226
export namespace CloudVmClusterSummary {

lib/database/lib/model/cloud-vm-cluster.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,14 @@ Example: `{\"Department\": \"Finance\"}`
214214
*
215215
*/
216216
"zoneId"?: string;
217+
/**
218+
* The TCP Single Client Access Name (SCAN) port. The default port is 1521. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
219+
*/
220+
"scanListenerPortTcp"?: number;
221+
/**
222+
* The TCPS Single Client Access Name (SCAN) port. The default port is 2484. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
223+
*/
224+
"scanListenerPortTcpSsl"?: number;
217225
}
218226

219227
export namespace CloudVmCluster {

lib/database/lib/model/create-cloud-vm-cluster-details.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ The maximum length of the combined hostname and domain is 63 characters.
109109
*
110110
*/
111111
"timeZone"?: string;
112+
/**
113+
* The TCP Single Client Access Name (SCAN) port. The default port is 1521. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
114+
*/
115+
"scanListenerPortTcp"?: number;
116+
/**
117+
* The TCPS Single Client Access Name (SCAN) port. The default port is 2484. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
118+
*/
119+
"scanListenerPortTcpSsl"?: number;
112120
/**
113121
* A list of the [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that this resource belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see [Security Rules](https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
114122
* **NsgIds restrictions:**

lib/database/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-database",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Database",
55
"repository": {
66
"type": "git",

lib/databasemanagement/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-databasemanagement",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Database Management Service",
55
"repository": {
66
"type": "git",

lib/databasemigration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-databasemigration",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "OCI NodeJS client for Database Migration Service",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)