
                         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 Policy.    )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 Policy
          a<            The following command deletes a Backup Policy instance named BACKUP_POLICY in the default netapp/location

              $ {command} BACKUP_POLICY

          To delete a Backup Policy named BACKUP_POLICY asynchronously, run the following command:

              $ {command} BACKUP_POLICY --async
          )DESCRIPTIONEXAMPLESc                 .    t        j                  |        y )N)backuppolicies_flagsAddBackupPolicyDeleteArgs)parsers    ,lib/surface/netapp/backup_policies/delete.pyArgszDelete.Args1   s    226:    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   z9You are about to delete a Backup Policy {}.
Are you sure?)messageN)release_trackz%gcloud {} netapp backup-policies listzHCheck the status of the deletion by listing all Backup Policies:
  $ {} )CONCEPTSbackup_policyParsequietformatRelativeNamer   PromptContinuebackuppolicies_clientBackupPoliciesClient_RELEASE_TRACKDeleteBackupPolicyasync_ReleaseTrackprefixr
   statusPrint)selfargsbackuppolicy_refdelete_warningr   resultcommands          r   Runz
Delete.Run5   s     }}2288:::((./?/L/L/N(O &&~>"77))+F&&'7EF{{7>>




$
$&g	jj&/# Mr   N)__name__
__module____qualname____doc__detailed_helpr   r&   GAr#   staticmethodr   r0    r   r   r   r      s@    4	- $$''.; ;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    4$$)).r   r:   N)r4   
__future__r   r   r   -googlecloudsdk.api_lib.netapp.backup_policiesr   r!   googlecloudsdk.callioper   1googlecloudsdk.command_lib.netapp.backup_policiesr	   r   googlecloudsdk.corer
   googlecloudsdk.core.consoler   ReleaseTracksr&   r6   DeleteCommandr   r;   r:   r8   r   r   <module>rD      s    3 &  ' Y ( [ # 2 D%%(()+T + *+\ D%%**+* * ,*r   