Skip to content

Commit 7501140

Browse files
authored
Merge pull request #30 from oracle/release_2020-10-27
Releasing version 1.6.2
2 parents 0da532c + 5f8a371 commit 7501140

File tree

163 files changed

+4069
-139
lines changed

Some content is hidden

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

163 files changed

+4069
-139
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ 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.6.2 - 2020-10-27
7+
### Added
8+
- Support for the Compute Instance Agent service
9+
- Support for key store resources and operations in the Database service
10+
- Support for specifying a key store when creating autonomous container databases in the Database service
11+
612
## 1.6.1 - 2020-10-20
713
### Added
814
- Support for the Operations Insights service

examples/javascript/monitoring-post-metric.js

+26-20
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* 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.
44
*/
55

6-
/* @param args Arguments to provide to the example. The following arguments are expected:
6+
/* @param args Arguments to provide to the example. The following arguments are expected:
77
* <ul>
88
* <li>The first argument is the OCID of the compartment.</li>
99
* </ul>
1010
* Refer https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/MetricData/PostMetricData for more details.
11-
* This example uses phoenix metric endpoint https://telemetry-ingestion.us-phoenix-1.oraclecloud.com
11+
* This example uses phoenix metric endpoint https://telemetry-ingestion.us-phoenix-1.oraclecloud.com
1212
* we can change this to a different region (refer https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/).
1313
*/
1414

@@ -42,48 +42,54 @@ monitoringClient.endpoint = "https://telemetry-ingestion.us-phoenix-1.oracleclou
4242

4343
(async () => {
4444
try {
45-
4645
var datenow = new Date();
4746
var dateutc = new Date(datenow.toUTCString());
4847
/* The timestamp datapoint format used is defined by RFC3339.
4948
https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/datatypes/Datapoint
5049
*/
5150

52-
const MetricDataDetails = [{
51+
const MetricDataDetails = [
52+
{
5353
"namespace": "<your_namespace_here>",
5454
"resourceGroup": "<your_resourcegroup_here>",
5555
"compartmentId": compartmentId,
5656
"name": "<your_name_of_the_metric_here>",
5757
"dimensions": {
58-
"appName": "<your_dimensions>",
59-
"podName": "<your_dimensions>"
58+
"appName": "<your_dimensions>",
59+
"podName": "<your_dimensions>"
6060
},
6161
"metadata": {
62-
"unit": "count",
63-
"displayName": "<your_display_name>"
62+
"unit": "count",
63+
"displayName": "<your_display_name>"
6464
},
65-
"datapoints": [{
65+
"datapoints": [
66+
{
6667
"timestamp": dateutc,
67-
"value": "<your_datapoint_value>",
68-
"count": "<your_datapoint_count>"
69-
}
70-
]
71-
}]
68+
"value": 1,
69+
"count": 1
70+
}
71+
]
72+
}
73+
];
7274

7375
const PostMetricDataDetails = {
74-
"metricData" : MetricDataDetails
75-
}
76+
"metricData": MetricDataDetails
77+
};
7678

7779
const PostMetricDataRequest = {
7880
"postMetricDataDetails": PostMetricDataDetails
7981
};
8082

81-
const post_response = await monitoringClient.postMetricData(PostMetricDataRequest);
83+
const post_response = await monitoringClient.postMetricData(PostMetricDataRequest);
8284
//console.log("Retrieved :" + response.postMetricDataResponseDetails.failedMetricsCount);
8385

84-
console.log("Successfully posted custom metric with name: %s to namespace: %s in region: %s",MetricDataDetails[0].name,MetricDataDetails[0].namespace,common.Region.US_PHOENIX_1._regionId )
85-
86+
console.log(
87+
"Successfully posted custom metric with name: %s to namespace: %s in region: %s",
88+
MetricDataDetails[0].name,
89+
MetricDataDetails[0].namespace,
90+
common.Region.US_PHOENIX_1._regionId
91+
);
8692
} catch (error) {
8793
console.log(" Not able to run post metric monitoring example. Error: " + error);
8894
}
89-
})();
95+
})();

examples/javascript/objectstorage.js

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* <li>The second is the name of bucket to create and later fetch</li>
1010
* <li>The third is the name of object to create inside bucket</li>
1111
* </ul>
12+
* Note: there is a 2GB for 64-bit machine and 1GB for 32-bit machine buffer limitation from the NodeJS V8 Engine
13+
* Cannot upload file size greater than the limit
1214
*/
1315

1416
const os = require("oci-objectstorage");

