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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 26 additions & 20 deletions
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 14 additions & 0 deletions
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

Lines changed: 25 additions & 20 deletions
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

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": "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

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": "1.6.1",
3+
"version": "1.6.2",
44
"description": "OCI NodeJS client for Announcement Service",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)