ExecuteMergePullRequestDetails¶
- class oci.devops.models.ExecuteMergePullRequestDetails(**kwargs)¶
Bases:
MergePullRequestDetailsThe information about the merge.
Attributes:
A constant which can be used with the action_type property of a MergePullRequestDetails.
A constant which can be used with the action_type property of a MergePullRequestDetails.
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
A constant which can be used with the post_merge_action property of a ExecuteMergePullRequestDetails.
A constant which can be used with the post_merge_action property of a ExecuteMergePullRequestDetails.
[Required] Gets the action_type of this MergePullRequestDetails.
[Required] Gets the commit_message of this ExecuteMergePullRequestDetails.
[Required] Gets the merge_strategy of this ExecuteMergePullRequestDetails.
Gets the post_merge_action of this ExecuteMergePullRequestDetails.
Methods:
__init__(**kwargs)Initializes a new ExecuteMergePullRequestDetails 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.
- ACTION_TYPE_EXECUTE = 'EXECUTE'¶
A constant which can be used with the action_type property of a MergePullRequestDetails. This constant has a value of “EXECUTE”
- ACTION_TYPE_VALIDATE = 'VALIDATE'¶
A constant which can be used with the action_type property of a MergePullRequestDetails. This constant has a value of “VALIDATE”
- MERGE_STRATEGY_FAST_FORWARD = 'FAST_FORWARD'¶
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails. This constant has a value of “FAST_FORWARD”
- MERGE_STRATEGY_FAST_FORWARD_ONLY = 'FAST_FORWARD_ONLY'¶
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails. This constant has a value of “FAST_FORWARD_ONLY”
- MERGE_STRATEGY_MERGE_COMMIT = 'MERGE_COMMIT'¶
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails. This constant has a value of “MERGE_COMMIT”
- MERGE_STRATEGY_REBASE_AND_FAST_FORWARD = 'REBASE_AND_FAST_FORWARD'¶
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails. This constant has a value of “REBASE_AND_FAST_FORWARD”
- MERGE_STRATEGY_REBASE_AND_MERGE = 'REBASE_AND_MERGE'¶
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails. This constant has a value of “REBASE_AND_MERGE”
- MERGE_STRATEGY_SQUASH = 'SQUASH'¶
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails. This constant has a value of “SQUASH”
- MERGE_STRATEGY_SQUASH_FAST_FORWARD_ONLY = 'SQUASH_FAST_FORWARD_ONLY'¶
A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails. This constant has a value of “SQUASH_FAST_FORWARD_ONLY”
- POST_MERGE_ACTION_DELETE_SOURCE_BRANCH = 'DELETE_SOURCE_BRANCH'¶
A constant which can be used with the post_merge_action property of a ExecuteMergePullRequestDetails. This constant has a value of “DELETE_SOURCE_BRANCH”
- POST_MERGE_ACTION_KEEP_SOURCE_BRANCH = 'KEEP_SOURCE_BRANCH'¶
A constant which can be used with the post_merge_action property of a ExecuteMergePullRequestDetails. This constant has a value of “KEEP_SOURCE_BRANCH”
- __init__(**kwargs)¶
Initializes a new ExecuteMergePullRequestDetails object with values from keyword arguments. The default value of the
action_typeattribute of this class isEXECUTEand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
action_type (str) – The value to assign to the action_type property of this ExecuteMergePullRequestDetails. Allowed values for this property are: “EXECUTE”, “VALIDATE”
commit_message (str) – The value to assign to the commit_message property of this ExecuteMergePullRequestDetails.
merge_strategy (str) – The value to assign to the merge_strategy property of this ExecuteMergePullRequestDetails. Allowed values for this property are: “MERGE_COMMIT”, “FAST_FORWARD”, “FAST_FORWARD_ONLY”, “REBASE_AND_MERGE”, “REBASE_AND_FAST_FORWARD”, “SQUASH”, “SQUASH_FAST_FORWARD_ONLY”
post_merge_action (str) – The value to assign to the post_merge_action property of this ExecuteMergePullRequestDetails. Allowed values for this property are: “DELETE_SOURCE_BRANCH”, “KEEP_SOURCE_BRANCH”
- property action_type¶
[Required] Gets the action_type of this MergePullRequestDetails. the type of action for this merge.
Allowed values for this property are: “EXECUTE”, “VALIDATE”
- Returns
The action_type of this MergePullRequestDetails.
- Return type
str
- property commit_message¶
[Required] Gets the commit_message of this ExecuteMergePullRequestDetails. The commit message to be shown for this pull request in the destination branch after merge is done.
- Returns
The commit_message of this ExecuteMergePullRequestDetails.
- 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 merge_strategy¶
[Required] Gets the merge_strategy of this ExecuteMergePullRequestDetails. the strategy of merging.
Allowed values for this property are: “MERGE_COMMIT”, “FAST_FORWARD”, “FAST_FORWARD_ONLY”, “REBASE_AND_MERGE”, “REBASE_AND_FAST_FORWARD”, “SQUASH”, “SQUASH_FAST_FORWARD_ONLY”
- Returns
The merge_strategy of this ExecuteMergePullRequestDetails.
- Return type
str
- property post_merge_action¶
Gets the post_merge_action of this ExecuteMergePullRequestDetails. What needs to happen after the merge is done successfully.
Allowed values for this property are: “DELETE_SOURCE_BRANCH”, “KEEP_SOURCE_BRANCH”
- Returns
The post_merge_action of this ExecuteMergePullRequestDetails.
- Return type
str