CreateApprovalTemplateDetails

class oci.lockbox.models.CreateApprovalTemplateDetails(**kwargs)

Bases: object

The configuration details for a new approval template.

Attributes

AUTO_APPROVAL_STATE_DISABLED A constant which can be used with the auto_approval_state property of a CreateApprovalTemplateDetails.
AUTO_APPROVAL_STATE_ENABLED A constant which can be used with the auto_approval_state property of a CreateApprovalTemplateDetails.
approver_levels Gets the approver_levels of this CreateApprovalTemplateDetails.
auto_approval_state Gets the auto_approval_state of this CreateApprovalTemplateDetails.
compartment_id [Required] Gets the compartment_id of this CreateApprovalTemplateDetails.
defined_tags Gets the defined_tags of this CreateApprovalTemplateDetails.
display_name Gets the display_name of this CreateApprovalTemplateDetails.
freeform_tags Gets the freeform_tags of this CreateApprovalTemplateDetails.

Methods

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

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

AUTO_APPROVAL_STATE_ENABLED = 'ENABLED'

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

__init__(**kwargs)

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

Parameters:
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateApprovalTemplateDetails.
  • display_name (str) – The value to assign to the display_name property of this CreateApprovalTemplateDetails.
  • approver_levels (oci.lockbox.models.ApproverLevels) – The value to assign to the approver_levels property of this CreateApprovalTemplateDetails.
  • auto_approval_state (str) – The value to assign to the auto_approval_state property of this CreateApprovalTemplateDetails. Allowed values for this property are: “ENABLED”, “DISABLED”
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateApprovalTemplateDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateApprovalTemplateDetails.
approver_levels

Gets the approver_levels of this CreateApprovalTemplateDetails.

Returns:The approver_levels of this CreateApprovalTemplateDetails.
Return type:oci.lockbox.models.ApproverLevels
auto_approval_state

Gets the auto_approval_state of this CreateApprovalTemplateDetails. The auto approval state of the lockbox.

Allowed values for this property are: “ENABLED”, “DISABLED”

Returns:The auto_approval_state of this CreateApprovalTemplateDetails.
Return type:str
compartment_id

[Required] Gets the compartment_id of this CreateApprovalTemplateDetails. The unique identifier (OCID) of the compartment where the resource is located.

Returns:The compartment_id of this CreateApprovalTemplateDetails.
Return type:str
defined_tags

Gets the defined_tags of this CreateApprovalTemplateDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this CreateApprovalTemplateDetails.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this CreateApprovalTemplateDetails. approval template identifier

Returns:The display_name of this CreateApprovalTemplateDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateApprovalTemplateDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this CreateApprovalTemplateDetails.
Return type:dict(str, str)