Skip to content

Commit 885279d

Browse files
authored
Merge pull request #13 from oracle/release_2020-07-14
Releasing version 1.2.3
2 parents fa4a65b + 1b55a22 commit 885279d

File tree

284 files changed

+10822
-270
lines changed

Some content is hidden

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

284 files changed

+10822
-270
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ 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.2.3 - 2020-07-14
7+
### Added
8+
- Support for Instance Principal
9+
- Support for the Blockchain service
10+
- Support for failing over an autonomous database that has Data Guard enabled in the Database service
11+
- Support for switching over an autonomous database that has Data Guard enabled in the Database service
12+
- Support for git configuration sources in the Resource Manager service
13+
- Support for optionally specifying a VCN id on list operations of DHCP options, subnets, security lists, route tables, internet gateways, and local peering gateways in the Networking service
14+
615
## 1.2.2 - 2020-07-07
716
### Added
817
- Support for registering and deregistering autonomous dedicated databases with Data Safe in the Database service

THIRD_PARTY_LICENSES.txt

+703
Large diffs are not rendered by default.
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3+
* 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.
4+
*/
5+
6+
/*
7+
* This example demostrates the usage of Instance Principal. In order to run this example, this code
8+
* must be in an Oracle Cloud instance. The Instance Principal will utiltize internal resources to
9+
* create an authentication provider. Refer to:
10+
* https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm
11+
* for more details.
12+
*/
13+
14+
const identity = require("oci-identity");
15+
const common = require("oci-common");
16+
17+
(async () => {
18+
const authenticationProvider = await new common.InstancePrincipalsAuthenticationDetailsProviderBuilder().build();
19+
try {
20+
const identityClient = await new identity.IdentityClient({
21+
authenticationDetailsProvider: authenticationProvider
22+
});
23+
const regions = await identityClient.listRegions({});
24+
console.log("Regions: ", JSON.stringify(regions));
25+
} catch (e) {
26+
throw Error(`Failed with error: ${e}`);
27+
}
28+
})();
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3+
* 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.
4+
*/
5+
6+
/*
7+
* This example demostrates the usage of Instance Principal. In order to run this example, this code
8+
* must be in an Oracle Cloud instance. The Instance Principal will utiltize internal resources to
9+
* create an authentication provider. Refer to:
10+
* https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm
11+
* for more details.
12+
*/
13+
14+
import * as identity from "oci-identity";
15+
import common = require("oci-common");
16+
17+
(async () => {
18+
const authenticationProvider = await new common.InstancePrincipalsAuthenticationDetailsProviderBuilder().build();
19+
try {
20+
const identityClient = await new identity.IdentityClient({
21+
authenticationDetailsProvider: authenticationProvider
22+
});
23+
const regions = await identityClient.listRegions({});
24+
console.log("Regions: ", JSON.stringify(regions));
25+
} catch (e) {
26+
throw Error(`Failed with error: ${e}`);
27+
}
28+
})();

