o
    ɶd;;                     @   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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d0d1 Zejd2d1 Zd3d4 Zd5d6 Zd7d8 Zd9S ):ChannelzA
    A Channel connecting a DB System to an external entity.
    CREATINGACTIVENEEDS_ATTENTIONINACTIVEUPDATING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 )a&	  
        Initializes a new Channel 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 Channel.
        :type id: str

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

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

        :param is_enabled:
            The value to assign to the is_enabled property of this Channel.
        :type is_enabled: bool

        :param source:
            The value to assign to the source property of this Channel.
        :type source: oci.mysql.models.ChannelSource

        :param target:
            The value to assign to the target property of this Channel.
        :type target: oci.mysql.models.ChannelTarget

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Channel.
            Allowed values for this property are: "CREATING", "ACTIVE", "NEEDS_ATTENTION", "INACTIVE", "UPDATING", "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 Channel.
        :type lifecycle_details: str

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

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

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

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

        strboolZChannelSourceZChannelTargetdatetimezdict(str, str)zdict(str, dict(str, object)))idcompartment_iddisplay_name
is_enabledsourcetargetdescriptionlifecycle_statelifecycle_detailstime_createdtime_updatedfreeform_tagsdefined_tagsr   ZcompartmentIdZdisplayNameZ	isEnabledr   r   r   ZlifecycleStateZlifecycleDetailsZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_compartment_id_display_name_is_enabled_source_target_description_lifecycle_state_lifecycle_details_time_created_time_updated_freeform_tags_defined_tags)selfkwargs r.   <usr/lib/python3.10/site-packages/oci/mysql/models/channel.py__init__2   sR   =
zChannel.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Channel.
        The OCID of the Channel.


        :return: The id of this Channel.
        :rtype: str
        r   r,   r.   r.   r/   r         
z
Channel.idc                 C   
   || _ dS )z
        Sets the id of this Channel.
        The OCID of the Channel.


        :param id: The id of this Channel.
        :type: str
        Nr2   )r,   r   r.   r.   r/   r         

c                 C   r1   )z
        **[Required]** Gets the compartment_id of this Channel.
        The OCID of the compartment.


        :return: The compartment_id of this Channel.
        :rtype: str
        r    r3   r.   r.   r/   r      r4   zChannel.compartment_idc                 C   r5   )z
        Sets the compartment_id of this Channel.
        The OCID of the compartment.


        :param compartment_id: The compartment_id of this Channel.
        :type: str
        Nr7   )r,   r   r.   r.   r/   r      r6   c                 C   r1   )z
        **[Required]** Gets the display_name of this Channel.
        The user-friendly name for the Channel. It does not have to be unique.


        :return: The display_name of this Channel.
        :rtype: str
        r!   r3   r.   r.   r/   r      r4   zChannel.display_namec                 C   r5   )z
        Sets the display_name of this Channel.
        The user-friendly name for the Channel. It does not have to be unique.


        :param display_name: The display_name of this Channel.
        :type: str
        Nr8   )r,   r   r.   r.   r/   r      r6   c                 C   r1   )z
        **[Required]** Gets the is_enabled of this Channel.
        Whether the Channel has been enabled by the user.


        :return: The is_enabled of this Channel.
        :rtype: bool
        r"   r3   r.   r.   r/   r      r4   zChannel.is_enabledc                 C   r5   )z
        Sets the is_enabled of this Channel.
        Whether the Channel has been enabled by the user.


        :param is_enabled: The is_enabled of this Channel.
        :type: bool
        Nr9   )r,   r   r.   r.   r/   r      r6   c                 C   r1   )z
        **[Required]** Gets the source of this Channel.

        :return: The source of this Channel.
        :rtype: oci.mysql.models.ChannelSource
        r#   r3   r.   r.   r/   r         zChannel.sourcec                 C   r5   )z
        Sets the source of this Channel.

        :param source: The source of this Channel.
        :type: oci.mysql.models.ChannelSource
        Nr:   )r,   r   r.   r.   r/   r        
