Skip to content

Commit fb5945d

Browse files
authored
Merge pull request #19 from oracle/release_2020-08-18
Releasing version 1.5.1
2 parents 4c8236a + 5a1c70f commit fb5945d

File tree

73 files changed

+399
-60
lines changed

Some content is hidden

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

73 files changed

+399
-60
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+
## 1.5.1 - 2020-08-18
7+
### Added
8+
- Support for custom boot volume size and other node pool updates in the Container Engine for Kubernetes service
9+
- Support for Data Guard on Exadata Cloud at Customer VM clusters in the Database service
10+
- Support for stopping VM instances after scheduled maintenance or hypervisor reboots in the Compute service
11+
- Support for creating and managing private endpoints in the Data Flow service
12+
613
## 1.5.0 - 2020-08-11
714
### Added
815
- Support for autonomous json databases in the Database service

examples/javascript/objectstorage.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ client.region = common.Region.US_PHOENIX_1;
7171
// Create stream to upload
7272
const fileLocation = "/Users/File/location";
7373
const stats = fs.statSync(fileLocation);
74-
const objectData = fs.createReadStream(fileLocation);
74+
const nodeFsBlob = new os.NodeFSBlob(fileLocation, stats.size);
75+
const objectData = await nodeFsBlob.getData();
7576

