
    9	                     4   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                  j                         G d d	e	j                                Z e	j                  e	j                  j$                         G d
 de             Zy)z8Encrypt volumes under a Cloud NetApp Volumes KMS Config.    )absolute_import)division)unicode_literals)client)base)flagsc                   \    e Zd ZdZdddZej                  j                  Ze	d        Z
d Zy)EncryptsEncrypt all existing volumes and storage pools in the same region with the desired Cloud NetApp Volumes KMS Config.z          Encrypt the existing volumes with the desired KMS (Key Management System) Config using Customer Managed Encryption Keys (CMEK).
          z          The following command encrypts the existing volumes with the desired KMS Config instance named KMS_CONFIG using specified project and location.

              $ {command} KMS_CONFIG --location=us-central1
          )DESCRIPTIONEXAMPLESc                 .    t        j                  |        y )N)kmsconfigs_flagsAddKMSConfigEncryptArgs)parsers    )lib/surface/netapp/kms_configs/encrypt.pyArgszEncrypt.Args+   s    ,,V4    c                     |j                   j                  j                         }t        j                  | j
                        }|j                  ||j                        S )znEncrypt all existing volumes and storage pools under a Cloud NetApp Volumes KMS Config in the current project.)CONCEPTS
kms_configParsekmsconfigs_clientKmsConfigsClient_RELEASE_TRACKEncryptKmsConfigasync_)selfargskmsconfig_refr   s       r   RunzEncrypt.Run/   sG    MM,,224M//0C0CDF""=$++>>r   N)__name__
__module____qualname____doc__detailed_helpr   ReleaseTrackGAr   staticmethodr   r!    r   r   r
   r
      s@    {		- $$''.5 5?r   r
   c                   <    e Zd ZdZej
                  j                  Zy)EncryptBetar   N)r"   r#   r$   r%   r   r'   BETAr   r*   r   r   r,   r,   6   s    {$$)).r   r,   N)r%   
__future__r   r   r   )googlecloudsdk.api_lib.netapp.kms_configsr   r   googlecloudsdk.callioper   -googlecloudsdk.command_lib.netapp.kms_configsr   r   ReleaseTracksr'   r(   Commandr
   r-   r,   r*   r   r   <module>r4      s    ? &  ' Q ( S D%%(()?dll ? *?6 D%%**+*' * ,*r   