
                            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  \R                  \R                  " \R                   R"                  5       " S S	\R$                  5      5       5       r\R                  \R                  " \R                   R(                  5       " S
 S\5      5       5       r\R                  \R                  " \R                   R,                  5       " S S\5      5       5       rg)!Delete a Cloud NetApp Host Group.    )client)base)flags)concept_parsers)log)
console_ioc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Delete   r   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                     [         R                  " [        R                  " S5      /5      R	                  U 5        [        R
                  " U 5        g)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ArgsDelete.Args-   s>     !!**+FG# {6	v&    c                 0   UR                   R                  R                  5       nUR                  (       d9  SR	                  UR                  5       5      n[        R                  " US9(       d  g[        R                  " U R                  5       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$ )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   Run
Delete.Run5   s    ]]--335N::
C
J
J))+ 
 &&~>001B1B1DEF##NKK@F{{3::




$
$g 
jj&/ Mr    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r0   __static_attributes__r2   r   r   r   r      s1     *	- ' 'r   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)
DeleteBetaO   r   r2   N)
r3   r4   r5   r6   r7   r   r$   BETA_RELEASE_TRACKr:   r2   r   r   r<   r<   O   s     *$$)).r   r<   c                   D    \ rS rSrSr\R                  R                  rSr	g)DeleteAlphaW   r   r2   N)
r3   r4   r5   r6   r7   r   r$   ALPHAr?   r:   r2   r   r   rA   rA   W   s     *$$**.r   rA   N)r7   )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$   GADeleteCommandr   r>   r<   rC   rA   r2   r   r   <module>rN      s    ( R ( 3 D # 2 D%%(()1T 1 * 1h D%%**+* * , * D%%++,+* + - +r   