
    	                         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 clusters delete' command.    )absolute_import)division)unicode_literals)ClustersClient)base)flags)logzF
          Delete a cluster in a VMware Engine private cloud.
        a  
          To delete a cluster called `my-cluster` in private cloud `my-private-cloud` and zone `us-west2-a`, run:

            $ {command} my-cluster --location=us-west2-a --project=my-project --private-cloud=my-private-cloud

            Or:

            $ {command} my-cluster --private-cloud=my-private-cloud

          In the second example, the project and location are taken from gcloud properties core/project and compute/zone.
    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Delete.   z,Delete a Google Cloud VMware Engine cluster.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   AddClusterArgToParserr   
ASYNC_FLAGAddToParser
SetDefault)parsers    4lib/surface/vmware/private_clouds/clusters/delete.pyArgsDelete.Args4   s:     
48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$ )NclusterT)kindis_asyncz&waiting for cluster [{}] to be deletedF)operation_refmessage
has_result)CONCEPTSr   Parser   async_r   r	   DeletedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsr   clientr   	operations         r   Run
Delete.Run;   s    mm##))+GF{{Hg&I	)..y4H"",,Y78??  "$	 #  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   &googlecloudsdk.api_lib.vmware.clustersr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   r6   ReleaseTracksReleaseTrackGADeleteCommandr   r0   r   r   <module>rC      sh    ( &  ' A ( 3 #	
	( D%%(()T  *r   