RoleService#
- class RoleService[source]#
- get_all(*, extra_parameters=None)[source]#
Get all global roles with their permissions
- Parameters:
extra_parameters (
Optional
[Mapping
[str
,Union
[str
,bool
,int
,float
]]]) – The extra query parameters you might want to add. By default no extra query parameters are added.self (RoleService[AuthenticatedClient]) –
- Returns:
An array of all global roles.
- Return type:
- patch(json_body, *, role_id, extra_parameters=None)[source]#
Update the Permission of a given Role.
- Parameters:
json_body (
Union
[dict
,list
,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.extra_parameters (
Optional
[Mapping
[str
,Union
[str
,bool
,int
,float
]]]) – The extra query parameters you might want to add. By default no extra query parameters are added.self (RoleService[AuthenticatedClient]) –
- Returns:
An empty response with return code 204.
- Return type:
None