Skip to content

Commit caf020b

Browse files
committed
Replace gcloud with python
1 parent 23bd178 commit caf020b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/iam-usage.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ Roles
4141
Roles represent bundles of permissions that can be added to members.
4242
For a complete list of roles available on a resource run::
4343

44-
``gcloud iam list-grantable-roles //fully/qualified/resource/path``
44+
>>> resource.get_roles()
4545

46-
47-
<<<<<<< Updated upstream
4846
An ``iam.Role`` object has a name, title, and description
4947

5048
- ``name``: the canonical name of a role. This will be the value
@@ -149,10 +147,10 @@ ffdFADFdsgfsjrsHTY
149147
>>> etag
150148
ffdFADFdsgfsjrsHTY
151149

152-
``query_grantable_roles()`` returns a list of ``iam.Role`` objects that represent roles (and their associated metadata)
150+
``get_roles()`` returns a list of ``iam.Role`` objects that represent roles (and their associated metadata)
153151
which can be granted on the specified resource
154152

155-
>>> resource.query_grantable_roles()
153+
>>> resource.get_roles()
156154
[<Role: 'roles/owner'>, <Role: 'roles/editor'>, <Role: 'roles/reader'>]
157155

158156

0 commit comments

Comments
 (0)