MergeSettings¶
-
class
oci.devops.models.
MergeSettings
(**kwargs)¶ Bases:
object
Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
Attributes
DEFAULT_MERGE_STRATEGY_FAST_FORWARD
A constant which can be used with the default_merge_strategy property of a MergeSettings. DEFAULT_MERGE_STRATEGY_FAST_FORWARD_ONLY
A constant which can be used with the default_merge_strategy property of a MergeSettings. DEFAULT_MERGE_STRATEGY_MERGE_COMMIT
A constant which can be used with the default_merge_strategy property of a MergeSettings. DEFAULT_MERGE_STRATEGY_REBASE_AND_FAST_FORWARD
A constant which can be used with the default_merge_strategy property of a MergeSettings. DEFAULT_MERGE_STRATEGY_REBASE_AND_MERGE
A constant which can be used with the default_merge_strategy property of a MergeSettings. DEFAULT_MERGE_STRATEGY_SQUASH
A constant which can be used with the default_merge_strategy property of a MergeSettings. DEFAULT_MERGE_STRATEGY_SQUASH_FAST_FORWARD_ONLY
A constant which can be used with the default_merge_strategy property of a MergeSettings. allowed_merge_strategies
[Required] Gets the allowed_merge_strategies of this MergeSettings. default_merge_strategy
[Required] Gets the default_merge_strategy of this MergeSettings. Methods
__init__
(**kwargs)Initializes a new MergeSettings object with values from keyword arguments. -
DEFAULT_MERGE_STRATEGY_FAST_FORWARD
= 'FAST_FORWARD'¶ A constant which can be used with the default_merge_strategy property of a MergeSettings. This constant has a value of “FAST_FORWARD”
-
DEFAULT_MERGE_STRATEGY_FAST_FORWARD_ONLY
= 'FAST_FORWARD_ONLY'¶ A constant which can be used with the default_merge_strategy property of a MergeSettings. This constant has a value of “FAST_FORWARD_ONLY”
-
DEFAULT_MERGE_STRATEGY_MERGE_COMMIT
= 'MERGE_COMMIT'¶ A constant which can be used with the default_merge_strategy property of a MergeSettings. This constant has a value of “MERGE_COMMIT”
-
DEFAULT_MERGE_STRATEGY_REBASE_AND_FAST_FORWARD
= 'REBASE_AND_FAST_FORWARD'¶ A constant which can be used with the default_merge_strategy property of a MergeSettings. This constant has a value of “REBASE_AND_FAST_FORWARD”
-
DEFAULT_MERGE_STRATEGY_REBASE_AND_MERGE
= 'REBASE_AND_MERGE'¶ A constant which can be used with the default_merge_strategy property of a MergeSettings. This constant has a value of “REBASE_AND_MERGE”
-
DEFAULT_MERGE_STRATEGY_SQUASH
= 'SQUASH'¶ A constant which can be used with the default_merge_strategy property of a MergeSettings. This constant has a value of “SQUASH”
-
DEFAULT_MERGE_STRATEGY_SQUASH_FAST_FORWARD_ONLY
= 'SQUASH_FAST_FORWARD_ONLY'¶ A constant which can be used with the default_merge_strategy property of a MergeSettings. This constant has a value of “SQUASH_FAST_FORWARD_ONLY”
-
__init__
(**kwargs)¶ Initializes a new MergeSettings object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - default_merge_strategy (str) – The value to assign to the default_merge_strategy property of this MergeSettings. 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”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- allowed_merge_strategies (list[oci.devops.models.MergeStrategy]) – The value to assign to the allowed_merge_strategies property of this MergeSettings.
-
allowed_merge_strategies
¶ [Required] Gets the allowed_merge_strategies of this MergeSettings. List of merge strategies which are allowed for a Project or Repository.
Returns: The allowed_merge_strategies of this MergeSettings. Return type: list[oci.devops.models.MergeStrategy]
-
default_merge_strategy
¶ [Required] Gets the default_merge_strategy of this MergeSettings. Default type of merge strategy associated with the a Project or Repository.
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”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The default_merge_strategy of this MergeSettings. Return type: str
-