
    	                         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
S.r\R                  " \R                  R                   5       " S S\R"                  5      5       rg)z)'vmware network-policies delete' command.    )absolute_import)division)unicode_literals)NetworkPoliciesClient)base)flags)logz:
          Delete a VMware Engine network policy.
        a  
          To delete a network policy called `my-network-policy` in project `my-project` and region `us-west2`, run:

            $ {command} my-network-policy --location=us-west2 --project=my-project

          Or:

            $ {command} my-network-policy

          In the second example, the project and the location are taken from gcloud properties core/project and compute/region respectively.
    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Delete.   z&Delete a VMware Engine network policy.c                     [         R                  " U SS9  [        R                  R	                  U 5        [        R                  R                  U S5        g)z Register flags for this command.T)
positionalN)r   AddNetworkPolicyToParserr   
ASYNC_FLAGAddToParser
SetDefault)parsers    -lib/surface/vmware/network_policies/delete.pyArgsDelete.Args3   s:     
""6d;OO'OOvt,    c                 d   UR                   R                  R                  5       n[        5       nUR                  nUR                  U5      nU(       a"  [        R                  " UR                  SSS9  U$ UR                  UR                  U5      SR                  UR                  5       5      SS9$ )NzVMware Engine network policyT)kindis_asyncz-waiting for network policy [{}] to be deletedF)operation_refmessage
has_result)CONCEPTSnetwork_policyParser   async_r   r	   DeletedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsr!   clientr   	operations         r   Run
Delete.Run:   s    ]]11779N"$F{{Hn-I	
..=N"",,Y7?FF'')+	 #  r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r.   __static_attributes__r0   r   r   r   r   .   s!    .-- -r   r   N)r5   
__future__r   r   r   -googlecloudsdk.api_lib.vmware.networkpoliciesr   googlecloudsdk.callioper   2googlecloudsdk.command_lib.vmware.network_policiesr   googlecloudsdk.corer	   r6   ReleaseTracksReleaseTrackGADeleteCommandr   r0   r   r   <module>rC      sh    0 &  ' O ( D #	
	( D%%(()T  *r   