ApprovalRuleMergeCheck

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

Bases: MergeCheck

The status of the approval rules.

Attributes:

LEVEL_PROJECT

A constant which can be used with the level property of a ApprovalRuleMergeCheck.

LEVEL_REPOSITORY

A constant which can be used with the level property of a ApprovalRuleMergeCheck.

STATUS_NEEDS_APPROVAL

A constant which can be used with the status property of a ApprovalRuleMergeCheck.

STATUS_SUCCEEDED

A constant which can be used with the status property of a ApprovalRuleMergeCheck.

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.

current_approval_count

Gets the current_approval_count of this ApprovalRuleMergeCheck.

level

Gets the level of this ApprovalRuleMergeCheck.

reviewers

Gets the reviewers of this ApprovalRuleMergeCheck.

rule_name

Gets the rule_name of this ApprovalRuleMergeCheck.

status

Gets the status of this ApprovalRuleMergeCheck.

total_approval_count

Gets the total_approval_count of this ApprovalRuleMergeCheck.

type

[Required] Gets the type of this MergeCheck.

Methods:

__init__(**kwargs)

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

LEVEL_PROJECT = 'PROJECT'

A constant which can be used with the level property of a ApprovalRuleMergeCheck. This constant has a value of “PROJECT”

LEVEL_REPOSITORY = 'REPOSITORY'

A constant which can be used with the level property of a ApprovalRuleMergeCheck. This constant has a value of “REPOSITORY”

STATUS_NEEDS_APPROVAL = 'NEEDS_APPROVAL'

A constant which can be used with the status property of a ApprovalRuleMergeCheck. This constant has a value of “NEEDS_APPROVAL”

STATUS_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the status property of a ApprovalRuleMergeCheck. This constant has a value of “SUCCEEDED”

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 ApprovalRuleMergeCheck object with values from keyword arguments. The default value of the type attribute of this class is APPROVAL_RULE 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 ApprovalRuleMergeCheck. 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’.

  • rule_name (str) – The value to assign to the rule_name property of this ApprovalRuleMergeCheck.

  • status (str) – The value to assign to the status property of this ApprovalRuleMergeCheck. Allowed values for this property are: “NEEDS_APPROVAL”, “SUCCEEDED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • total_approval_count (int) – The value to assign to the total_approval_count property of this ApprovalRuleMergeCheck.

  • current_approval_count (int) – The value to assign to the current_approval_count property of this ApprovalRuleMergeCheck.

  • reviewers (list[oci.devops.models.PrincipalDetails]) – The value to assign to the reviewers property of this ApprovalRuleMergeCheck.

  • level (str) – The value to assign to the level property of this ApprovalRuleMergeCheck. Allowed values for this property are: “PROJECT”, “REPOSITORY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property current_approval_count

Gets the current_approval_count of this ApprovalRuleMergeCheck. The current number of approvals.

Returns

The current_approval_count of this ApprovalRuleMergeCheck.

Return type

int

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 level

Gets the level of this ApprovalRuleMergeCheck. The level of rule.

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

Returns

The level of this ApprovalRuleMergeCheck.

Return type

str

property reviewers

Gets the reviewers of this ApprovalRuleMergeCheck. The list of default reviewers.

Returns

The reviewers of this ApprovalRuleMergeCheck.

Return type

list[oci.devops.models.PrincipalDetails]

property rule_name

Gets the rule_name of this ApprovalRuleMergeCheck. The name of the rule.

Returns

The rule_name of this ApprovalRuleMergeCheck.

Return type

str

property status

Gets the status of this ApprovalRuleMergeCheck. The status of the approval rule.

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

Returns

The status of this ApprovalRuleMergeCheck.

Return type

str

property total_approval_count

Gets the total_approval_count of this ApprovalRuleMergeCheck. The number of total approvals needed.

Returns

The total_approval_count of this ApprovalRuleMergeCheck.

Return type

int

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