Skip to content

Commit 7a6f7f3

Browse files
authored
Releasing version 2.9.1
Releasing version 2.9.1
2 parents f5b599c + 78c5fcd commit 7a6f7f3

File tree

216 files changed

+5494
-106
lines changed

Some content is hidden

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

216 files changed

+5494
-106
lines changed
+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# Code Courtesy : Mathias Ricken
2+
# This workflow triggers when a new release has been made.
3+
4+
name: ReleasePublished
5+
6+
# Controls when the action will run.
7+
on:
8+
# Triggers the workflow on push or pull request events but only for the main branch
9+
release:
10+
types: [published]
11+
12+
# Allows you to run this workflow manually from the Actions tab.
13+
workflow_dispatch:
14+
inputs:
15+
release:
16+
description: 'Release version number ("latest" or "v1.34.0")'
17+
required: true
18+
default: latest
19+
20+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
21+
jobs:
22+
# This workflow contains a single job called "build"
23+
build:
24+
# NOTE: If this runs in an environment, set this value (where "MC-Action" is the environment name)
25+
# environment: MC-Action
26+
27+
# The type of runner that the job will run on
28+
runs-on: ubuntu-latest
29+
30+
# Steps represent a sequence of tasks that will be executed as part of the job
31+
steps:
32+
- name: Report the parameters
33+
run: |
34+
echo "GITHUB_REF is \"$GITHUB_REF\""
35+
echo "GITHUB_SHA is \"$GITHUB_SHA\""
36+
echo "inputs.release is \"${{github.event.inputs.release}}\""
37+
if [ -z "${{github.event.inputs.release}}" ]; then
38+
echo "Release not set manually, using GITHUB_REF"
39+
export RELEASE=`echo "$GITHUB_REF" | sed "s#refs/tags/##"`
40+
else
41+
echo "Release set manually, using inputs.release"
42+
export RELEASE=${{github.event.inputs.release}}
43+
fi
44+
echo "Release is $RELEASE"
45+
pat="^v.*"
46+
if [ "$RELEASE" = "latest" ]; then
47+
echo "Using latest release"
48+
elif [[ $RELEASE =~ $pat ]]; then
49+
echo "Specified '$RELEASE' as release"
50+
else
51+
echo "Unsupported release, should be 'latest' or something like 'v1.35.0'; was '$RELEASE'"
52+
exit 1
53+
fi
54+
echo "RELEASE=$RELEASE" >> $GITHUB_ENV
55+
- name: Check credentials
56+
run: |
57+
set -e
58+
echo "Checking NPM ACCESS_TOKEN"
59+
curl --fail -H 'Authorization: Bearer ${{ secrets.NPM_ACCESS_TOKEN }}' https://registry.npmjs.org/
60+
echo "Checking GitHub ACCESS_TOKEN"
61+
curl -f -H "Authorization: Bearer ${{ secrets.ACCESS_TOKEN }}" -H 'Accept: application/vnd.github.v3.raw' -s https://api.github.com/repos/oracle/oci-typescript-sdk > /dev/null
62+
- name: Install packages
63+
run: |
64+
sudo apt-get install -y jq
65+
shell: bash
66+
- name: Download the npm artifacts asset
67+
env:
68+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
69+
run: |
70+
if [ "$RELEASE" = "latest" ]; then
71+
echo "Using latest release"
72+
set +e
73+
curl -f -H "Authorization: Bearer $ACCESS_TOKEN" -H 'Accept: application/vnd.github.v3.raw' -s https://api.github.com/repos/oracle/oci-typescript-sdk/releases > releases.json
74+
result="$?"
75+
if [ "$result" -ne 0 ]; then
76+
echo "curl returned '$result': Bad access token"
77+
exit $result
78+
fi
79+
asset_id=`cat releases.json | jq ".[0].assets | map(select(.name|test(\"npm_artifacts.zip\")))[0].id"`
80+
result="$?"
81+
if [ "$result" -ne 0 ]; then
82+
echo "jq returned '$result': No releases or bad file (was 'npm_artifacts.zip')"
83+
cat releases.json
84+
exit $result
85+
fi
86+
if [ "$asset_id" == "null" ]; then
87+
echo "jq returned asset id '$asset_id': No releases or bad file (was 'npm_artifacts.zip')"
88+
cat releases.json
89+
exit 1
90+
fi
91+
set -e
92+
else
93+
echo "Using release $RELEASE"
94+
set +e
95+
curl -f -H "Authorization: Bearer $ACCESS_TOKEN" -H 'Accept: application/vnd.github.v3.raw' -s https://api.github.com/repos/oracle/oci-typescript-sdk/releases > releases.json
96+
result="$?"
97+
if [ "$result" -ne 0 ]; then
98+
echo "curl returned '$result': Bad access token"
99+
exit $result
100+
fi
101+
asset_id=`cat releases.json | jq ". | map(select(.tag_name == \"$RELEASE\"))[0].assets | map(select(.name|test(\"npm_artifacts.zip\")))[0].id"`
102+
result="$?"
103+
if [ "$result" -ne 0 ]; then
104+
echo "jq returned '$result': Bad release (was '$RELEASE') or bad file (was 'npm_artifacts.zip')"
105+
cat releases.json
106+
exit $result
107+
fi
108+
if [ "$asset_id" == "null" ]; then
109+
echo "jq returned asset id '$asset_id': Bad release (was '$RELEASE') or bad file (was 'npm_artifacts.zip')"
110+
cat releases.json
111+
exit 1
112+
fi
113+
set -e
114+
fi
115+
echo "Asset id for release $RELEASE file npm_artifacts.zip is $asset_id"
116+
wget -q --header="Authorization: Bearer $ACCESS_TOKEN" --auth-no-challenge --header='Accept:application/octet-stream' https://api.github.com/repos/oracle/oci-typescript-sdk/releases/assets/$asset_id -O npm_artifacts.zip
117+
- name: Examine npm artifact files
118+
run: |
119+
ls
120+
unzip -q npm_artifacts.zip
121+
cd npm_artifacts
122+
ls
123+
cd ..
124+
- uses: actions/checkout@v2
125+
- uses: actions/setup-node@v2
126+
with:
127+
node-version: "12.x"
128+
registry-url: "https://registry.npmjs.org/"
129+
- name: Publish tarball artifacts to npm
130+
env:
131+
NODE_AUTH_TOKEN: ${{secrets.NPM_ACCESS_TOKEN}}
132+
run: |
133+
ls
134+
cd npm_artifacts
135+
ls
136+
find . -exec npm publish {} \;

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+
## 2.9.1 - 2021-12-07
7+
### Added
8+
- Support for the Application Management service
9+
- Support for getting the inventory of JMS resources and listing Java runtime usage in a specified host in the Java Management service
10+
- Support for categories, entity topology, and verifying scheduled tasks in the Logging Analytics service
11+
- Support for RAC databases in the GoldenGate service
12+
- Support for querying additional fields of a resource using return clauses in the Search service
13+
- Support for key versions and key version OCIDs in the Key Management service
14+
615
## 2.9.0 - 2021-11-30
716
### Added
817
- Support for SQL Tuning Advisor in the Database Management service

