Skip to content

Commit 2e752ee

Browse files
Merge remote-tracking branch 'scm/github' into release_2025-10-28
2 parents 43ba4dc + c2f75ba commit 2e752ee

File tree

343 files changed

+11054
-1099
lines changed

Some content is hidden

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

343 files changed

+11054
-1099
lines changed

lib/ailanguage/lib/model/create-endpoint-details.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ export interface CreateEndpointDetails {
2525
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
2626
*/
2727
"displayName"?: string;
28-
/**
29-
* Compute infra type for endpoint.
30-
*/
31-
"computeType"?: CreateEndpointDetails.ComputeType;
3228
/**
3329
* Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
3430
*/
@@ -64,11 +60,6 @@ export interface CreateEndpointDetails {
6460
}
6561

6662
export namespace CreateEndpointDetails {
67-
export enum ComputeType {
68-
Cpu = "CPU",
69-
Gpu = "GPU"
70-
}
71-
7263
export function getJsonObj(obj: CreateEndpointDetails): object {
7364
const jsonObj = { ...obj, ...{} };
7465

lib/ailanguage/lib/model/endpoint-summary.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ export interface EndpointSummary {
2929
* Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
3030
*/
3131
"alias"?: string;
32-
/**
33-
* Compute infra type for endpoint.
34-
*/
35-
"computeType"?: EndpointSummary.ComputeType;
3632
/**
3733
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
3834
*/
@@ -90,16 +86,6 @@ export interface EndpointSummary {
9086
}
9187

9288
export namespace EndpointSummary {
93-
export enum ComputeType {
94-
Cpu = "CPU",
95-
Gpu = "GPU",
96-
/**
97-
* This value is used if a service returns a value for this enum that is not recognized by this
98-
* version of the SDK.
99-
*/
100-
UnknownValue = "UNKNOWN_VALUE"
101-
}
102-
10389
export function getJsonObj(obj: EndpointSummary): object {
10490
const jsonObj = { ...obj, ...{} };
10591

lib/ailanguage/lib/model/endpoint.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ export interface Endpoint {
2929
* Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
3030
*/
3131
"alias"?: string;
32-
/**
33-
* Compute infra type for endpoint.
34-
*/
35-
"computeType"?: Endpoint.ComputeType;
3632
/**
3733
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
3834
*/
@@ -94,16 +90,6 @@ export interface Endpoint {
9490
}
9591

9692
export namespace Endpoint {
97-
export enum ComputeType {
98-
Cpu = "CPU",
99-
Gpu = "GPU",
100-
/**
101-
* This value is used if a service returns a value for this enum that is not recognized by this
102-
* version of the SDK.
103-
*/
104-
UnknownValue = "UNKNOWN_VALUE"
105-
}
106-
10793
export enum LifecycleState {
10894
Deleting = "DELETING",
10995
Deleted = "DELETED",

lib/ailanguage/lib/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ import * as ObjectStoragePrefixLocation from "./object-storage-prefix-location";
273273
export import ObjectStoragePrefixLocation = ObjectStoragePrefixLocation.ObjectStoragePrefixLocation;
274274
import * as PiiEntityMask from "./pii-entity-mask";
275275
export import PiiEntityMask = PiiEntityMask.PiiEntityMask;
276+
import * as PiiEntityRelexify from "./pii-entity-relexify";
277+
export import PiiEntityRelexify = PiiEntityRelexify.PiiEntityRelexify;
276278
import * as PiiEntityRemove from "./pii-entity-remove";
277279
export import PiiEntityRemove = PiiEntityRemove.PiiEntityRemove;
278280
import * as PiiEntityReplace from "./pii-entity-replace";

lib/ailanguage/lib/model/pii-entity-masking.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export namespace PiiEntityMasking {
3939

4040
if (obj && "mode" in obj && obj.mode) {
4141
switch (obj.mode) {
42+
case "RELEXIFY":
43+
return model.PiiEntityRelexify.getJsonObj(
44+
<model.PiiEntityRelexify>(<object>jsonObj),
45+
true
46+
);
4247
case "REPLACE":
4348
return model.PiiEntityReplace.getJsonObj(<model.PiiEntityReplace>(<object>jsonObj), true);
4449
case "REMOVE":
@@ -56,6 +61,11 @@ export namespace PiiEntityMasking {
5661

5762
if (obj && "mode" in obj && obj.mode) {
5863
switch (obj.mode) {
64+
case "RELEXIFY":
65+
return model.PiiEntityRelexify.getDeserializedJsonObj(
66+
<model.PiiEntityRelexify>(<object>jsonObj),
67+
true
68+
);
5969
case "REPLACE":
6070
return model.PiiEntityReplace.getDeserializedJsonObj(
6171
<model.PiiEntityReplace>(<object>jsonObj),
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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, 2025, 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+
* Replace with entity value with the same context
22+
*/
23+
export interface PiiEntityRelexify extends model.PiiEntityMasking {
24+
"mode": string;
25+
}
26+
27+
export namespace PiiEntityRelexify {
28+
export function getJsonObj(obj: PiiEntityRelexify, isParentJsonObj?: boolean): object {
29+
const jsonObj = {
30+
...(isParentJsonObj ? obj : (model.PiiEntityMasking.getJsonObj(obj) as PiiEntityRelexify)),
31+
...{}
32+
};
33+
34+
return jsonObj;
35+
}
36+
export const mode = "RELEXIFY";
37+
export function getDeserializedJsonObj(
38+
obj: PiiEntityRelexify,
39+
isParentJsonObj?: boolean
40+
): object {
41+
const jsonObj = {
42+
...(isParentJsonObj
43+
? obj
44+
: (model.PiiEntityMasking.getDeserializedJsonObj(obj) as PiiEntityRelexify)),
45+
...{}
46+
};
47+
48+
return jsonObj;
49+
}
50+
}

lib/ailanguage/lib/model/pii-entity.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ export interface PiiEntity {
3737
* Entity text like name of person, Organization and so on.
3838
*/
3939
"text": string;
40+
/**
41+
* Redacted entity text
42+
*/
43+
"relexifyText"?: string;
4044
/**
4145
* Entity type supported
4246
* PERSON

0 commit comments

Comments
 (0)