Role#
- class Role(description=None, operations=None, accessible_clients=None, accessible_entity_types=None, accessible_clients_count=None, accessible_entity_types_count=None, assigned_users_count=None, assigned_user_groups_count=None, created_time=None, last_updated_time=None, created_by=None, is_system_defined=True, display_name=None, client_name=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#
Bases:
BaseRoleA role to group the operations.
- Parameters:
description (max=1000 chars) – (
description) Description of the role.operations – (
operations) List of operations for the role.accessible_clients – (
accessible_clients) List of acessible clients for the role.accessible_entity_types – (
accessible_entity_types) List of accessible entity types for the role.accessible_clients_count – (
accessible_clients_count) Count of accessible clients for the role.accessible_entity_types_count – (
accessible_entity_types_count) Count of accessible entity types for the role.assigned_users_count – (
assigned_users_count) Number of users assigned to the given role.assigned_user_groups_count – (
assigned_user_groups_count) Number of user groups assigned to the given role.created_time – (
created_time) The creation time of the role.last_updated_time – (
last_updated_time) The time when the role was last updated.created_by – (
created_by) User or Service Name that created the role.is_system_defined – (
is_system_defined) Flag identifying if the role is system-defined or not. (Default True)
- property accessible_clients#
List of acessible clients for the role.
- Type:
list[
str]
- property accessible_clients_count#
Count of accessible clients for the role.
- Type:
int
- property accessible_entity_types#
List of accessible entity types for the role.
- Type:
list[
str]
- property accessible_entity_types_count#
Count of accessible entity types for the role.
- Type:
int
- property assigned_user_groups_count#
Number of user groups assigned to the given role.
- Type:
int
- property assigned_users_count#
Number of users assigned to the given role.
- Type:
int
- property created_by#
User or Service Name that created the role.
- Type:
str
- property created_time#
The creation time of the role.
- Type:
datetime
- property description#
Description of the role.
- Type:
str
- property is_system_defined#
Flag identifying if the role is system-defined or not.
- Type:
bool
- property last_updated_time#
The time when the role was last updated.
- Type:
datetime
- property operations#
List of operations for the role.
- Type:
list[
str]
- to_dict()#
Returns the model properties as a dictionary
- to_str()#
Returns the string representation of the model