7677
console.log("Bucket is created. Now adding object to the Bucket.");
7778
const putObjectRequest = {

examples/typescript/objectstorage.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import os = require("oci-objectstorage");
1616
import common = require("oci-common");
1717
import st = require("stream");
1818
import { createReadStream, statSync } from "fs";
19+
import { NodeFSBlob } from "oci-objectstorage";
1920

2021
const configurationFilePath = "~/.oci/config";
2122
const configProfile = "DEFAULT";
@@ -70,7 +71,8 @@ client.region = common.Region.US_PHOENIX_1;
7071
// Create read stream to file
7172
const fileLocation = "/Users/File/location";
7273
const stats = statSync(fileLocation);
73-
const objectData = createReadStream(fileLocation);
74+
const nodeFsBlob = new NodeFSBlob(fileLocation, stats.size);
75+
const objectData = await nodeFsBlob.getData();
7476

7577
console.log("Bucket is created. Now adding object to the Bucket.");
7678
const putObjectRequest: os.requests.PutObjectRequest = {

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.5.0",
3+
"version": "1.5.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": "1.5.0",
3+
"version": "1.5.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": "1.5.0",
3+
"version": "1.5.1",
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.5.0",
3+
"version": "1.5.1",
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.5.0",
3+
"version": "1.5.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": "1.5.0",
3+
"version": "1.5.1",
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.5.0",
3+
"version": "1.5.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": "1.5.0",
3+
"version": "1.5.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": "1.5.0",
3+
"version": "1.5.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": "1.5.0",
3+
"version": "1.5.1",
44
"description": "OCI NodeJS client for Cims ",
55
"repository": {
66
"type": "git",

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": "1.5.0",
3+
"version": "1.5.1",
44
"description": "OCI Common module for NodeJS",
55
"repository": {
66
"type": "git",

lib/containerengine/lib/model/create-node-pool-details.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface CreateNodePoolDetails {
3838
*/
3939
"kubernetesVersion": string;
4040
/**
41-
* A list of key/value pairs to add to each underlying OCI instance in the node pool.
41+
* A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.
4242
*/
4343
"nodeMetadata"?: { [key: string]: string };
4444
/**
@@ -62,7 +62,7 @@ export interface CreateNodePoolDetails {
6262
*/
6363
"initialNodeLabels"?: Array<model.KeyValue>;
6464
/**
65-
* The SSH public key to add to each node in the node pool.
65+
* The SSH public key on each node in the node pool on launch.
6666
*/
6767
"sshPublicKey"?: string;
6868
/**

lib/containerengine/lib/model/node-pool-summary.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,13 @@ export interface NodePoolSummary {
5252
*/
5353
"nodeImageName"?: string;
5454
/**
55-
* Source running on the nodes in the node pool.
55+
* Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool.
5656
*/
5757
"nodeSource"?: model.NodeSourceViaImageOption;
58+
/**
59+
* Source running on the nodes in the node pool.
60+
*/
61+
"nodeSourceDetails"?: model.NodeSourceViaImageDetails;
5862
/**
5963
* The name of the node shape of the nodes in the node pool.
6064
*/
@@ -64,7 +68,7 @@ export interface NodePoolSummary {
6468
*/
6569
"initialNodeLabels"?: Array<model.KeyValue>;
6670
/**
67-
* The SSH public key on each node in the node pool.
71+
* The SSH public key on each node in the node pool on launch.
6872
*/
6973
"sshPublicKey"?: string;
7074
/**
@@ -89,6 +93,9 @@ export namespace NodePoolSummary {
8993
"nodeSource": obj.nodeSource
9094
? model.NodeSourceOption.getJsonObj(obj.nodeSource)
9195
: undefined,
96+
"nodeSourceDetails": obj.nodeSourceDetails
97+
? model.NodeSourceDetails.getJsonObj(obj.nodeSourceDetails)
98+
: undefined,
9299

93100
"initialNodeLabels": obj.initialNodeLabels
94101
? obj.initialNodeLabels.map(item => {

lib/containerengine/lib/model/node-pool.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface NodePool {
4242
*/
4343
"kubernetesVersion"?: string;
4444
/**
45-
* A list of key/value pairs to add to each underlying OCI instance in the node pool.
45+
* A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.
4646
*/
4747
"nodeMetadata"?: { [key: string]: string };
4848
/**
@@ -56,9 +56,13 @@ export interface NodePool {
5656
*/
5757
"nodeImageName"?: string;
5858
/**
59-
* Source running on the nodes in the node pool.
59+
* Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool.
6060
*/
6161
"nodeSource"?: model.NodeSourceViaImageOption;
62+
/**
63+
* Source running on the nodes in the node pool.
64+
*/
65+
"nodeSourceDetails"?: model.NodeSourceViaImageDetails;
6266
/**
6367
* The name of the node shape of the nodes in the node pool.
6468
*/
@@ -68,7 +72,7 @@ export interface NodePool {
6872
*/
6973
"initialNodeLabels"?: Array<model.KeyValue>;
7074
/**
71-
* The SSH public key on each node in the node pool.
75+
* The SSH public key on each node in the node pool on launch.
7276
*/
7377
"sshPublicKey"?: string;
7478
/**
@@ -97,6 +101,9 @@ export namespace NodePool {
97101
"nodeSource": obj.nodeSource
98102
? model.NodeSourceOption.getJsonObj(obj.nodeSource)
99103
: undefined,
104+
"nodeSourceDetails": obj.nodeSourceDetails
105+
? model.NodeSourceDetails.getJsonObj(obj.nodeSourceDetails)
106+
: undefined,
100107

101108
"initialNodeLabels": obj.initialNodeLabels
102109
? obj.initialNodeLabels.map(item => {

lib/containerengine/lib/model/node-source-via-image-details.ts

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ export interface NodeSourceViaImageDetails extends model.NodeSourceDetails {
2525
* The OCID of the image used to boot the node.
2626
*/
2727
"imageId": string;
28+
/**
29+
* The size of the boot volume in GBs. Minimum value is 50 GB. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/Block/Concepts/bootvolumes.htm) for max custom boot volume sizing and OS-specific requirements.
30+
*/
31+
"bootVolumeSizeInGBs"?: number;
2832

2933
"sourceType": string;
3034
}

lib/containerengine/lib/model/update-node-pool-details.ts

+21
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ export interface UpdateNodePoolDetails {
5757
*
5858
*/
5959
"nodeConfigDetails"?: model.UpdateNodePoolNodeConfigDetails;
60+
/**
61+
* A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.
62+
*/
63+
"nodeMetadata"?: { [key: string]: string };
64+
/**
65+
* Specify the source to use to launch nodes in the node pool. Currently, image is the only supported source.
66+
*
67+
*/
68+
"nodeSourceDetails"?: model.NodeSourceViaImageDetails;
69+
/**
70+
* The SSH public key to add to each node in the node pool on launch.
71+
*/
72+
"sshPublicKey"?: string;
73+
/**
74+
* The name of the node shape of the nodes in the node pool used on launch.
75+
*/
76+
"nodeShape"?: string;
6077
}
6178

6279
export namespace UpdateNodePoolDetails {
@@ -72,6 +89,10 @@ export namespace UpdateNodePoolDetails {
7289

7390
"nodeConfigDetails": obj.nodeConfigDetails
7491
? model.UpdateNodePoolNodeConfigDetails.getJsonObj(obj.nodeConfigDetails)
92+
: undefined,
93+
94+
"nodeSourceDetails": obj.nodeSourceDetails
95+
? model.NodeSourceDetails.getJsonObj(obj.nodeSourceDetails)
7596
: undefined
7697
}
7798
};

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": "1.5.0",
3+
"version": "1.5.1",
44
"description": "OCI NodeJS client for Container Engine",
55
"repository": {
66
"type": "git",

lib/core/lib/model/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,16 @@ import * as InstanceAgentConfig from "./instance-agent-config";
348348
export import InstanceAgentConfig = InstanceAgentConfig.InstanceAgentConfig;
349349
import * as InstanceAgentFeatures from "./instance-agent-features";
350350
export import InstanceAgentFeatures = InstanceAgentFeatures.InstanceAgentFeatures;
351+
import * as InstanceAvailabilityConfig from "./instance-availability-config";
352+
export import InstanceAvailabilityConfig = InstanceAvailabilityConfig.InstanceAvailabilityConfig;
351353
import * as InstanceConfiguration from "./instance-configuration";
352354
export import InstanceConfiguration = InstanceConfiguration.InstanceConfiguration;
353355
import * as InstanceConfigurationAttachVnicDetails from "./instance-configuration-attach-vnic-details";
354356
export import InstanceConfigurationAttachVnicDetails = InstanceConfigurationAttachVnicDetails.InstanceConfigurationAttachVnicDetails;
355357
import * as InstanceConfigurationAttachVolumeDetails from "./instance-configuration-attach-volume-details";
356358
export import InstanceConfigurationAttachVolumeDetails = InstanceConfigurationAttachVolumeDetails.InstanceConfigurationAttachVolumeDetails;
359+
import * as InstanceConfigurationAvailabilityConfig from "./instance-configuration-availability-config";
360+
export import InstanceConfigurationAvailabilityConfig = InstanceConfigurationAvailabilityConfig.InstanceConfigurationAvailabilityConfig;
357361
import * as InstanceConfigurationBlockVolumeDetails from "./instance-configuration-block-volume-details";
358362
export import InstanceConfigurationBlockVolumeDetails = InstanceConfigurationBlockVolumeDetails.InstanceConfigurationBlockVolumeDetails;
359363
import * as InstanceConfigurationCreateVnicDetails from "./instance-configuration-create-vnic-details";
@@ -404,6 +408,8 @@ import * as Ipv6 from "./ipv6";
404408
export import Ipv6 = Ipv6.Ipv6;
405409
import * as LaunchInstanceAgentConfigDetails from "./launch-instance-agent-config-details";
406410
export import LaunchInstanceAgentConfigDetails = LaunchInstanceAgentConfigDetails.LaunchInstanceAgentConfigDetails;
411+
import * as LaunchInstanceAvailabilityConfigDetails from "./launch-instance-availability-config-details";
412+
export import LaunchInstanceAvailabilityConfigDetails = LaunchInstanceAvailabilityConfigDetails.LaunchInstanceAvailabilityConfigDetails;
407413
import * as LaunchInstanceDetails from "./launch-instance-details";
408414
export import LaunchInstanceDetails = LaunchInstanceDetails.LaunchInstanceDetails;
409415
import * as LaunchInstanceShapeConfigDetails from "./launch-instance-shape-config-details";
@@ -512,6 +518,8 @@ import * as UpdateImageDetails from "./update-image-details";
512518
export import UpdateImageDetails = UpdateImageDetails.UpdateImageDetails;
513519
import * as UpdateInstanceAgentConfigDetails from "./update-instance-agent-config-details";
514520
export import UpdateInstanceAgentConfigDetails = UpdateInstanceAgentConfigDetails.UpdateInstanceAgentConfigDetails;
521+
import * as UpdateInstanceAvailabilityConfigDetails from "./update-instance-availability-config-details";
522+
export import UpdateInstanceAvailabilityConfigDetails = UpdateInstanceAvailabilityConfigDetails.UpdateInstanceAvailabilityConfigDetails;
515523
import * as UpdateInstanceConfigurationDetails from "./update-instance-configuration-details";
516524
export import UpdateInstanceConfigurationDetails = UpdateInstanceConfigurationDetails.UpdateInstanceConfigurationDetails;
517525
import * as UpdateInstanceDetails from "./update-instance-details";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
* Core Services API
3+
* API covering the [Networking](/iaas/Content/Network/Concepts/overview.htm),
4+
[Compute](/iaas/Content/Compute/Concepts/computeoverview.htm), and
5+
[Block Volume](/iaas/Content/Block/Concepts/overview.htm) services. Use this API
6+
to manage resources such as virtual cloud networks (VCNs), compute instances, and
7+
block storage volumes.
8+
9+
* OpenAPI spec version: 20160918
10+
*
11+
*
12+
* NOTE: This class is auto generated by OracleSDKGenerator.
13+
* Do not edit the class manually.
14+
*
15+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
16+
* 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.
17+
*/
18+
19+
import * as model from "../model";
20+
import common = require("oci-common");
21+
22+
/**
23+
* Options for customers to define the general policy of how compute service perform maintenance on VM instances.
24+
*
25+
*/
26+
export interface InstanceAvailabilityConfig {
27+
/**
28+
* Actions customers can specify that would be applied to their instances after scheduled or unexpected host maintenance.
29+
* * `RESTORE_INSTANCE` - This would be the default action if recoveryAction is not set. VM instances
30+
* will be restored to the power state it was in before maintenance.
31+
* * `STOP_INSTANCE` - This action allow customers to have their VM instances be stopped after maintenance.
32+
*
33+
*/
34+
"recoveryAction"?: InstanceAvailabilityConfig.RecoveryAction;
35+
}
36+
37+
export namespace InstanceAvailabilityConfig {
38+
export enum RecoveryAction {
39+
RestoreInstance = "RESTORE_INSTANCE",
40+
StopInstance = "STOP_INSTANCE",
41+
/**
42+
* This value is used if a service returns a value for this enum that is not recognized by this
43+
* version of the SDK.
44+
*/
45+
UnknownValue = "UNKNOWN_VALUE"
46+
}
47+
48+
export function getJsonObj(obj: InstanceAvailabilityConfig): object {
49+
const jsonObj = { ...obj, ...{} };
50+
51+
return jsonObj;
52+
}
53+
}

0 commit comments

Comments
 (0)