
    9	                         S 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                  R                  5       " S	 S
\R                  5      5       5       rg)z#'vmware datastores delete' command.    )DatastoresClient)base)flags)logz'
          Delete a datastore.
        aV  
          To delete a datastore named `my-datastore` in location `us-west2-a`, run:

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

          Or:

          $ {command} my-datastore

          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 datastore.c                     [         R                  " U SS9  [        R                  R	                  U 5        [        R                  R                  U S5        U R                  SSS9  g)z Register flags for this command.T)
positionalz--etagz'        Etag of the datastore.
        )helpN)r   AddDatastoreArgToParserr   
ASYNC_FLAGAddToParser
SetDefaultadd_argument)parsers    'lib/surface/vmware/datastores/delete.pyArgsDelete.Args0   sU     
!!&T:OO'OOvt,
      c                 t   UR                   R                  R                  5       n[        5       nUR                  nUR                  X!R                  S9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)etag	datastoreT)kindis_asyncz(waiting for datastore [{}] to be deletedF)operation_refmessage
has_result)CONCEPTSr   Parser   async_r
   r   r   DeletedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsr   clientr   	operations         r   Run
Delete.Run=   s    ''--/IF{{Hiii8I	)..{TJ"",,Y7:AA""$
  #  r    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r.   __static_attributes__r0   r   r   r
   r
   )   s#     -
 
r   r
   N)r5   (googlecloudsdk.api_lib.vmware.datastoresr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer   r6   DefaultUniverseOnlyReleaseTracksReleaseTrackGADeleteCommandr
   r0   r   r   <module>rC      sp    * F ( 3 #
	$ D%%(()!T ! * !r   