ApprovalPolicy¶
- class oci.devops.models.ApprovalPolicy(**kwargs)¶
Bases:
objectSpecifies the approval policy.
Attributes:
A constant which can be used with the approval_policy_type property of a ApprovalPolicy.
[Required] Gets the approval_policy_type of this ApprovalPolicy.
Methods:
__init__(**kwargs)Initializes a new ApprovalPolicy 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.
- APPROVAL_POLICY_TYPE_COUNT_BASED_APPROVAL = 'COUNT_BASED_APPROVAL'¶
A constant which can be used with the approval_policy_type property of a ApprovalPolicy. This constant has a value of “COUNT_BASED_APPROVAL”
- __init__(**kwargs)¶
Initializes a new ApprovalPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
approval_policy_type (str) – The value to assign to the approval_policy_type property of this ApprovalPolicy. Allowed values for this property are: “COUNT_BASED_APPROVAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property approval_policy_type¶
[Required] Gets the approval_policy_type of this ApprovalPolicy. Approval policy type.
Allowed values for this property are: “COUNT_BASED_APPROVAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The approval_policy_type of this ApprovalPolicy.
- 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.