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 ):Ú
LogSummaryz+
    Log object configuration summary.
    ÚCREATINGÚACTIVEÚUPDATINGÚINACTIVEÚDELETINGÚFAILEDÚCUSTOMÚSERVICEc                 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 LogSummary 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 LogSummary.
        :type id: str

        :param log_group_id:
            The value to assign to the log_group_id property of this LogSummary.
        :type log_group_id: str

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this LogSummary.
            Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "INACTIVE", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param log_type:
            The value to assign to the log_type property of this LogSummary.
            Allowed values for this property are: "CUSTOM", "SERVICE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type log_type: str

        :param configuration:
            The value to assign to the configuration property of this LogSummary.
        :type configuration: oci.logging.models.Configuration

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

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

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

        :param time_last_modified:
            The value to assign to the time_last_modified property of this LogSummary.
        :type time_last_modified: datetime

        :param retention_duration:
            The value to assign to the retention_duration property of this LogSummary.
        :type retention_duration: int

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

        ÚstrÚboolÚConfigurationzdict(str, dict(str, object))zdict(str, str)ÚdatetimeÚint)ÚidÚlog_group_idÚdisplay_nameÚ
is_enabledÚlifecycle_stateÚlog_typeÚconfigurationÚdefined_tagsÚfreeform_tagsÚtime_createdÚtime_last_modifiedÚretention_durationÚcompartment_idr   Z
logGroupIdZdisplayNameZ	isEnabledZlifecycleStateZlogTyper   ZdefinedTagsZfreeformTagsZtimeCreatedZtimeLastModifiedZretentionDurationZcompartmentIdN)Zswagger_typesZattribute_mapÚ_idÚ_log_group_idÚ_display_nameÚ_is_enabledÚ_lifecycle_stateÚ	_log_typeÚ_configurationÚ_defined_tagsÚ_freeform_tagsÚ_time_createdÚ_time_last_modifiedÚ_retention_durationÚ_compartment_id)ÚselfÚkwargs© r0   úBusr/lib/python3.10/site-packages/oci/logging/models/log_summary.pyÚ__init__2   sR   ?óó
zLogSummary.__init__c                 C   ó   | j S )z¤
        **[Required]** Gets the id of this LogSummary.
        The OCID of the resource.


        :return: The id of this LogSummary.
        :rtype: str
        ©r!   ©r.   r0   r0   r1   r   ž   ó   
zLogSummary.idc                 C   ó
   || _ dS )z–
        Sets the id of this LogSummary.
        The OCID of the resource.


        :param id: The id of this LogSummary.
        :type: str
        Nr4   )r.   r   r0   r0   r1   r   ª   ó   

c                 C   r3   )z®
        **[Required]** Gets the log_group_id of this LogSummary.
        Log group OCID.


        :return: The log_group_id of this LogSummary.
        :rtype: str
        ©r"   r5   r0   r0   r1   r   ¶   r6   zLogSummary.log_group_idc                 C   r7   )zª
        Sets the log_group_id of this LogSummary.
        Log group OCID.


        :param log_group_id: The log_group_id of this LogSummary.
        :type: str
        Nr9   )r.   r   r0   r0   r1   r   Â   r8   c                 C   r3   )a7  
        **[Required]** Gets the display_name of this LogSummary.
        The user-friendly display name. This must be unique within the enclosing resource,
        and it's changeable. Avoid entering confidential information.


        :return: The display_name of this LogSummary.
        :rtype: str
        ©r#   r5   r0   r0   r1   r   Î   s   zLogSummary.display_namec                 C   r7   )a3  
        Sets the display_name of this LogSummary.
        The user-friendly display name. This must be unique within the enclosing resource,
        and it's changeable. Avoid entering confidential information.


        :param display_name: The display_name of this LogSummary.
        :type: str
        Nr:   )r.   r   r0   r0   r1   r   Û   s   
c                 C   r3   )z¿
        Gets the is_enabled of this LogSummary.
        Whether or not this resource is currently enabled.


        :return: The is_enabled of this LogSummary.
        :rtype: bool
        ©r$   r5   r0   r0   r1   r   è   r6   zLogSummary.is_enabledc                 C   r7   )zÈ
        Sets the is_enabled of this LogSummary.
        Whether or not this resource is currently enabled.


        :param is_enabled: The is_enabled of this LogSummary.
        :type: bool
        Nr;   )r.   r   r0   r0   r1   r   ô   r8   c                 C   r3   )aŸ  
        **[Required]** Gets the lifecycle_state of this LogSummary.
        The pipeline state.

        Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "INACTIVE", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this LogSummary.
        :rtype: str
        )r%   r5   r0   r0   r1   r      ó   zLogSummary.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )z·
        Sets the lifecycle_state of this LogSummary.
        The pipeline state.


        :param lifecycle_state: The lifecycle_state of this LogSummary.
        :type: str
        )r   r   r	   r
   r   r   ÚUNKNOWN_ENUM_VALUEN)r   r%   )r.   r   Úallowed_valuesr0   r0   r1   r     ó   


