o
    ëÉ¶dyA  ã                   @   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ed3d4„ ƒZejd5d4„ ƒZd6d7„ Zd8d9„ Zd:d;„ Zd<S )=ÚLogz"
    Represents a log object.
    ÚCUSTOMÚSERVICEÚCREATINGÚACTIVEÚUPDATINGÚINACTIVEÚDELETINGÚ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| _d| _d| _dS )a+
  
        Initializes a new Log 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 Log.
        :type id: str

        :param tenancy_id:
            The value to assign to the tenancy_id property of this Log.
        :type tenancy_id: str

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

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

        :param log_type:
            The value to assign to the log_type property of this Log.
            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 is_enabled:
            The value to assign to the is_enabled property of this Log.
        :type is_enabled: bool

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Log.
            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 time_created:
            The value to assign to the time_created property of this Log.
        :type time_created: datetime

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

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

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

        ÚstrÚboolzdict(str, dict(str, object))zdict(str, str)ÚConfigurationÚdatetimeÚint)ÚidÚ
tenancy_idÚlog_group_idÚdisplay_nameÚlog_typeÚ
is_enabledÚdefined_tagsÚfreeform_tagsÚconfigurationÚlifecycle_stateÚtime_createdÚtime_last_modifiedÚretention_durationÚcompartment_idr   Z	tenancyIdZ
logGroupIdZdisplayNameZlogTypeZ	isEnabledZdefinedTagsZfreeformTagsr   ZlifecycleStateZtimeCreatedZtimeLastModifiedZretentionDurationZcompartmentIdN)Zswagger_typesZattribute_mapÚ_idÚ_tenancy_idÚ_log_group_idÚ_display_nameÚ	_log_typeÚ_is_enabledÚ_defined_tagsÚ_freeform_tagsÚ_configurationÚ_lifecycle_stateÚ_time_createdÚ_time_last_modifiedÚ_retention_durationÚ_compartment_id)ÚselfÚkwargs© r2   ú:usr/lib/python3.10/site-packages/oci/logging/models/log.pyÚ__init__2   sX   Còò
zLog.__init__c                 C   ó   | j S )z–
        **[Required]** Gets the id of this Log.
        The OCID of the resource.


        :return: The id of this Log.
        :rtype: str
        ©r"   ©r0   r2   r2   r3   r   ¥   ó   
zLog.idc                 C   ó
   || _ dS )zˆ
        Sets the id of this Log.
        The OCID of the resource.


        :param id: The id of this Log.
        :type: str
        Nr6   )r0   r   r2   r2   r3   r   ±   ó   

c                 C   r5   )z–
        Gets the tenancy_id of this Log.
        The OCID of the tenancy.


        :return: The tenancy_id of this Log.
        :rtype: str
        ©r#   r7   r2   r2   r3   r   ½   r8   zLog.tenancy_idc                 C   r9   )zŸ
        Sets the tenancy_id of this Log.
        The OCID of the tenancy.


        :param tenancy_id: The tenancy_id of this Log.
        :type: str
        Nr;   )r0   r   r2   r2   r3   r   É   r:   c                 C   r5   )z 
        **[Required]** Gets the log_group_id of this Log.
        Log group OCID.


        :return: The log_group_id of this Log.
        :rtype: str
        ©r$   r7   r2   r2   r3   r   Õ   r8   zLog.log_group_idc                 C   r9   )zœ
        Sets the log_group_id of this Log.
        Log group OCID.


        :param log_group_id: The log_group_id of this Log.
        :type: str
        Nr<   )r0   r   r2   r2   r3   r   á   r:   c                 C   r5   )a)  
        **[Required]** Gets the display_name of this Log.
        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 Log.
        :rtype: str
        ©r%   r7   r2   r2   r3   r   í   s   zLog.display_namec                 C   r9   )a%  
        Sets the display_name of this Log.
        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 Log.
        :type: str
        Nr=   )r0   r   r2   r2   r3   r   ú   s   
c                 C   r5   )aƒ  
        **[Required]** Gets the log_type of this Log.
        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 Log.
        :rtype: str
        )r&   r7   r2   r2   r3   r     ó   zLog.log_typec                 C   s    ddg}t ||ƒsd}|| _dS )zÃ
        Sets the log_type of this Log.
        The logType that the log object is for, whether custom or service.


        :param log_type: The log_type of this Log.
        :type: str
        r   r   ÚUNKNOWN_ENUM_VALUEN)r   r&   )r0   r   Úallowed_valuesr2   r2   r3   r     ó   


