PullRequestActivitySummary¶
-
class
oci.devops.models.
PullRequestActivitySummary
(**kwargs)¶ Bases:
object
Summary of an activity record in a pull request
Attributes
ACTIVITY_TYPE_APPROVAL
A constant which can be used with the activity_type property of a PullRequestActivitySummary. ACTIVITY_TYPE_COMMENT
A constant which can be used with the activity_type property of a PullRequestActivitySummary. ACTIVITY_TYPE_COMMIT
A constant which can be used with the activity_type property of a PullRequestActivitySummary. ACTIVITY_TYPE_LIFECYCLE
A constant which can be used with the activity_type property of a PullRequestActivitySummary. ACTIVITY_TYPE_REVIEWER
A constant which can be used with the activity_type property of a PullRequestActivitySummary. activity_type
[Required] Gets the activity_type of this PullRequestActivitySummary. id
[Required] Gets the id of this PullRequestActivitySummary. principal
[Required] Gets the principal of this PullRequestActivitySummary. pull_request_id
[Required] Gets the pull_request_id of this PullRequestActivitySummary. time_occurred
[Required] Gets the time_occurred of this PullRequestActivitySummary. Methods
__init__
(**kwargs)Initializes a new PullRequestActivitySummary object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
ACTIVITY_TYPE_APPROVAL
= 'APPROVAL'¶ A constant which can be used with the activity_type property of a PullRequestActivitySummary. This constant has a value of “APPROVAL”
-
ACTIVITY_TYPE_COMMENT
= 'COMMENT'¶ A constant which can be used with the activity_type property of a PullRequestActivitySummary. This constant has a value of “COMMENT”
-
ACTIVITY_TYPE_COMMIT
= 'COMMIT'¶ A constant which can be used with the activity_type property of a PullRequestActivitySummary. This constant has a value of “COMMIT”
-
ACTIVITY_TYPE_LIFECYCLE
= 'LIFECYCLE'¶ A constant which can be used with the activity_type property of a PullRequestActivitySummary. This constant has a value of “LIFECYCLE”
-
ACTIVITY_TYPE_REVIEWER
= 'REVIEWER'¶ A constant which can be used with the activity_type property of a PullRequestActivitySummary. This constant has a value of “REVIEWER”
-
__init__
(**kwargs)¶ Initializes a new PullRequestActivitySummary object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
CommitActivitySummary
CommentActivitySummary
ApprovalActivitySummary
ReviewerActivitySummary
PullRequestLifecycleActivitySummary
The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this PullRequestActivitySummary.
- principal (oci.devops.models.PrincipalDetails) – The value to assign to the principal property of this PullRequestActivitySummary.
- pull_request_id (str) – The value to assign to the pull_request_id property of this PullRequestActivitySummary.
- time_occurred (datetime) – The value to assign to the time_occurred property of this PullRequestActivitySummary.
- activity_type (str) – The value to assign to the activity_type property of this PullRequestActivitySummary. 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’.
-
activity_type
¶ [Required] Gets the activity_type of this PullRequestActivitySummary. The type of activity performed
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’.
Returns: The activity_type of this PullRequestActivitySummary. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
id
¶ [Required] Gets the id of this PullRequestActivitySummary. activity identifier
Returns: The id of this PullRequestActivitySummary. Return type: str
-
principal
¶ [Required] Gets the principal of this PullRequestActivitySummary.
Returns: The principal of this PullRequestActivitySummary. Return type: oci.devops.models.PrincipalDetails
-
pull_request_id
¶ [Required] Gets the pull_request_id of this PullRequestActivitySummary. pullRequest OCID
Returns: The pull_request_id of this PullRequestActivitySummary. Return type: str
-
time_occurred
¶ [Required] Gets the time_occurred of this PullRequestActivitySummary. The time the action was performed. An RFC3339 formatted datetime string
Returns: The time_occurred of this PullRequestActivitySummary. Return type: datetime
-