c                 C   r3   )a‘  
        **[Required]** Gets the log_type of this LogSummary.
        The logType that the log object is for, whether custom or service.

        Allowed values for this property are: "CUSTOM", "SERVICE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The log_type of this LogSummary.
        :rtype: str
        )r&   r5   r0   r0   r1   r     r<   zLogSummary.log_typec                 C   s    ddg}t ||ƒsd}|| _dS )zÑ
        Sets the log_type of this LogSummary.
        The logType that the log object is for, whether custom or service.


        :param log_type: The log_type of this LogSummary.
        :type: str
        r   r   r=   N)r   r&   )r.   r   r>   r0   r0   r1   r   -  r?   c                 C   r3   )z¥
        Gets the configuration of this LogSummary.

        :return: The configuration of this LogSummary.
        :rtype: oci.logging.models.Configuration
        ©r'   r5   r0   r0   r1   r   <  s   zLogSummary.configurationc                 C   r7   )z±
        Sets the configuration of this LogSummary.

        :param configuration: The configuration of this LogSummary.
        :type: oci.logging.models.Configuration
        Nr@   )r.   r   r0   r0   r1   r   F  s   
c                 C   r3   )a¼  
        Gets the defined_tags of this LogSummary.
        Defined tags for this resource. Each key is predefined and scoped to a
        namespace. For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

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


        :return: The defined_tags of this LogSummary.
        :rtype: dict(str, dict(str, object))
        ©r(   r5   r0   r0   r1   r   P  s   zLogSummary.defined_tagsc                 C   r7   )aÇ  
        Sets the defined_tags of this LogSummary.
        Defined tags for this resource. Each key is predefined and scoped to a
        namespace. For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

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


        :param defined_tags: The defined_tags of this LogSummary.
        :type: dict(str, dict(str, object))
        NrA   )r.   r   r0   r0   r1   r   a  s   
c                 C   r3   )aÅ  
        Gets the freeform_tags of this LogSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair with no
        predefined name, type, or namespace. For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

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


        :return: The freeform_tags of this LogSummary.
        :rtype: dict(str, str)
        ©r)   r5   r0   r0   r1   r   r  s   zLogSummary.freeform_tagsc                 C   r7   )aÑ  
        Sets the freeform_tags of this LogSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair with no
        predefined name, type, or namespace. For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

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


        :param freeform_tags: The freeform_tags of this LogSummary.
        :type: dict(str, str)
        NrB   )r.   r   r0   r0   r1   r   ‚  s   
c                 C   r3   )z³
        Gets the time_created of this LogSummary.
        Time the resource was created.


        :return: The time_created of this LogSummary.
        :rtype: datetime
        ©r*   r5   r0   r0   r1   r   ’  r6   zLogSummary.time_createdc                 C   r7   )z¾
        Sets the time_created of this LogSummary.
        Time the resource was created.


        :param time_created: The time_created of this LogSummary.
        :type: datetime
        NrC   )r.   r   r0   r0   r1   r   ž  r8   c                 C   r3   )zÅ
        Gets the time_last_modified of this LogSummary.
        Time the resource was last modified.


        :return: The time_last_modified of this LogSummary.
        :rtype: datetime
        ©r+   r5   r0   r0   r1   r   ª  r6   zLogSummary.time_last_modifiedc                 C   r7   )zÖ
        Sets the time_last_modified of this LogSummary.
        Time the resource was last modified.


        :param time_last_modified: The time_last_modified of this LogSummary.
        :type: datetime
        NrD   )r.   r   r0   r0   r1   r   ¶  r8   c                 C   r3   )zé
        Gets the retention_duration of this LogSummary.
        Log retention duration in 30-day increments (30, 60, 90 and so on until 180).


        :return: The retention_duration of this LogSummary.
        :rtype: int
        ©r,   r5   r0   r0   r1   r   Â  r6   zLogSummary.retention_durationc                 C   r7   )zú
        Sets the retention_duration of this LogSummary.
        Log retention duration in 30-day increments (30, 60, 90 and so on until 180).


        :param retention_duration: The retention_duration of this LogSummary.
        :type: int
        NrE   )r.   r   r0   r0   r1   r   Î  r8   c                 C   r3   )zÍ
        Gets the compartment_id of this LogSummary.
        The OCID of the compartment that the resource belongs to.


        :return: The compartment_id of this LogSummary.
        :rtype: str
        ©r-   r5   r0   r0   r1   r    Ú  r6   zLogSummary.compartment_idc                 C   r7   )zÚ
        Sets the compartment_id of this LogSummary.
        The OCID of the compartment that the resource belongs to.


        :param compartment_id: The compartment_id of this LogSummary.
        :type: str
        NrF   )r.   r    r0   r0   r1   r    æ  r8   c                 C   s   t | ƒS ©N)r   r5   r0   r0   r1   Ú__repr__ò  s   zLogSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r.   Úotherr0   r0   r1   Ú__eq__õ  s   zLogSummary.__eq__c                 C   s
   | |k S rG   r0   rJ   r0   r0   r1   Ú__ne__û  s   
zLogSummary.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_FAILEDZLOG_TYPE_CUSTOMZLOG_TYPE_SERVICEr2   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r    rH   rL   rM   r0   r0   r0   r1   r      s„    l












	
	











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r0   r0   r0   r1   Ú<module>   s   