
    \                        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 Storage Pool.    )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   z*          Delete a Storage Pool
          a'            The following command deletes a Storage Pool named NAME in the given location

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

          To delete a Storage Pool asynchronously, run the following command:

              $ {command} NAME --location=us-central1 --async
          )DESCRIPTIONEXAMPLESc                 .    t        j                  |        y )N)storagepools_flagsAddStoragePoolDeleteArgs)parsers    *lib/surface/netapp/storage_pools/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 Storage Pool {}.
Are you sure?)messageN)release_trackz#gcloud {} netapp storage-pools listzFCheck the status of the deletion by listing all storage pools:
  $ {} )CONCEPTSstorage_poolParsequietformatRelativeNamer   PromptContinuestoragepools_clientStoragePoolsClient_RELEASE_TRACKDeleteStoragePoolasync_ReleaseTrackprefixr
   statusPrint)selfargsstoragepool_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__r   r&   GAr#   detailed_helpstaticmethodr   r0    r   r   r   r      s@    +$$''.	- 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    +$$)).r   r:   c                   <    e Zd ZdZej
                  j                  Zy)DeleteAlphar   N)r1   r2   r3   r4   r   r&   ALPHAr#   r8   r   r   r=   r=   R   s    +$$**.r   r=   N)r4   
__future__r   r   r   +googlecloudsdk.api_lib.netapp.storage_poolsr   r!   googlecloudsdk.callioper   /googlecloudsdk.command_lib.netapp.storage_poolsr	   r   googlecloudsdk.corer
   googlecloudsdk.core.consoler   ReleaseTracksr&   r5   DeleteCommandr   r;   r:   r>   r=   r8   r   r   <module>rG      s    * &  ' U ( W # 2 D%%(()+T + *+\ D%%**+* * ,* D%%++,+* + -+r   