|
| 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 | +} |
0 commit comments