o
    ëÉ¶d6A  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   sš  e Zd ZdZdZdZdZdZdZdZ	dd	„ Z
ed
d„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd „ ƒZejd!d „ ƒZed"d#„ ƒZejd$d#„ ƒZed%d&„ ƒZejd'd&„ ƒZed(d)„ ƒZejd*d)„ ƒZed+d,„ ƒZejd-d,„ ƒZed.d/„ ƒZejd0d/„ ƒZd1d2„ Zd3d4„ Zd5d6„ Zd7S )8ÚMeshzÝ
    The mesh resource is the top-level container that represents the logical boundary of application traffic between the services and deployments that reside within it. A mesh also provides a unit of access control.
    ÚCREATINGÚUPDATINGÚACTIVEÚDELETINGÚDELETEDÚFAILEDc                 K   s–   ddddddddddddddœ| _ dd	d
dddddddddddœ| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _dS )aS	  
        Initializes a new Mesh 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 Mesh.
        :type id: str

        :param display_name:
            The value to assign to the display_name property of this Mesh.
        :type display_name: str

        :param description:
            The value to assign to the description property of this Mesh.
        :type description: str

        :param certificate_authorities:
            The value to assign to the certificate_authorities property of this Mesh.
        :type certificate_authorities: list[oci.service_mesh.models.CertificateAuthority]

        :param mtls:
            The value to assign to the mtls property of this Mesh.
        :type mtls: oci.service_mesh.models.MeshMutualTransportLayerSecurity

        :param compartment_id:
            The value to assign to the compartment_id property of this Mesh.
        :type compartment_id: str

        :param time_created:
            The value to assign to the time_created property of this Mesh.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this Mesh.
        :type time_updated: datetime

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Mesh.
            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 Mesh.
        :type lifecycle_details: str

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Mesh.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Mesh.
        :type defined_tags: dict(str, dict(str, object))

        :param system_tags:
            The value to assign to the system_tags property of this Mesh.
        :type system_tags: dict(str, dict(str, object))

        Ústrzlist[CertificateAuthority]Z MeshMutualTransportLayerSecurityÚdatetimezdict(str, str)zdict(str, dict(str, object)))ÚidÚdisplay_nameÚdescriptionÚcertificate_authoritiesÚmtlsÚcompartment_idÚtime_createdÚtime_updatedÚlifecycle_stateÚlifecycle_detailsÚfreeform_tagsÚdefined_tagsÚsystem_tagsr   ZdisplayNamer   ZcertificateAuthoritiesr   ZcompartmentIdZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_mapÚ_idÚ_display_nameÚ_descriptionÚ_certificate_authoritiesÚ_mtlsÚ_compartment_idÚ_time_createdÚ_time_updatedÚ_lifecycle_stateÚ_lifecycle_detailsÚ_freeform_tagsÚ_defined_tagsÚ_system_tags)ÚselfÚkwargs© r+   ú@usr/lib/python3.10/site-packages/oci/service_mesh/models/mesh.pyÚ__init__*   sR   =óó
zMesh.__init__c                 C   ó   | j S )z¯
        **[Required]** Gets the id of this Mesh.
        Unique identifier that is immutable on creation.


        :return: The id of this Mesh.
        :rtype: str
        ©r   ©r)   r+   r+   r,   r   ”   ó   
zMesh.idc                 C   ó
   || _ dS )z¡
        Sets the id of this Mesh.
        Unique identifier that is immutable on creation.


        :param id: The id of this Mesh.
        :type: str
        Nr/   )r)   r   r+   r+   r,   r       ó   

c                 C   r.   )aD  
        **[Required]** Gets the display_name of this Mesh.
        A user-friendly name. The name does not have to be unique and can be changed after creation.
        Avoid entering confidential information.

        Example: `My new resource`


        :return: The display_name of this Mesh.
        :rtype: str
        ©r   r0   r+   r+   r,   r   ¬   ó   zMesh.display_namec                 C   r2   )a@  
        Sets the display_name of this Mesh.
        A user-friendly name. The name does not have to be unique and can be changed after creation.
        Avoid entering confidential information.

        Example: `My new resource`


        :param display_name: The display_name of this Mesh.
        :type: str
        Nr4   )r)   r   r+   r+   r,   r   »   ó   
c                 C   r.   )a  
        Gets the description of this Mesh.
        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 Mesh.
        :rtype: str
        ©r   r0   r+   r+   r,   r   Ê   r5   zMesh.descriptionc                 C   r2   )a'  
        Sets the description of this Mesh.
        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 Mesh.
        :type: str
        Nr7   )r)   r   r+   r+   r,   r   Ù   r6   c                 C   r.   )aá  
        Gets the certificate_authorities of this Mesh.
        A list of certificate authority resources to use for creating leaf certificates for mTLS authentication.
        Currently we only support one certificate authority, but this may expand in future releases. Request with
        more than one certificate authority will be rejected.


        :return: The certificate_authorities of this Mesh.
        :rtype: list[oci.service_mesh.models.CertificateAuthority]
        ©r   r0   r+   r+   r,   r   è   ó   zMesh.certificate_authoritiesc                 C   r2   )a÷  
        Sets the certificate_authorities of this Mesh.
        A list of certificate authority resources to use for creating leaf certificates for mTLS authentication.
        Currently we only support one certificate authority, but this may expand in future releases. Request with
        more than one certificate authority will be rejected.


        :param certificate_authorities: The certificate_authorities of this Mesh.
        :type: list[oci.service_mesh.models.CertificateAuthority]
        Nr8   )r)   r   r+   r+   r,   r   ö   ó   
