RoleDetails¶
- pydantic model openapi_client.models.role_details.RoleDetails¶
A role as returned in the GET /roles listing. When projectionExpression is supplied, only the requested attributes are present, so no property is guaranteed.
- Fields:
- field role_id: Optional[StrictStr] = None (alias 'RoleId')¶
Unique identifier of the role, in the form “role-<uuid>”.
- field role_name: Optional[StrictStr] = None (alias 'RoleName')¶
Name of the role. Unique across the platform.
- field role_description: Optional[StrictStr] = None (alias 'RoleDescription')¶
Free-text description of the role. May be empty.
- field role_permissions: Optional[List[StrictStr]] = None (alias 'RolePermissions')¶
Permissions granted directly to this role, each in the form “<service>.<action>” (for example “datasets.view”).
- field users_attached: Optional[List[StrictStr]] = None (alias 'UsersAttached')¶
User IDs attached to the role. Role managers are always included in this list.
- field role_managers: Optional[List[StrictStr]] = None (alias 'RoleManagers')¶
User IDs permitted to update or delete this role. The creator is always included.
Opaque UI navigation configuration stored with the role. The backend persists it without inspecting its structure. Present on non-system roles only.
- field creation_time: Optional[StrictStr] = None (alias 'CreationTime')¶
Timestamp at which the role was created.
- field created_by: Optional[StrictStr] = None (alias 'CreatedBy')¶
User who created the role.
- field last_modified_time: Optional[StrictStr] = None (alias 'LastModifiedTime')¶
Timestamp of the most recent update to the role.
- field last_modified_by: Optional[StrictStr] = None (alias 'LastModifiedBy')¶
User who last updated the role.
- field role_version: Optional[StrictStr] = None (alias 'RoleVersion')¶
Internal schema version of the role record.
- to_str()¶
Returns the string representation of the model using alias
- Return type:
str
- to_json()¶
Returns the JSON representation of the model using alias
- Return type:
str
- classmethod from_json(json_str)¶
Create an instance of RoleDetails from a JSON string
- Return type:
Optional[Self]
- to_dict()¶
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic’s self.model_dump(by_alias=True):
None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
- Return type:
Dict[str,Any]
- classmethod from_dict(obj)¶
Create an instance of RoleDetails from a dict
- Return type:
Optional[Self]