
    
                     z   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d
lmZ dddZej"                   ej$                  ej&                  j(                  ej&                  j*                  ej&                  j,                         G d dej.                                      Zee_        y)z(Command for listing interconnect groups.    )absolute_import)division)unicode_literals)
list_pager)base_classes)filter_rewrite)base)
properties)resource_projection_specz        *{command}* is used to list interconnect groups.

        For an example, refer to the *EXAMPLES* section below.
        zI        To list interconnect groups, run:

          $ {command}
        )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)ListzList interconnect groups.c                 :    |j                   j                  d       y )Nz
        table(
          name,
          interconnects.flatten(show='keys', separator='
'),
          intent.topologyCapability:label=INTENDED_CAPABILITY,
          configured.topologyCapability.supportedSla:label=CONFIGURED_CAPABILITY
        )
    )display_info	AddFormat)clsparsers     0lib/surface/compute/interconnects/groups/list.pyArgsz	List.Args2   s    
!! # 	    c                 V   t        j                  | j                               }|j                  j                  }|j
                  }t        j                  j                  j                  j                         }|j                         }t        j                  |j                  |j                        }t!        j"                         j%                  |j&                  |      \  |_        }|j)                  ||      }	t+        j,                  |j.                  |	d|j0                  d       S )N)symbolsaliases)defaults)projectfilteritems)fieldlimit
batch_size)r   ComputeApiHolderReleaseTrackclientapitools_clientMESSAGES_MODULEr
   VALUEScorer   	GetOrFailGetDisplayInfor   ProjectionSpec
transformsr   r   RewriterRewriter   $ComputeInterconnectGroupsListRequestr   YieldFromListinterconnectGroupsr    )
selfargsholderr$   messagesr   r   r   filter_exprrequests
             r   RunzList.Run=   s    **4+<+<+>?F]]**F%%H$$,,668G&&(L'66''1E1EH  .668@@h  A  DK ;; < G ##!!jj r   N)__name__
__module____qualname____doc__classmethodr   r8    r   r   r   r   +   s    
 "	 	r   r   N)r<   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper	   googlecloudsdk.corer
   googlecloudsdk.core.resourcer   DETAILED_HELPUniverseCompatibleReleaseTracksr#   ALPHABETAGAListCommandr   detailed_helpr>   r   r   <module>rM      s     / &  ' ' 7 9 ( * A
 T..33T5F5F5I5I'4 ' 'T # r   