index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,4 @@ export import certificates = require("oci-certificates");
174174
export import certificatesmanagement = require("oci-certificatesmanagement");
175175
export import databasetools = require("oci-databasetools");
176176
export import servicemanagerproxy = require("oci-servicemanagerproxy");
177+
export import appmgmtcontrol = require("oci-appmgmtcontrol");

lib/aianomalydetection/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-aianomalydetection",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "OCI NodeJS client for Ai Anomaly Detection Service",
55
"repository": {
66
"type": "git",

lib/ailanguage/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-ailanguage",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "OCI NodeJS client for Ai Language Service",
55
"repository": {
66
"type": "git",

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": "2.9.0",
3+
"version": "2.9.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": "2.9.0",
3+
"version": "2.9.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": "2.9.0",
3+
"version": "2.9.1",
44
"description": "OCI NodeJS client for API gateway service",
55
"repository": {
66
"type": "git",

lib/apmconfig/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmconfig",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "OCI NodeJS client for Apm Config Service",
55
"repository": {
66
"type": "git",

lib/apmcontrolplane/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmcontrolplane",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "OCI NodeJS client for Apm Control Plane Service",
55
"repository": {
66
"type": "git",

lib/apmsynthetics/lib/model/request-authentication-schemes.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ export enum RequestAuthenticationSchemes {
2121
Oauth = "OAUTH",
2222
None = "NONE",
2323
Basic = "BASIC",
24-
Bearer = "BEARER"
24+
Bearer = "BEARER",
25+
26+
/**
27+
* This value is used if a service returns a value for this enum that is not recognized by this
28+
* version of the SDK.
29+
*/
30+
UnknownValue = "UNKNOWN_VALUE"
2531
}
2632

2733
export namespace RequestAuthenticationSchemes {

lib/apmsynthetics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmsynthetics",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "OCI NodeJS client for Apm Synthetics Service",
55
"repository": {
66
"type": "git",

lib/apmtraces/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-apmtraces",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "OCI NodeJS client for Apm Traces 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": "2.9.0",
3+
"version": "2.9.1",
44
"description": "OCI NodeJS client for Application Migration service",
55
"repository": {
66
"type": "git",

lib/appmgmtcontrol/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# OCI NodeJS client for Appmgmt Control Service
3+
4+
This module enables you to write code to manage resources for Appmgmt Control 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-appmgmtcontrol
20+
```
21+
22+
Alternatively you can git clone this repo.

lib/appmgmtcontrol/index.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* AppMgmt Control API
3+
* AppMgmt Control API
4+
* OpenAPI spec version: 20210330
5+
*
6+
*
7+
* NOTE: This class is auto generated by OracleSDKGenerator.
8+
* Do not edit the class manually.
9+
*
10+
* Copyright (c) 2020, 2021, 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 appmgmtcontrol_waiter from "./lib/appmgmtcontrol-waiter";
19+
20+
export { models };
21+
export { requests };
22+
export { responses };
23+
export import AppmgmtControlClient = client.AppmgmtControlClient;
24+
export import AppmgmtControlWaiter = appmgmtcontrol_waiter.AppmgmtControlWaiter;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/**
2+
* AppMgmt Control API
3+
* AppMgmt Control API
4+
* OpenAPI spec version: 20210330
5+
*
6+
*
7+
* NOTE: This class is auto generated by OracleSDKGenerator.
8+
* Do not edit the class manually.
9+
*
10+
* Copyright (c) 2020, 2021, 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 { AppmgmtControlClient } from "./client";
18+
import { genericWaiter, genericTerminalConditionWaiter, WaiterConfiguration } from "oci-common";
19+
20+
export class AppmgmtControlWaiter {
21+
public constructor(
22+
private client: AppmgmtControlClient,
23+
private readonly config?: WaiterConfiguration
24+
) {}
25+
26+
/**
27+
* Waits forMonitoredInstance 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 GetMonitoredInstanceResponse | null (null in case of 404 response)
32+
*/
33+
public async forMonitoredInstance(
34+
request: serviceRequests.GetMonitoredInstanceRequest,
35+
...targetStates: models.MonitoredInstance.LifecycleState[]
36+
): Promise<serviceResponses.GetMonitoredInstanceResponse | null> {
37+
return genericTerminalConditionWaiter(
38+
this.config,
39+
() => this.client.getMonitoredInstance(request),
40+
response => targetStates.includes(response.monitoredInstance.lifecycleState!),
41+
targetStates.includes(models.MonitoredInstance.LifecycleState.Deleted)
42+
);
43+
}
44+
45+
/**
46+
* Waits forWorkRequest
47+
*
48+
* @param request the request to send
49+
* @return response returns GetWorkRequestResponse
50+
*/
51+
public async forWorkRequest(
52+
request: serviceRequests.GetWorkRequestRequest
53+
): Promise<serviceResponses.GetWorkRequestResponse> {
54+
return genericWaiter(
55+
this.config,
56+
() => this.client.getWorkRequest(request),
57+
response => (response.workRequest.timeFinished ? true : false)
58+
);
59+
}
60+
}

0 commit comments

Comments
 (0)