Skip to content

Commit

Permalink
Replace gcloud with python
Browse files Browse the repository at this point in the history
  • Loading branch information
elibixby committed Aug 25, 2016
1 parent 23bd178 commit caf020b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/iam-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ Roles
Roles represent bundles of permissions that can be added to members.
For a complete list of roles available on a resource run::

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


<<<<<<< Updated upstream
An ``iam.Role`` object has a name, title, and description

- ``name``: the canonical name of a role. This will be the value
Expand Down Expand Up @@ -149,10 +147,10 @@ ffdFADFdsgfsjrsHTY
>>> etag
ffdFADFdsgfsjrsHTY

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

>>> resource.query_grantable_roles()
>>> resource.get_roles()
[<Role: 'roles/owner'>, <Role: 'roles/editor'>, <Role: 'roles/reader'>]


Expand Down

0 comments on commit caf020b

Please sign in to comment.