Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 0 additions & 9 deletions lib/ailanguage/lib/model/create-endpoint-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export interface CreateEndpointDetails {
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
*/
"displayName"?: string;
/**
* Compute infra type for endpoint.
*/
"computeType"?: CreateEndpointDetails.ComputeType;
/**
* Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
*/
Expand Down Expand Up @@ -64,11 +60,6 @@ export interface CreateEndpointDetails {
}

export namespace CreateEndpointDetails {
export enum ComputeType {
Cpu = "CPU",
Gpu = "GPU"
}

export function getJsonObj(obj: CreateEndpointDetails): object {
const jsonObj = { ...obj, ...{} };

Expand Down
14 changes: 0 additions & 14 deletions lib/ailanguage/lib/model/endpoint-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ export interface EndpointSummary {
* Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
*/
"alias"?: string;
/**
* Compute infra type for endpoint.
*/
"computeType"?: EndpointSummary.ComputeType;
/**
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
*/
Expand Down Expand Up @@ -90,16 +86,6 @@ export interface EndpointSummary {
}

export namespace EndpointSummary {
export enum ComputeType {
Cpu = "CPU",
Gpu = "GPU",
/**
* This value is used if a service returns a value for this enum that is not recognized by this
* version of the SDK.
*/
UnknownValue = "UNKNOWN_VALUE"
}

export function getJsonObj(obj: EndpointSummary): object {
const jsonObj = { ...obj, ...{} };

Expand Down
14 changes: 0 additions & 14 deletions lib/ailanguage/lib/model/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ export interface Endpoint {
* Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.
*/
"alias"?: string;
/**
* Compute infra type for endpoint.
*/
"computeType"?: Endpoint.ComputeType;
/**
* A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.
*/
Expand Down Expand Up @@ -94,16 +90,6 @@ export interface Endpoint {
}

export namespace Endpoint {
export enum ComputeType {
Cpu = "CPU",
Gpu = "GPU",
/**
* This value is used if a service returns a value for this enum that is not recognized by this
* version of the SDK.
*/
UnknownValue = "UNKNOWN_VALUE"
}

export enum LifecycleState {
Deleting = "DELETING",
Deleted = "DELETED",
Expand Down
2 changes: 2 additions & 0 deletions lib/ailanguage/lib/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ import * as ObjectStoragePrefixLocation from "./object-storage-prefix-location";
export import ObjectStoragePrefixLocation = ObjectStoragePrefixLocation.ObjectStoragePrefixLocation;
import * as PiiEntityMask from "./pii-entity-mask";
export import PiiEntityMask = PiiEntityMask.PiiEntityMask;
import * as PiiEntityRelexify from "./pii-entity-relexify";
export import PiiEntityRelexify = PiiEntityRelexify.PiiEntityRelexify;
import * as PiiEntityRemove from "./pii-entity-remove";
export import PiiEntityRemove = PiiEntityRemove.PiiEntityRemove;
import * as PiiEntityReplace from "./pii-entity-replace";
Expand Down
10 changes: 10 additions & 0 deletions lib/ailanguage/lib/model/pii-entity-masking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export namespace PiiEntityMasking {

if (obj && "mode" in obj && obj.mode) {
switch (obj.mode) {
case "RELEXIFY":
return model.PiiEntityRelexify.getJsonObj(
<model.PiiEntityRelexify>(<object>jsonObj),
true
);
case "REPLACE":
return model.PiiEntityReplace.getJsonObj(<model.PiiEntityReplace>(<object>jsonObj), true);
case "REMOVE":
Expand All @@ -56,6 +61,11 @@ export namespace PiiEntityMasking {

if (obj && "mode" in obj && obj.mode) {
switch (obj.mode) {
case "RELEXIFY":
return model.PiiEntityRelexify.getDeserializedJsonObj(
<model.PiiEntityRelexify>(<object>jsonObj),
true
);
case "REPLACE":
return model.PiiEntityReplace.getDeserializedJsonObj(
<model.PiiEntityReplace>(<object>jsonObj),
Expand Down
50 changes: 50 additions & 0 deletions lib/ailanguage/lib/model/pii-entity-relexify.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**
* Language API
* OCI Language Service solutions can help enterprise customers integrate AI into their products immediately using our proven,
pre-trained and custom models or containers, without a need to set up an house team of AI and ML experts.
This allows enterprises to focus on business drivers and development work rather than AI and ML operations, which shortens the time to market.

* OpenAPI spec version: 20221001
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
* 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.
*/

import * as model from "../model";
import common = require("oci-common");

/**
* Replace with entity value with the same context
*/
export interface PiiEntityRelexify extends model.PiiEntityMasking {
"mode": string;
}

export namespace PiiEntityRelexify {
export function getJsonObj(obj: PiiEntityRelexify, isParentJsonObj?: boolean): object {
const jsonObj = {
...(isParentJsonObj ? obj : (model.PiiEntityMasking.getJsonObj(obj) as PiiEntityRelexify)),
...{}
};

return jsonObj;
}
export const mode = "RELEXIFY";
export function getDeserializedJsonObj(
obj: PiiEntityRelexify,
isParentJsonObj?: boolean
): object {
const jsonObj = {
...(isParentJsonObj
? obj
: (model.PiiEntityMasking.getDeserializedJsonObj(obj) as PiiEntityRelexify)),
...{}
};

return jsonObj;
}
}
4 changes: 4 additions & 0 deletions lib/ailanguage/lib/model/pii-entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export interface PiiEntity {
* Entity text like name of person, Organization and so on.
*/
"text": string;
/**
* Redacted entity text
*/
"relexifyText"?: string;
/**
* Entity type supported
* PERSON
Expand Down
Loading