
    
                     L   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y)+Delete a Cloud NetApp Volumes Backup Vault.    )absolute_import)division)unicode_literals)client)base)flags)log)
console_ioc                   \    e Zd ZdZdddZej                  j                  Ze	d        Z
d Zy)Deleter   z+          Delete a Backup Vault.
          a7            The following command deletes a Backup Vault instance named BACKUP_VAULT in the default netapp/location:

              $ {command} BACKUP_VAULT

          To delete a Backup Vault named BACKUP_VAULT asynchronously, run the following command:

              $ {command} BACKUP_VAULT --async
          )DESCRIPTIONEXAMPLESc                 .    t        j                  |        y )N)backupvaults_flagsAddBackupVaultDeleteArgs)parsers    *lib/surface/netapp/backup_vaults/delete.pyArgszDelete.Args1   s    //7    c                    |j                   j                  j                         }|j                  s6dj	                  |j                               }t        j                  |      syt        j                  | j                        }|j                  ||j                        }|j                  rWdj	                  | j                         j                        }t        j                   j#                  dj	                  |             |S )r   z8You are about to delete a Backup Vault {}.
Are you sure?)messageN)release_trackz#gcloud {} netapp backup-vaults listzFCheck the status of the deletion by listing all Backup Vaults:
  $ {} )CONCEPTSbackup_vaultParsequietformatRelativeNamer   PromptContinuebackupvaults_clientBackupVaultsClient_RELEASE_TRACKDeleteBackupVaultasync_ReleaseTrackprefixr
   statusPrint)selfargsbackupvault_refdelete_warningr   resultcommands          r   Runz
Delete.Run5   s     mm00668O::((./K/K/M(N &&~> 33))+F%%ot{{CF{{5<<




$
$&g	jj&/# Mr   N)__name__
__module____qualname____doc__detailed_helpr   r&   GAr#   staticmethodr   r0    r   r   r   r      s@    3	- $$''.8 8r   r   c                   <    e Zd ZdZej
                  j                  Zy)
DeleteBetar   N)r1   r2   r3   r4   r   r&   BETAr#   r8   r   r   r:   r:   K   s    3$$)).r   r:   N)r4   
__future__r   r   r   +googlecloudsdk.api_lib.netapp.backup_vaultsr   r!   googlecloudsdk.callioper   /googlecloudsdk.command_lib.netapp.backup_vaultsr	   r   googlecloudsdk.corer
   googlecloudsdk.core.consoler   ReleaseTracksr&   r6   DeleteCommandr   r;   r:   r8   r   r   <module>rD      s    2 &  ' U ( W # 2 D%%(()+T + *+\ D%%**+* * ,*r   