
    ~
                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ d	d
dZ ej                  ej                  j                          G d dej"                               Zy)z,'vmware private-connections delete' command.    )absolute_import)division)unicode_literals)PrivateConnectionsClient)base)flags)logz
          Delete a Private Connection. When a private connection is deleted for a VMware Engine network, the connected network becomes inaccessible to that VMware Engine network.
        a  
          To delete a Private Connection resource called `my-private-connection` in project `my-project` and region `us-west1`, run:

            $ {command} my-private-connection --location=us-west1 --project=my-project

          Or:

            $ {command} my-private-connection

          In the second example, the project and the location is taken from gcloud properties core/project and compute/region, respectively.
    )DESCRIPTIONEXAMPLESc                   *    e Zd ZdZeZed        Zd Zy)Describez)Delete a Google Cloud Private Connection.c                     t        j                  | d       t        j                  j	                  |        t        j                  j                  | d       y)z Register flags for this command.T)
positionalN)r   AddPrivateConnectionToParserr   
ASYNC_FLAGAddToParser
SetDefault)parsers    0lib/surface/vmware/private_connections/delete.pyArgszDescribe.Args4   s:     
&&v$?OO'OOvt,    c                 d   |j                   j                  j                         }t               }|j                  }|j                  |      }|r$t        j                  |j                  dd       |S |j                  |j                  |      dj                  |j                               d      S )NzPrivate ConnectionT)kindis_asyncz1waiting for private connection [{}] to be deletedF)operation_refmessage
has_result)CONCEPTSprivate_connectionParser   async_Deleter	   DeletedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsr   clientr   	operations         r   RunzDescribe.Run;   s    99??A%'F{{H01I	
..3dD"",,Y7CJJ++-/	 #  r   N)	__name__
__module____qualname____doc__DETAILED_HELPdetailed_helpstaticmethodr   r-    r   r   r   r   .   s!    1-- -r   r   N)r1   
__future__r   r   r   0googlecloudsdk.api_lib.vmware.privateconnectionsr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   r2   ReleaseTracksReleaseTrackGADescribeCommandr   r5   r   r   <module>r?      sj    3 &  ' U ( 3 #	
	( D%%(()t##  *r   