c                 C   r.   )zŸ
        Gets the mtls of this Mesh.

        :return: The mtls of this Mesh.
        :rtype: oci.service_mesh.models.MeshMutualTransportLayerSecurity
        ©r    r0   r+   r+   r,   r     s   z	Mesh.mtlsc                 C   r2   )z¢
        Sets the mtls of this Mesh.

        :param mtls: The mtls of this Mesh.
        :type: oci.service_mesh.models.MeshMutualTransportLayerSecurity
        Nr;   )r)   r   r+   r+   r,   r     s   
c                 C   r.   )a
  
        **[Required]** Gets the compartment_id of this Mesh.
        The `OCID`__ of the compartment.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The compartment_id of this Mesh.
        :rtype: str
        ©r!   r0   r+   r+   r,   r     r9   zMesh.compartment_idc                 C   r2   )a  
        Sets the compartment_id of this Mesh.
        The `OCID`__ of the compartment.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param compartment_id: The compartment_id of this Mesh.
        :type: str
        Nr<   )r)   r   r+   r+   r,   r   &  r:   c                 C   r.   )zè
        **[Required]** Gets the time_created of this Mesh.
        The time when this resource was created in an RFC3339 formatted datetime string.


        :return: The time_created of this Mesh.
        :rtype: datetime
        ©r"   r0   r+   r+   r,   r   4  r1   zMesh.time_createdc                 C   r2   )zä
        Sets the time_created of this Mesh.
        The time when this resource was created in an RFC3339 formatted datetime string.


        :param time_created: The time_created of this Mesh.
        :type: datetime
        Nr=   )r)   r   r+   r+   r,   r   @  r3   c                 C   r.   )zè
        **[Required]** Gets the time_updated of this Mesh.
        The time when this resource was updated in an RFC3339 formatted datetime string.


        :return: The time_updated of this Mesh.
        :rtype: datetime
        ©r#   r0   r+   r+   r,   r   L  r1   zMesh.time_updatedc                 C   r2   )zä
        Sets the time_updated of this Mesh.
        The time when this resource was updated in an RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this Mesh.
        :type: datetime
        Nr>   )r)   r   r+   r+   r,   r   X  r3   c                 C   r.   )a¡  
        **[Required]** Gets the lifecycle_state of this Mesh.
        The current state of the Resource.

        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'.


        :return: The lifecycle_state of this Mesh.
        :rtype: str
        )r$   r0   r+   r+   r,   r   d  r5   zMesh.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zº
        Sets the lifecycle_state of this Mesh.
        The current state of the Resource.


        :param lifecycle_state: The lifecycle_state of this Mesh.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r$   )r)   r   Zallowed_valuesr+   r+   r,   r   s  s   


c                 C   r.   )a!  
        Gets the lifecycle_details of this Mesh.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.


        :return: The lifecycle_details of this Mesh.
        :rtype: str
        ©r%   r0   r+   r+   r,   r   ‚  r1   zMesh.lifecycle_detailsc                 C   r2   )a1  
        Sets the lifecycle_details of this Mesh.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed state.


        :param lifecycle_details: The lifecycle_details of this Mesh.
        :type: str
        Nr?   )r)   r   r+   r+   r,   r   Ž  r3   c                 C   r.   )a/  
        Gets the freeform_tags of this Mesh.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Mesh.
        :rtype: dict(str, str)
        ©r&   r0   r+   r+   r,   r   š  ó   zMesh.freeform_tagsc                 C   r2   )a;  
        Sets the freeform_tags of this Mesh.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Mesh.
        :type: dict(str, str)
        Nr@   )r)   r   r+   r+   r,   r   §  ó   
c                 C   r.   )a)  
        Gets the defined_tags of this Mesh.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Mesh.
        :rtype: dict(str, dict(str, object))
        ©r'   r0   r+   r+   r,   r   ´  rA   zMesh.defined_tagsc                 C   r2   )a4  
        Sets the defined_tags of this Mesh.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Mesh.
        :type: dict(str, dict(str, object))
        NrC   )r)   r   r+   r+   r,   r   Á  rB   c                 C   r.   )a&  
        Gets the system_tags of this Mesh.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :return: The system_tags of this Mesh.
        :rtype: dict(str, dict(str, object))
        ©r(   r0   r+   r+   r,   r   Î  rA   zMesh.system_tagsc                 C   r2   )a0  
        Sets the system_tags of this Mesh.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :param system_tags: The system_tags of this Mesh.
        :type: dict(str, dict(str, object))
        NrD   )r)   r   r+   r+   r,   r   Û  rB   c                 C   s   t | ƒS ©N)r   r0   r+   r+   r,   Ú__repr__è  s   zMesh.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r)   Úotherr+   r+   r,   Ú__eq__ë  s   zMesh.__eq__c                 C   s
   | |k S rE   r+   rH   r+   r+   r,   Ú__ne__ñ  s   
zMesh.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr-   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   rF   rJ   rK   r+   r+   r+   r,   r      s€    j








	
	















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r+   r+   r+   r,   Ú<module>   s   