ExecuteMergePullRequestDetails

class oci.devops.models.ExecuteMergePullRequestDetails(**kwargs)

Bases: oci.devops.models.merge_pull_request_details.MergePullRequestDetails

The information about the merge.

Attributes

ACTION_TYPE_EXECUTE str(object=’’) -> str
ACTION_TYPE_VALIDATE str(object=’’) -> str
MERGE_STRATEGY_FAST_FORWARD A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
MERGE_STRATEGY_FAST_FORWARD_ONLY A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
MERGE_STRATEGY_MERGE_COMMIT A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
MERGE_STRATEGY_REBASE_AND_FAST_FORWARD A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
MERGE_STRATEGY_REBASE_AND_MERGE A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
MERGE_STRATEGY_SQUASH A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
MERGE_STRATEGY_SQUASH_FAST_FORWARD_ONLY A constant which can be used with the merge_strategy property of a ExecuteMergePullRequestDetails.
POST_MERGE_ACTION_DELETE_SOURCE_BRANCH A constant which can be used with the post_merge_action property of a ExecuteMergePullRequestDetails.
POST_MERGE_ACTION_KEEP_SOURCE_BRANCH A constant which can be used with the post_merge_action property of a ExecuteMergePullRequestDetails.
action_type [Required] Gets the action_type of this MergePullRequestDetails.
commit_message [Required] Gets the commit_message of this ExecuteMergePullRequestDetails.
merge_strategy [Required] Gets the merge_strategy of this ExecuteMergePullRequestDetails.
post_merge_action 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'
ACTION_TYPE_VALIDATE = '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_type attribute of this class is EXECUTE and 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”
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
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.

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
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