o
    ɶd&                     @   sD   d dl mZ ddlmZmZmZ ddlmZ eG dd deZdS )   )Item    )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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 ) ActivityItemz0
    Details about the ActivityItem object.
    NOTESPROBLEM_DESCRIPTIONUPDATECLOSECUSTOMERORACLEc                 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S )a*	  
        Initializes a new ActivityItem object with values from keyword arguments. The default value of the :py:attr:`~oci.cims.models.ActivityItem.type` attribute
        of this class is ``activity`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param item_key:
            The value to assign to the item_key property of this ActivityItem.
        :type item_key: str

        :param name:
            The value to assign to the name property of this ActivityItem.
        :type name: str

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

        :param category:
            The value to assign to the category property of this ActivityItem.
        :type category: oci.cims.models.Category

        :param sub_category:
            The value to assign to the sub_category property of this ActivityItem.
        :type sub_category: oci.cims.models.SubCategory

        :param issue_type:
            The value to assign to the issue_type property of this ActivityItem.
        :type issue_type: oci.cims.models.IssueType

        :param comments:
            The value to assign to the comments property of this ActivityItem.
        :type comments: str

        :param time_created:
            The value to assign to the time_created property of this ActivityItem.
        :type time_created: int

        :param time_updated:
            The value to assign to the time_updated property of this ActivityItem.
        :type time_updated: int

        :param activity_type:
            The value to assign to the activity_type property of this ActivityItem.
            Allowed values for this property are: "NOTES", "PROBLEM_DESCRIPTION", "UPDATE", "CLOSE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type activity_type: str

        :param activity_author:
            The value to assign to the activity_author property of this ActivityItem.
            Allowed values for this property are: "CUSTOMER", "ORACLE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type activity_author: str

        strZCategoryZSubCategoryZ	IssueTypeint)Zitem_keynametypecategoryZsub_categoryZ
issue_typecommentstime_createdtime_updatedactivity_typeactivity_authorZitemKeyr   r   r   ZsubCategoryZ	issueTyper   ZtimeCreatedZtimeUpdatedZactivityTypeZactivityAuthorNZactivity)Zswagger_typesZattribute_mapZ	_item_key_nameZ_typeZ	_categoryZ_sub_categoryZ_issue_type	_comments_time_created_time_updated_activity_type_activity_author)selfkwargs r!   Ausr/lib/python3.10/site-packages/oci/cims/models/activity_item.py__init__*   sH   8
zActivityItem.__init__c                 C      | j S )z
        Gets the comments of this ActivityItem.
        Comments added with the activity on the support ticket.


        :return: The comments of this ActivityItem.
        :rtype: str
        r   r   r!   r!   r"   r         
zActivityItem.commentsc                 C   
   || _ dS )z
        Sets the comments of this ActivityItem.
        Comments added with the activity on the support ticket.


        :param comments: The comments of this ActivityItem.
        :type: str
        Nr%   )r   r   r!   r!   r"   r         

c                 C   r$   )z
        Gets the time_created of this ActivityItem.
        The time when the activity was created, in milliseconds since epoch time.


        :return: The time_created of this ActivityItem.
        :rtype: int
        r   r&   r!   r!   r"   r      r'   zActivityItem.time_createdc                 C   r(   )z
        Sets the time_created of this ActivityItem.
        The time when the activity was created, in milliseconds since epoch time.


        :param time_created: The time_created of this ActivityItem.
        :type: int
        Nr*   )r   r   r!   r!   r"   r      r)   c                 C   r$   )z
        Gets the time_updated of this ActivityItem.
        The time when the activity was updated, in milliseconds since epoch time.


        :return: The time_updated of this ActivityItem.
        :rtype: int
        r   r&   r!   r!   r"   r      r'   zActivityItem.time_updatedc                 C   r(   )z
        Sets the time_updated of this ActivityItem.
        The time when the activity was updated, in milliseconds since epoch time.


        :param time_updated: The time_updated of this ActivityItem.
        :type: int
        Nr+   )r   r   r!   r!   r"   r      r)   c                 C   r$   )a  
        Gets the activity_type of this ActivityItem.
        The type of activity occuring on the support ticket.

        Allowed values for this property are: "NOTES", "PROBLEM_DESCRIPTION", "UPDATE", "CLOSE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The activity_type of this ActivityItem.
        :rtype: str
        )r   r&   r!   r!   r"   r         zActivityItem.activity_typec                 C   s    g d}t ||sd}|| _dS )z
        Sets the activity_type of this ActivityItem.
        The type of activity occuring on the support ticket.


        :param activity_type: The activity_type of this ActivityItem.
        :type: str
        )r	   r
   r   r   UNKNOWN_ENUM_VALUEN)r   r   )r   r   allowed_valuesr!   r!   r"   r         


c                 C   r$   )a  
        Gets the activity_author of this ActivityItem.
        The person who updates the activity on the support ticket.

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


        :return: The activity_author of this ActivityItem.
        :rtype: str
        )r   r&   r!   r!   r"   r      r,   zActivityItem.activity_authorc                 C   s    ddg}t ||sd}|| _dS )z
        Sets the activity_author of this ActivityItem.
        The person who updates the activity on the support ticket.


        :param activity_author: The activity_author of this ActivityItem.
        :type: str
        r   r   r-   N)r   r   )r   r   r.   r!   r!   r"   r      r/   c                 C   s   t | S N)r   r&   r!   r!   r"   __repr__  s   zActivityItem.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr!   r!   r"   __eq__  s   zActivityItem.__eq__c                 C   s
   | |k S r0   r!   r3   r!   r!   r"   __ne__  s   
zActivityItem.__ne__N)__name__
__module____qualname____doc__ZACTIVITY_TYPE_NOTESZ!ACTIVITY_TYPE_PROBLEM_DESCRIPTIONZACTIVITY_TYPE_UPDATEZACTIVITY_TYPE_CLOSEZACTIVITY_AUTHOR_CUSTOMERZACTIVITY_AUTHOR_ORACLEr#   propertyr   setterr   r   r   r   r1   r5   r6   r!   r!   r!   r"   r      s@    `









r   N)	itemr   Zoci.utilr   r   r   Zoci.decoratorsr   r   r!   r!   r!   r"   <module>   s
   