| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/oci/devops/models/__pycache__/ |
Upload File : |
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 @ sd e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zd
d� Z dd
� Z
dd� ZdS )�CommitActivitySummaryz>
activity describing commit updates to a pull request
c K s` dddddddd�| _ dddd d
ddd�| _d
| _d
| _d
| _d
| _d
| _d
| _d
| _d| _d
S )a{
Initializes a new CommitActivitySummary object with values from keyword arguments. The default value of the :py:attr:`~oci.devops.models.CommitActivitySummary.activity_type` attribute
of this class is ``COMMIT`` 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 CommitActivitySummary.
:type id: str
:param principal:
The value to assign to the principal property of this CommitActivitySummary.
:type principal: oci.devops.models.PrincipalDetails
:param pull_request_id:
The value to assign to the pull_request_id property of this CommitActivitySummary.
:type pull_request_id: str
:param time_occurred:
The value to assign to the time_occurred property of this CommitActivitySummary.
:type time_occurred: datetime
:param activity_type:
The value to assign to the activity_type property of this CommitActivitySummary.
Allowed values for this property are: "LIFECYCLE", "APPROVAL", "COMMIT", "REVIEWER", "COMMENT"
:type activity_type: str
:param commits_added:
The value to assign to the commits_added property of this CommitActivitySummary.
:type commits_added: list[oci.devops.models.RepositoryCommit]
:param commits_removed:
The value to assign to the commits_removed property of this CommitActivitySummary.
:type commits_removed: list[oci.devops.models.RepositoryCommit]
�strZPrincipalDetailsZdatetimezlist[RepositoryCommit])�id� principalZpull_request_idZ
time_occurredZ
activity_type�
commits_added�commits_removedr
r Z
pullRequestIdZtimeOccurredZactivityTypeZcommitsAddedZcommitsRemovedNZCOMMIT) Z
swagger_typesZ
attribute_mapZ_idZ
_principalZ_pull_request_idZ_time_occurredZ_activity_type�_commits_added�_commits_removed)�self�kwargs� r �M/usr/lib/python3.9/site-packages/oci/devops/models/commit_activity_summary.py�__init__ s0 %��
zCommitActivitySummary.__init__c C s | j S )a
**[Required]** Gets the commits_added of this CommitActivitySummary.
list of commits added to a PR source branch after git push
:return: The commits_added of this CommitActivitySummary.
:rtype: list[oci.devops.models.RepositoryCommit]
�r �r r r r r S s
z#CommitActivitySummary.commits_addedc C s
|| _ dS )a
Sets the commits_added of this CommitActivitySummary.
list of commits added to a PR source branch after git push
:param commits_added: The commits_added of this CommitActivitySummary.
:type: list[oci.devops.models.RepositoryCommit]
Nr )r r r r r r _ s
c C s | j S )a
**[Required]** Gets the commits_removed of this CommitActivitySummary.
list of commits removed from a PR source branch after git push
:return: The commits_removed of this CommitActivitySummary.
:rtype: list[oci.devops.models.RepositoryCommit]
�r r r r r r
k s
z%CommitActivitySummary.commits_removedc C s
|| _ dS )a
Sets the commits_removed of this CommitActivitySummary.
list of commits removed from a PR source branch after git push
:param commits_removed: The commits_removed of this CommitActivitySummary.
:type: list[oci.devops.models.RepositoryCommit]
Nr )r r
r r r r
w s
c C s t | �S �N)r r r r r �__repr__� s zCommitActivitySummary.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zCommitActivitySummary.__eq__c C s
| |k S r r r r r r �__ne__� s zCommitActivitySummary.__ne__N)�__name__�
__module__�__qualname__�__doc__r �propertyr �setterr
r r r r r r r r s A
r N) Zpull_request_activity_summaryr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s