UpdateApprovalRuleDetails¶
- class oci.devops.models.UpdateApprovalRuleDetails(**kwargs)¶
Bases:
objectA rule which must be satisfied for matching pull requests before the pull request can be merged
Methods:
__init__(**kwargs)Initializes a new UpdateApprovalRuleDetails object with values from keyword arguments.
Attributes:
Gets the destination_branch of this UpdateApprovalRuleDetails.
[Required] Gets the min_approvals_count of this UpdateApprovalRuleDetails.
[Required] Gets the name of this UpdateApprovalRuleDetails.
Gets the reviewers of this UpdateApprovalRuleDetails.
- __init__(**kwargs)¶
Initializes a new UpdateApprovalRuleDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
name (str) – The value to assign to the name property of this UpdateApprovalRuleDetails.
destination_branch (str) – The value to assign to the destination_branch property of this UpdateApprovalRuleDetails.
reviewers (list[oci.devops.models.UpdateReviewerDetails]) – The value to assign to the reviewers property of this UpdateApprovalRuleDetails.
min_approvals_count (int) – The value to assign to the min_approvals_count property of this UpdateApprovalRuleDetails.
- property destination_branch¶
Gets the destination_branch of this UpdateApprovalRuleDetails. Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests
- Returns
The destination_branch of this UpdateApprovalRuleDetails.
- Return type
str
- property min_approvals_count¶
[Required] Gets the min_approvals_count of this UpdateApprovalRuleDetails. Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied
- Returns
The min_approvals_count of this UpdateApprovalRuleDetails.
- Return type
int
- property name¶
[Required] Gets the name of this UpdateApprovalRuleDetails. Name which is used to uniquely identify an approval rule.
- Returns
The name of this UpdateApprovalRuleDetails.
- Return type
str
- property reviewers¶
Gets the reviewers of this UpdateApprovalRuleDetails. List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.
- Returns
The reviewers of this UpdateApprovalRuleDetails.
- Return type