Reviewer

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

Bases: object

Reviewer information.

Attributes

PRINCIPAL_STATE_ACTIVE A constant which can be used with the principal_state property of a Reviewer.
PRINCIPAL_STATE_INACTIVE A constant which can be used with the principal_state property of a Reviewer.
PRINCIPAL_STATE_SUPPRESSED A constant which can be used with the principal_state property of a Reviewer.
PRINCIPAL_TYPE_INSTANCE A constant which can be used with the principal_type property of a Reviewer.
PRINCIPAL_TYPE_RESOURCE A constant which can be used with the principal_type property of a Reviewer.
PRINCIPAL_TYPE_SERVICE A constant which can be used with the principal_type property of a Reviewer.
PRINCIPAL_TYPE_USER A constant which can be used with the principal_type property of a Reviewer.
STATUS_APPROVED A constant which can be used with the status property of a Reviewer.
STATUS_REVIEW_PENDING A constant which can be used with the status property of a Reviewer.
principal_id [Required] Gets the principal_id of this Reviewer.
principal_name Gets the principal_name of this Reviewer.
principal_state Gets the principal_state of this Reviewer.
principal_type Gets the principal_type of this Reviewer.
status Gets the status of this Reviewer.

Methods

__init__(**kwargs) Initializes a new Reviewer object with values from keyword arguments.
PRINCIPAL_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the principal_state property of a Reviewer. This constant has a value of “ACTIVE”

PRINCIPAL_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the principal_state property of a Reviewer. This constant has a value of “INACTIVE”

PRINCIPAL_STATE_SUPPRESSED = 'SUPPRESSED'

A constant which can be used with the principal_state property of a Reviewer. This constant has a value of “SUPPRESSED”

PRINCIPAL_TYPE_INSTANCE = 'INSTANCE'

A constant which can be used with the principal_type property of a Reviewer. This constant has a value of “INSTANCE”

PRINCIPAL_TYPE_RESOURCE = 'RESOURCE'

A constant which can be used with the principal_type property of a Reviewer. This constant has a value of “RESOURCE”

PRINCIPAL_TYPE_SERVICE = 'SERVICE'

A constant which can be used with the principal_type property of a Reviewer. This constant has a value of “SERVICE”

PRINCIPAL_TYPE_USER = 'USER'

A constant which can be used with the principal_type property of a Reviewer. This constant has a value of “USER”

STATUS_APPROVED = 'APPROVED'

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

STATUS_REVIEW_PENDING = 'REVIEW_PENDING'

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

__init__(**kwargs)

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

Parameters:
  • principal_id (str) – The value to assign to the principal_id property of this Reviewer.
  • principal_name (str) – The value to assign to the principal_name property of this Reviewer.
  • principal_type (str) – The value to assign to the principal_type property of this Reviewer. Allowed values for this property are: “SERVICE”, “USER”, “INSTANCE”, “RESOURCE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • principal_state (str) – The value to assign to the principal_state property of this Reviewer. Allowed values for this property are: “ACTIVE”, “INACTIVE”, “SUPPRESSED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • status (str) – The value to assign to the status property of this Reviewer. Allowed values for this property are: “APPROVED”, “REVIEW_PENDING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
principal_id

[Required] Gets the principal_id of this Reviewer. Pull Request reviewer id

Returns:The principal_id of this Reviewer.
Return type:str
principal_name

Gets the principal_name of this Reviewer. the name of the principal

Returns:The principal_name of this Reviewer.
Return type:str
principal_state

Gets the principal_state of this Reviewer. The state of the principal, it can be active or inactive or suppressed for emails

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

Returns:The principal_state of this Reviewer.
Return type:str
principal_type

Gets the principal_type of this Reviewer. the type of principal

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

Returns:The principal_type of this Reviewer.
Return type:str
status

Gets the status of this Reviewer. The current state of the Review.

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

Returns:The status of this Reviewer.
Return type:str