
                             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  G d
 dej                        Z ej                   d      e_        y)z+Command for listing interconnect locations.    )absolute_import)division)unicode_literals)
list_pager)base_classes)filter_rewrite)base)
propertiesc                   &    e Zd ZdZed        Zd Zy)Listz?List Google Compute Engine Cloud Interconnect remote locations.c                 :    |j                   j                  d       y )NzD
        table(
          name,
          description
        )
    )display_info	AddFormat)clsparsers     :lib/surface/compute/interconnects/remote_locations/list.pyArgsz	List.Args   s    
!! # 	    c              #     K   t        j                  | j                               }|j                  j                  }|j
                  }t        j                  j                  j                  j                         }t        j                         j                  |j                        \  |_        }|j                  ||      }t!        j"                  |j$                  |d|j&                  d       }|D ]  }	|	  y w)N)projectfilteritems)fieldlimit
batch_size)r   ComputeApiHolderReleaseTrackclientapitools_clientMESSAGES_MODULEr
   VALUEScorer   	GetOrFailr   RewriterRewriter   -ComputeInterconnectRemoteLocationsListRequestr   YieldFromListinterconnectRemoteLocationsr   )
selfargsholderr   messagesr   filter_exprrequestresultsitems
             r   RunzList.Run(   s     **4+<+<+>?F]]**F%%H$$,,668G-668@@MDKDD E -G &&**jjG j s   C:C<N)__name__
__module____qualname____doc__classmethodr   r1    r   r   r   r      s    G	 	r   r   z#Cloud Interconnect remote locationsN)r5   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper	   googlecloudsdk.corer
   ListCommandr   GetGlobalListerHelpdetailed_helpr7   r   r   <module>r@      sO    2 &  ' ' 7 9 ( *!4 !H 6\55)+ r   