
    
                         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 external-access-rules delete' command.    )absolute_import)division)unicode_literals)ExternalAccessRulesClient)base)flags)logzI
          Delete a VMware Engine external access firewall rule.
        a0  
          To delete an external access firewall rule called `my-external-access-rule` in project `my-project` and region `us-west2` associated with network policy `my-network-policy`, run:

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

          Or:

            $ {command} my-external-access-rule --network-policy=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 external access rule.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   AddExternalAccessRuleToParserr   
ASYNC_FLAGAddToParser
SetDefault)parsers    Clib/surface/vmware/network_policies/external_access_rules/delete.pyArgsDelete.Args3   s:     
''4@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 external access ruleT)kindis_asyncz3waiting for external access rule [{}] to be deletedF)operation_refmessage
has_result)CONCEPTSexternal_access_ruleParser   async_r   r	   DeletedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsr!   clientr   	operations         r   Run
Delete.Run:   s    ====CCE&(F{{H23I	
..3 "",,Y7ELL --/1	 #  r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r.   __static_attributes__r0   r   r   r   r   .   s!    4-- -r   r   N)r5   
__future__r   r   r   1googlecloudsdk.api_lib.vmware.externalaccessrulesr   googlecloudsdk.callioper   2googlecloudsdk.command_lib.vmware.network_policiesr   googlecloudsdk.corer	   r6   ReleaseTracksReleaseTrackGADeleteCommandr   r0   r   r   <module>rC      sh    5 &  ' W ( D #	
	( D%%(()T  *r   