
    
                     L   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g))Delete a Cloud NetApp Volumes KMS Config.    )absolute_import)division)unicode_literals)client)base)flags)log)
console_ioc                   d    \ rS rSrSrSSS.r\R                  R                  r	\
S 5       rS rSrg	)
Delete   r   z@          Delete a KMS (Key Management System) Config
          a+            The following command deletes a KMS Config instance named KMS_CONFIG in the default netapp/location.

              $ {command} KMS_CONFIG

          To delete a KMS Config named KMS_CONFIG asynchronously, run the following command:

              $ {command} KMS_CONFIG --async
          )DESCRIPTIONEXAMPLESc                 0    [         R                  " U 5        g )N)kmsconfigs_flagsAddKMSConfigDeleteArgs)parsers    (lib/surface/netapp/kms_configs/delete.pyArgsDelete.Args1   s    ++F3    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   z6You are about to delete a KMS Config {}.
Are you sure?)messageN)release_trackz!gcloud {} netapp kms-configs listzDCheck the status of the deletion by listing all KMS configs:
  $ {} )CONCEPTS
kms_configParsequietformatRelativeNamer   PromptContinuekmsconfigs_clientKmsConfigsClient_RELEASE_TRACKDeleteKmsConfigasync_ReleaseTrackprefixr
   statusPrint)selfargskmsconfig_refdelete_warningr   resultcommands          r   Run
Delete.Run5   s     MM,,224M::((.}/I/I/K(L &&~>//))+F##M;;?F{{3::




$
$&g	jj&/# Mr    N)__name__
__module____qualname____firstlineno____doc__detailed_helpr   r(   GAr%   staticmethodr   r2   __static_attributes__r4   r   r   r   r      s@    1	- $$''.4 4r   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)
DeleteBetaK   r   r4   N)
r5   r6   r7   r8   r9   r   r(   BETAr%   r=   r4   r   r   r?   r?   K   s    1$$)).r   r?   N)r9   
__future__r   r   r   )googlecloudsdk.api_lib.netapp.kms_configsr   r#   googlecloudsdk.callioper   -googlecloudsdk.command_lib.netapp.kms_configsr	   r   googlecloudsdk.corer
   googlecloudsdk.core.consoler   ReleaseTracksr(   r;   DeleteCommandr   rA   r?   r4   r   r   <module>rJ      s    0 &  ' Q ( S # 2 D%%(()+T + *+\ D%%**+* * ,*r   