Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/).

## 1.5.1 - 2020-08-18
### Added
- Support for custom boot volume size and other node pool updates in the Container Engine for Kubernetes service
- Support for Data Guard on Exadata Cloud at Customer VM clusters in the Database service
- Support for stopping VM instances after scheduled maintenance or hypervisor reboots in the Compute service
- Support for creating and managing private endpoints in the Data Flow service

## 1.5.0 - 2020-08-11
### Added
- Support for autonomous json databases in the Database service
Expand Down
3 changes: 2 additions & 1 deletion examples/javascript/objectstorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ client.region = common.Region.US_PHOENIX_1;
// Create stream to upload
const fileLocation = "/Users/File/location";
const stats = fs.statSync(fileLocation);
const objectData = fs.createReadStream(fileLocation);
const nodeFsBlob = new os.NodeFSBlob(fileLocation, stats.size);
const objectData = await nodeFsBlob.getData();

console.log("Bucket is created. Now adding object to the Bucket.");
const putObjectRequest = {
Expand Down
4 changes: 3 additions & 1 deletion examples/typescript/objectstorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import os = require("oci-objectstorage");
import common = require("oci-common");
import st = require("stream");
import { createReadStream, statSync } from "fs";
import { NodeFSBlob } from "oci-objectstorage";

const configurationFilePath = "~/.oci/config";
const configProfile = "DEFAULT";
Expand Down Expand Up @@ -70,7 +71,8 @@ client.region = common.Region.US_PHOENIX_1;
// Create read stream to file
const fileLocation = "/Users/File/location";
const stats = statSync(fileLocation);
const objectData = createReadStream(fileLocation);
const nodeFsBlob = new NodeFSBlob(fileLocation, stats.size);
const objectData = await nodeFsBlob.getData();

console.log("Bucket is created. Now adding object to the Bucket.");
const putObjectRequest: os.requests.PutObjectRequest = {
Expand Down
2 changes: 1 addition & 1 deletion lib/analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-analytics",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for Analytics Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/announcementsservice/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-announcementsservice",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for Announcement Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/apigateway/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-apigateway",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for API gateway service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/applicationmigration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-applicationmigration",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for Application Migration service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/audit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-audit",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for Audit Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/autoscaling/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-autoscaling",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for Autoscaling Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/bds/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-bds",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for BDS Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/blockchain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-blockchain",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for Blockchain Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/budget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-budget",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for Budget Service",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/cims/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-cims",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for Cims ",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion lib/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-common",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI Common module for NodeJS",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions lib/containerengine/lib/model/create-node-pool-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface CreateNodePoolDetails {
*/
"kubernetesVersion": string;
/**
* A list of key/value pairs to add to each underlying OCI instance in the node pool.
* A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.
*/
"nodeMetadata"?: { [key: string]: string };
/**
Expand All @@ -62,7 +62,7 @@ export interface CreateNodePoolDetails {
*/
"initialNodeLabels"?: Array<model.KeyValue>;
/**
* The SSH public key to add to each node in the node pool.
* The SSH public key on each node in the node pool on launch.
*/
"sshPublicKey"?: string;
/**
Expand Down
11 changes: 9 additions & 2 deletions lib/containerengine/lib/model/node-pool-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ export interface NodePoolSummary {
*/
"nodeImageName"?: string;
/**
* Source running on the nodes in the node pool.
* Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool.
*/
"nodeSource"?: model.NodeSourceViaImageOption;
/**
* Source running on the nodes in the node pool.
*/
"nodeSourceDetails"?: model.NodeSourceViaImageDetails;
/**
* The name of the node shape of the nodes in the node pool.
*/
Expand All @@ -64,7 +68,7 @@ export interface NodePoolSummary {
*/
"initialNodeLabels"?: Array<model.KeyValue>;
/**
* The SSH public key on each node in the node pool.
* The SSH public key on each node in the node pool on launch.
*/
"sshPublicKey"?: string;
/**
Expand All @@ -89,6 +93,9 @@ export namespace NodePoolSummary {
"nodeSource": obj.nodeSource
? model.NodeSourceOption.getJsonObj(obj.nodeSource)
: undefined,
"nodeSourceDetails": obj.nodeSourceDetails
? model.NodeSourceDetails.getJsonObj(obj.nodeSourceDetails)
: undefined,

"initialNodeLabels": obj.initialNodeLabels
? obj.initialNodeLabels.map(item => {
Expand Down
13 changes: 10 additions & 3 deletions lib/containerengine/lib/model/node-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface NodePool {
*/
"kubernetesVersion"?: string;
/**
* A list of key/value pairs to add to each underlying OCI instance in the node pool.
* A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.
*/
"nodeMetadata"?: { [key: string]: string };
/**
Expand All @@ -56,9 +56,13 @@ export interface NodePool {
*/
"nodeImageName"?: string;
/**
* Source running on the nodes in the node pool.
* Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool.
*/
"nodeSource"?: model.NodeSourceViaImageOption;
/**
* Source running on the nodes in the node pool.
*/
"nodeSourceDetails"?: model.NodeSourceViaImageDetails;
/**
* The name of the node shape of the nodes in the node pool.
*/
Expand All @@ -68,7 +72,7 @@ export interface NodePool {
*/
"initialNodeLabels"?: Array<model.KeyValue>;
/**
* The SSH public key on each node in the node pool.
* The SSH public key on each node in the node pool on launch.
*/
"sshPublicKey"?: string;
/**
Expand Down Expand Up @@ -97,6 +101,9 @@ export namespace NodePool {
"nodeSource": obj.nodeSource
? model.NodeSourceOption.getJsonObj(obj.nodeSource)
: undefined,
"nodeSourceDetails": obj.nodeSourceDetails
? model.NodeSourceDetails.getJsonObj(obj.nodeSourceDetails)
: undefined,

"initialNodeLabels": obj.initialNodeLabels
? obj.initialNodeLabels.map(item => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export interface NodeSourceViaImageDetails extends model.NodeSourceDetails {
* The OCID of the image used to boot the node.
*/
"imageId": string;
/**
* 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.
*/
"bootVolumeSizeInGBs"?: number;

"sourceType": string;
}
Expand Down
21 changes: 21 additions & 0 deletions lib/containerengine/lib/model/update-node-pool-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,23 @@ export interface UpdateNodePoolDetails {
*
*/
"nodeConfigDetails"?: model.UpdateNodePoolNodeConfigDetails;
/**
* A list of key/value pairs to add to each underlying OCI instance in the node pool on launch.
*/
"nodeMetadata"?: { [key: string]: string };
/**
* Specify the source to use to launch nodes in the node pool. Currently, image is the only supported source.
*
*/
"nodeSourceDetails"?: model.NodeSourceViaImageDetails;
/**
* The SSH public key to add to each node in the node pool on launch.
*/
"sshPublicKey"?: string;
/**
* The name of the node shape of the nodes in the node pool used on launch.
*/
"nodeShape"?: string;
}

export namespace UpdateNodePoolDetails {
Expand All @@ -72,6 +89,10 @@ export namespace UpdateNodePoolDetails {

"nodeConfigDetails": obj.nodeConfigDetails
? model.UpdateNodePoolNodeConfigDetails.getJsonObj(obj.nodeConfigDetails)
: undefined,

"nodeSourceDetails": obj.nodeSourceDetails
? model.NodeSourceDetails.getJsonObj(obj.nodeSourceDetails)
: undefined
}
};
Expand Down
2 changes: 1 addition & 1 deletion lib/containerengine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oci-containerengine",
"version": "1.5.0",
"version": "1.5.1",
"description": "OCI NodeJS client for Container Engine",
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions lib/core/lib/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,16 @@ import * as InstanceAgentConfig from "./instance-agent-config";
export import InstanceAgentConfig = InstanceAgentConfig.InstanceAgentConfig;
import * as InstanceAgentFeatures from "./instance-agent-features";
export import InstanceAgentFeatures = InstanceAgentFeatures.InstanceAgentFeatures;
import * as InstanceAvailabilityConfig from "./instance-availability-config";
export import InstanceAvailabilityConfig = InstanceAvailabilityConfig.InstanceAvailabilityConfig;
import * as InstanceConfiguration from "./instance-configuration";
export import InstanceConfiguration = InstanceConfiguration.InstanceConfiguration;
import * as InstanceConfigurationAttachVnicDetails from "./instance-configuration-attach-vnic-details";
export import InstanceConfigurationAttachVnicDetails = InstanceConfigurationAttachVnicDetails.InstanceConfigurationAttachVnicDetails;
import * as InstanceConfigurationAttachVolumeDetails from "./instance-configuration-attach-volume-details";
export import InstanceConfigurationAttachVolumeDetails = InstanceConfigurationAttachVolumeDetails.InstanceConfigurationAttachVolumeDetails;
import * as InstanceConfigurationAvailabilityConfig from "./instance-configuration-availability-config";
export import InstanceConfigurationAvailabilityConfig = InstanceConfigurationAvailabilityConfig.InstanceConfigurationAvailabilityConfig;
import * as InstanceConfigurationBlockVolumeDetails from "./instance-configuration-block-volume-details";
export import InstanceConfigurationBlockVolumeDetails = InstanceConfigurationBlockVolumeDetails.InstanceConfigurationBlockVolumeDetails;
import * as InstanceConfigurationCreateVnicDetails from "./instance-configuration-create-vnic-details";
Expand Down Expand Up @@ -404,6 +408,8 @@ import * as Ipv6 from "./ipv6";
export import Ipv6 = Ipv6.Ipv6;
import * as LaunchInstanceAgentConfigDetails from "./launch-instance-agent-config-details";
export import LaunchInstanceAgentConfigDetails = LaunchInstanceAgentConfigDetails.LaunchInstanceAgentConfigDetails;
import * as LaunchInstanceAvailabilityConfigDetails from "./launch-instance-availability-config-details";
export import LaunchInstanceAvailabilityConfigDetails = LaunchInstanceAvailabilityConfigDetails.LaunchInstanceAvailabilityConfigDetails;
import * as LaunchInstanceDetails from "./launch-instance-details";
export import LaunchInstanceDetails = LaunchInstanceDetails.LaunchInstanceDetails;
import * as LaunchInstanceShapeConfigDetails from "./launch-instance-shape-config-details";
Expand Down Expand Up @@ -512,6 +518,8 @@ import * as UpdateImageDetails from "./update-image-details";
export import UpdateImageDetails = UpdateImageDetails.UpdateImageDetails;
import * as UpdateInstanceAgentConfigDetails from "./update-instance-agent-config-details";
export import UpdateInstanceAgentConfigDetails = UpdateInstanceAgentConfigDetails.UpdateInstanceAgentConfigDetails;
import * as UpdateInstanceAvailabilityConfigDetails from "./update-instance-availability-config-details";
export import UpdateInstanceAvailabilityConfigDetails = UpdateInstanceAvailabilityConfigDetails.UpdateInstanceAvailabilityConfigDetails;
import * as UpdateInstanceConfigurationDetails from "./update-instance-configuration-details";
export import UpdateInstanceConfigurationDetails = UpdateInstanceConfigurationDetails.UpdateInstanceConfigurationDetails;
import * as UpdateInstanceDetails from "./update-instance-details";
Expand Down
53 changes: 53 additions & 0 deletions lib/core/lib/model/instance-availability-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Core Services API
* API covering the [Networking](/iaas/Content/Network/Concepts/overview.htm),
[Compute](/iaas/Content/Compute/Concepts/computeoverview.htm), and
[Block Volume](/iaas/Content/Block/Concepts/overview.htm) services. Use this API
to manage resources such as virtual cloud networks (VCNs), compute instances, and
block storage volumes.

* OpenAPI spec version: 20160918
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* 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.
*/

import * as model from "../model";
import common = require("oci-common");

/**
* Options for customers to define the general policy of how compute service perform maintenance on VM instances.
*
*/
export interface InstanceAvailabilityConfig {
/**
* Actions customers can specify that would be applied to their instances after scheduled or unexpected host maintenance.
* * `RESTORE_INSTANCE` - This would be the default action if recoveryAction is not set. VM instances
* will be restored to the power state it was in before maintenance.
* * `STOP_INSTANCE` - This action allow customers to have their VM instances be stopped after maintenance.
*
*/
"recoveryAction"?: InstanceAvailabilityConfig.RecoveryAction;
}

export namespace InstanceAvailabilityConfig {
export enum RecoveryAction {
RestoreInstance = "RESTORE_INSTANCE",
StopInstance = "STOP_INSTANCE",
/**
* This value is used if a service returns a value for this enum that is not recognized by this
* version of the SDK.
*/
UnknownValue = "UNKNOWN_VALUE"
}

export function getJsonObj(obj: InstanceAvailabilityConfig): object {
const jsonObj = { ...obj, ...{} };

return jsonObj;
}
}
Loading