c                 C   r1   )z
        **[Required]** Gets the target of this Channel.

        :return: The target of this Channel.
        :rtype: oci.mysql.models.ChannelTarget
        r$   r3   r.   r.   r/   r     r;   zChannel.targetc                 C   r5   )z
        Sets the target of this Channel.

        :param target: The target of this Channel.
        :type: oci.mysql.models.ChannelTarget
        Nr=   )r,   r   r.   r.   r/   r     r<   c                 C   r1   )z
        Gets the description of this Channel.
        User provided description of the Channel.


        :return: The description of this Channel.
        :rtype: str
        r%   r3   r.   r.   r/   r   $  r4   zChannel.descriptionc                 C   r5   )z
        Sets the description of this Channel.
        User provided description of the Channel.


        :param description: The description of this Channel.
        :type: str
        Nr>   )r,   r   r.   r.   r/   r   0  r6   c                 C   r1   )a  
        **[Required]** Gets the lifecycle_state of this Channel.
        The state of the Channel.

        Allowed values for this property are: "CREATING", "ACTIVE", "NEEDS_ATTENTION", "INACTIVE", "UPDATING", "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 Channel.
        :rtype: str
        )r&   r3   r.   r.   r/   r   <  s   zChannel.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Channel.
        The state of the Channel.


        :param lifecycle_state: The lifecycle_state of this Channel.
        :type: str
        )r   r   r	   r
   r   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r&   )r,   r   Zallowed_valuesr.   r.   r/   r   K  s   


c                 C   r1   )z
        Gets the lifecycle_details of this Channel.
        A message describing the state of the Channel.


        :return: The lifecycle_details of this Channel.
        :rtype: str
        r'   r3   r.   r.   r/   r   Z  r4   zChannel.lifecycle_detailsc                 C   r5   )z
        Sets the lifecycle_details of this Channel.
        A message describing the state of the Channel.


        :param lifecycle_details: The lifecycle_details of this Channel.
        :type: str
        Nr?   )r,   r   r.   r.   r/   r   f  r6   c                 C   r1   )a  
        **[Required]** Gets the time_created of this Channel.
        The date and time the Channel was created, as described by `RFC 3339`__.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_created of this Channel.
        :rtype: datetime
        r(   r3   r.   r.   r/   r   r     zChannel.time_createdc                 C   r5   )a  
        Sets the time_created of this Channel.
        The date and time the Channel was created, as described by `RFC 3339`__.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_created: The time_created of this Channel.
        :type: datetime
        Nr@   )r,   r   r.   r.   r/   r        
c                 C   r1   )a  
        **[Required]** Gets the time_updated of this Channel.
        The time the Channel was last updated, as described by `RFC 3339`__.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_updated of this Channel.
        :rtype: datetime
        r)   r3   r.   r.   r/   r     rA   zChannel.time_updatedc                 C   r5   )a  
        Sets the time_updated of this Channel.
        The time the Channel was last updated, as described by `RFC 3339`__.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_updated: The time_updated of this Channel.
        :type: datetime
        NrC   )r,   r   r.   r.   r/   r     rB   c                 C   r1   )a-  
        Gets the freeform_tags of this Channel.
        Simple key-value pair applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Channel.
        :rtype: dict(str, str)
        r*   r3   r.   r.   r/   r        zChannel.freeform_tagsc                 C   r5   )a9  
        Sets the freeform_tags of this Channel.
        Simple key-value pair 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 Channel.
        :type: dict(str, str)
        NrD   )r,   r   r.   r.   r/   r        
c                 C   r1   )a+  
        Gets the defined_tags of this Channel.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Channel.
        :rtype: dict(str, dict(str, object))
        r+   r3   r.   r.   r/   r     rE   zChannel.defined_tagsc                 C   r5   )a6  
        Sets the defined_tags of this Channel.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Channel.
        :type: dict(str, dict(str, object))
        NrG   )r,   r   r.   r.   r/   r     rF   c                 C   s   t | S N)r   r3   r.   r.   r/   __repr__  s   zChannel.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r,   otherr.   r.   r/   __eq__  s   zChannel.__eq__c                 C   s
   | |k S rH   r.   rK   r.   r.   r/   __ne__  s   
zChannel.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_NEEDS_ATTENTIONZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr0   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   rI   rM   rN   r.   r.   r.   r/   r      s    j








	
	
	
	













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r.   r.   r.   r/   <module>   s   