Skip to content

Commit 4b39973

Browse files
committed
Update docstring examples to use lowercase type values
Changed the example values for 'Type' in the docstring of the permission check method to use lowercase (e.g., 'user', 'action', 'agent') for consistency and clarity.
1 parent 4b33f91 commit 4b39973

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

veadk/integrations/ve_identity/identity_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,9 @@ def check_permission(
704704
"""Check if the principal has permission to perform the operation on the resource.
705705
706706
Args:
707-
principal: Principal information, e.g., {"Type": "User", "Id": "user123"}
708-
operation: Operation to check, e.g., {"Type": "Action", "Id": "invoke"}
709-
resource: Resource information, e.g., {"Type": "Agent", "Id": "agent456"}
707+
principal: Principal information, e.g., {"Type": "user", "Id": "user123"}
708+
operation: Operation to check, e.g., {"Type": "action", "Id": "invoke"}
709+
resource: Resource information, e.g., {"Type": "agent", "Id": "agent456"}
710710
original_callers: Optional list of original callers.
711711
namespace: Namespace of the resource. Defaults to "default".
712712

0 commit comments

Comments
 (0)