
                             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\	R                  5      rSSS.\l        g)z0Command for deleting packet mirroring resources.    )absolute_import)division)unicode_literals)base_classes)utils)base)client)flagsc                   8    \ rS rSrSrSr\S 5       rS rS r	Sr
g)Delete   z0Delete a Compute Engine packet mirroring policy.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
   PacketMirroringArgumentPACKET_MIRRORING_ARGAddArgumentdisplay_infoAddCacheUpdaterPacketMirroringCompleter)clsparsers     /lib/surface/compute/packet_mirrorings/delete.pyArgsDelete.Args#   sH    $<<DIC(((I
''(F(FG    c                     g)Nzcompute.packetMirrorings )selfs    r   
CollectionDelete.Collection)   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                  5       5        MB     UR                  R                  U5      $ )N)compute_client)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   PromptForDeletionr	   PacketMirroringappendMakeDeleteRequestTupleMakeRequests)r    argsholderrefsrequestsrefpacket_mirrorings          r   Run
Delete.Run,   s    **4+<+<+>?F$$66t=M=MND	D!H//
mm-oo&==?@  ==%%h//r   r   )__name__
__module____qualname____firstlineno____doc__r   classmethodr   r!   r4   __static_attributes__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)r:   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   4googlecloudsdk.command_lib.compute.packet_mirroringsr	   r
   DeleteCommandr   detailed_helpr   r   r   <module>rE      sI    7 &  ' 7 0 ( G F0T 08 F	 r   