
                         F   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 e	j                   e	j                  e	j                  j                  e	j                  j                   e	j                  j"                         G d	 d
e	j$                                      Zy)z-Command for spanner instance partitions list.    )absolute_import)division)unicode_literalsN)instance_partitions)base)resource_argsc                   N    e Zd ZdZd ej
                  d      iZed        Zd Z	y)ListzIList the Spanner instance partitions contained within the given instance.EXAMPLESzw      To list all Spanner instances partitions in an instance, run:

      $ {command} --instance=my-instance-id
      c                     t        j                  | dd       t        j                  j	                  |        | j
                  j                  d       y )Nz$in which to list instance partitionsF)
positionalz
          table(
            name.basename(),
            displayName,
            config.basename(),
            nodeCount,
            processing_units,
            state
          )
        )r   AddInstanceResourceArgr   FILTER_FLAGRemoveFromParserdisplay_info	AddFormat)parsers    /lib/surface/spanner/instance_partitions/list.pyArgsz	List.Args,   sG    ((65 	%%f-
!! 	# 	    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instanceParse)selfargss     r   RunzList.Run=   s(     ##DMM$:$:$@$@$BCCr   N)
__name__
__module____qualname____doc__textwrapdedentdetailed_helpstaticmethodr   r    r   r   r
   r
      s@    
 R /(// #
 -   
Dr   r
   )r!   
__future__r   r   r   r"   googlecloudsdk.api_lib.spannerr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.spannerr   DefaultUniverseOnlyReleaseTracksReleaseTrackGABETAALPHAListCommandr
   r&   r   r   <module>r2      s    4 &  '  > ( < $++00$2C2C2I2I&D4 &D &Dr   