
                             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  G d
 de	j                        Zddde_        y)z0Command for deleting packet mirroring resources.    )absolute_import)division)unicode_literals)base_classes)utils)base)client)flagsc                   0    e Zd ZdZdZed        Zd Zd Zy)Deletez0Delete a Compute Engine packet mirroring policy.Nc                     t        j                  d      | _        | j                  j                  |d       |j                  j                  t         j                         y )NT)pluraldelete)operation_type)r
   PacketMirroringArgumentPACKET_MIRRORING_ARGAddArgumentdisplay_infoAddCacheUpdaterPacketMirroringCompleter)clsparsers     /lib/surface/compute/packet_mirrorings/delete.pyArgszDelete.Args#   sH    $<<DIC(((I
''(F(FG    c                      y)Nzcompute.packetMirrorings )selfs    r   
CollectionzDelete.Collection)   s    %r   c                    t        j                  | j                               }| j                  j	                  ||j
                        }t        j                  |       g }|D ]B  }t        j                  ||j                        }|j                  |j                                D |j                  j                  |      S )N)compute_client)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   PromptForDeletionr	   PacketMirroringappendMakeDeleteRequestTupleMakeRequests)r   argsholderrefsrequestsrefpacket_mirrorings          r   Runz
Delete.Run,   s    **4+<+<+>?F$$66tV=M=MND	D!H//
fmm-oo&==?@  ==%%h//r   )	__name__
__module____qualname____doc__r   classmethodr   r   r1   r   r   r   r   r      s)    8H H
&0r   r   z0Delete a Compute Engine Packet Mirroring policy.z|    Delete the Packet Mirroring policy pm-1 in region us-central1.

      $ {command} pm-1
        --region us-central1
    )DESCRIPTIONEXAMPLESN)r5   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   4googlecloudsdk.command_lib.compute.packet_mirroringsr	   r
   DeleteCommandr   detailed_helpr   r   r   <module>r?      sI    7 &  ' 7 0 ( G F0T 08 F	 r   