
                         F   S r SSKJr  SSKJr  SSKJ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                  R                   \	R                  R"                  5       " S	 S
\	R$                  5      5       5       rg)z-Command for spanner instance partitions list.    )absolute_import)division)unicode_literalsN)instance_partitions)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)	List   zIList 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                     [         R                  " U SSS9  [        R                  R	                  U 5        U R
                  R                  S5        g )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Args	List.Args,   sG    ((65 	%%f-
!! 	# 	    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instanceParse)selfargss     r   RunList.Run=   s(     ##DMM$:$:$@$@$BCCr    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r   __static_attributes__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>r7      s    4 &  '  > ( < $++00$2C2C2I2I&D4 &D &Dr   