
    x                        d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ ddlmZ dd	lmZ d
Z e	j                   e	j"                  j$                  e	j"                  j&                         G d de	j(                               Zy)z"Command to list Attached clusters.    )absolute_import)division)unicode_literals)attached)base)resource_args)	constants)endpoint_utilz_
To lists all clusters managed in location ``us-west1'', run:

$ {command} --location=us-west1
c                   .    e Zd ZdZdeiZed        Zd Zy)DescribezList Attached clusters.EXAMPLESc                     t        j                  | d       | j                  j                  t        j
                         y )Nzto list)r   AddLocationResourceArgdisplay_info	AddFormatr	   ATTACHED_CLUSTERS_FORMAT)parsers    /lib/surface/container/attached/clusters/list.pyArgszDescribe.Args(   s,    ((;
!!)"D"DE    c                 4   |j                   j                  j                         }t        j                  |j
                        5  t        j                         }|j                  ||j                  |j                        \  }}|cddd       S # 1 sw Y   yxY w)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   RunzDescribe.Run-   sl    ==))//1L		4	4\5M5M	N..0n$$\4>>4::NheQ 
O	N	Ns   A BBN)	__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   r(    r   r   r   r   "   s(    y)-F Fr   r   N)r,   
__future__r   r   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   r0   r   r   <module>r;      sr    ) &  ' O ( G H L	 D%%++T->->-A-ABt  Cr   