Role#

class Role(display_name=None, description=None, client_name=None, operations=None, accessible_clients=None, accessible_object_types=None, created_time=None, last_updated_time=None, created_by=None, is_system_defined=True, ext_id=None, links=None, tenant_id=None, *args, **kwargs)[source]#

Bases: ExternalizableAbstractModel

A role to group the operations and/or sub roles

Parameters:
  • display_name – (display_name) The display name for the role

  • description – (description) Description of the role

  • client_name – (client_name) Client that created the role

  • operations – (operations) List of operations for the role

  • accessible_clients – (accessible_clients) List of accessible clients for the role

  • accessible_object_types – (accessible_object_types) List of Accessible ObjectTypes for the 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 accessible clients for the role

Type:

list[ str ]

property accessible_object_types#

List of Accessible ObjectTypes for the role

Type:

list[ str ]

property client_name#

Client that created the role

Type:

str

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 display_name#

The display name for 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()[source]#

Returns the model properties as a dictionary

to_str()[source]#

Returns the string representation of the model