o
    ɶd1                     @   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                   @   sh  e 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d(d) Zd*d+ Zd,d- Zd.S )/ChannelSummaryz
    Summary of a Channel.
    c                 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S )a  
        Initializes a new ChannelSummary 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 ChannelSummary.
        :type id: str

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this ChannelSummary.
        :type lifecycle_state: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this ChannelSummary.
        :type lifecycle_details: str

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

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

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

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

        :param defined_tags:
            The value to assign to the defined_tags property of this ChannelSummary.
        :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
is_enabledsourcetargetlifecycle_statelifecycle_detailsdisplay_nametime_createdtime_updatedfreeform_tagsdefined_tagsr
   ZcompartmentIdZ	isEnabledr   r   ZlifecycleStateZlifecycleDetailsZdisplayNameZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_compartment_id_is_enabled_source_target_lifecycle_state_lifecycle_details_display_name_time_created_time_updated_freeform_tags_defined_tags)selfkwargs r$   Dusr/lib/python3.10/site-packages/oci/mysql/models/channel_summary.py__init__   sL   7
zChannelSummary.__init__c                 C      | j S )z
        **[Required]** Gets the id of this ChannelSummary.
        The OCID of the Channel.


        :return: The id of this ChannelSummary.
        :rtype: str
        r   r"   r$   r$   r%   r
   s      
zChannelSummary.idc                 C   
   || _ dS )z
        Sets the id of this ChannelSummary.
        The OCID of the Channel.


        :param id: The id of this ChannelSummary.
        :type: str
        Nr(   )r"   r
   r$   r$   r%   r
         

c                 C   r'   )z
        **[Required]** Gets the compartment_id of this ChannelSummary.
        The OCID of the compartment.


        :return: The compartment_id of this ChannelSummary.
        :rtype: str
        r   r)   r$   r$   r%   r      r*   zChannelSummary.compartment_idc                 C   r+   )z
        Sets the compartment_id of this ChannelSummary.
        The OCID of the compartment.


        :param compartment_id: The compartment_id of this ChannelSummary.
        :type: str
        Nr-   )r"   r   r$   r$   r%   r      r,   c                 C   r'   )z
        **[Required]** Gets the is_enabled of this ChannelSummary.
        Whether the Channel has been enabled by the user.


        :return: The is_enabled of this ChannelSummary.
        :rtype: bool
        r   r)   r$   r$   r%   r      r*   zChannelSummary.is_enabledc                 C   r+   )z
        Sets the is_enabled of this ChannelSummary.
        Whether the Channel has been enabled by the user.


        :param is_enabled: The is_enabled of this ChannelSummary.
        :type: bool
        Nr.   )r"   r   r$   r$   r%   r      r,   c                 C   r'   )z
        **[Required]** Gets the source of this ChannelSummary.

        :return: The source of this ChannelSummary.
        :rtype: oci.mysql.models.ChannelSource
        r   r)   r$   r$   r%   r         zChannelSummary.sourcec                 C   r+   )z
        Sets the source of this ChannelSummary.

        :param source: The source of this ChannelSummary.
        :type: oci.mysql.models.ChannelSource
        Nr/   )r"   r   r$   r$   r%   r         
