MergeChecks

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

Bases: object

Criteria which must be satisfied to merge a pull request.

Attributes

LAST_BUILD_SUCCEEDED_DISABLED A constant which can be used with the last_build_succeeded property of a MergeChecks.
LAST_BUILD_SUCCEEDED_ENABLED A constant which can be used with the last_build_succeeded property of a MergeChecks.
last_build_succeeded [Required] Gets the last_build_succeeded of this MergeChecks.

Methods

__init__(**kwargs) Initializes a new MergeChecks object with values from keyword arguments.
LAST_BUILD_SUCCEEDED_DISABLED = 'DISABLED'

A constant which can be used with the last_build_succeeded property of a MergeChecks. This constant has a value of “DISABLED”

LAST_BUILD_SUCCEEDED_ENABLED = 'ENABLED'

A constant which can be used with the last_build_succeeded property of a MergeChecks. This constant has a value of “ENABLED”

__init__(**kwargs)

Initializes a new MergeChecks object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:last_build_succeeded (str) – The value to assign to the last_build_succeeded property of this MergeChecks. Allowed values for this property are: “ENABLED”, “DISABLED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
last_build_succeeded

[Required] Gets the last_build_succeeded of this MergeChecks. Indicates whether or not a pull request must have a successful build run and no queued builds before it can be merged

Allowed values for this property are: “ENABLED”, “DISABLED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The last_build_succeeded of this MergeChecks.
Return type:str