
    
                     2   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 ej                   ej                  ej                   j"                  ej                   j$                        ej&                   G d d	ej(                                             Zy
)!Delete a Cloud NetApp Host Group.    )client)base)flags)concept_parsers)log)
console_ioc                   0    e Zd ZdZdddZed        Zd Zy)Deleter   z6          Delete a Cloud NetApp Host Group.
          a            The following command deletes a Host Group named NAME:

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

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

              $ {command} NAME --location=us-central1 --async
          )DESCRIPTIONEXAMPLESc                     t        j                  t        j                  d      g      j	                  |        t        j
                  |        y)z#Add args for deleting a Host Group.zThe Host Group to delete.N)r   ConceptParserr   GetHostGroupPresentationSpecAddToParserAddResourceAsyncFlag)parsers    (lib/surface/netapp/host_groups/delete.pyArgszDelete.Args.   s>     !!**+FG# {6	v&    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 )z8Delete a Cloud NetApp Host Group in the current project.z6You are about to delete a Host Group {}.
Are you sure?)messageNz!gcloud {} netapp host-groups listzDCheck the status of the deletion by listing all host groups:
  $ {} )CONCEPTS
host_groupParsequietformatRelativeNamer	   PromptContinuehost_groups_clientHostGroupsClientReleaseTrackDeleteHostGroupasync_prefixr   statusPrint)selfargshost_group_refdelete_warningr   resultcommands          r   Runz
Delete.Run6   s    ]]--335N::
C
J
J))+ 
 &&~>001B1B1DEF##NDKK@F{{3::




$
$g 
jj&/ Mr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r.    r   r   r   r      s1     *	- ' 'r   r   N)r2   )googlecloudsdk.api_lib.netapp.host_groupsr   r    googlecloudsdk.callioper   !googlecloudsdk.command_lib.netappr   (googlecloudsdk.command_lib.util.conceptsr   googlecloudsdk.corer   googlecloudsdk.core.consoler	   DefaultUniverseOnlyReleaseTracksr"   ALPHABETAHiddenDeleteCommandr   r5   r   r   <module>rB      s    ( R ( 3 D # 2 D%%++T->->-C-CD1T 1  E 1r   