
    D	                         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	lmZ ej$                   G d
 dej&                               Zy)z/Command for deleting interconnects attachments.    )absolute_import)division)unicode_literals)base_classes)utils)client)base)flagsc                   *    e Zd ZdZdZed        Zd Zy)DeletezrDelete Compute Engine interconnect attachments.

  *{command}* deletes Compute Engine interconnect attachments.
  Nc                     t        j                  d      | _        | j                  j                  |d       |j                  j                  t        j                         y )NT)pluraldelete)operation_type)r
   InterconnectAttachmentArgumentINTERCONNECT_ATTACHMENT_ARGAddArgumentdisplay_infoAddCacheUpdaterinterconnects_flagsInterconnectsCompleter)clsparsers     7lib/surface/compute/interconnects/attachments/delete.pyArgszDelete.Args(   sN    &+&J&J'C###//x/P
''224    c                    t        j                  | j                               }| j                  j	                  ||j
                  t        j                  |j                              }t        j                  |       g }|D ]D  }t        j                  ||j                        }|j                  |j                  d             F |j                  j                  |      S )N)scope_lister)compute_clientT)only_generate_request)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcescompute_flagsGetDefaultScopeListerr   r   PromptForDeletionInterconnectAttachmentextendr   MakeRequests)selfargsholderrefsrequestsrefinterconnect_attachments          r   Runz
Delete.Run0   s    **4+<+<+>?F++=="88G > ID 
D!H & = =
fmm!-oo
!
(
(t
(
DF  ==%%h//r   )__name__
__module____qualname____doc__r   classmethodr   r2    r   r   r   r      s&    
 !%4 40r   r   N)r6   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   8googlecloudsdk.api_lib.compute.interconnects.attachmentsr   googlecloudsdk.callioper	   "googlecloudsdk.command_lib.computer
   r%   0googlecloudsdk.command_lib.compute.interconnectsr   <googlecloudsdk.command_lib.compute.interconnects.attachmentsUniverseCompatibleDeleteCommandr   r8   r   r   <module>rB      sO     6 &  ' 7 0 K ( E Y N 0T 0 0r   