PolicyCondition¶
-
class
oci.data_safe.models.PolicyCondition(**kwargs)¶ Bases:
objectThe audit policy provisioning conditions.
Attributes
ENTITY_SELECTION_EXCLUDEA constant which can be used with the entity_selection property of a PolicyCondition. ENTITY_SELECTION_INCLUDEA constant which can be used with the entity_selection property of a PolicyCondition. ENTITY_TYPE_ALL_USERSA constant which can be used with the entity_type property of a PolicyCondition. ENTITY_TYPE_ATTRIBUTE_SETA constant which can be used with the entity_type property of a PolicyCondition. ENTITY_TYPE_ROLEA constant which can be used with the entity_type property of a PolicyCondition. ENTITY_TYPE_USERA constant which can be used with the entity_type property of a PolicyCondition. OPERATION_STATUS_BOTHA constant which can be used with the operation_status property of a PolicyCondition. OPERATION_STATUS_FAILUREA constant which can be used with the operation_status property of a PolicyCondition. OPERATION_STATUS_SUCCESSA constant which can be used with the operation_status property of a PolicyCondition. entity_selection[Required] Gets the entity_selection of this PolicyCondition. entity_type[Required] Gets the entity_type of this PolicyCondition. operation_status[Required] Gets the operation_status of this PolicyCondition. Methods
__init__(**kwargs)Initializes a new PolicyCondition 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. -
ENTITY_SELECTION_EXCLUDE= 'EXCLUDE'¶ A constant which can be used with the entity_selection property of a PolicyCondition. This constant has a value of “EXCLUDE”
-
ENTITY_SELECTION_INCLUDE= 'INCLUDE'¶ A constant which can be used with the entity_selection property of a PolicyCondition. This constant has a value of “INCLUDE”
-
ENTITY_TYPE_ALL_USERS= 'ALL_USERS'¶ A constant which can be used with the entity_type property of a PolicyCondition. This constant has a value of “ALL_USERS”
-
ENTITY_TYPE_ATTRIBUTE_SET= 'ATTRIBUTE_SET'¶ A constant which can be used with the entity_type property of a PolicyCondition. This constant has a value of “ATTRIBUTE_SET”
-
ENTITY_TYPE_ROLE= 'ROLE'¶ A constant which can be used with the entity_type property of a PolicyCondition. This constant has a value of “ROLE”
-
ENTITY_TYPE_USER= 'USER'¶ A constant which can be used with the entity_type property of a PolicyCondition. This constant has a value of “USER”
-
OPERATION_STATUS_BOTH= 'BOTH'¶ A constant which can be used with the operation_status property of a PolicyCondition. This constant has a value of “BOTH”
-
OPERATION_STATUS_FAILURE= 'FAILURE'¶ A constant which can be used with the operation_status property of a PolicyCondition. This constant has a value of “FAILURE”
-
OPERATION_STATUS_SUCCESS= 'SUCCESS'¶ A constant which can be used with the operation_status property of a PolicyCondition. This constant has a value of “SUCCESS”
-
__init__(**kwargs)¶ Initializes a new PolicyCondition 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: - entity_selection (str) – The value to assign to the entity_selection property of this PolicyCondition. Allowed values for this property are: “INCLUDE”, “EXCLUDE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- entity_type (str) – The value to assign to the entity_type property of this PolicyCondition. Allowed values for this property are: “USER”, “ROLE”, “ALL_USERS”, “ATTRIBUTE_SET”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- operation_status (str) – The value to assign to the operation_status property of this PolicyCondition. Allowed values for this property are: “SUCCESS”, “FAILURE”, “BOTH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
entity_selection¶ [Required] Gets the entity_selection of this PolicyCondition. Specifies whether to include or exclude the specified users or roles.
Allowed values for this property are: “INCLUDE”, “EXCLUDE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The entity_selection of this PolicyCondition. Return type: str
-
entity_type¶ [Required] Gets the entity_type of this PolicyCondition. The type of users or roles that the unified audit policy is applied to.
Allowed values for this property are: “USER”, “ROLE”, “ALL_USERS”, “ATTRIBUTE_SET”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The entity_type of this PolicyCondition. 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.
-
operation_status¶ [Required] Gets the operation_status of this PolicyCondition. The operation status that the policy must be enabled for.
Allowed values for this property are: “SUCCESS”, “FAILURE”, “BOTH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The operation_status of this PolicyCondition. Return type: str
-