
    
                     L   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y))Delete a Cloud NetApp Volumes KMS Config.    )absolute_import)division)unicode_literals)client)base)flags)log)
console_ioc                   \    e Zd ZdZdddZej                  j                  Ze	d        Z
d Zy)Deleter   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                 .    t        j                  |        y )N)kmsconfigs_flagsAddKMSConfigDeleteArgs)parsers    (lib/surface/netapp/kms_configs/delete.pyArgszDelete.Args1   s    ++F3    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   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   Runz
Delete.Run5   s     MM,,224M::((.}/I/I/K(L &&~>//))+F##M4;;?F{{3::




$
$&g	jj&/# Mr   N)__name__
__module____qualname____doc__detailed_helpr   r&   GAr#   staticmethodr   r0    r   r   r   r      s@    1	- $$''.4 4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    1$$)).r   r:   N)r4   
__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&   r6   DeleteCommandr   r;   r:   r8   r   r   <module>rD      s    0 &  ' Q ( S # 2 D%%(()+T + *+\ D%%**+* * ,*r   