
    
                        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	KJr  \	R"                  " \	R$                  R&                  5       " S
 S\	R(                  5      5       r\	R"                  " \	R$                  R,                  5       " S S\5      5       r\	R"                  " \	R$                  R0                  5       " S S\5      5       rg)Delete a Cloud NetApp Volume.    )absolute_import)division)unicode_literals)client)base)flags)log)
console_ioc                   d    \ rS rSrSr\R                  R                  rSSS.r	\
S 5       rS rSrg	)
Delete   r   z1          Delete a Cloud NetApp Volume
          a&            The following command deletes a Volume named NAME in the given location

              $ {command} NAME --location=us-central1

          To delete a Volume named NAME asynchronously, run the following command:

              $ {command} NAME --location=us-central1 --async
          )DESCRIPTIONEXAMPLESc                 0    [         R                  " U 5        g )N)volumes_flagsAddVolumeDeleteArgs)parsers    $lib/surface/netapp/volumes/delete.pyArgsDelete.Args2   s    %%f-    c                 :   UR                   R                  R                  5       nUR                  (       d9  SR	                  UR                  5       5      n[        R                  " US9(       d  g[        R                  " U R                  S9nUR                  X!R                  UR                  5      nUR                  (       aW  SR	                  U R                  5       R                  5      n[         R"                  R%                  SR	                  U5      5        U$ )zDeletes a Cloud NetApp Volume.z4You are about to delete a Volume [{}].
Are you sure?)messageN)release_trackzgcloud {} netapp volumes listz@Check the status of the deletion by listing all volumes:
  $ {} )CONCEPTSvolumeParsequietformatRelativeNamer   PromptContinuevolumes_clientVolumesClient_RELEASE_TRACKDeleteVolumeasync_forceReleaseTrackprefixr
   statusPrint)selfargs
volume_refdelete_warningr   resultcommands          r   Run
Delete.Run6   s    %%++-J::((.z/F/F/H(I &&~>))8K8KLF  [[$**EF{{/66




$
$&g	jj&/# Mr    N)__name__
__module____qualname____firstlineno____doc__r   r)   GAr%   detailed_helpstaticmethodr   r3   __static_attributes__r5   r   r   r   r      s@    %$$''.	- . .r   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)
DeleteBetaI   r   r5   N)
r6   r7   r8   r9   r:   r   r)   BETAr%   r>   r5   r   r   r@   r@   I   s    %$$)).r   r@   c                   D    \ rS rSrSr\R                  R                  rSr	g)DeleteAlphaP   r   r5   N)
r6   r7   r8   r9   r:   r   r)   ALPHAr%   r>   r5   r   r   rD   rD   P   s    %$$**.r   rD   N)r:   
__future__r   r   r   %googlecloudsdk.api_lib.netapp.volumesr   r#   googlecloudsdk.callioper   )googlecloudsdk.command_lib.netapp.volumesr	   r   googlecloudsdk.corer
   googlecloudsdk.core.consoler   ReleaseTracksr)   r;   DeleteCommandr   rB   r@   rF   rD   r5   r   r   <module>rO      s    $ &  ' J ( L # 2 D%%(()(T ( *(V D%%**+* * ,* D%%++,+* + -+r   