
                         X   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 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)z'Lists Cloud NetApp Volumes KMS Configs.    )absolute_import)division)unicode_literals)client)base)flags)concept_parsers)
propertiesc                   \    e Zd ZdZdddZej                  j                  Ze	d        Z
d Zy)List&List Cloud NetApp Volumes KMS Configs.z          Lists KMS (Key Management System) Configs to encrypt Cloud NetApp Volumes, Storage Pools etc. using Customer Managed Encryption Keys (CMEK).
          z          The following command lists all KMS Config instance in the default netapp/location

              $ {command}

          To list all KMS Configs in a specified location, run:

              $ {command} --location=us-central1
          )DESCRIPTIONEXAMPLESc                    t        j                  t        j                  d      g      j	                  |        | j
                  j                  t        j                         | j
                  j                  t        j                         y )Nz*The location in which to list KMS Configs.)	r	   ConceptParserr   *GetResourceListingLocationPresentationSpecAddToParserdisplay_info	AddFormatkmsconfigs_flagsKMS_CONFIGS_LIST_FORMAT)parsers    &lib/surface/netapp/kms_configs/list.pyArgsz	List.Args2   sl    !!<<<	
 k&
!!00 !!"2"J"JK    c                    t         j                  j                  j                  j	                          |j
                  j                  j                         j                         }|j                  r|j                  nd}|j                  d      }||d<   dj                  |      }t        j                  | j                        }t        |j                  ||j                               S )zRun the list command.-/)release_track)limit)r
   VALUEScoreproject	GetOrFailCONCEPTSlocationParseRelativeNamesplitjoinkmsconfigs_clientKmsConfigsClient_RELEASE_TRACKlistListKmsConfigsr!   )selfargslocation_refr'   location_listr   s         r   RunzList.Run@   s     "",,.==))//1>>@L $t}}3H &&s+M M"88M*L//))+F%%l$**%EFFr   N)__name__
__module____qualname____doc__detailed_helpr   ReleaseTrackGAr.   staticmethodr   r5    r   r   r   r      sC    .	- $$''.L LGr   r   c                   <    e Zd ZdZej
                  j                  Zy)ListBetar   N)r6   r7   r8   r9   r   r;   BETAr.   r>   r   r   r@   r@   O   s    .$$)).r   r@   N)r9   
__future__r   r   r   )googlecloudsdk.api_lib.netapp.kms_configsr   r,   googlecloudsdk.callioper   !googlecloudsdk.command_lib.netappr   -googlecloudsdk.command_lib.netapp.kms_configsr   (googlecloudsdk.command_lib.util.conceptsr	   googlecloudsdk.corer
   ReleaseTracksr;   r<   ListCommandr   rA   r@   r>   r   r   <module>rK      s    . &  ' Q ( 3 S D * D%%(().G4 .G *.Gb D%%**+*t * ,*r   