|
| 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, 2021, 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 | + * Connection details for an external RESP based cache store for Response Caching. |
| 22 | + * |
| 23 | + */ |
| 24 | +export interface ExternalRespCache extends model.ResponseCacheDetails { |
| 25 | + /** |
| 26 | + * The set of cache store members to connect to. At present only a single server is supported. |
| 27 | + * |
| 28 | + */ |
| 29 | + "servers": Array<model.ResponseCacheRespServer>; |
| 30 | + /** |
| 31 | + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Vault Service secret resource. |
| 32 | + * |
| 33 | + */ |
| 34 | + "authenticationSecretId": string; |
| 35 | + /** |
| 36 | + * The version number of the authentication secret to use. |
| 37 | + * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. |
| 38 | + */ |
| 39 | + "authenticationSecretVersionNumber": number; |
| 40 | + /** |
| 41 | + * Defines if the connection should be over SSL. |
| 42 | + * |
| 43 | + */ |
| 44 | + "isSslEnabled"?: boolean; |
| 45 | + /** |
| 46 | + * Defines whether or not to uphold SSL verification. |
| 47 | + * |
| 48 | + */ |
| 49 | + "isSslVerifyDisabled"?: boolean; |
| 50 | + /** |
| 51 | + * Defines the timeout for establishing a connection with the Response Cache. |
| 52 | + * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. |
| 53 | + */ |
| 54 | + "connectTimeoutInMs"?: number; |
| 55 | + /** |
| 56 | + * Defines the timeout for reading data from the Response Cache. |
| 57 | + * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. |
| 58 | + */ |
| 59 | + "readTimeoutInMs"?: number; |
| 60 | + /** |
| 61 | + * Defines the timeout for transmitting data to the Response Cache. |
| 62 | + * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. |
| 63 | + */ |
| 64 | + "sendTimeoutInMs"?: number; |
| 65 | + |
| 66 | + "type": string; |
| 67 | +} |
| 68 | + |
| 69 | +export namespace ExternalRespCache { |
| 70 | + export function getJsonObj(obj: ExternalRespCache, isParentJsonObj?: boolean): object { |
| 71 | + const jsonObj = { |
| 72 | + ...(isParentJsonObj |
| 73 | + ? obj |
| 74 | + : (model.ResponseCacheDetails.getJsonObj(obj) as ExternalRespCache)), |
| 75 | + ...{ |
| 76 | + "servers": obj.servers |
| 77 | + ? obj.servers.map(item => { |
| 78 | + return model.ResponseCacheRespServer.getJsonObj(item); |
| 79 | + }) |
| 80 | + : undefined |
| 81 | + } |
| 82 | + }; |
| 83 | + |
| 84 | + return jsonObj; |
| 85 | + } |
| 86 | + export const type = "EXTERNAL_RESP_CACHE"; |
| 87 | +} |
0 commit comments