Skip to content

Commit d9551a1

Browse files
Releasing version 2.46.0
Releasing version 2.46.0
2 parents d796d76 + a1e1978 commit d9551a1

File tree

494 files changed

+23156
-561
lines changed

Some content is hidden

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

494 files changed

+23156
-561
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ 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.46.0 - 2022-10-25
7+
### Added
8+
- Support for the Disaster Recovery service
9+
- Support for running code interactively with session applications using statements in the Data Flow service
10+
- Support for language custom models and language translation in the AI Language service
11+
12+
### Breaking Changes
13+
- The type of property `Documents` was changed from an Array of `TextClassificationDocument` to an Array of `TextDocument` in `BatchDetectLanguageTextClassificationDetails` model in the AI Language service
14+
- The type of property `Documents` was changed from an Array of `SentimentsDocument` to an Array of `TextDocument` in `BatchDetectLanguageSentimentsDetails` model in the AI Language service
15+
- The type of property `Documents` was changed from an Array of `KeyPhraseDocument` to an Array of `TextDocument` in `BatchDetectLanguageKeyPhrasesDetails` model in the AI Language service
16+
- The type of property `Documents` was changed from an Array of `EntityDocument` to an Array of `TextDocument` in `BatchDetectLanguageEntitiesDetails` model in the AI Language service
17+
618
## 2.45.0 - 2022-10-04
719
### Added
820
- Support for calling Oracle Cloud Infrastructure services in the eu-dcc-milan-1 region

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
This is Oracle Cloud Infrastructure SDK for TypeScript and JavaScript. This project is open source and maintained by Oracle Corp.
66
The home page for the project is [Oracle Cloud Infrastructure SDK for TypeScript and JavaScript](https://github.com/oracle/oci-typescript-sdk/).
77

8-
## Feedback
9-
10-
Are you a Developer using the OCI SDK? If so, please fill out our survey to help us make the OCI SDK better for you. [Click here](https://oracle.questionpro.com/t/APeMlZka26?custom3=npmjs).
11-
128
## Installing
139

1410
Use the following command to install this SDK:

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,4 @@ export import opa = require("oci-opa");
203203
export import opensearch = require("oci-opensearch");
204204
export import cloudbridge = require("oci-cloudbridge");
205205
export import cloudmigrations = require("oci-cloudmigrations");
206+
export import disasterrecovery = require("oci-disasterrecovery");

lib/adm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oci-adm",
3-
"version": "2.45.0",
3+
"version": "2.46.0",
44
"description": "OCI NodeJS client for Adm Service",
55
"repository": {
66
"type": "git",

lib/aianomalydetection/package.json

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

lib/ailanguage/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
22
* Language API
33
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
4-
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5-
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
4+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
66
7-
* OpenAPI spec version: 20210101
7+
* OpenAPI spec version: 20221001
88
*
99
*
1010
* NOTE: This class is auto generated by OracleSDKGenerator.
@@ -18,8 +18,10 @@ import * as requests from "./lib/request";
1818
import * as models from "./lib/model";
1919
import * as responses from "./lib/response";
2020
import * as client from "./lib/client";
21+
import * as aiservicelanguage_waiter from "./lib/aiservicelanguage-waiter";
2122

2223
export { models };
2324
export { requests };
2425
export { responses };
2526
export import AIServiceLanguageClient = client.AIServiceLanguageClient;
27+
export import AIServiceLanguageWaiter = aiservicelanguage_waiter.AIServiceLanguageWaiter;
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/**
2+
* Language API
3+
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
4+
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
5+
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.
6+
7+
* OpenAPI spec version: 20221001
8+
*
9+
*
10+
* NOTE: This class is auto generated by OracleSDKGenerator.
11+
* Do not edit the class manually.
12+
*
13+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
14+
* 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.
15+
*/
16+
17+
import * as serviceRequests from "./request";
18+
import * as serviceResponses from "./response";
19+
import * as models from "./model";
20+
import { AIServiceLanguageClient } from "./client";
21+
import { genericWaiter, genericTerminalConditionWaiter, WaiterConfiguration } from "oci-common";
22+
23+
export class AIServiceLanguageWaiter {
24+
public constructor(
25+
private client: AIServiceLanguageClient,
26+
private readonly config?: WaiterConfiguration
27+
) {}
28+
29+
/**
30+
* Waits forEndpoint till it reaches any of the provided states
31+
*
32+
* @param request the request to send
33+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
34+
* @return response returns GetEndpointResponse | null (null in case of 404 response)
35+
*/
36+
public async forEndpoint(
37+
request: serviceRequests.GetEndpointRequest,
38+
...targetStates: models.Endpoint.LifecycleState[]
39+
): Promise<serviceResponses.GetEndpointResponse | null> {
40+
return genericTerminalConditionWaiter(
41+
this.config,
42+
() => this.client.getEndpoint(request),
43+
response => targetStates.includes(response.endpoint.lifecycleState!),
44+
targetStates.includes(models.Endpoint.LifecycleState.Deleted)
45+
);
46+
}
47+
48+
/**
49+
* Waits forModel till it reaches any of the provided states
50+
*
51+
* @param request the request to send
52+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
53+
* @return response returns GetModelResponse | null (null in case of 404 response)
54+
*/
55+
public async forModel(
56+
request: serviceRequests.GetModelRequest,
57+
...targetStates: models.Model.LifecycleState[]
58+
): Promise<serviceResponses.GetModelResponse | null> {
59+
return genericTerminalConditionWaiter(
60+
this.config,
61+
() => this.client.getModel(request),
62+
response => targetStates.includes(response.model.lifecycleState!),
63+
targetStates.includes(models.Model.LifecycleState.Deleted)
64+
);
65+
}
66+
67+
/**
68+
* Waits forProject till it reaches any of the provided states
69+
*
70+
* @param request the request to send
71+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
72+
* @return response returns GetProjectResponse | null (null in case of 404 response)
73+
*/
74+
public async forProject(
75+
request: serviceRequests.GetProjectRequest,
76+
...targetStates: models.Project.LifecycleState[]
77+
): Promise<serviceResponses.GetProjectResponse | null> {
78+
return genericTerminalConditionWaiter(
79+
this.config,
80+
() => this.client.getProject(request),
81+
response => targetStates.includes(response.project.lifecycleState!),
82+
targetStates.includes(models.Project.LifecycleState.Deleted)
83+
);
84+
}
85+
86+
/**
87+
* Waits forWorkRequest
88+
*
89+
* @param request the request to send
90+
* @return response returns GetWorkRequestResponse
91+
*/
92+
public async forWorkRequest(
93+
request: serviceRequests.GetWorkRequestRequest
94+
): Promise<serviceResponses.GetWorkRequestResponse> {
95+
return genericWaiter(
96+
this.config,
97+
() => this.client.getWorkRequest(request),
98+
response => (response.workRequest.timeFinished ? true : false)
99+
);
100+
}
101+
}

0 commit comments

Comments
 (0)