
                             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  \R"                  \R$                  " \R&                  R(                  5       " S
 S\R*                  5      5       5       rSS0\l        g)z&Command for deleting network policies.    )absolute_import)division)unicode_literals)ClassVar)base_classes)client)base)flagsc                   T    \ rS rSr% Sr\\R                     \S'   \	S 5       r
S rSrg)Delete   zDelete a Compute Engine network policy.

*{command}* is used to delete network policies. A network
policy is a set of rules that classifies network traffic.
NETWORK_POLICY_ARGc                     [         R                  " SSS9U l        U R                  R                  USS9  UR                  R                  [         R                  5        g )NTdelete)required	operation)operation_type)r
   NetworkPolicyArgumentr   AddArgumentdisplay_infoAddCacheUpdaterNetworkPoliciesCompleter)clsparsers     .lib/surface/compute/network_policies/delete.pyArgsDelete.Args)   sO    "88C &&vh&G
''(F(FG    c                     [         R                  " U R                  5       5      nU R                  R	                  XR
                  5      n[        R                  " X2R                  S9nUR                  SS9$ )N)compute_clientF)only_generate_request)	r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   NetworkPolicyr   )selfargsholderrefnetwork_policys        r   Run
Delete.Run1   s_    **4+<+<+>?F

!
!
3
3D:J:J
KC))#mmLN  u ==r    N)__name__
__module____qualname____firstlineno____doc__r   compute_flagsResourceArgument__annotations__classmethodr   r,   __static_attributes__r.   r   r   r   r      s3     }==>>H H>r   r   EXAMPLESz    To delete a network policy with name ``my-policy'',
    in region ``my-region'', run:

      $ {command} my-policy --region=my-region
    N)r3   
__future__r   r   r   typingr   googlecloudsdk.api_lib.computer   /googlecloudsdk.api_lib.compute.network_policiesr   googlecloudsdk.callioper	   "googlecloudsdk.command_lib.computer
   r4   3googlecloudsdk.command_lib.compute.network_policiesUniverseCompatibleReleaseTracksr#   ALPHADeleteCommandr   detailed_helpr.   r   r   <module>rF      s    - &  '  7 B ( E E D%%++,>T > - >6   r   