
                             S r SSKJr  SSKJr  SSKJr  \R                  \R                  " \R                  R                  \R                  R                  5       " S S\R                  5      5       5       rg)z-Command for deleting ZoneVmExtensionPolicies.    )base_classes)base)flagsc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g)	Delete   z1Delete a Compute Engine zone VM extension policy.zY
     To delete a zone VM extension policy, run:

       $ {command} test-policy-name
   )briefEXAMPLESc                 |    [         R                  " 5       [        l        [        R                  R	                  U SS9  g )Ndelete)operation_type)r   MakeZoneVmExtensionPolicyArgr   ZoneVmExtensionPoliciesArgAddArgument)parsers    8lib/surface/compute/zone_vm_extension_policies/delete.pyArgsDelete.Args%   s1    (-(J(J(LF%
%%11x 2     c           
         [         R                  " U R                  5       5      nUR                  nUR                  R                  n[
        R                  R                  UUR                  5      nUR                  UR                  R                  SUR                  UR                  UR                  UR                  5       S94/5      $ )zRun the Delete command.

Args:
  args: argparse.Namespace, The arguments to this command.

Returns:
  Response calling the ZoneVmExtensionPoliciesService.Delete API.
r   )projectzonevmExtensionPolicy)r   ComputeApiHolderReleaseTrackclientmessagesr   r   ResolveAsResource	resourcesMakeRequestsapitools_clientzoneVmExtensionPolicies+ComputeZoneVmExtensionPoliciesDeleteRequestr   r   Name)selfargsholderr   r   resource_refs         r   Run
Delete.Run,   s     **4+<+<+>?F]]F}}%%H44FFL
 66<< ((""*//1 	= 	
!    r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r)   __static_attributes__r+   r   r   r   r      s2     : C-  r   r   N)r0   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   =googlecloudsdk.command_lib.compute.zone_vm_extension_policiesr   UniverseCompatibleReleaseTracksr   ALPHABETADeleteCommandr   r+   r   r   <module>r<      sh     4 7 ( O D%%++T->->-C-CD-T - E -r   