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                   @   s2  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d%d& Zd'd( Zd)d* Zd+S ),LogGroupz'
    Represents a LogGroup object.
    CREATINGACTIVEUPDATINGINACTIVEDELETINGFAILEDc              
   K   sn   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 LogGroup 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 LogGroup.
        :type id: str

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this LogGroup.
            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 defined_tags:
            The value to assign to the defined_tags property of this LogGroup.
        :type defined_tags: dict(str, dict(str, object))

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

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

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

        strzdict(str, dict(str, object))zdict(str, str)datetime)	idcompartment_iddisplay_namedescriptionlifecycle_statedefined_tagsfreeform_tagstime_createdtime_last_modifiedr   ZcompartmentIdZdisplayNamer   ZlifecycleStateZdefinedTagsZfreeformTagsZtimeCreatedZtimeLastModifiedN)Zswagger_typesZattribute_map_id_compartment_id_display_name_description_lifecycle_state_defined_tags_freeform_tags_time_created_time_last_modified)selfkwargs r#   @usr/lib/python3.10/site-packages/oci/logging/models/log_group.py__init__*   s:   -
zLogGroup.__init__c                 C      | j S )z
        **[Required]** Gets the id of this LogGroup.
        The OCID of the resource.


        :return: The id of this LogGroup.
        :rtype: str
        r   r!   r#   r#   r$   r   x      
zLogGroup.idc                 C   
   || _ dS )z
        Sets the id of this LogGroup.
        The OCID of the resource.


        :param id: The id of this LogGroup.
        :type: str
        Nr'   )r!   r   r#   r#   r$   r         

c                 C   r&   )z
        **[Required]** Gets the compartment_id of this LogGroup.
        The OCID of the compartment that the resource belongs to.


        :return: The compartment_id of this LogGroup.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zLogGroup.compartment_idc                 C   r*   )z
        Sets the compartment_id of this LogGroup.
        The OCID of the compartment that the resource belongs to.


        :param compartment_id: The compartment_id of this LogGroup.
        :type: str
        Nr,   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )a3  
        **[Required]** Gets the display_name of this LogGroup.
        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 LogGroup.
        :rtype: str
        r   r(   r#   r#   r$   r      s   zLogGroup.display_namec                 C   r*   )a/  
        Sets the display_name of this LogGroup.
        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 LogGroup.
        :type: str
        Nr-   )r!   r   r#   r#   r$   r      s   
c                 C   r&   )z
        Gets the description of this LogGroup.
        Description for this resource.


        :return: The description of this LogGroup.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zLogGroup.descriptionc                 C   r*   )z
        Sets the description of this LogGroup.
        Description for this resource.


        :param description: The description of this LogGroup.
        :type: str
        Nr.   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )a  
        Gets the lifecycle_state of this LogGroup.
        The log group object 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 LogGroup.
        :rtype: str
        )r   r(   r#   r#   r$   r      s   zLogGroup.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this LogGroup.
        The log group object state.


        :param lifecycle_state: The lifecycle_state of this LogGroup.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r!   r   Zallowed_valuesr#   r#   r$   r      s   


c                 C   r&   )a  
        Gets the defined_tags of this LogGroup.
        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 LogGroup.
        :rtype: dict(str, dict(str, object))
        r   r(   r#   r#   r$   r      s   zLogGroup.defined_tagsc                 C   r*   )a  
        Sets the defined_tags of this LogGroup.
        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 LogGroup.
        :type: dict(str, dict(str, object))
        Nr/   )r!   r   r#   r#   r$   r   	  s   
c                 C   r&   )a  
        Gets the freeform_tags of this LogGroup.
        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 LogGroup.
        :rtype: dict(str, str)
        r   r(   r#   r#   r$   r     s   zLogGroup.freeform_tagsc                 C   r*   )a  
        Sets the freeform_tags of this LogGroup.
        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 LogGroup.
        :type: dict(str, str)
        Nr0   )r!   r   r#   r#   r$   r   *  s   
c                 C   r&   )z
        Gets the time_created of this LogGroup.
        Time the resource was created.


        :return: The time_created of this LogGroup.
        :rtype: datetime
        r   r(   r#   r#   r$   r   :  r)   zLogGroup.time_createdc                 C   r*   )z
        Sets the time_created of this LogGroup.
        Time the resource was created.


        :param time_created: The time_created of this LogGroup.
        :type: datetime
        Nr1   )r!   r   r#   r#   r$   r   F  r+   c                 C   r&   )z
        Gets the time_last_modified of this LogGroup.
        Time the resource was last modified.


        :return: The time_last_modified of this LogGroup.
        :rtype: datetime
        r    r(   r#   r#   r$   r   R  r)   zLogGroup.time_last_modifiedc                 C   r*   )z
        Sets the time_last_modified of this LogGroup.
        Time the resource was last modified.


        :param time_last_modified: The time_last_modified of this LogGroup.
        :type: datetime
        Nr2   )r!   r   r#   r#   r$   r   ^  r+   c                 C   s   t | S N)r   r(   r#   r#   r$   __repr__j  s   zLogGroup.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r!   otherr#   r#   r$   __eq__m  s   zLogGroup.__eq__c                 C   s
   | |k S r3   r#   r6   r#   r#   r$   __ne__s  s   
zLogGroup.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_FAILEDr%   propertyr   setterr   r   r   r   r   r   r   r   r4   r8   r9   r#   r#   r#   r$   r      s`    N

















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r#   r#   r#   r$   <module>   s   