
                            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$                         G d	 d
e
j&                                      Zy)z?Command for describing L2 forwarding interconnects attachments.    )absolute_import)division)unicode_literals)base_classes)client)base)flagsc                   *    e Zd ZdZdZed        Zd Zy)DescribezDescribe a Compute Engine L2 forwarding interconnect attachment.

  *{command}* displays all data associated with Compute Engine
  interconnect attachment in a project.
  Nc                     t        j                         | _        | j                  j                  |d       t        j                  |d       y )Ndescribe)operation_typeT)required)r	   InterconnectAttachmentArgumentINTERCONNECT_ATTACHMENT_ARGAddArgument
AddVlanKey)clsparsers     Olib/surface/compute/interconnects/attachments/l2_forwarding/describe_mapping.pyArgszDescribe.Args*   sC    &+&J&J&LC###//z 0  
Vd+    c                 L   t        j                  | j                               }| j                  j	                  ||j
                  t        j                  |j                              }t        j                  ||j                        }|j                  |j                        S )N)scope_lister)compute_client)vlan_key)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcescompute_flagsGetDefaultScopeListerr   InterconnectAttachmentDescribeMappingr   )selfargsholderrefinterconnect_attachments        r   RunzDescribe.Run2   s    **4+<+<+>?F

*
*
<
<"88G = C %;;FMM #22 3  r   )__name__
__module____qualname____doc__r   classmethodr   r*    r   r   r   r      s&    
 !%, ,r   r   N)r.   
__future__r   r   r   googlecloudsdk.api_lib.computer   8googlecloudsdk.api_lib.compute.interconnects.attachmentsr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer	   r!   <googlecloudsdk.command_lib.compute.interconnects.attachmentsDefaultUniverseOnlyReleaseTracksr   ALPHADescribeCommandr   r0   r   r   <module>r;      sn     F &  ' 7 K ( E N t##  r   