
                             d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlm	Z	 ddl
mZ  G d	 d
e	j                        Zy)z(Command for spanner database roles list.    )absolute_import)division)unicode_literalsN)database_roles)base)resource_argsc                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)ListzDList the Cloud Spanner database roles defined in the given database.EXAMPLESz        To list the Cloud Spanner database roles in a database, run:

          $ {command} --instance=my-instance-id --database=my-database-id
        c                 j    t        j                  | dd       | j                  j                  d       y)zSee base class.zin which to list database rolesF)
positionalzB
          table(
            name.basename()
          )
        N)r   AddDatabaseResourceArgdisplay_info	AddFormat)parsers    +lib/surface/spanner/databases/roles/list.pyArgsz	List.Args(   s4     ((1eE
!! #     c                 p    t        j                  |j                  j                  j	                               S )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   RunzList.Run3   s(     t}}55;;=>>r   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   r    r   r   r
   r
      s=    L 
(//  -  
?r   r
   )r   
__future__r   r   r   r    googlecloudsdk.api_lib.spannerr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.spannerr   ListCommandr
   r$   r   r   <module>r*      s1    / &  '  9 ( <!?4 !?r   