ruạṛ
a ���f�I � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dd � Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zed(d)� �Zej d*d)� �Zed+d,� �Zej d-d,� �Zed.d/� �Zej d0d/� �Zed1d2� �Zej d3d2� �Zed4d5� �Zej d6d5� �Zd7d8� Zd9d:� Zd;d<� Zd=S )>�VirtualServicez� 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. �CREATING�UPDATING�ACTIVE�DELETING�DELETED�FAILEDc K s� dddddddddddddddd�| _ d d ddd ddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _dS )a� Initializes a new VirtualService object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this VirtualService. :type id: str :param compartment_id: The value to assign to the compartment_id property of this VirtualService. :type compartment_id: str :param mesh_id: The value to assign to the mesh_id property of this VirtualService. :type mesh_id: str :param name: The value to assign to the name property of this VirtualService. :type name: str :param description: The value to assign to the description property of this VirtualService. :type description: str :param default_routing_policy: The value to assign to the default_routing_policy property of this VirtualService. :type default_routing_policy: oci.service_mesh.models.DefaultVirtualServiceRoutingPolicy :param hosts: The value to assign to the hosts property of this VirtualService. :type hosts: list[str] :param mtls: The value to assign to the mtls property of this VirtualService. :type mtls: oci.service_mesh.models.MutualTransportLayerSecurity :param time_created: The value to assign to the time_created property of this VirtualService. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this VirtualService. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this VirtualService. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this VirtualService. :type lifecycle_details: str :param freeform_tags: The value to assign to the freeform_tags property of this VirtualService. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this VirtualService. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this VirtualService. :type system_tags: dict(str, dict(str, object)) �strZ"DefaultVirtualServiceRoutingPolicyz list[str]ZMutualTransportLayerSecurityZdatetimezdict(str, str)zdict(str, dict(str, object)))�id�compartment_id�mesh_id�name�description�default_routing_policy�hosts�mtls�time_created�time_updated�lifecycle_state�lifecycle_details� freeform_tags�defined_tags�system_tagsr Z compartmentIdZmeshIdr r ZdefaultRoutingPolicyr r ZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_compartment_id�_mesh_id�_name�_description�_default_routing_policy�_hosts�_mtls� _time_created� _time_updated�_lifecycle_state�_lifecycle_details�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� r. �K/usr/lib/python3.9/site-packages/oci/service_mesh/models/virtual_service.py�__init__* s^ E��zVirtualService.__init__c C s | j S )z� **[Required]** Gets the id of this VirtualService. Unique identifier that is immutable on creation. :return: The id of this VirtualService. :rtype: str �r �r, r. r. r/ r � s zVirtualService.idc C s || _ dS )z� Sets the id of this VirtualService. Unique identifier that is immutable on creation. :param id: The id of this VirtualService. :type: str Nr1 )r, r r. r. r/ r � s c C s | j S )a **[Required]** Gets the compartment_id of this VirtualService. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this VirtualService. :rtype: str �r r2 r. r. r/ r � s zVirtualService.compartment_idc C s || _ dS )a Sets the compartment_id of this VirtualService. The `OCID`__ of the compartment. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this VirtualService. :type: str Nr3 )r, r r. r. r/ r � s c C s | j S )z� **[Required]** Gets the mesh_id of this VirtualService. The OCID of the service mesh in which this virtual service is created. :return: The mesh_id of this VirtualService. :rtype: str �r r2 r. r. r/ r � s zVirtualService.mesh_idc C s || _ dS )z� Sets the mesh_id of this VirtualService. The OCID of the service mesh in which this virtual service is created. :param mesh_id: The mesh_id of this VirtualService. :type: str Nr4 )r, r r. r. r/ r � s c C s | j S )af **[Required]** Gets the name of this VirtualService. 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` :return: The name of this VirtualService. :rtype: str �r r2 r. r. r/ r � s zVirtualService.namec C s || _ dS )aZ Sets the name of this VirtualService. 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` :param name: The name of this VirtualService. :type: str Nr5 )r, r r. r. r/ r � s c C s | j S )a1 Gets the description of this VirtualService. Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: `This is my new resource` :return: The description of this VirtualService. :rtype: str �r! r2 r. r. r/ r s zVirtualService.descriptionc C s || _ dS )a; Sets the description of this VirtualService. Description of the resource. It can be changed after creation. Avoid entering confidential information. Example: `This is my new resource` :param description: The description of this VirtualService. :type: str Nr6 )r, r r. r. r/ r s c C s | j S )z� Gets the default_routing_policy of this VirtualService. :return: The default_routing_policy of this VirtualService. :rtype: oci.service_mesh.models.DefaultVirtualServiceRoutingPolicy �r"