GrantSummary

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

Bases: object

The summary of user grants.

Attributes:

PRIVILEGE_CATEGORY_CRITICAL

A constant which can be used with the privilege_category property of a GrantSummary.

PRIVILEGE_CATEGORY_HIGH

A constant which can be used with the privilege_category property of a GrantSummary.

PRIVILEGE_CATEGORY_LOW

A constant which can be used with the privilege_category property of a GrantSummary.

PRIVILEGE_CATEGORY_MEDIUM

A constant which can be used with the privilege_category property of a GrantSummary.

PRIVILEGE_TYPE_ADMIN_PRIVILEGE

A constant which can be used with the privilege_type property of a GrantSummary.

PRIVILEGE_TYPE_OBJECT_PRIVILEGE

A constant which can be used with the privilege_type property of a GrantSummary.

PRIVILEGE_TYPE_ROLE

A constant which can be used with the privilege_type property of a GrantSummary.

PRIVILEGE_TYPE_SYSTEM_PRIVILEGE

A constant which can be used with the privilege_type property of a GrantSummary.

depth_level

Gets the depth_level of this GrantSummary.

grant_name

Gets the grant_name of this GrantSummary.

key

[Required] Gets the key of this GrantSummary.

privilege_category

Gets the privilege_category of this GrantSummary.

privilege_type

Gets the privilege_type of this GrantSummary.

Methods:

__init__(**kwargs)

Initializes a new GrantSummary object with values from keyword arguments.

PRIVILEGE_CATEGORY_CRITICAL = 'CRITICAL'

A constant which can be used with the privilege_category property of a GrantSummary. This constant has a value of “CRITICAL”

PRIVILEGE_CATEGORY_HIGH = 'HIGH'

A constant which can be used with the privilege_category property of a GrantSummary. This constant has a value of “HIGH”

PRIVILEGE_CATEGORY_LOW = 'LOW'

A constant which can be used with the privilege_category property of a GrantSummary. This constant has a value of “LOW”

PRIVILEGE_CATEGORY_MEDIUM = 'MEDIUM'

A constant which can be used with the privilege_category property of a GrantSummary. This constant has a value of “MEDIUM”

PRIVILEGE_TYPE_ADMIN_PRIVILEGE = 'ADMIN_PRIVILEGE'

A constant which can be used with the privilege_type property of a GrantSummary. This constant has a value of “ADMIN_PRIVILEGE”

PRIVILEGE_TYPE_OBJECT_PRIVILEGE = 'OBJECT_PRIVILEGE'

A constant which can be used with the privilege_type property of a GrantSummary. This constant has a value of “OBJECT_PRIVILEGE”

PRIVILEGE_TYPE_ROLE = 'ROLE'

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

PRIVILEGE_TYPE_SYSTEM_PRIVILEGE = 'SYSTEM_PRIVILEGE'

A constant which can be used with the privilege_type property of a GrantSummary. This constant has a value of “SYSTEM_PRIVILEGE”

__init__(**kwargs)

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

Parameters
  • key (str) – The value to assign to the key property of this GrantSummary.

  • grant_name (str) – The value to assign to the grant_name property of this GrantSummary.

  • privilege_type (str) – The value to assign to the privilege_type property of this GrantSummary. Allowed values for this property are: “SYSTEM_PRIVILEGE”, “OBJECT_PRIVILEGE”, “ADMIN_PRIVILEGE”, “ROLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • privilege_category (str) – The value to assign to the privilege_category property of this GrantSummary. Allowed values for this property are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • depth_level (int) – The value to assign to the depth_level property of this GrantSummary.

property depth_level

Gets the depth_level of this GrantSummary. The grant depth level of the indirect grant. An indirectly granted role/privilege is granted to the user through another role. The depth level indicates how deep a privilege is within the grant hierarchy.

Returns

The depth_level of this GrantSummary.

Return type

int

property grant_name

Gets the grant_name of this GrantSummary. The name of a user grant.

Returns

The grant_name of this GrantSummary.

Return type

str

property key

[Required] Gets the key of this GrantSummary. The unique key of a user grant.

Returns

The key of this GrantSummary.

Return type

str

property privilege_category

Gets the privilege_category of this GrantSummary. The privilege category.

Allowed values for this property are: “CRITICAL”, “HIGH”, “MEDIUM”, “LOW”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The privilege_category of this GrantSummary.

Return type

str

property privilege_type

Gets the privilege_type of this GrantSummary. The type of a user grant.

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

Returns

The privilege_type of this GrantSummary.

Return type

str