
                             S r SSKrSSKJr  SSKJr  SSKJr  \R                  " \R                  R                  \R                  R                  5      \R                   " S S\R                  5      5       5       rg)z-Command for spanner databases get-iam-policy.    N)	databases)base)resource_argsc                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	GetIamPolicy   z0Get the IAM policy for a Cloud Spanner database.EXAMPLESzw        To print the IAM policy for a given Cloud Spanner database, run:

          $ {command} my-database-id
        c                 p    [         R                  " U S5        [        R                  R	                  U 5        g)zSee base class.zto get IAM policy binding forN)r   AddDatabaseResourceArgr   URI_FLAGRemoveFromParser)parsers    /lib/surface/spanner/databases/get_iam_policy.pyArgsGetIamPolicy.Args'   s*     (()HJMM""6*    c                 r    [         R                  " UR                  R                  R	                  5       5      $ )zThis is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  Some value that we want to have printed later.
)r   r   CONCEPTSdatabaseParse)selfargss     r   RunGetIamPolicy.Run.   s(     !!$--"8"8">">"@AAr    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r   __static_attributes__r   r   r   r   r      s>     9 
//  - + +
Br   r   )r    r!   googlecloudsdk.api_lib.spannerr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.spannerr   ReleaseTracksReleaseTrackGABETAUniverseCompatibleListCommandr   r   r   r   <module>r/      sp    4  4 ( < D%%(($*;*;*@*@AB4## B  BBr   