
    F                         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 networks delete' command.    )absolute_import)division)unicode_literals)NetworksClient)base)flags)logz3
          Delete a VMware Engine network.
        aB  
          To delete a network called `my-network` of type `STANDARD` in project `my-project` and region `global`, run:

            $ {command} my-network --location=global --project=my-project

          Or:

            $ {command} my-network

          In the second example, the project is taken from gcloud properties core/project and the location is taken as `global`.

          To delete a network called `my-network` of type `LEAGACY` in project `my-project` and region `us-west2`, run:

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

          Or:

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

          In the last example, the project is taken from gcloud properties core/project. For VMware Engine networks of type `LEGACY`, you must always specify a region as the location.
    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Delete8   z,Delete a Google Cloud VMware Engine network.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   AddNetworkToParserr   
ASYNC_FLAGAddToParser
SetDefault)parsers    %lib/surface/vmware/networks/delete.pyArgsDelete.Args>   s:     
V5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 networkT)kindis_asyncz4waiting for VMware Engine network [{}] to be deletedF)operation_refmessage
has_result)CONCEPTSvmware_engine_networkParser   async_r   r	   DeletedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsnetworkclientr   	operations         r   Run
Delete.RunE   s    mm11779GF{{Hg&I	
..6G"",,Y7FMM  "$	 #  r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r/   __static_attributes__r1   r   r   r   r   8   s!    4-- -r   r   N)r6   
__future__r   r   r   &googlecloudsdk.api_lib.vmware.networksr   googlecloudsdk.callioper   *googlecloudsdk.command_lib.vmware.networksr   googlecloudsdk.corer	   r7   ReleaseTracksReleaseTrackGADeleteCommandr   r1   r   r   <module>rD      sh    ( &  ' A ( < #		< D%%(()T  *r   