
    ^                         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 private-clouds delete' command.    )absolute_import)division)unicode_literals)PrivateCloudsClient)base)flags)logz
          Marks a VMware Engine private cloud for deletion. The resource is deleted 3 hours after being marked for deletion. This process can be reversed by using `{parent_command} undelete`.
        a]  
          To mark a private cloud called `my-private-cloud` for deletion, run:

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

          Or:

            $ {command} 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.   z2Delete a Google Cloud VMware Engine private cloud.c           	          [         R                  " U SS9  [        R                  R	                  U 5        [        R                  R                  U S5        U R                  SSS/ SQ[        SS9  g	)
z Register flags for this command.T)
positionalz--delay-hoursF   )	r         r                  z
        Number of hours to wait before deleting the private cloud. Specifying a value of `0` for this field begins the deletion process immediately.
        )requireddefaultchoicestypehelpN)r   AddPrivatecloudArgToParserr   
ASYNC_FLAGAddToParser
SetDefaultadd_argumentint)parsers    +lib/surface/vmware/private_clouds/delete.pyArgsDelete.Args4   sa     
$$V=OO'OOvt,
+      c                 x   UR                   R                  R                  5       n[        5       nUR                  nUR                  X!R                  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private cloudT)kindis_asyncz,waiting for private cloud [{}] to be deletedF)operation_refmessage
has_result)CONCEPTSprivate_cloudParser   async_r   delay_hoursr	   DeletedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsprivatecloudclientr+   	operations         r%   Run
Delete.RunD   s    ==..446L "F{{Hl,<,<=I	)..N"",,Y7>EE%%')	 #  r(    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr&   r?   __static_attributes__rA   r(   r%   r   r   .   s!    :- r(   r   N)rF   
__future__r   r   r   +googlecloudsdk.api_lib.vmware.privatecloudsr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   rG   ReleaseTracksReleaseTrackGADeleteCommandr   rA   r(   r%   <module>rT      sh    . &  ' K ( 3 #	
	( D%%(()"T " *"r(   