CreateVirtualServiceDetails

class oci.service_mesh.models.CreateVirtualServiceDetails(**kwargs)

Bases: object

The information about the new VirtualService.

Methods

__init__(**kwargs) Initializes a new CreateVirtualServiceDetails object with values from keyword arguments.

Attributes

compartment_id [Required] Gets the compartment_id of this CreateVirtualServiceDetails.
default_routing_policy Gets the default_routing_policy of this CreateVirtualServiceDetails.
defined_tags Gets the defined_tags of this CreateVirtualServiceDetails.
description Gets the description of this CreateVirtualServiceDetails.
freeform_tags Gets the freeform_tags of this CreateVirtualServiceDetails.
hosts Gets the hosts of this CreateVirtualServiceDetails.
mesh_id [Required] Gets the mesh_id of this CreateVirtualServiceDetails.
mtls Gets the mtls of this CreateVirtualServiceDetails.
name [Required] Gets the name of this CreateVirtualServiceDetails.
__init__(**kwargs)

Initializes a new CreateVirtualServiceDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • mesh_id (str) – The value to assign to the mesh_id property of this CreateVirtualServiceDetails.
  • name (str) – The value to assign to the name property of this CreateVirtualServiceDetails.
  • description (str) – The value to assign to the description property of this CreateVirtualServiceDetails.
  • default_routing_policy (oci.service_mesh.models.DefaultVirtualServiceRoutingPolicy) – The value to assign to the default_routing_policy property of this CreateVirtualServiceDetails.
  • hosts (list[str]) – The value to assign to the hosts property of this CreateVirtualServiceDetails.
  • mtls (oci.service_mesh.models.VirtualServiceMutualTransportLayerSecurityDetails) – The value to assign to the mtls property of this CreateVirtualServiceDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateVirtualServiceDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateVirtualServiceDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateVirtualServiceDetails.
compartment_id

[Required] Gets the compartment_id of this CreateVirtualServiceDetails. The OCID of the compartment.

Returns:The compartment_id of this CreateVirtualServiceDetails.
Return type:str
default_routing_policy

Gets the default_routing_policy of this CreateVirtualServiceDetails.

Returns:The default_routing_policy of this CreateVirtualServiceDetails.
Return type:oci.service_mesh.models.DefaultVirtualServiceRoutingPolicy
defined_tags

Gets the defined_tags of this CreateVirtualServiceDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this CreateVirtualServiceDetails.
Return type:dict(str, dict(str, object))
description

Gets the description of this CreateVirtualServiceDetails. Description of the resource. It can be changed after creation. Avoid entering confidential information.

Example: This is my new resource

Returns:The description of this CreateVirtualServiceDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateVirtualServiceDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this CreateVirtualServiceDetails.
Return type:dict(str, str)
hosts

Gets the hosts of this CreateVirtualServiceDetails. 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.

Returns:The hosts of this CreateVirtualServiceDetails.
Return type:list[str]
mesh_id

[Required] Gets the mesh_id of this CreateVirtualServiceDetails. The OCID of the service mesh in which this virtual service is created.

Returns:The mesh_id of this CreateVirtualServiceDetails.
Return type:str
mtls

Gets the mtls of this CreateVirtualServiceDetails.

Returns:The mtls of this CreateVirtualServiceDetails.
Return type:oci.service_mesh.models.VirtualServiceMutualTransportLayerSecurityDetails
name

[Required] Gets the name of this CreateVirtualServiceDetails. 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: My unique resource name

Returns:The name of this CreateVirtualServiceDetails.
Return type:str