
    2                     z   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  SS
KJr  SSS.r\R"                  \R$                  " \R&                  R(                  \R&                  R*                  \R&                  R,                  5       " S S\R.                  5      5       5       r\\l        g)z)Command for deleting interconnect groups.    )absolute_import)division)unicode_literals)base_classes)utils)client)base)flags)
propertiesz        *{command}* is used to delete interconnect groups.

        For an example, refer to the *EXAMPLES* section below.
        z        To delete an interconnect group, run:

          $ {command} example-interconnect-group"

        Although not shown in this example, you can delete multiple interconnect
        groups in a single command.
        )DESCRIPTIONEXAMPLESc                   8    \ rS rSrSrSr\S 5       rS rS r	Sr
g)Delete.   a  Delete Compute Engine interconnect groups.

*{command}* deletes Compute Engine interconnect groups. Interconnect groups
 can be deleted even if they are referenced by interconnects. Each
 interconnect in the group will be updated to remove its reference to this
 group.
Nc                 j    [         R                  " SS9U l        U R                  R                  USS9  g )NT)pluraldelete)operation_type)r
   InterconnectGroupArgumentINTERCONNECT_GROUP_ARGAddArgument)clsparsers     2lib/surface/compute/interconnects/groups/delete.pyArgsDelete.Args=   s.    !&!@!@!MC**6(*K    c                     g)Nzcompute.interconnectGroups )selfs    r   
CollectionDelete.CollectionB   s    'r   c                    [         R                  " U R                  5       5      nU R                  R	                  XR
                  5      n[        R                  R                  R                  R                  5       n[        R                  " U5        / nU H@  n[        R                  " XdUR                  S9nUR                  UR!                  SS95        MB     UR                  R#                  U5      $ )N)compute_clientT)only_generate_request)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   VALUEScoreproject	GetOrFailr   PromptForDeletionr   InterconnectGroupextendr   MakeRequests)r    argsholderrefsr,   requestsrefinterconnect_groups           r   Run
Delete.RunE   s    **4+<+<+>?F&&88?O?OPD$$,,668G	D!H!33
v}} oo(//d/KL	  ==%%h//r   r   )__name__
__module____qualname____firstlineno____doc__r   classmethodr   r!   r8   __static_attributes__r   r   r   r   r   .   s-    
  L L(0r   r   N)r>   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   3googlecloudsdk.api_lib.compute.interconnects.groupsr   googlecloudsdk.callioper	   7googlecloudsdk.command_lib.compute.interconnects.groupsr
   googlecloudsdk.corer   DETAILED_HELPUniverseCompatibleReleaseTracksr'   ALPHABETAGADeleteCommandr   detailed_helpr   r   r   <module>rO      s     0 &  ' 7 0 F ( I *
" T..33T5F5F5I5I 0T  0  0F % r   