index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,4 @@ export import secrets = require("oci-secrets");
135135
export import dataintegration = require("oci-dataintegration");
136136
export import ocvp = require("oci-ocvp");
137137
export import usageapi = require("oci-usageapi");
138+
export import blockchain = require("oci-blockchain");

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.2.2",
3+
"version": "1.2.3",
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.2.2",
3+
"version": "1.2.3",
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.2.2",
3+
"version": "1.2.3",
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.2.2",
3+
"version": "1.2.3",
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.2.2",
3+
"version": "1.2.3",
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.2.2",
3+
"version": "1.2.3",
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.2.2",
3+
"version": "1.2.3",
44
"description": "OCI NodeJS client for BDS Service",
55
"repository": {
66
"type": "git",

lib/blockchain/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# OCI NodeJS client for Blockchain Service
3+
4+
This module enables you to write code to manage resources for Blockchain Service.
5+
6+
## Requirements
7+
8+
To use this module, you must have the following:
9+
10+
- An Oracle Cloud Infrastructure account.
11+
- A user created in that account, in a group with a policy that grants the desired permissions. This can be a user for yourself, or another person/system that needs to call the API. For an example of how to set up a new user, group, compartment, and policy, see [Adding Users](https://docs.cloud.oracle.com/en-us/iaas/Content/GSG/Tasks/addingusers.htm). For a list of typical policies you may want to use, see [Common Policies](https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Concepts/commonpolicies.htm).
12+
- A key pair used for signing API requests, with the public key uploaded to Oracle. Only the user calling the API should be in possession of the private key. For more information, see [Configuring Credentials](https://docs.cloud.oracle.com/en-us/iaas/Content/API/SDKDocs/typescriptsdkgettingstarted.htm#Configure)
13+
14+
## Installing
15+
16+
Use the following command to install this module:
17+
18+
```
19+
npm install oci-blockchain
20+
```
21+
22+
Alternatively you can git clone this repo.

lib/blockchain/index.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Blockchain Platform Control Plane API
3+
* Blockchain Platform Plane API
4+
* OpenAPI spec version: 20191010
5+
*
6+
*
7+
* NOTE: This class is auto generated by OracleSDKGenerator.
8+
* Do not edit the class manually.
9+
*
10+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
11+
* 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.
12+
*/
13+
14+
import * as requests from "./lib/request";
15+
import * as models from "./lib/model";
16+
import * as responses from "./lib/response";
17+
import * as client from "./lib/client";
18+
import * as blockchainplatform_waiter from "./lib/blockchainplatform-waiter";
19+
20+
export { models };
21+
export { requests };
22+
export { responses };
23+
export import BlockchainPlatformClient = client.BlockchainPlatformClient;
24+
export import BlockchainPlatformWaiter = blockchainplatform_waiter.BlockchainPlatformWaiter;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/**
2+
* Blockchain Platform Control Plane API
3+
* Blockchain Platform Plane API
4+
* OpenAPI spec version: 20191010
5+
*
6+
*
7+
* NOTE: This class is auto generated by OracleSDKGenerator.
8+
* Do not edit the class manually.
9+
*
10+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
11+
* 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.
12+
*/
13+
14+
import * as serviceRequests from "./request";
15+
import * as serviceResponses from "./response";
16+
import * as models from "./model";
17+
import { BlockchainPlatformClient } from "./client";
18+
import { genericWaiter, genericTerminalConditionWaiter, WaiterConfiguration } from "oci-common";
19+
20+
export class BlockchainPlatformWaiter {
21+
public constructor(
22+
private client: BlockchainPlatformClient,
23+
private readonly config?: WaiterConfiguration
24+
) {}
25+
26+
/**
27+
* Waits forBlockchainPlatform till it reaches any of the provided states
28+
*
29+
* @param request the request to send
30+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
31+
* @return response returns GetBlockchainPlatformResponse | null (null in case of 404 response)
32+
*/
33+
public async forBlockchainPlatform(
34+
request: serviceRequests.GetBlockchainPlatformRequest,
35+
...targetStates: models.BlockchainPlatform.LifecycleState[]
36+
): Promise<serviceResponses.GetBlockchainPlatformResponse | null> {
37+
return genericTerminalConditionWaiter(
38+
this.config,
39+
() => this.client.getBlockchainPlatform(request),
40+
response => targetStates.exists(response.blockchainPlatform.lifecycleState),
41+
targetStates.includes(models.BlockchainPlatform.LifecycleState.DELETED)
42+
);
43+
}
44+
45+
/**
46+
* Waits forOsn till it reaches any of the provided states
47+
*
48+
* @param request the request to send
49+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
50+
* @return response returns GetOsnResponse
51+
*/
52+
public async forOsn(
53+
request: serviceRequests.GetOsnRequest,
54+
...targetStates: models.Osn.LifecycleState[]
55+
): Promise<serviceResponses.GetOsnResponse> {
56+
return genericWaiter(
57+
this.config,
58+
() => this.client.getOsn(request),
59+
response => targetStates.exists(response.osn.lifecycleState)
60+
);
61+
}
62+
63+
/**
64+
* Waits forPeer till it reaches any of the provided states
65+
*
66+
* @param request the request to send
67+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
68+
* @return response returns GetPeerResponse
69+
*/
70+
public async forPeer(
71+
request: serviceRequests.GetPeerRequest,
72+
...targetStates: models.Peer.LifecycleState[]
73+
): Promise<serviceResponses.GetPeerResponse> {
74+
return genericWaiter(
75+
this.config,
76+
() => this.client.getPeer(request),
77+
response => targetStates.exists(response.peer.lifecycleState)
78+
);
79+
}
80+
81+
/**
82+
* Waits forWorkRequest
83+
*
84+
* @param request the request to send
85+
* @return response returns GetWorkRequestResponse
86+
*/
87+
public async forWorkRequest(
88+
request: serviceRequests.GetWorkRequestRequest
89+
): Promise<serviceResponses.GetWorkRequestResponse> {
90+
return genericWaiter(
91+
this.config,
92+
() => this.client.getWorkRequest(request),
93+
response => (response.workRequest.timeFinished ? true : false)
94+
);
95+
}
96+
}

0 commit comments

Comments
 (0)