
                         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)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                   8    \ rS rSrSrSr\S 5       rS rS r	Sr
g)Delete.   aB  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                 j    [         R                  " SS9U l        U R                  R                  USS9  g )NT)pluraldelete)operation_type)r
   #InterconnectAttachmentGroupArgumentATTACHMENT_GROUP_ARGAddArgument)clsparsers     >lib/surface/compute/interconnects/attachments/groups/delete.pyArgsDelete.Args=   s3    $HH C (((I    c                     g)Nz$compute.interconnectAttachmentGroups )selfs    r   
CollectionDelete.CollectionD   s    1r   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   InterconnectAttachmentGroupextendr   MakeRequests)r    argsholderrefsr,   requestsrefattachment_groups           r   Run
Delete.RunG   s    **4+<+<+>?F$$66t=M=MND$$,,668G	D!H;;
v}} oo&--D-IJ	  ==%%h//r   r   )__name__
__module____qualname____firstlineno____doc__r   classmethodr   r!   r8   __static_attributes__r   r   r   r   r   .   s-    
 J J20r   r   N)r>   
__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>rO      s     ; &  ' 7 0 R ( U *
" T..33T5F5F5I5I"0T "0 "0J % r   