Skip to content

Commit 98de6b8

Browse files
melaniedejongcode-review-assist[bot]
andauthored
Update iam/cloud-client/snippets/quickstart.py doc string
Co-authored-by: code-review-assist[bot] <182814678+code-review-assist[bot]@users.noreply.github.com>
1 parent f9e3efc commit 98de6b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

iam/cloud-client/snippets/quickstart.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919

2020

2121
def quickstart(project_id: str, member: str) -> None:
22+
"""Demonstrates basic IAM operations.
23+
24+
This quickstart shows how to get a project's IAM policy, add a principal to a role, list members of a role, and remove a principal from a role.
25+
26+
Args:
27+
project_id: The ID or number of the Google Cloud project.
28+
member: The principal ID.
29+
"""
2230
"""Gets a policy, adds a principal, prints their permissions, and removes the principal.
2331
2432
project_id: ID or number of the Google Cloud project you want to use.

0 commit comments

Comments
 (0)