/** * Service Mesh API * Use the Service Mesh API to manage mesh, virtual service, access policy and other mesh related items. * OpenAPI spec version: 20220615 * * * 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"; /** * External service target that internal virtual services direct traffic to. */ export interface ExternalServiceAccessPolicyTarget extends model.AccessPolicyTarget { /** * The hostnames of the external service. Only applicable for HTTP and HTTPS protocols. * Wildcard hostnames are supported in the prefix form. * Examples of valid hostnames are \"www.example.com\", \"*.example.com\", \"*.com\", \"*\". * Hostname \"*\" can be used to allow all hosts. * */ "hostnames"?: Array; /** * The ipAddresses of the external service in CIDR notation. Only applicable for TCP protocol. * All requests matching the given CIDR notation will pass through. * In case a wildcard CIDR \"0.0.0.0/0\" is provided, the same port cannot be used for a virtual service communication. * */ "ipAddresses"?: Array; /** * Ports exposed by an external service. If left empty all ports will be allowed. */ "ports"?: Array; /** * Protocol of the external service */ "protocol"?: ExternalServiceAccessPolicyTarget.Protocol; "type": string; } export declare namespace ExternalServiceAccessPolicyTarget { enum Protocol { Http = "HTTP", Https = "HTTPS", Tcp = "TCP", /** * 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" } function getJsonObj(obj: ExternalServiceAccessPolicyTarget, isParentJsonObj?: boolean): object; const type = "EXTERNAL_SERVICE"; function getDeserializedJsonObj(obj: ExternalServiceAccessPolicyTarget, isParentJsonObj?: boolean): object; }