
                         V   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SS	KJr  \R                  \R                  " \R                   R"                  \R                   R$                  \R                   R&                  5       " S
 S\R(                  5      5       5       rg)z#Command for deleting interconnects.    )absolute_import)division)unicode_literals)base_classes)utils)client)base)flagsc                   8    \ rS rSrSrSr\S 5       rS rS r	Sr
g)Delete   zDelete Compute Engine interconnects.

*{command}* deletes Compute Engine interconnects. Interconnects
 can only be deleted when no other resources (e.g.,
 InterconnectAttachments) refer to them.
Nc                     [         R                  " SS9U l        U R                  R                  USS9  UR                  R                  [         R                  5        g )NT)pluraldelete)operation_type)r
   InterconnectArgumentINTERCONNECT_ARGAddArgumentdisplay_infoAddCacheUpdaterInterconnectsCompleter)clsparsers     +lib/surface/compute/interconnects/delete.pyArgsDelete.Args+   sH     55TBC$$VH$E
''(D(DE    c                     g)Nzcompute.interconnects )selfs    r   
CollectionDelete.Collection1   s    "r   c                    [         R                  " U R                  5       5      nU R                  R	                  XR
                  5      n[        R                  " U5        / nU H?  n[        R                  " XRR                  S9nUR                  UR                  SS95        MA     UR                  R                  U5      $ )N)compute_clientT)only_generate_request)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   PromptForDeletionr   Interconnectextendr   MakeRequests)r    argsholderrefsrequestsrefinterconnects          r   Run
Delete.Run4   s    **4+<+<+>?F  2249I9IJD	D!H((]]Klool)))EF  ==%%h//r   r   )__name__
__module____qualname____firstlineno____doc__r   classmethodr   r!   r4   __static_attributes__r   r   r   r   r      s-    
 F F
#
0r   r   N)r:   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   ,googlecloudsdk.api_lib.compute.interconnectsr   googlecloudsdk.callioper	   0googlecloudsdk.command_lib.compute.interconnectsr
   UniverseCompatibleReleaseTracksr'   ALPHABETAGADeleteCommandr   r   r   r   <module>rH      s     * &  ' 7 0 ? ( B T..33T5F5F5I5I0T 0 0r   