UserCondition¶
-
class
oci.data_safe.models.
UserCondition
(**kwargs)¶ Bases:
oci.data_safe.models.policy_condition.PolicyCondition
The audit policy provisioning conditions.
Attributes
ENTITY_SELECTION_EXCLUDE
str(object=’’) -> str ENTITY_SELECTION_INCLUDE
str(object=’’) -> str ENTITY_TYPE_ALL_USERS
str(object=’’) -> str ENTITY_TYPE_ATTRIBUTE_SET
str(object=’’) -> str ENTITY_TYPE_ROLE
str(object=’’) -> str ENTITY_TYPE_USER
str(object=’’) -> str OPERATION_STATUS_BOTH
str(object=’’) -> str OPERATION_STATUS_FAILURE
str(object=’’) -> str OPERATION_STATUS_SUCCESS
str(object=’’) -> str 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. user_names
[Required] Gets the user_names of this UserCondition. Methods
__init__
(**kwargs)Initializes a new UserCondition 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'¶
-
ENTITY_SELECTION_INCLUDE
= 'INCLUDE'¶
-
ENTITY_TYPE_ALL_USERS
= 'ALL_USERS'¶
-
ENTITY_TYPE_ATTRIBUTE_SET
= 'ATTRIBUTE_SET'¶
-
ENTITY_TYPE_ROLE
= 'ROLE'¶
-
ENTITY_TYPE_USER
= 'USER'¶
-
OPERATION_STATUS_BOTH
= 'BOTH'¶
-
OPERATION_STATUS_FAILURE
= 'FAILURE'¶
-
OPERATION_STATUS_SUCCESS
= 'SUCCESS'¶
-
__init__
(**kwargs)¶ Initializes a new UserCondition object with values from keyword arguments. The default value of the
entity_type
attribute of this class isUSER
and it should not be changed. 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 UserCondition. Allowed values for this property are: “INCLUDE”, “EXCLUDE”
- entity_type (str) – The value to assign to the entity_type property of this UserCondition. Allowed values for this property are: “USER”, “ROLE”, “ALL_USERS”, “ATTRIBUTE_SET”
- operation_status (str) – The value to assign to the operation_status property of this UserCondition. Allowed values for this property are: “SUCCESS”, “FAILURE”, “BOTH”
- user_names (list[str]) – The value to assign to the user_names property of this UserCondition.
-
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
-
user_names
¶ [Required] Gets the user_names of this UserCondition. The list of users that the unified audit policy is enabled for.
Returns: The user_names of this UserCondition. Return type: list[str]
-