/** * 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"; /** * This resource represents a customer-managed service in the Service Mesh. Each virtual service declares multiple running versions of the service and maps to a group of instances/pods running a specific version of the actual service. */ export interface VirtualService { /** * Unique identifier that is immutable on creation. */ "id": string; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. * */ "compartmentId": string; /** * The OCID of the service mesh in which this virtual service is created. */ "meshId": string; /** * A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. * Avoid entering confidential information. *
Example: {@code My unique resource name} * */ "name": string; /** * Description of the resource. It can be changed after creation. * Avoid entering confidential information. *
Example: {@code This is my new resource}
*
*/
"description"?: string;
"defaultRoutingPolicy"?: model.DefaultVirtualServiceRoutingPolicy;
/**
* The DNS hostnames of the virtual service that is used by its callers.
* Wildcard hostnames are supported in the prefix form.
* Examples of valid hostnames are \"www.example.com\", \"*.example.com\", \"*.com\".
* Can be omitted if the virtual service will only have TCP virtual deployments.
*
*/
"hosts"?: Array