
    Z                        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  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&                  R2                  5       " S S\5      5       rg)&Delete a Cloud NetApp Volume Snapshot.    )absolute_import)division)unicode_literals)client)base)
exceptions)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   z;          Delete a Cloud NetApp Volume Snapshot.
          aR            The following command deletes a Snapshot named NAME in the given location and volume:

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

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

              $ {command} NAME --location=us-central1 --volume=vol1 --async
          )DESCRIPTIONEXAMPLESc                 0    [         R                  " U 5        g )N)snapshots_flagsAddSnapshotDeleteArgs)parsers    .lib/surface/netapp/volumes/snapshots/delete.pyArgsDelete.Args3   s    ))&1    c                    UR                   R                  R                  5       nUR                   R                  R                  5       c  [        R
                  " SS5      eUR                  (       d9  SR                  UR                  5       5      n[        R                  " US9(       d  g[        R                  " U R                  5      nUR                  X!R                  5      nUR                  (       aW  SR                  U R!                  5       R"                  5      n[$        R&                  R)                  SR                  U5      5        U$ )z=Delete a Cloud NetApp Volume Snapshot in the current project.Nz--volumez'Requires a volume to delete snapshot ofz4You are about to delete a Snapshot {}.
Are you sure?)messagez'gcloud {} netapp volumes snapshots listzBCheck the status of the deletion by listing all snapshots:
  $ {} )CONCEPTSsnapshotParsevolumer	   RequiredArgumentExceptionquietformatRelativeNamer   PromptContinuesnapshots_clientSnapshotsClient_RELEASE_TRACKDeleteSnapshotasync_ReleaseTrackprefixr   statusPrint)selfargssnapshot_refdelete_warningr   resultcommands          r   Run
Delete.Run7   s    ==))//1L}}!!#+00
?A A ::((.|/H/H/J(K &&~>--d.A.ABF""<=F{{9@@




$
$&g	jj&/# Mr    N)__name__
__module____qualname____firstlineno____doc__r   r*   GAr'   detailed_helpstaticmethodr   r4   __static_attributes__r6   r   r   r   r      s@    .$$''.	- 2 2r   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)
DeleteBetaP   r   r6   N)
r7   r8   r9   r:   r;   r   r*   BETAr'   r?   r6   r   r   rA   rA   P   s    .$$)).r   rA   c                   D    \ rS rSrSr\R                  R                  rSr	g)DeleteAlphaW   r   r6   N)
r7   r8   r9   r:   r;   r   r*   ALPHAr'   r?   r6   r   r   rE   rE   W   s    .$$**.r   rE   N)r;   
__future__r   r   r   /googlecloudsdk.api_lib.netapp.volumes.snapshotsr   r%   googlecloudsdk.callioper   r	   3googlecloudsdk.command_lib.netapp.volumes.snapshotsr
   r   googlecloudsdk.corer   googlecloudsdk.core.consoler   ReleaseTracksr*   r<   DeleteCommandr   rC   rA   rG   rE   r6   r   r   <module>rP      s    - &  ' V ( . X # 2 D%%(().T . *.b D%%**+* * ,* D%%++,+* + -+r   