RoleService#
- class RoleService[source]#
- get_all(*, page_size=20)[source]#
Get all global roles with their permissions
- Parameters:
page_size (
int
) – The size of a single page, maximum is 50.self (RoleService[AuthenticatedClient]) –
- Returns:
An array of all global roles.
- Return type:
Response[RoleAsJSONWithPerms]
- patch(json_body, *, role_id)[source]#
Update the Permission of a given Role.
- Parameters:
json_body (
PatchRoleData
) – The body of the request. SeePatchRoleData
for information about the possible fields. You can provide this data as aPatchRoleData
or as a dictionary.role_id (
int
) – The id of the global role.self (RoleService[AuthenticatedClient]) –
- Returns:
An empty response with return code 204.
- Return type:
None