Skip to content

Commit 3c94150

Browse files
authored
Releasing version 2.0.1
Releasing version 2.0.1
2 parents 7339e69 + 179403f commit 3c94150

File tree

148 files changed

+2086
-135
lines changed

Some content is hidden

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

148 files changed

+2086
-135
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ 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.0.1 - 2021-07-27
7+
### Added
8+
- Support for filtering by tag on capacity planning and SQL warehouse list operations in the Operations Insights service
9+
- Support for creating cross-region autonomous data guards in the Database service
10+
- Support for the customer contacts feature on cloud exadata infrastructure in the Database service
11+
- Support for cost analysis custom tables in the Usage service
12+
613
## 2.0.0 - 2021-07-20
714
### Added
815
- Support for schedules, schedule tasks, REST tasks, operators, S3, and Fusion Apps in the Data Integration service

lib/aianomalydetection/package.json

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

lib/ailanguage/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-ailanguage",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Ai Language Service",
55
"repository": {
66
"type": "git",

lib/analytics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-analytics",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Analytics Service",
55
"repository": {
66
"type": "git",

lib/announcementsservice/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-announcementsservice",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Announcement Service",
55
"repository": {
66
"type": "git",

lib/apigateway/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apigateway",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for API gateway service",
55
"repository": {
66
"type": "git",

lib/apmcontrolplane/package.json

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

lib/apmsynthetics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmsynthetics",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Apm Synthetics Service",
55
"repository": {
66
"type": "git",

lib/apmtraces/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmtraces",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Apm Traces Service",
55
"repository": {
66
"type": "git",

lib/applicationmigration/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-applicationmigration",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Application Migration service",
55
"repository": {
66
"type": "git",

lib/artifacts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-artifacts",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Artifacts Service",
55
"repository": {
66
"type": "git",

lib/audit/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-audit",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Audit Service",
55
"repository": {
66
"type": "git",

lib/autoscaling/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-autoscaling",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Autoscaling Service",
55
"repository": {
66
"type": "git",

lib/bastion/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-bastion",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Bastion Service",
55
"repository": {
66
"type": "git",

lib/bds/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-bds",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for BDS Service",
55
"repository": {
66
"type": "git",

lib/blockchain/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-blockchain",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Blockchain Service",
55
"repository": {
66
"type": "git",

lib/budget/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-budget",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Budget Service",
55
"repository": {
66
"type": "git",

lib/cims/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cims",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Cims ",
55
"repository": {
66
"type": "git",

lib/cloudguard/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-cloudguard",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Cloud Guard Service",
55
"repository": {
66
"type": "git",

lib/common/lib/request-generator.ts

+14
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ function stringify(queryParams?: Params): string {
120120
qs = Object.keys(queryParams)
121121
.map(function(key) {
122122
let value = queryParams[key];
123+
if (Array.isArray(value)) {
124+
let formatter = encoderforArrayFormat();
125+
return (value as Array<any>).reduce(formatter(key), []).join("&");
126+
}
123127
// Format Date Object to RFC3339 timestamp string.
124128
if (Object.prototype.toString.call(value) === "[object Date]" && value instanceof Date) {
125129
return key + "=" + formatDateToRFC3339(value);
@@ -132,3 +136,13 @@ function stringify(queryParams?: Params): string {
132136
}
133137
return qs;
134138
}
139+
140+
function encoderforArrayFormat() {
141+
return (key: any) => (result: any, value: any) => {
142+
if (value === undefined || value === null || value === "") {
143+
return result;
144+
}
145+
146+
return [...result, [key, "=", value].join("")];
147+
};
148+
}

lib/common/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-common",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI Common module for NodeJS",
55
"repository": {
66
"type": "git",

lib/common/tests/node-request-generator.spec.ts

+20
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ describe("Test Request Generator ", () => {
1515
};
1616

1717
const queryParams = { "imageId": "test" };
18+
const definedTagQueryParams = {
19+
"imageId": "test",
20+
"definedTagEquals": ["namespace1.key.val", "namespace1.key.val2", "namespace2.key.val"],
21+
"freeformTagEquals": ["ff1key.val", "ff2key.val"]
22+
};
1823

1924
const headerParams = {
2025
"opc-request-id": "test-request-id",
@@ -173,4 +178,19 @@ describe("Test Request Generator ", () => {
173178
});
174179
expect(sdkRequest.headers.get("opc-retry-token")).equals("retryToken");
175180
});
181+
182+
it("should create correct url for definedTags query params", async function() {
183+
const sdkRequest = await composeRequest({
184+
baseEndpoint: "http://test-end-point/20191002",
185+
defaultHeaders: {},
186+
path: "/testUrl/{testId}/actions",
187+
method: "POST",
188+
pathParams: pathParams,
189+
headerParams: headerParams,
190+
queryParams: definedTagQueryParams
191+
});
192+
expect(sdkRequest.uri).equals(
193+
"http://test-end-point/20191002/testUrl/Test-Id/actions?imageId=test&definedTagEquals=namespace1.key.val&definedTagEquals=namespace1.key.val2&definedTagEquals=namespace2.key.val&freeformTagEquals=ff1key.val&freeformTagEquals=ff2key.val"
194+
);
195+
});
176196
});

lib/computeinstanceagent/package.json

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

lib/containerengine/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-containerengine",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Container Engine",
55
"repository": {
66
"type": "git",

lib/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-core",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "OCI NodeJS client for Core",
55
"repository": {
66
"type": "git",

lib/database/lib/client.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -5908,7 +5908,7 @@ Oracle recommends that you use the `performFinalBackup` parameter to back up any
59085908
}
59095909

59105910
/**
5911-
* Initiates a failover the specified Autonomous Database to a standby.
5911+
* Initiates a failover the specified Autonomous Database to a standby. To perform a failover to a standby located in a remote region, specify the [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the remote standby using the `peerDbId` parameter.
59125912
*
59135913
* @param FailOverAutonomousDatabaseRequest
59145914
* @return FailOverAutonomousDatabaseResponse
@@ -5924,7 +5924,9 @@ Oracle recommends that you use the `performFinalBackup` parameter to back up any
59245924
"{autonomousDatabaseId}": failOverAutonomousDatabaseRequest.autonomousDatabaseId
59255925
};
59265926

5927-
const queryParams = {};
5927+
const queryParams = {
5928+
"peerDbId": failOverAutonomousDatabaseRequest.peerDbId
5929+
};
59285930

59295931
let headerParams = {
59305932
"Content-Type": common.Constants.APPLICATION_JSON,
@@ -15600,7 +15602,7 @@ A switchover incurs no data loss.
1560015602
}
1560115603

1560215604
/**
15603-
* Initiates a switchover of the specified Autonomous Database to the associated standby database. Applicable only to databases with Autonomous Data Guard enabled.
15605+
* Initiates a switchover of the specified Autonomous Database to the associated standby database. Applicable only to databases with Autonomous Data Guard enabled. To perform a switchover to a standby located in a remote region, specify the [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the remote standby using the `peerDbId` parameter.
1560415606
*
1560515607
* @param SwitchoverAutonomousDatabaseRequest
1560615608
* @return SwitchoverAutonomousDatabaseResponse
@@ -15616,7 +15618,9 @@ A switchover incurs no data loss.
1561615618
"{autonomousDatabaseId}": switchoverAutonomousDatabaseRequest.autonomousDatabaseId
1561715619
};
1561815620

15619-
const queryParams = {};
15621+
const queryParams = {
15622+
"peerDbId": switchoverAutonomousDatabaseRequest.peerDbId
15623+
};
1562015624

1562115625
let headerParams = {
1562215626
"Content-Type": common.Constants.APPLICATION_JSON,

lib/database/lib/model/autonomous-container-database-dataguard-association.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface AutonomousContainerDatabaseDataguardAssociation {
3030
*/
3131
"autonomousContainerDatabaseId": string;
3232
/**
33-
* The Data Guard role of the Autonomous Container Database, if Autonomous Data Guard is enabled.
33+
* The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
3434
*
3535
*/
3636
"role": AutonomousContainerDatabaseDataguardAssociation.Role;
@@ -53,7 +53,7 @@ export interface AutonomousContainerDatabaseDataguardAssociation {
5353
*/
5454
"peerAutonomousContainerDatabaseId"?: string;
5555
/**
56-
* The Data Guard role of the Autonomous Container Database, if Autonomous Data Guard is enabled.
56+
* The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
5757
*
5858
*/
5959
"peerRole": AutonomousContainerDatabaseDataguardAssociation.PeerRole;

lib/database/lib/model/autonomous-database-dataguard-association.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface AutonomousDatabaseDataguardAssociation {
3232
*/
3333
"autonomousDatabaseId": string;
3434
/**
35-
* The Data Guard role of the Autonomous Container Database, if Autonomous Data Guard is enabled.
35+
* The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
3636
*
3737
*/
3838
"role": AutonomousDatabaseDataguardAssociation.Role;
@@ -46,7 +46,7 @@ export interface AutonomousDatabaseDataguardAssociation {
4646
*/
4747
"lifecycleDetails"?: string;
4848
/**
49-
* The Data Guard role of the Autonomous Container Database, if Autonomous Data Guard is enabled.
49+
* The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
5050
*
5151
*/
5252
"peerRole": AutonomousDatabaseDataguardAssociation.PeerRole;

lib/database/lib/model/autonomous-database-standby-summary.ts

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export interface AutonomousDatabaseStandbySummary {
3232
* Additional information about the current lifecycle state.
3333
*/
3434
"lifecycleDetails"?: string;
35+
/**
36+
* The date and time the Autonomous Data Guard role was switched for the standby Autonomous Database.
37+
*/
38+
"timeDataGuardRoleChanged"?: Date;
3539
}
3640

3741
export namespace AutonomousDatabaseStandbySummary {

lib/database/lib/model/autonomous-database-summary.ts

+31-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ For an update operation, if you want to delete all the IPs in the ACL, use an ar
340340
"failedDataRecoveryInSeconds"?: number;
341341
"standbyDb"?: model.AutonomousDatabaseStandbySummary;
342342
/**
343-
* The Data Guard role of the Autonomous Container Database, if Autonomous Data Guard is enabled.
343+
* The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.
344344
*
345345
*/
346346
"role"?: AutonomousDatabaseSummary.Role;
@@ -356,10 +356,30 @@ For an update operation, if you want to delete all the IPs in the ACL, use an ar
356356
* The wallet name for Oracle Key Vault.
357357
*/
358358
"keyStoreWalletName"?: string;
359+
/**
360+
* The list of regions that support the creation of Autonomous Data Guard standby database.
361+
*/
362+
"supportedRegionsToCloneTo"?: Array<string>;
359363
/**
360364
* Customer Contacts.
361365
*/
362366
"customerContacts"?: Array<model.CustomerContact>;
367+
/**
368+
* The date and time that Autonomous Data Guard was enabled for an Autonomous Database where the standby was provisioned in the same region as the primary database.
369+
*/
370+
"timeLocalDataGuardEnabled"?: Date;
371+
/**
372+
* The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Databases on shared Exadata infrastructure, Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Data Guard association, and cannot be performed when the database using the \"primary\" role is operating in a remote Data Guard standby region.```
373+
*/
374+
"dataguardRegionType"?: AutonomousDatabaseSummary.DataguardRegionType;
375+
/**
376+
* The date and time the Autonomous Data Guard role was switched for the Autonomous Database. For databases that have standbys in both the primary Data Guard region and a remote Data Guard standby region, this is the latest timestamp of either the database using the \"primary\" role in the primary Data Guard region, or database located in the remote Data Guard standby region.
377+
*/
378+
"timeDataGuardRoleChanged"?: Date;
379+
/**
380+
* The list of [OCIDs](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of standby databases located in Autonomous Data Guard remote regions that are associated with the source database. Note that for shared Exadata infrastructure, standby databases located in the same region as the source primary database do not have OCIDs.
381+
*/
382+
"peerDbIds"?: Array<string>;
363383
}
364384

365385
export namespace AutonomousDatabaseSummary {
@@ -501,6 +521,16 @@ export namespace AutonomousDatabaseSummary {
501521
UnknownValue = "UNKNOWN_VALUE"
502522
}
503523

524+
export enum DataguardRegionType {
525+
PrimaryDgRegion = "PRIMARY_DG_REGION",
526+
RemoteStandbyDgRegion = "REMOTE_STANDBY_DG_REGION",
527+
/**
528+
* This value is used if a service returns a value for this enum that is not recognized by this
529+
* version of the SDK.
530+
*/
531+
UnknownValue = "UNKNOWN_VALUE"
532+
}
533+
504534
export function getJsonObj(obj: AutonomousDatabaseSummary): object {
505535
const jsonObj = {
506536
...obj,

0 commit comments

Comments
 (0)