File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 4141Roles represent bundles of permissions that can be added to members.
4242For 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
4846An ``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
150148ffdFADFdsgfsjrsHTY
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)
153151which 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
You can’t perform that action at this time.
0 commit comments