
                            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 ej                   ej                  ej                   j"                  ej                   j$                  ej                   j&                         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 Compute Engine interconnect locations.c                 :    |j                   j                  d       y )Nz
        table(
          name,
          description,
          facilityProvider,
          singleRegionProductionCriticalPeerLocations.basename().join(sep="
"):label=99.99%_PEER_LOCATIONS
        )
    )display_info	AddFormat)clsparsers     3lib/surface/compute/interconnects/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   'ComputeInterconnectLocationsListRequestr   YieldFromListinterconnectLocationsr   )
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>> ? -G &&$$jjG j s   C:C<N)__name__
__module____qualname____doc__classmethodr   r1    r   r   r   r      s    
 4	 	r   r   zinterconnect locationsN)r5   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper	   googlecloudsdk.corer
   UniverseCompatibleReleaseTracksr   ALPHABETAGAListCommandr   GetGlobalListerHelpdetailed_helpr7   r   r   <module>rE      s     2 &  ' ' 7 9 ( * T..33T5F5F5I5I#4 # #J 6\556NO r   