ruạṛ
a ���f; � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�PullRequestActivitySummary� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sR e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zd d � Z dd� Zd d� ZdS )�ApprovalActivitySummaryz< activity describing a reviewer's approval decision �APPROVED� UNAPPROVEDc K sV ddddddd�| _ ddddd d d�| _d| _d| _d| _d| _d| _d| _d| _dS ) a� Initializes a new ApprovalActivitySummary object with values from keyword arguments. The default value of the :py:attr:`~oci.devops.models.ApprovalActivitySummary.activity_type` attribute of this class is ``APPROVAL`` and it should not be changed. 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 ApprovalActivitySummary. :type id: str :param principal: The value to assign to the principal property of this ApprovalActivitySummary. :type principal: oci.devops.models.PrincipalDetails :param pull_request_id: The value to assign to the pull_request_id property of this ApprovalActivitySummary. :type pull_request_id: str :param time_occurred: The value to assign to the time_occurred property of this ApprovalActivitySummary. :type time_occurred: datetime :param activity_type: The value to assign to the activity_type property of this ApprovalActivitySummary. Allowed values for this property are: "LIFECYCLE", "APPROVAL", "COMMIT", "REVIEWER", "COMMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type activity_type: str :param status: The value to assign to the status property of this ApprovalActivitySummary. Allowed values for this property are: "APPROVED", "UNAPPROVED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str �strZPrincipalDetailsZdatetime)�id� principalZpull_request_idZ time_occurredZ activity_type�statusr r Z pullRequestIdZtimeOccurredZactivityTyper NZAPPROVAL)Z swagger_typesZ attribute_mapZ_idZ _principalZ_pull_request_idZ_time_occurredZ_activity_type�_status)�self�kwargs� r �O/usr/lib/python3.9/site-packages/oci/devops/models/approval_activity_summary.py�__init__ s* $� � z ApprovalActivitySummary.__init__c C s | j S )a� **[Required]** Gets the status of this ApprovalActivitySummary. The approval status of a reviewer Allowed values for this property are: "APPROVED", "UNAPPROVED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this ApprovalActivitySummary. :rtype: str )r �r r r r r W s zApprovalActivitySummary.statusc C s ddg}t ||�sd}|| _dS )z� Sets the status of this ApprovalActivitySummary. The approval status of a reviewer :param status: The status of this ApprovalActivitySummary. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r f s c C s t | �S �N)r r r r r �__repr__u s z ApprovalActivitySummary.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__x s zApprovalActivitySummary.__eq__c C s | |k S r r r r r r �__ne__~ s zApprovalActivitySummary.__ne__N) �__name__� __module__�__qualname__�__doc__ZSTATUS_APPROVEDZSTATUS_UNAPPROVEDr �propertyr �setterr r r r r r r r s = r N) Zpull_request_activity_summaryr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn