
    
                         S 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SK
Jr  SSK
Jr  SSKJr  SS	KJr  S
SS.r\R"                   " S S\R$                  5      5       r\\l        g)zList node pools command.    )absolute_import)division)unicode_literals)
exceptions)util)base)flags)
propertiesze        *{command}* displays all node pools in the Google Kubernetes Engine
        cluster.
        z        To list all node pools in the cluster "sample-cluster" in table form,
        run:

          $ {command} --cluster=sample-cluster
     )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)List-   z'List existing node pools for a cluster.c                     [         R                  " U S5        U R                  R                  [        R
                  5        g)zRegister flags for this command.

Args:
  parser: An argparse.ArgumentParser-like object. It is mocked out in order
    to capture some information, but behaves like an ArgumentParser.
zThe name of the cluster.N)r	   AddNodePoolClusterFlagdisplay_info	AddFormatr   NODEPOOLS_FORMAT)parsers    (lib/surface/container/node_pools/list.pyArgs	List.Args1   s/     
  )CD
!!$"7"78    c                    U R                   S   nU R                   S   nU" U5      n[        R                  R                  R                  R                  SS9nUR                  XT5      n UR                  U5      nUR                   H  n[        R                  " U5        M     UR                  $ ! [        R                   a*  n	[        R                  " U	[        R                  5      eSn	A	ff = f)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.
api_adapterlocation_getT)requiredN)contextr
   VALUES	containerclusterGetParseClusterListNodePools	nodePoolsr   CheckForCgroupModeV1apitools_exceptions	HttpErrorr   HttpExceptionHTTP_ERROR_FORMAT)
selfargsadapterr   locationr!   cluster_refres	node_poolerrors
             r   RunList.Run<   s     ll=)G<</LD!H))1155t5DG&&w9KD!!+.c}})!!), % ]](( D$$UD,B,BCCDs   *AB0 0C.%C))C. N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r3   __static_attributes__r5   r   r   r   r   -   s    /9 9Dr   r   N)r:   
__future__r   r   r   apitools.base.pyr   r'    googlecloudsdk.api_lib.containerr   googlecloudsdk.callioper   $googlecloudsdk.command_lib.containerr	   googlecloudsdk.corer
   DETAILED_HELPDefaultUniverseOnlyListCommandr   detailed_helpr5   r   r   <module>rG      sk     &  ' > 1 ( . 6 *	
		  &D4 &D &DR # r   