
    	                         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r\R                  " \R                  R                  \R                  R                  5       " S S	\R                   5      5       rg
)z"Command to list Attached clusters.    )attached)base)resource_args)	constants)endpoint_utilz_
To lists all clusters managed in location ``us-west1'', run:

$ {command} --location=us-west1
c                   6    \ rS rSrSrS\0r\S 5       rS r	Sr
g)Describe   zList Attached clusters.EXAMPLESc                     [         R                  " U S5        U R                  R                  [        R
                  5        g )Nzto list)r   AddLocationResourceArgdisplay_info	AddFormatr   ATTACHED_CLUSTERS_FORMAT)parsers    /lib/surface/container/attached/clusters/list.pyArgsDescribe.Args%   s,    ((;
!!)"D"DE    c                 >   UR                   R                  R                  5       n[        R                  " UR
                  5         [        R                  " 5       nUR                  X!R                  UR                  5      u  pEUsSSS5        $ ! , (       d  f       g= f)zRuns the list command.N)CONCEPTSlocationParser   GkemulticloudEndpointOverridelocationsIdapi_utilClustersClientList	page_sizelimit)selfargslocation_refcluster_clientitems_s         r   RunDescribe.Run*   sh    ==))//1L		4	4\5M5M	N..0n$$\>>4::Nhe 
O	N	Ns   ?B
B N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr   r'   __static_attributes__r)   r   r   r	   r	      s(    y)-F Fr   r	   N)r.   .googlecloudsdk.api_lib.container.gkemulticloudr   r   googlecloudsdk.callioper   -googlecloudsdk.command_lib.container.attachedr   2googlecloudsdk.command_lib.container.gkemulticloudr   r   r/   ReleaseTracksReleaseTrackALPHAGAListCommandr	   r)   r   r   <module>r<      sj    ) P ( G H L	 D%%++T->->-A-ABt  Cr   