
    
                     2   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	lmZ dd
lmZ dddZ e
j"                  e
j$                  j&                  e
j$                  j(                         G d de
j*                               Zee_        y)z-Bare Metal Solution NFS share delete command.    )absolute_import)division)unicode_literals)	BmsClient)waiter)base)flags)log)	resourcesz;
          Delete a Bare Metal Solution NFS share.
        z
          To delete an NFS share called ``my-share'' in region
          ``us-central1'', run:

          $ {command} my-share  --region=us-central1
        )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)Deletez'Delete a Bare Metal Solution NFS share.c                 p    t        j                  | d       t        j                  j	                  |        y)z Register flags for this command.T)
positionalN)r	   AddNfsShareArgToParserr   
ASYNC_FLAGAddToParser)parsers    $lib/surface/bms/nfs_shares/delete.pyArgszDelete.Args/   s&     
  D9OO'    c                    |j                   j                  j                         }t               }|j	                  |      }|j
                  r't        j                  |j                         d       |S |j                  rIt        j                  j                  dj                  |j                         |j                               |S t        j                  j!                  |j                  dd      }t#        j$                  |j&                        }t#        j(                  ||dj                  |j                              }t        j                  |j                         d       |S )	N)nfs_share_resourcez	NFS share)kindz@Delete request issued for: [{}]
Check operation [{}] for status.z/baremetalsolution.projects.locations.operationsv2)
collectionapi_versionz&Waiting for operation [{}] to complete)CONCEPTS	nfs_shareParser   DeleteNfsSharedoner
   DeletedResourceNameasync_statusPrintformatnamer   REGISTRYParseRelativeNamer   CloudOperationPollerNoResourcesoperation_serviceWaitFor)selfargsr    clientop_refop_resourcepollerress           r   Runz
Delete.Run5   s   ''--/I[F""i"@F{{	)..*=m{{	jj **0&1A17+>? m$$66D 7 K 33F4L4LMF
..077DFC 	({;Jr   N)__name__
__module____qualname____doc__staticmethodr   r7    r   r   r   r   +   s    /( (
r   r   N)r;   
__future__r   r   r   %googlecloudsdk.api_lib.bms.bms_clientr   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   googlecloudsdk.command_lib.bmsr	   googlecloudsdk.corer
   r   DETAILED_HELPReleaseTracksReleaseTrackALPHAGADeleteCommandr   detailed_helpr=   r   r   <module>rK      s    4 &  ' ; . ( 0 # )		 D%%++T->->-A-AB T   C F % r   