
    
                        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  e	j"                  e	j$                  j&                         G d
 de	j(                               Z e	j"                  e	j$                  j,                         G d de             Z e	j"                  e	j$                  j0                         G d de             Zy)Delete a Cloud NetApp Volume.    )absolute_import)division)unicode_literals)client)base)flags)log)
console_ioc                   \    e Zd ZdZej
                  j                  ZdddZe	d        Z
d Zy)Deleter   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                 .    t        j                  |        y )N)volumes_flagsAddVolumeDeleteArgs)parsers    $lib/surface/netapp/volumes/delete.pyArgszDelete.Args2   s    %%f-    c                 &   |j                   j                  j                         }|j                  s6dj	                  |j                               }t        j                  |      syt        j                  | j                        }|j                  ||j                  |j                        }|j                  rWdj	                  | j                         j                        }t         j"                  j%                  dj	                  |             |S )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   Runz
Delete.Run6   s    %%++-J::((.z/F/F/H(I &&~>))8K8KLF  T[[$**EF{{/66




$
$&g	jj&/# Mr   N)__name__
__module____qualname____doc__r   r'   GAr#   detailed_helpstaticmethodr   r1    r   r   r   r      s@    %$$''.	- . .r   r   c                   <    e Zd ZdZej
                  j                  Zy)
DeleteBetar   N)r2   r3   r4   r5   r   r'   BETAr#   r9   r   r   r;   r;   I   s    %$$)).r   r;   c                   <    e Zd ZdZej
                  j                  Zy)DeleteAlphar   N)r2   r3   r4   r5   r   r'   ALPHAr#   r9   r   r   r>   r>   P   s    %$$**.r   r>   N)r5   
__future__r   r   r   %googlecloudsdk.api_lib.netapp.volumesr   r!   googlecloudsdk.callioper   )googlecloudsdk.command_lib.netapp.volumesr	   r   googlecloudsdk.corer
   googlecloudsdk.core.consoler   ReleaseTracksr'   r6   DeleteCommandr   r<   r;   r?   r>   r9   r   r   <module>rH      s    $ &  ' J ( L # 2 D%%(()(T ( *(V D%%**+* * ,* D%%++,+* + -+r   