c                 C   r5   )z±
        Gets the is_enabled of this Log.
        Whether or not this resource is currently enabled.


        :return: The is_enabled of this Log.
        :rtype: bool
        ©r'   r7   r2   r2   r3   r   %  r8   zLog.is_enabledc                 C   r9   )zº
        Sets the is_enabled of this Log.
        Whether or not this resource is currently enabled.


        :param is_enabled: The is_enabled of this Log.
        :type: bool
        NrB   )r0   r   r2   r2   r3   r   1  r:   c                 C   r5   )a®  
        Gets the defined_tags of this Log.
        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 Log.
        :rtype: dict(str, dict(str, object))
        ©r(   r7   r2   r2   r3   r   =  s   zLog.defined_tagsc                 C   r9   )a¹  
        Sets the defined_tags of this Log.
        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 Log.
        :type: dict(str, dict(str, object))
        NrC   )r0   r   r2   r2   r3   r   N  s   
c                 C   r5   )a·  
        Gets the freeform_tags of this Log.
        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 Log.
        :rtype: dict(str, str)
        ©r)   r7   r2   r2   r3   r   _  s   zLog.freeform_tagsc                 C   r9   )aÃ  
        Sets the freeform_tags of this Log.
        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 Log.
        :type: dict(str, str)
        NrD   )r0   r   r2   r2   r3   r   o  s   
c                 C   r5   )z—
        Gets the configuration of this Log.

        :return: The configuration of this Log.
        :rtype: oci.logging.models.Configuration
        ©r*   r7   r2   r2   r3   r     s   zLog.configurationc                 C   r9   )z£
        Sets the configuration of this Log.

        :param configuration: The configuration of this Log.
        :type: oci.logging.models.Configuration
        NrE   )r0   r   r2   r2   r3   r   ‰  s   
c                 C   r5   )a‘  
        **[Required]** Gets the lifecycle_state of this Log.
        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 Log.
        :rtype: str
        )r+   r7   r2   r2   r3   r   “  r>   zLog.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )z©
        Sets the lifecycle_state of this Log.
        The pipeline state.


        :param lifecycle_state: The lifecycle_state of this Log.
        :type: str
        )r	   r
   r   r   r   r   r?   N)r   r+   )r0   r   r@   r2   r2   r3   r   ¢  rA   c                 C   r5   )z¥
        Gets the time_created of this Log.
        Time the resource was created.


        :return: The time_created of this Log.
        :rtype: datetime
        ©r,   r7   r2   r2   r3   r   ±  r8   zLog.time_createdc                 C   r9   )z°
        Sets the time_created of this Log.
        Time the resource was created.


        :param time_created: The time_created of this Log.
        :type: datetime
        NrF   )r0   r   r2   r2   r3   r   ½  r:   c                 C   r5   )z·
        Gets the time_last_modified of this Log.
        Time the resource was last modified.


        :return: The time_last_modified of this Log.
        :rtype: datetime
        ©r-   r7   r2   r2   r3   r   É  r8   zLog.time_last_modifiedc                 C   r9   )zÈ
        Sets the time_last_modified of this Log.
        Time the resource was last modified.


        :param time_last_modified: The time_last_modified of this Log.
        :type: datetime
        NrG   )r0   r   r2   r2   r3   r   Õ  r:   c                 C   r5   )zÛ
        Gets the retention_duration of this Log.
        Log retention duration in 30-day increments (30, 60, 90 and so on until 180).


        :return: The retention_duration of this Log.
        :rtype: int
        ©r.   r7   r2   r2   r3   r    á  r8   zLog.retention_durationc                 C   r9   )zì
        Sets the retention_duration of this Log.
        Log retention duration in 30-day increments (30, 60, 90 and so on until 180).


        :param retention_duration: The retention_duration of this Log.
        :type: int
        NrH   )r0   r    r2   r2   r3   r    í  r:   c                 C   r5   )z¿
        Gets the compartment_id of this Log.
        The OCID of the compartment that the resource belongs to.


        :return: The compartment_id of this Log.
        :rtype: str
        ©r/   r7   r2   r2   r3   r!   ù  r8   zLog.compartment_idc                 C   r9   )zÌ
        Sets the compartment_id of this Log.
        The OCID of the compartment that the resource belongs to.


        :param compartment_id: The compartment_id of this Log.
        :type: str
        NrI   )r0   r!   r2   r2   r3   r!     r:   c                 C   s   t | ƒS ©N)r   r7   r2   r2   r3   Ú__repr__  s   zLog.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r0   Úotherr2   r2   r3   Ú__eq__  s   z
Log.__eq__c                 C   s
   | |k S rJ   r2   rM   r2   r2   r3   Ú__ne__  s   
z
Log.__ne__N) Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLOG_TYPE_CUSTOMZLOG_TYPE_SERVICEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_FAILEDr4   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r    r!   rK   rO   rP   r2   r2   r2   r3   r      sŒ    s
















	
	









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r2   r2   r2   r3   Ú<module>   s   