Skip to content

Commit 2dbb5f7

Browse files
Releasing version 2.50.3
Releasing version 2.50.3
2 parents 50e397c + 6313e0a commit 2dbb5f7

File tree

218 files changed

+6553
-847
lines changed

Some content is hidden

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

218 files changed

+6553
-847
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ 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.50.3 - 2023-01-24
7+
### Added
8+
- Support for the Cloud Migrations service
9+
- Support for setting up custom private IPs while creating private endpoints in the Database service
10+
- Support for machine learning pipelines in the Data Science service
11+
- Support for personally identifiable information detection in the AI Language service
12+
13+
614
## 2.50.2 - 2023-01-17
715
### Added
816
- Support for calling Oracle Cloud Infrastructure services in the us-chicago-1 region

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.50.2",
3+
"version": "2.50.3",
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.50.2",
3+
"version": "2.50.3",
44
"description": "OCI NodeJS client for Ai Anomaly Detection Service",
55
"repository": {
66
"type": "git",

lib/aidocument/package.json

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

lib/ailanguage/lib/client.ts

Lines changed: 104 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,89 @@ Limitations:
400400
}
401401
}
402402

403+
/**
404+
* The API extracts pii entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned. It supports passing a batch of records.
405+
* <p>
406+
Limitations:
407+
* - A batch may have up to 100 records.
408+
* - A record may be up to 5000 characters long.
409+
* - The total of characters to process in a request can be up to 20,000 characters.
410+
*
411+
* This operation does not retry by default if the user has not defined a retry configuration.
412+
* @param BatchDetectLanguagePiiEntitiesRequest
413+
* @return BatchDetectLanguagePiiEntitiesResponse
414+
* @throws OciError when an error occurs
415+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/ailanguage/BatchDetectLanguagePiiEntities.ts.html |here} to see how to use BatchDetectLanguagePiiEntities API.
416+
*/
417+
public async batchDetectLanguagePiiEntities(
418+
batchDetectLanguagePiiEntitiesRequest: requests.BatchDetectLanguagePiiEntitiesRequest
419+
): Promise<responses.BatchDetectLanguagePiiEntitiesResponse> {
420+
if (this.logger)
421+
this.logger.debug(
422+
"Calling operation AIServiceLanguageClient#batchDetectLanguagePiiEntities."
423+
);
424+
const operationName = "batchDetectLanguagePiiEntities";
425+
const apiReferenceLink =
426+
"https://docs.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguagePiiEntities/BatchDetectLanguagePiiEntities";
427+
const pathParams = {};
428+
429+
const queryParams = {};
430+
431+
let headerParams = {
432+
"Content-Type": common.Constants.APPLICATION_JSON,
433+
"opc-request-id": batchDetectLanguagePiiEntitiesRequest.opcRequestId
434+
};
435+
436+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
437+
const retrier = GenericRetrier.createPreferredRetrier(
438+
this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
439+
batchDetectLanguagePiiEntitiesRequest.retryConfiguration,
440+
specRetryConfiguration
441+
);
442+
if (this.logger) retrier.logger = this.logger;
443+
const request = await composeRequest({
444+
baseEndpoint: this._endpoint,
445+
defaultHeaders: this._defaultHeaders,
446+
path: "/actions/batchDetectLanguagePiiEntities",
447+
method: "POST",
448+
bodyContent: common.ObjectSerializer.serialize(
449+
batchDetectLanguagePiiEntitiesRequest.batchDetectLanguagePiiEntitiesDetails,
450+
"BatchDetectLanguagePiiEntitiesDetails",
451+
model.BatchDetectLanguagePiiEntitiesDetails.getJsonObj
452+
),
453+
pathParams: pathParams,
454+
headerParams: headerParams,
455+
queryParams: queryParams
456+
});
457+
try {
458+
const response = await retrier.makeServiceCall(
459+
this._httpClient,
460+
request,
461+
this.targetService,
462+
operationName,
463+
apiReferenceLink
464+
);
465+
const sdkResponse = composeResponse({
466+
responseObject: <responses.BatchDetectLanguagePiiEntitiesResponse>{},
467+
body: await response.json(),
468+
bodyKey: "batchDetectLanguagePiiEntitiesResult",
469+
bodyModel: model.BatchDetectLanguagePiiEntitiesResult,
470+
type: "model.BatchDetectLanguagePiiEntitiesResult",
471+
responseHeaders: [
472+
{
473+
value: response.headers.get("opc-request-id"),
474+
key: "opcRequestId",
475+
dataType: "string"
476+
}
477+
]
478+
});
479+
480+
return sdkResponse;
481+
} catch (err) {
482+
throw err;
483+
}
484+
}
485+
403486
/**
404487
* The API extracts aspect-based and sentence level sentiment in text records.
405488
* <p>
@@ -1370,9 +1453,12 @@ Limitations:
13701453
}
13711454

13721455
/**
1373-
* The API returns the detected language and a related confidence score (between 0 and 1).
1456+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1457+
* We recommend you replace this API with the batch API, [BatchDetectDominantLanguage](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectDominantLanguage/BatchDetectDominantLanguage).
13741458
* <p>
1375-
[List of supported languages.](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect)
1459+
The DetectDominantLanguage API returns the detected language and a related confidence score (between 0 and 1).
1460+
* <p>
1461+
[List of supported languages](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect)
13761462
* <p>
13771463
Limitations:
13781464
* - A record may be up to 1000 characters long.
@@ -1456,7 +1542,10 @@ Limitations:
14561542
}
14571543

14581544
/**
1459-
* The API extracts entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned.
1545+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1546+
* We recommend you replace this API with the batch API, [BatchDetectLanguageEntities](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageEntities/BatchDetectLanguageEntities).
1547+
* <p>
1548+
The DetectLanguageEntities API extracts entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned.
14601549
* <p>
14611550
Limitations:
14621551
* - A text may be up to 1000 characters long.
@@ -1543,7 +1632,10 @@ Limitations:
15431632
}
15441633

15451634
/**
1546-
* The API extracts key-phrases in text records. For each key-phrase, a score (between 0 and 1) is returned that highlights the importance of the key-phrase in the context of the text.
1635+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1636+
* We recommend you replace this API with the batch API, [BatchDetectLanguageKeyPhrases](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageKeyPhrases/BatchDetectLanguageKeyPhrases).
1637+
* <p>
1638+
The DetectLanguageKeyPhrases API extracts key-phrases in text records. For each key-phrase, a score (between 0 and 1) is returned that highlights the importance of the key-phrase in the context of the text.
15471639
* <p>
15481640
Limitations:
15491641
* - A record may be up to 1000 characters long.
@@ -1627,7 +1719,10 @@ Limitations:
16271719
}
16281720

16291721
/**
1630-
* The API extracts aspect-based in text records.
1722+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1723+
* We recommend you replace this API with the batch API, [BatchDetectLanguageSentiments](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageSentiments/BatchDetectLanguageSentiments).
1724+
* <p>
1725+
The DetectLanguageSentiments API extracts aspect-based in text records.
16311726
* <p>
16321727
For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned.
16331728
* <p>
@@ -1717,7 +1812,10 @@ Limitations:
17171812
}
17181813

17191814
/**
1720-
* The API automatically classifies text into a set of pre-determined classes and sub-classes. A single class/subclass is returned for each record classified.
1815+
* **Deprecated**: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.
1816+
* We recommend you replace this API with the batch API, [BatchDetectLanguageTextClassification](https://docs.cloud.oracle.com/iaas/api/#/en/language/20221001/BatchDetectLanguageTextClassification/BatchDetectLanguageTextClassification).
1817+
* <p>
1818+
The DetectLanguageTextClassification API automatically classifies text into a set of pre-determined classes and sub-classes. A single class/subclass is returned for each record classified.
17211819
* <p>
17221820
Learn more about text classification [here](https://docs.cloud.oracle.com/iaas/language/using/pretrain-models.htm#text-class).
17231821
* <p>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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, 2023, 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 model from "../model";
18+
import common = require("oci-common");
19+
20+
/**
21+
* The documents details to detect personal identification information.
22+
*/
23+
export interface BatchDetectLanguagePiiEntitiesDetails {
24+
/**
25+
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that calls the API, inference will be served from pre trained model
26+
*/
27+
"compartmentId"?: string;
28+
/**
29+
* List of documents to detect personal identification information.
30+
*/
31+
"documents": Array<model.TextDocument>;
32+
/**
33+
* Mask recognized PII entities with different modes.
34+
*/
35+
"masking"?: { [key: string]: model.PiiEntityMasking };
36+
}
37+
38+
export namespace BatchDetectLanguagePiiEntitiesDetails {
39+
export function getJsonObj(obj: BatchDetectLanguagePiiEntitiesDetails): object {
40+
const jsonObj = {
41+
...obj,
42+
...{
43+
"documents": obj.documents
44+
? obj.documents.map(item => {
45+
return model.TextDocument.getJsonObj(item);
46+
})
47+
: undefined,
48+
"masking": obj.masking
49+
? common.mapContainer(obj.masking, model.PiiEntityMasking.getJsonObj)
50+
: undefined
51+
}
52+
};
53+
54+
return jsonObj;
55+
}
56+
export function getDeserializedJsonObj(obj: BatchDetectLanguagePiiEntitiesDetails): object {
57+
const jsonObj = {
58+
...obj,
59+
...{
60+
"documents": obj.documents
61+
? obj.documents.map(item => {
62+
return model.TextDocument.getDeserializedJsonObj(item);
63+
})
64+
: undefined,
65+
"masking": obj.masking
66+
? common.mapContainer(obj.masking, model.PiiEntityMasking.getDeserializedJsonObj)
67+
: undefined
68+
}
69+
};
70+
71+
return jsonObj;
72+
}
73+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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, 2023, 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 model from "../model";
18+
import common = require("oci-common");
19+
20+
/**
21+
* Result of batch detect personal identification.
22+
*/
23+
export interface BatchDetectLanguagePiiEntitiesResult {
24+
/**
25+
* List of succeeded document response.
26+
*/
27+
"documents": Array<model.PiiEntityDocumentResult>;
28+
/**
29+
* List of failed document response.
30+
*/
31+
"errors"?: Array<model.DocumentError>;
32+
}
33+
34+
export namespace BatchDetectLanguagePiiEntitiesResult {
35+
export function getJsonObj(obj: BatchDetectLanguagePiiEntitiesResult): object {
36+
const jsonObj = {
37+
...obj,
38+
...{
39+
"documents": obj.documents
40+
? obj.documents.map(item => {
41+
return model.PiiEntityDocumentResult.getJsonObj(item);
42+
})
43+
: undefined,
44+
"errors": obj.errors
45+
? obj.errors.map(item => {
46+
return model.DocumentError.getJsonObj(item);
47+
})
48+
: undefined
49+
}
50+
};
51+
52+
return jsonObj;
53+
}
54+
export function getDeserializedJsonObj(obj: BatchDetectLanguagePiiEntitiesResult): object {
55+
const jsonObj = {
56+
...obj,
57+
...{
58+
"documents": obj.documents
59+
? obj.documents.map(item => {
60+
return model.PiiEntityDocumentResult.getDeserializedJsonObj(item);
61+
})
62+
: undefined,
63+
"errors": obj.errors
64+
? obj.errors.map(item => {
65+
return model.DocumentError.getDeserializedJsonObj(item);
66+
})
67+
: undefined
68+
}
69+
};
70+
71+
return jsonObj;
72+
}
73+
}

lib/ailanguage/lib/model/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ import * as BatchDetectLanguageKeyPhrasesDetails from "./batch-detect-language-k
2828
export import BatchDetectLanguageKeyPhrasesDetails = BatchDetectLanguageKeyPhrasesDetails.BatchDetectLanguageKeyPhrasesDetails;
2929
import * as BatchDetectLanguageKeyPhrasesResult from "./batch-detect-language-key-phrases-result";
3030
export import BatchDetectLanguageKeyPhrasesResult = BatchDetectLanguageKeyPhrasesResult.BatchDetectLanguageKeyPhrasesResult;
31+
import * as BatchDetectLanguagePiiEntitiesDetails from "./batch-detect-language-pii-entities-details";
32+
export import BatchDetectLanguagePiiEntitiesDetails = BatchDetectLanguagePiiEntitiesDetails.BatchDetectLanguagePiiEntitiesDetails;
33+
import * as BatchDetectLanguagePiiEntitiesResult from "./batch-detect-language-pii-entities-result";
34+
export import BatchDetectLanguagePiiEntitiesResult = BatchDetectLanguagePiiEntitiesResult.BatchDetectLanguagePiiEntitiesResult;
3135
import * as BatchDetectLanguageSentimentsDetails from "./batch-detect-language-sentiments-details";
3236
export import BatchDetectLanguageSentimentsDetails = BatchDetectLanguageSentimentsDetails.BatchDetectLanguageSentimentsDetails;
3337
import * as BatchDetectLanguageSentimentsResult from "./batch-detect-language-sentiments-result";
@@ -134,6 +138,12 @@ import * as OperationStatus from "./operation-status";
134138
export import OperationStatus = OperationStatus.OperationStatus;
135139
import * as OperationType from "./operation-type";
136140
export import OperationType = OperationType.OperationType;
141+
import * as PiiEntity from "./pii-entity";
142+
export import PiiEntity = PiiEntity.PiiEntity;
143+
import * as PiiEntityDocumentResult from "./pii-entity-document-result";
144+
export import PiiEntityDocumentResult = PiiEntityDocumentResult.PiiEntityDocumentResult;
145+
import * as PiiEntityMasking from "./pii-entity-masking";
146+
export import PiiEntityMasking = PiiEntityMasking.PiiEntityMasking;
137147
import * as PreDeployedLanguageModels from "./pre-deployed-language-models";
138148
export import PreDeployedLanguageModels = PreDeployedLanguageModels.PreDeployedLanguageModels;
139149
import * as Project from "./project";
@@ -201,6 +211,12 @@ import * as ObjectListDataset from "./object-list-dataset";
201211
export import ObjectListDataset = ObjectListDataset.ObjectListDataset;
202212
import * as ObjectStorageDataset from "./object-storage-dataset";
203213
export import ObjectStorageDataset = ObjectStorageDataset.ObjectStorageDataset;
214+
import * as PiiEntityMask from "./pii-entity-mask";
215+
export import PiiEntityMask = PiiEntityMask.PiiEntityMask;
216+
import * as PiiEntityRemove from "./pii-entity-remove";
217+
export import PiiEntityRemove = PiiEntityRemove.PiiEntityRemove;
218+
import * as PiiEntityReplace from "./pii-entity-replace";
219+
export import PiiEntityReplace = PiiEntityReplace.PiiEntityReplace;
204220
import * as TestAndValidationDatasetStrategy from "./test-and-validation-dataset-strategy";
205221
export import TestAndValidationDatasetStrategy = TestAndValidationDatasetStrategy.TestAndValidationDatasetStrategy;
206222
import * as TextClassificationEvaluationResults from "./text-classification-evaluation-results";

0 commit comments

Comments
 (0)