EnableConditions

class oci.data_safe.models.EnableConditions(**kwargs)

Bases: object

The details of the audit policy provisioning conditions.

Attributes

ENTITY_SELECTION_EXCLUDE A constant which can be used with the entity_selection property of a EnableConditions.
ENTITY_SELECTION_INCLUDE A constant which can be used with the entity_selection property of a EnableConditions.
ENTITY_TYPE_ALL_USERS A constant which can be used with the entity_type property of a EnableConditions.
ENTITY_TYPE_ROLE A constant which can be used with the entity_type property of a EnableConditions.
ENTITY_TYPE_USER A constant which can be used with the entity_type property of a EnableConditions.
OPERATION_STATUS_BOTH A constant which can be used with the operation_status property of a EnableConditions.
OPERATION_STATUS_FAILURE A constant which can be used with the operation_status property of a EnableConditions.
OPERATION_STATUS_SUCCESS A constant which can be used with the operation_status property of a EnableConditions.
entity_names Gets the entity_names of this EnableConditions.
entity_selection [Required] Gets the entity_selection of this EnableConditions.
entity_type [Required] Gets the entity_type of this EnableConditions.
operation_status [Required] Gets the operation_status of this EnableConditions.

Methods

__init__(**kwargs) Initializes a new EnableConditions object with values from keyword arguments.
ENTITY_SELECTION_EXCLUDE = 'EXCLUDE'

A constant which can be used with the entity_selection property of a EnableConditions. This constant has a value of “EXCLUDE”

ENTITY_SELECTION_INCLUDE = 'INCLUDE'

A constant which can be used with the entity_selection property of a EnableConditions. 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 EnableConditions. This constant has a value of “ALL_USERS”

ENTITY_TYPE_ROLE = 'ROLE'

A constant which can be used with the entity_type property of a EnableConditions. This constant has a value of “ROLE”

ENTITY_TYPE_USER = 'USER'

A constant which can be used with the entity_type property of a EnableConditions. This constant has a value of “USER”

OPERATION_STATUS_BOTH = 'BOTH'

A constant which can be used with the operation_status property of a EnableConditions. This constant has a value of “BOTH”

OPERATION_STATUS_FAILURE = 'FAILURE'

A constant which can be used with the operation_status property of a EnableConditions. This constant has a value of “FAILURE”

OPERATION_STATUS_SUCCESS = 'SUCCESS'

A constant which can be used with the operation_status property of a EnableConditions. This constant has a value of “SUCCESS”

__init__(**kwargs)

Initializes a new EnableConditions object with values from keyword arguments. 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 EnableConditions. 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 EnableConditions. Allowed values for this property are: “USER”, “ROLE”, “ALL_USERS”, ‘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 EnableConditions. 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_names (list[str]) – The value to assign to the entity_names property of this EnableConditions.
entity_names

Gets the entity_names of this EnableConditions. List of users or roles that the policy must be enabled for.

Returns:The entity_names of this EnableConditions.
Return type:list[str]
entity_selection

[Required] Gets the entity_selection of this EnableConditions. The entity include or exclude selection.

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 EnableConditions.
Return type:str
entity_type

[Required] Gets the entity_type of this EnableConditions. The entity type that the policy must be enabled for.

Allowed values for this property are: “USER”, “ROLE”, “ALL_USERS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The entity_type of this EnableConditions.
Return type:str
operation_status

[Required] Gets the operation_status of this EnableConditions. 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 EnableConditions.
Return type:str