ApprovalActivitySummary¶
-
class
oci.devops.models.
ApprovalActivitySummary
(**kwargs)¶ Bases:
oci.devops.models.pull_request_activity_summary.PullRequestActivitySummary
activity describing a reviewer’s approval decision
Attributes
ACTIVITY_TYPE_APPROVAL
str(object=’’) -> str ACTIVITY_TYPE_COMMENT
str(object=’’) -> str ACTIVITY_TYPE_COMMIT
str(object=’’) -> str ACTIVITY_TYPE_LIFECYCLE
str(object=’’) -> str ACTIVITY_TYPE_REVIEWER
str(object=’’) -> str STATUS_APPROVED
A constant which can be used with the status property of a ApprovalActivitySummary. STATUS_UNAPPROVED
A constant which can be used with the status property of a ApprovalActivitySummary. 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. status
[Required] Gets the status of this ApprovalActivitySummary. time_occurred
[Required] Gets the time_occurred of this PullRequestActivitySummary. Methods
__init__
(**kwargs)Initializes a new ApprovalActivitySummary 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'¶
-
ACTIVITY_TYPE_COMMENT
= 'COMMENT'¶
-
ACTIVITY_TYPE_COMMIT
= 'COMMIT'¶
-
ACTIVITY_TYPE_LIFECYCLE
= 'LIFECYCLE'¶
-
ACTIVITY_TYPE_REVIEWER
= 'REVIEWER'¶
-
STATUS_APPROVED
= 'APPROVED'¶ A constant which can be used with the status property of a ApprovalActivitySummary. This constant has a value of “APPROVED”
-
STATUS_UNAPPROVED
= 'UNAPPROVED'¶ A constant which can be used with the status property of a ApprovalActivitySummary. This constant has a value of “UNAPPROVED”
-
__init__
(**kwargs)¶ Initializes a new ApprovalActivitySummary object with values from keyword arguments. The default value of the
activity_type
attribute of this class isAPPROVAL
and 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 ApprovalActivitySummary.
- principal (oci.devops.models.PrincipalDetails) – The value to assign to the principal property of this ApprovalActivitySummary.
- pull_request_id (str) – The value to assign to the pull_request_id property of this ApprovalActivitySummary.
- time_occurred (datetime) – The value to assign to the time_occurred property of this ApprovalActivitySummary.
- activity_type (str) – 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’.
- status (str) – 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’.
-
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
-
status
¶ [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’.
Returns: The status of this ApprovalActivitySummary. 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
-