
                            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  SSKJr  SS	KJr  \	R"                  " \	R$                  R&                  5       " S
 S\	R(                  5      5       r\	R"                  " \	R$                  R,                  5       " S S\5      5       r\	R"                  " \	R$                  R0                  5       " S S\5      5       rg)z(Deletes a Cloud NetApp Active Directory.    )absolute_import)division)unicode_literals)client)base)flags)log)
console_ioc                   d    \ rS rSrSr\R                  R                  rSSS.r	\
S 5       rS rSrg	)
Delete   'Delete a Cloud NetApp Active Directory.zV          Deletes an AD (Active Directory) config for Cloud NetApp Volumes.
          a+            The following command deletes an AD named AD_NAME with the required arguments:

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

          To delete a AD Config asynchronously, run the following command:

              $ {command} AD_NAME --location=us-central1 --async
          )DESCRIPTIONEXAMPLESc                 0    [         R                  " U 5        g )N)activedirectories_flagsAddActiveDirectoryDeleteArgs)parsers    /lib/surface/netapp/active_directories/delete.pyArgsDelete.Args2   s    88@    c                 $   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                  S9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$ )r   z=You are about to delete an Active Directory {}.
Are you sure?)messageN)release_trackz(gcloud {} netapp active-directories listzJCheck the status of the deletion by listing all active directories:
 $ {} )CONCEPTSactive_directoryParsequietformatRelativeNamer
   PromptContinue	ad_clientActiveDirectoriesClient_RELEASE_TRACKDeleteActiveDirectoryasync_ReleaseTrackprefixr	   statusPrint)selfargsactivedirectory_refdelete_warningr   resultcommands          r   Run
Delete.Run6   s     --88>>@::((./<<>)@  &&~>..))+F))*={{KF{{:AA




$
$&g	jjVG_& Mr    N)__name__
__module____qualname____firstlineno____doc__r   r(   GAr%   detailed_helpstaticmethodr   r2   __static_attributes__r4   r   r   r   r      sB    /$$''.	- A Ar   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)
DeleteBetaM   r   r4   N)
r5   r6   r7   r8   r9   r   r(   BETAr%   r=   r4   r   r   r?   r?   M   s    /$$)).r   r?   c                   D    \ rS rSrSr\R                  R                  rSr	g)DeleteAlphaT   r   r4   N)
r5   r6   r7   r8   r9   r   r(   ALPHAr%   r=   r4   r   r   rC   rC   T   s    /$$**.r   rC   N)r9   
__future__r   r   r   0googlecloudsdk.api_lib.netapp.active_directoriesr   r#   googlecloudsdk.callioper   4googlecloudsdk.command_lib.netapp.active_directoriesr   r   googlecloudsdk.corer	   googlecloudsdk.core.consoler
   ReleaseTracksr(   r:   DeleteCommandr   rA   r?   rE   rC   r4   r   r   <module>rN      s    / &  ' P ( a # 2 D%%((),T , *,^ D%%**+* * ,* D%%++,+* + -+r   