
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSK	Jr  \R                   " S	 S
\R                  5      5       rg)zCommand for describing a role.    )absolute_import)division)unicode_literals)util)base)flags)iam_utilc                   .    \ rS rSrSr\S 5       rS rSrg)Describe   a  Show metadata for a role.

This command shows metadata for a role.

This command can fail for the following reasons:
* The role specified does not exist.
* The active user does not have permission to access the given role.

## EXAMPLES

To print metadata for the role ``spanner.databaseAdmin'' of the organization
``1234567'', run:

  $ {command} roles/spanner.databaseAdmin --organization=1234567

To print metadata for the role ``spanner.databaseAdmin'' of the project
``myproject'', run:

  $ {command} roles/spanner.databaseAdmin --project=myproject

To print metadata for a predefined role, ``spanner.databaseAdmin'', run:

  $ {command} roles/spanner.databaseAdmin
c                 z    [         R                  " U SSS9  [         R                  " S5      R                  U 5        g )NdescribeF)required)r   AddParentFlagsGetRoleFlagAddToParser)parsers    !lib/surface/iam/roles/describe.pyArgsDescribe.Args7   s-    	e<	j!--f5    c                    [         R                  " UR                  UR                  UR                  5      n[
        R                  " 5       u  p4UR                  R                  UR                  US95      n[         R                  " U5        U$ )N)name)r	   GetRoleNameorganizationprojectroler   GetClientAndMessagesorganizations_rolesGetIamOrganizationsRolesGetRequestSetRoleStageIfAlpha)selfargs	role_nameclientmessagesress         r   RunDescribe.Run<   sp    $$T%6%6diiPI002F

$
$
(
(00i0@BC  %Jr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r)   __static_attributes__r+   r   r   r   r      s     2 6 6r   r   N)r0   
__future__r   r   r   googlecloudsdk.api_lib.iamr   googlecloudsdk.callioper   googlecloudsdk.command_lib.iamr   r	   UniverseCompatibleDescribeCommandr   r+   r   r   <module>r9      sF     % &  ' + ( 0 3 %t## % %r   