PullRequestLifecycleActivitySummary¶
- class oci.devops.models.PullRequestLifecycleActivitySummary(**kwargs)¶
Bases:
PullRequestActivitySummaryactivity describing a pull request state change
Attributes:
A constant which can be used with the activity_type property of a PullRequestActivitySummary.
A constant which can be used with the activity_type property of a PullRequestActivitySummary.
A constant which can be used with the activity_type property of a PullRequestActivitySummary.
A constant which can be used with the activity_type property of a PullRequestActivitySummary.
A constant which can be used with the activity_type property of a PullRequestActivitySummary.
A constant which can be used with the state property of a PullRequestLifecycleActivitySummary.
A constant which can be used with the state property of a PullRequestLifecycleActivitySummary.
A constant which can be used with the state property of a PullRequestLifecycleActivitySummary.
A constant which can be used with the state property of a PullRequestLifecycleActivitySummary.
[Required] Gets the activity_type of this PullRequestActivitySummary.
[Required] Gets the id of this PullRequestActivitySummary.
[Required] Gets the principal of this PullRequestActivitySummary.
[Required] Gets the pull_request_id of this PullRequestActivitySummary.
[Required] Gets the state of this PullRequestLifecycleActivitySummary.
[Required] Gets the time_occurred of this PullRequestActivitySummary.
Methods:
__init__(**kwargs)Initializes a new PullRequestLifecycleActivitySummary 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”
- STATE_CLOSED = 'CLOSED'¶
A constant which can be used with the state property of a PullRequestLifecycleActivitySummary. This constant has a value of “CLOSED”
- STATE_MERGED = 'MERGED'¶
A constant which can be used with the state property of a PullRequestLifecycleActivitySummary. This constant has a value of “MERGED”
- STATE_OPENED = 'OPENED'¶
A constant which can be used with the state property of a PullRequestLifecycleActivitySummary. This constant has a value of “OPENED”
- STATE_REOPENED = 'REOPENED'¶
A constant which can be used with the state property of a PullRequestLifecycleActivitySummary. This constant has a value of “REOPENED”
- __init__(**kwargs)¶
Initializes a new PullRequestLifecycleActivitySummary object with values from keyword arguments. The default value of the
activity_typeattribute of this class isLIFECYCLEand it should not be changed. 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 PullRequestLifecycleActivitySummary.
principal (oci.devops.models.PrincipalDetails) – The value to assign to the principal property of this PullRequestLifecycleActivitySummary.
pull_request_id (str) – The value to assign to the pull_request_id property of this PullRequestLifecycleActivitySummary.
time_occurred (datetime) – The value to assign to the time_occurred property of this PullRequestLifecycleActivitySummary.
activity_type (str) – The value to assign to the activity_type property of this PullRequestLifecycleActivitySummary. 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’.
state (str) – The value to assign to the state property of this PullRequestLifecycleActivitySummary. Allowed values for this property are: “OPENED”, “CLOSED”, “MERGED”, “REOPENED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property 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.
- property id¶
[Required] Gets the id of this PullRequestActivitySummary. activity identifier
- Returns
The id of this PullRequestActivitySummary.
- Return type
str
- property principal¶
[Required] Gets the principal of this PullRequestActivitySummary.
- Returns
The principal of this PullRequestActivitySummary.
- Return type
- property 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
- property state¶
[Required] Gets the state of this PullRequestLifecycleActivitySummary. The state of a pull request after an action.
Allowed values for this property are: “OPENED”, “CLOSED”, “MERGED”, “REOPENED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The state of this PullRequestLifecycleActivitySummary.
- Return type
str
- property 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