RoleCondition¶
- class oci.data_safe.models.RoleCondition(**kwargs)¶
Bases:
PolicyConditionThe audit policy provisioning conditions.
Attributes:
A constant which can be used with the entity_selection property of a PolicyCondition.
A constant which can be used with the entity_selection property of a PolicyCondition.
A constant which can be used with the entity_type property of a PolicyCondition.
A constant which can be used with the entity_type property of a PolicyCondition.
A constant which can be used with the entity_type property of a PolicyCondition.
A constant which can be used with the entity_type property of a PolicyCondition.
A constant which can be used with the operation_status property of a PolicyCondition.
A constant which can be used with the operation_status property of a PolicyCondition.
A constant which can be used with the operation_status property of a PolicyCondition.
[Required] Gets the entity_selection of this PolicyCondition.
[Required] Gets the entity_type of this PolicyCondition.
[Required] Gets the operation_status of this PolicyCondition.
[Required] Gets the role_names of this RoleCondition.
Methods:
__init__(**kwargs)Initializes a new RoleCondition 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 RoleCondition object with values from keyword arguments. The default value of the
entity_typeattribute of this class isROLEand 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 RoleCondition. Allowed values for this property are: “INCLUDE”, “EXCLUDE”
entity_type (str) – The value to assign to the entity_type property of this RoleCondition. 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 RoleCondition. Allowed values for this property are: “SUCCESS”, “FAILURE”, “BOTH”
role_names (list[str]) – The value to assign to the role_names property of this RoleCondition.
- property 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
- property 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.
- property 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
- property role_names¶
[Required] Gets the role_names of this RoleCondition. List of roles that the policy must be enabled for.
- Returns
The role_names of this RoleCondition.
- Return type
list[str]