examples/javascript/uploadmanager.js

+14
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
* 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.
44
*/
55

6+
/*
7+
* This Sample take directory path as a commandline argument and
8+
* uploads all the files present in te directory to objectstorage using upload manager.
9+
*
10+
* @param args Arguments to provide to the example. The following arguments are expected:
11+
* <ul>
12+
* <li>The first argument is the absloute directory path to read files from.</li>
13+
* <li>The second argument is the namespaceName</li>
14+
* <li>The third argument is the name of an existing bucket to uplod object</li>
15+
* </ul>
16+
* NodeJS V8 Engine have a buffer size limitation, 2GB for 64-bit machine and 1GB for 32-bit machine.
17+
* Do not pass in a partSize option greater than the buffer size limitation.
18+
*/
19+
620
const common = require("oci-common");
721
const os = require("oci-objectstorage");
822

examples/typescript/monitoring-post-metric.ts

+25-20
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* 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.
44
*/
55

6-
/* @param args Arguments to provide to the example. The following arguments are expected:
6+
/* @param args Arguments to provide to the example. The following arguments are expected:
77
* <ul>
88
* <li>The first argument is the OCID of the compartment.</li>
99
* </ul>
1010
* Refer https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/MetricData/PostMetricData for more details.
11-
* This example uses phoenix metric endpoint https://telemetry-ingestion.us-phoenix-1.oraclecloud.com
11+
* This example uses phoenix metric endpoint https://telemetry-ingestion.us-phoenix-1.oraclecloud.com
1212
* we can change this to a different region (refer https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/).
1313
*/
1414

@@ -43,48 +43,53 @@ monitoringClient.endpoint = "https://telemetry-ingestion.us-phoenix-1.oracleclou
4343

4444
(async () => {
4545
try {
46-
4746
var datenow = new Date();
4847
var dateutc = new Date(datenow.toUTCString());
4948
/* The timestamp datapoint format used is defined by RFC3339.
5049
https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/datatypes/Datapoint
5150
*/
5251

53-
const MetricDataDetails: Array<mt.models.MetricDataDetails> = [{
52+
const MetricDataDetails: Array<mt.models.MetricDataDetails> = [
53+
{
5454
namespace: "<your_namespace_here>",
5555
resourceGroup: "<your_resourcegroup_here>",
5656
compartmentId: compartmentId,
5757
name: "<your_name_of_the_metric_here>",
5858
dimensions: {
59-
"appName": "<your_dimensions>",
60-
"podName": "<your_dimensions>"
59+
"appName": "<your_dimensions>",
60+
"podName": "<your_dimensions>"
6161
},
6262
metadata: {
63-
"unit": "count",
64-
"displayName": "<your_display_name>"
63+
"unit": "count",
64+
"displayName": "<your_display_name>"
6565
},
66-
datapoints: [{
66+
datapoints: [
67+
{
6768
"timestamp": dateutc,
68-
"value": "<your_datapoint_value>",
69-
"count": "<your_datapoint_count>"
70-
}
71-
]
72-
}]
69+
"value": 1,
70+
"count": 1
71+
}
72+
]
73+
}
74+
];
7375

7476
const PostMetricDataDetails: mt.models.PostMetricDataDetails = {
75-
metricData : MetricDataDetails
76-
}
77+
metricData: MetricDataDetails
78+
};
7779

7880
const PostMetricDataRequest: mt.requests.PostMetricDataRequest = {
7981
postMetricDataDetails: PostMetricDataDetails
8082
};
8183

82-
const response = await monitoringClient.postMetricData(PostMetricDataRequest);
84+
const response = await monitoringClient.postMetricData(PostMetricDataRequest);
8385
//console.log("Retrieved :" + response.postMetricDataResponseDetails.failedMetricsCount);
8486

85-
console.log("Successfully posted custom metric with name: %s to namespace: %s ",MetricDataDetails[0].name,MetricDataDetails[0].namespace )
86-
87+
console.log(
88+
"Successfully posted custom metric with name: %s to namespace: %s ",
89+
MetricDataDetails[0].name,
90+
MetricDataDetails[0].namespace
91+
);
8792
} catch (error) {
8893
console.log(" Not able to run post metric monitoring example. Error: " + error);
8994
}
90-
})();
95+
})();

examples/typescript/objectstorage.ts

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* <li>The second is the name of bucket to create and later fetch</li>
1111
* <li>The third is the name of object to create inside bucket</li>
1212
* </ul>
13+
* Note: there is a 2GB for 64-bit machine and 1GB for 32-bit machine buffer limitation from the NodeJS V8 Engine
14+
* Cannot upload file size greater than the limit
1315
*/
1416

