BuildMergeCheck

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

Bases: MergeCheck

The status of the build pipelines.

Attributes:

TYPE_APPROVAL_RULE

A constant which can be used with the type property of a MergeCheck.

TYPE_BUILD

A constant which can be used with the type property of a MergeCheck.

TYPE_CONFLICT

A constant which can be used with the type property of a MergeCheck.

build_run_id

Gets the build_run_id of this BuildMergeCheck.

build_status

Gets the build_status of this BuildMergeCheck.

pipeline_id

Gets the pipeline_id of this BuildMergeCheck.

type

[Required] Gets the type of this MergeCheck.

Methods:

__init__(**kwargs)

Initializes a new BuildMergeCheck 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.

TYPE_APPROVAL_RULE = 'APPROVAL_RULE'

A constant which can be used with the type property of a MergeCheck. This constant has a value of “APPROVAL_RULE”

TYPE_BUILD = 'BUILD'

A constant which can be used with the type property of a MergeCheck. This constant has a value of “BUILD”

TYPE_CONFLICT = 'CONFLICT'

A constant which can be used with the type property of a MergeCheck. This constant has a value of “CONFLICT”

__init__(**kwargs)

Initializes a new BuildMergeCheck object with values from keyword arguments. The default value of the type attribute of this class is BUILD and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • type (str) – The value to assign to the type property of this BuildMergeCheck. Allowed values for this property are: “CONFLICT”, “APPROVAL_RULE”, “BUILD”

  • pipeline_id (str) – The value to assign to the pipeline_id property of this BuildMergeCheck.

  • build_run_id (str) – The value to assign to the build_run_id property of this BuildMergeCheck.

  • build_status (str) – The value to assign to the build_status property of this BuildMergeCheck.

property build_run_id

Gets the build_run_id of this BuildMergeCheck. The build run OCID.

Returns

The build_run_id of this BuildMergeCheck.

Return type

str

property build_status

Gets the build_status of this BuildMergeCheck. The status of the build.

Returns

The build_status of this BuildMergeCheck.

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 pipeline_id

Gets the pipeline_id of this BuildMergeCheck. The pipeline OCID.

Returns

The pipeline_id of this BuildMergeCheck.

Return type

str

property type

[Required] Gets the type of this MergeCheck. the type of this merge check.

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

Returns

The type of this MergeCheck.

Return type

str