
                         |    S r SSK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 r " S	 S
\R                  5      rg)z bigtable instances list command.    N)
list_pager)util)base)
properties)	resourcesc                 ^    [         R                  " U R                  5      R                  5       $ )N)r   GetInstanceRefnameSelfLink)resources    &lib/surface/bigtable/instances/list.py_GetUriFunctionr      s     			X]]	+	4	4	66    c                   V    \ rS rSrSrS\R                  " S5      0r\S 5       r	S r
Srg)	ListInstances   z!List existing Bigtable instances.EXAMPLESzI          To list all instances, run:

            $ {command}
          c                 x    U R                   R                  S5        U R                   R                  [        5        g)z Register flags for this command.zu
          table(
            name.basename():sort=1,
            displayName,
            state
          )
        N)display_info	AddFormat
AddUriFuncr   )parsers    r   ArgsListInstances.Args+   s3     !! #  ""?3r   c                 h   [         R                  " 5       n[        R                  R	                  [
        R                  R                  R                  R                  SS9SS9n[         R                  " 5       R                  UR                  5       S9n[        R                  " UR                  USSS9$ )	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.
T)requiredzbigtableadmin.projects)
collection)parent	instancesN)fieldbatch_size_attribute)r   GetAdminClientr   REGISTRYParser   VALUEScoreprojectGetGetAdminMessages)BigtableadminProjectsInstancesListRequestRelativeNamer   YieldFromListprojects_instances)selfargscliproject_refmsgs        r   RunListInstances.Run7   s     


C$$**&&**D*9+ + -K 


!
K
K'') L +C##!	# #r    N)__name__
__module____qualname____firstlineno____doc__textwrapdedentdetailed_helpstaticmethodr   r3   __static_attributes__r5   r   r   r   r      s;    ) 
//  - 	4 	4#r   r   )r:   r;   apitools.base.pyr   googlecloudsdk.api_lib.bigtabler   googlecloudsdk.callioper   googlecloudsdk.corer   r   r   ListCommandr   r5   r   r   <module>rE      s5    '  ' 0 ( * )7,#D$$ ,#r   