1517
import os = require("oci-objectstorage");

examples/typescript/uploadmanager.ts

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ const provider: common.ConfigFileAuthenticationDetailsProvider = new common.Conf
2626
* <li>The second argument is the namespaceName</li>
2727
* <li>The third argument is the name of an existing bucket to uplod object</li>
2828
* </ul>
29+
* NodeJS V8 Engine have a buffer size limitation, 2GB for 64-bit machine and 1GB for 32-bit machine.
30+
* Do not pass in a partSize option greater than the buffer size limitation.
2931
*/
3032

3133
const args = process.argv.slice(2);

index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,4 @@ export import managementdashboard = require("oci-managementdashboard");
145145
export import sch = require("oci-sch");
146146
export import cloudguard = require("oci-cloudguard");
147147
export import opsi = require("oci-opsi");
148+
export import computeinstanceagent = require("oci-computeinstanceagent");

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": "1.6.1",
3+
"version": "1.6.2",
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": "1.6.1",
3+
"version": "1.6.2",
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": "1.6.1",
3+
"version": "1.6.2",
44
"description": "OCI NodeJS client for API gateway 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": "1.6.1",
3+
"version": "1.6.2",
44
"description": "OCI NodeJS client for Application Migration 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": "1.6.1",
3+
"version": "1.6.2",
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": "1.6.1",
3+
"version": "1.6.2",
44
"description": "OCI NodeJS client for Autoscaling 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": "1.6.1",
3+
"version": "1.6.2",
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": "1.6.1",
3+
"version": "1.6.2",
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": "1.6.1",
3+
"version": "1.6.2",
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": "1.6.1",
3+
"version": "1.6.2",
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": "1.6.1",
3+
"version": "1.6.2",
44
"description": "OCI NodeJS client for Cloud Guard Service",
55
"repository": {
66
"type": "git",

lib/common/lib/auth/auth.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import { Region } from "../region";
77
import AbstractAuthenticationDetailsProvider from "./models/abstract-authentication-details-provider";
8+
import { ConfigAccumulator } from "../config-file-reader";
89

910
/**
1011
* An interface provides the authentication details.
@@ -90,7 +91,8 @@ export class SimpleAuthenticationDetailsProvider
9091
private passphrase: string | null,
9192
private region?: Region,
9293
private authType?: string | undefined,
93-
private delegationToken?: string | undefined
94+
private delegationToken?: string | undefined,
95+
private profileCredentials?: ConfigAccumulator | undefined
9496
) {}
9597

9698
/**
@@ -169,4 +171,8 @@ export class SimpleAuthenticationDetailsProvider
169171
public getDelegationToken(): string | undefined {
170172
return this.delegationToken;
171173
}
174+
175+
public getProfileCredentials(): ConfigAccumulator | undefined {
176+
return this.profileCredentials;
177+
}
172178
}

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

+11-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
RegionProvider
1010
} from "./auth";
1111
import { checkNotNull } from "../utils";
12-
import { ConfigFileReader, ConfigFile } from "../config-file-reader";
12+
import { ConfigFileReader, ConfigFile, ConfigAccumulator } from "../config-file-reader";
1313
import { readFileSync } from "fs";
1414
import { Region } from "../region";
1515
import { Realm } from "../realm";
@@ -100,13 +100,18 @@ export class ConfigFileAuthenticationDetailsProvider
100100
const pemFilePath = checkNotNull(file.get("key_file"), "missing key_file in config");
101101
const passPhrase = file.get("pass_phrase");
102102
const privateKey = this.getPvtKey(ConfigFileReader.expandUserHome(pemFilePath));
103+
const profileCredentials = file.profileCredentials;
104+
103105
return new SimpleAuthenticationDetailsProvider(
104106
tenantId,
105107
user,
106108
fingerprint,
107109
privateKey,
108110
passPhrase,
109-
region
111+
region,
112+
undefined,
113+
undefined,
114+
profileCredentials
110115
);
111116
}
112117

@@ -188,4 +193,8 @@ export class ConfigFileAuthenticationDetailsProvider
188193
public getDelegationToken(): string | undefined {
189194
return this.delegate.getDelegationToken();
190195
}
196+
197+
public getProfileCredentials(): ConfigAccumulator | undefined {
198+
return this.delegate.getProfileCredentials();
199+
}
191200
}

0 commit comments

Comments
 (0)