c                 C   r'   )z
        **[Required]** Gets the target of this ChannelSummary.

        :return: The target of this ChannelSummary.
        :rtype: oci.mysql.models.ChannelTarget
        r   r)   r$   r$   r%   r      r0   zChannelSummary.targetc                 C   r+   )z
        Sets the target of this ChannelSummary.

        :param target: The target of this ChannelSummary.
        :type: oci.mysql.models.ChannelTarget
        Nr2   )r"   r   r$   r$   r%   r      r1   c                 C   r'   )z
        **[Required]** Gets the lifecycle_state of this ChannelSummary.
        The state of the Channel.


        :return: The lifecycle_state of this ChannelSummary.
        :rtype: str
        r   r)   r$   r$   r%   r      r*   zChannelSummary.lifecycle_statec                 C   r+   )z
        Sets the lifecycle_state of this ChannelSummary.
        The state of the Channel.


        :param lifecycle_state: The lifecycle_state of this ChannelSummary.
        :type: str
        Nr3   )r"   r   r$   r$   r%   r      r,   c                 C   r'   )z
        Gets the lifecycle_details of this ChannelSummary.
        A message describing the state of the Channel.


        :return: The lifecycle_details of this ChannelSummary.
        :rtype: str
        r   r)   r$   r$   r%   r      r*   z ChannelSummary.lifecycle_detailsc                 C   r+   )z
        Sets the lifecycle_details of this ChannelSummary.
        A message describing the state of the Channel.


        :param lifecycle_details: The lifecycle_details of this ChannelSummary.
        :type: str
        Nr4   )r"   r   r$   r$   r%   r     r,   c                 C   r'   )z
        **[Required]** Gets the display_name of this ChannelSummary.
        The user-friendly name for the Channel. It does not have to be unique.


        :return: The display_name of this ChannelSummary.
        :rtype: str
        r   r)   r$   r$   r%   r     r*   zChannelSummary.display_namec                 C   r+   )z
        Sets the display_name of this ChannelSummary.
        The user-friendly name for the Channel. It does not have to be unique.


        :param display_name: The display_name of this ChannelSummary.
        :type: str
        Nr5   )r"   r   r$   r$   r%   r     r,   c                 C   r'   )a#  
        **[Required]** Gets the time_created of this ChannelSummary.
        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 ChannelSummary.
        :rtype: datetime
        r   r)   r$   r$   r%   r   +     zChannelSummary.time_createdc                 C   r+   )a  
        Sets the time_created of this ChannelSummary.
        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 ChannelSummary.
        :type: datetime
        Nr6   )r"   r   r$   r$   r%   r   9     
c                 C   r'   )a  
        **[Required]** Gets the time_updated of this ChannelSummary.
        The time the Channel was last updated, as described by `RFC 3339`__.

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


        :return: The time_updated of this ChannelSummary.
        :rtype: datetime
        r   r)   r$   r$   r%   r   G  r7   zChannelSummary.time_updatedc                 C   r+   )a  
        Sets the time_updated of this ChannelSummary.
        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 ChannelSummary.
        :type: datetime
        Nr9   )r"   r   r$   r$   r%   r   U  r8   c                 C   r'   )a;  
        Gets the freeform_tags of this ChannelSummary.
        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 ChannelSummary.
        :rtype: dict(str, str)
        r    r)   r$   r$   r%   r   c     zChannelSummary.freeform_tagsc                 C   r+   )aG  
        Sets the freeform_tags of this ChannelSummary.
        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 ChannelSummary.
        :type: dict(str, str)
        Nr:   )r"   r   r$   r$   r%   r   p     
c                 C   r'   )a9  
        Gets the defined_tags of this ChannelSummary.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this ChannelSummary.
        :rtype: dict(str, dict(str, object))
        r!   r)   r$   r$   r%   r   }  r;   zChannelSummary.defined_tagsc                 C   r+   )aD  
        Sets the defined_tags of this ChannelSummary.
        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 ChannelSummary.
        :type: dict(str, dict(str, object))
        Nr=   )r"   r   r$   r$   r%   r     r<   c                 C   s   t | S N)r   r)   r$   r$   r%   __repr__  s   zChannelSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r"   otherr$   r$   r%   __eq__  s   zChannelSummary.__eq__c                 C   s
   | |k S r>   r$   rA   r$   r$   r%   __ne__  s   
zChannelSummary.__ne__N)__name__
__module____qualname____doc__r&   propertyr
   setterr   r   r   r   r   r   r   r   r   r   r   r?   rC   rD   r$   r$   r$   r%   r      sl    a






	
	
	
	













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r$   r$   r$   r%   <module>   s   