Skip to content

Commit

Permalink
Update compass.py
Browse files Browse the repository at this point in the history
Small enhancements to the documentation for compass.api_update_resource_roles with a payload example for patch_grants
  • Loading branch information
Simon Heckmann authored and nicornk committed Sep 27, 2024
1 parent 0cf3edf commit 7721542
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion libs/foundry-dev-tools/src/foundry_dev_tools/clients/compass.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,18 @@ def api_update_resource_roles(
Args:
rid: resource identifier, for the resource for which roles will be updated
grant_patches: the role grants that should be patched
grant_patches: list of role grants that should be patched.
grant_patches have the following structure
[{
"patchOperation": "ADD" | "REMOVE",
"roleGrant": {
"role": roleset_id,
"principal": {
"id": multipass_id,
"type": "USER" | "GROUP" | "EVERYONE"
}
}
}]
disable_inherited_permissions_for_principals: patch role grants for the provided inherited permissions
disable_inherited_permissions: disable inherited permissions
**kwargs: gets passed to :py:meth:`APIClient.api_request`
Expand Down

0 comments on commit 7721542

Please sign in to comment.