|
| 1 | +/** |
| 2 | + * API Gateway API |
| 3 | + * API for the API Gateway service. Use this API to manage gateways, deployments, and related items. |
| 4 | +For more information, see |
| 5 | +[Overview of API Gateway](/iaas/Content/APIGateway/Concepts/apigatewayoverview.htm). |
| 6 | +
|
| 7 | + * OpenAPI spec version: 20190501 |
| 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 model from "../model"; |
| 18 | +import common = require("oci-common"); |
| 19 | + |
| 20 | +/** |
| 21 | + * Information around the set of string values for selector of a dynamic authentication/ routing branch. Selector should match any one of the values present in set of string values. |
| 22 | + */ |
| 23 | +export interface AnyOfSelectionKey extends model.DynamicSelectionKey { |
| 24 | + /** |
| 25 | + * Information regarding the set of values of selector for which this branch should be selected. |
| 26 | + */ |
| 27 | + "values"?: Array<string>; |
| 28 | + |
| 29 | + "type": string; |
| 30 | +} |
| 31 | + |
| 32 | +export namespace AnyOfSelectionKey { |
| 33 | + export function getJsonObj(obj: AnyOfSelectionKey, isParentJsonObj?: boolean): object { |
| 34 | + const jsonObj = { |
| 35 | + ...(isParentJsonObj ? obj : (model.DynamicSelectionKey.getJsonObj(obj) as AnyOfSelectionKey)), |
| 36 | + ...{} |
| 37 | + }; |
| 38 | + |
| 39 | + return jsonObj; |
| 40 | + } |
| 41 | + export const type = "ANY_OF"; |
| 42 | + export function getDeserializedJsonObj( |
| 43 | + obj: AnyOfSelectionKey, |
| 44 | + isParentJsonObj?: boolean |
| 45 | + ): object { |
| 46 | + const jsonObj = { |
| 47 | + ...(isParentJsonObj |
| 48 | + ? obj |
| 49 | + : (model.DynamicSelectionKey.getDeserializedJsonObj(obj) as AnyOfSelectionKey)), |
| 50 | + ...{} |
| 51 | + }; |
| 52 | + |
| 53 | + return jsonObj; |
| 54 | + } |
| 55 | +} |
0 commit comments