
                         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)z4Command for deleting interconnect attachment groups.    )absolute_import)division)unicode_literals)base_classes)utils)client)base)flags)
propertiesz        *{command}* is used to delete interconnect attachment groups.

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

          $ {command} example-attachment-group"

        Although not shown in this example, you can delete multiple interconnect
        attachment groups in a single command.
        )DESCRIPTIONEXAMPLESc                   0    e Zd ZdZdZed        Zd Zd Zy)DeleteaL  Delete Compute Engine interconnect attachment groups.

  *{command}* deletes Compute Engine interconnect attachment groups.
  Interconnect attachment groups can be deleted even if they are referenced by
  interconnect attachments. Each interconnect attachment in the group will be
  updated to remove its reference to this group.
  Nc                 t    t        j                  d      | _        | j                  j                  |d       y )NT)pluraldelete)operation_type)r
   #InterconnectAttachmentGroupArgumentATTACHMENT_GROUP_ARGAddArgument)clsparsers     >lib/surface/compute/interconnects/attachments/groups/delete.pyArgszDelete.Args=   s3    $HH C (((I    c                      y)Nz$compute.interconnectAttachmentGroups )selfs    r   
CollectionzDelete.CollectionD   s    1r   c                    t        j                  | j                               }| j                  j	                  ||j
                        }t        j                  j                  j                  j                         }t        j                  |       g }|D ]E  }t        j                  |||j                        }|j                  |j!                  d             G |j                  j#                  |      S )N)compute_clientT)only_generate_request)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   VALUEScoreproject	GetOrFailr   PromptForDeletionr   InterconnectAttachmentGroupextendr   MakeRequests)r   argsholderrefsr)   requestsrefattachment_groups           r   Runz
Delete.RunG   s    **4+<+<+>?F$$66tV=M=MND$$,,668G	D!H;;
wv}} oo&--D-IJ	  ==%%h//r   )	__name__
__module____qualname____doc__r   classmethodr   r   r5   r   r   r   r   r   .   s-    
 J J20r   r   N)r9   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   ?googlecloudsdk.api_lib.compute.interconnects.attachments.groupsr   googlecloudsdk.callioper	   Cgooglecloudsdk.command_lib.compute.interconnects.attachments.groupsr
   googlecloudsdk.corer   DETAILED_HELPUniverseCompatibleReleaseTracksr$   ALPHABETAGADeleteCommandr   detailed_helpr   r   r   <module>rI      s     ; &  ' 7 0 R ( U *
" T..33T5F5F5I5I"0T "0 "0J % r   