
                         X   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  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)z'Lists Cloud NetApp Volumes KMS Configs.    )absolute_import)division)unicode_literals)client)base)flags)concept_parsers)
propertiesc                   d    \ rS rSrSrSSS.r\R                  R                  r	\
S 5       rS rSrg	)
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                    [         R                  " [        R                  " S5      /5      R	                  U 5        U R
                  R                  [        R                  5        U R
                  R                  [        R                  5        g )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Args	List.Args2   sl    !!<<<	
 k&
!!00 !!"2"J"JK    c                    [         R                  R                  R                  R	                  5         UR
                  R                  R                  5       R                  5       nUR                  (       a  UR                  OSnUR                  S5      nX4S'   SR                  U5      n[        R                  " U R                  S9n[        UR                  X!R                   S95      $ )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   RunList.Run@   s     "",,.==))//1>>@L $t}}3H &&s+M "88M*L//))+F%%l**%EFFr    N)__name__
__module____qualname____firstlineno____doc__detailed_helpr   ReleaseTrackGAr0   staticmethodr   r7   __static_attributes__r9   r   r   r   r      sC    .	- $$''.L LGr   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)ListBetaO   r   r9   N)
r:   r;   r<   r=   r>   r   r@   BETAr0   rC   r9   r   r   rE   rE   O   s    .$$)).r   rE   N)r>   
__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@   rA   ListCommandr   rG   rE   r9   r   r   <module>rQ      s    . &  ' Q ( 3 S D * D%%(().G4 .G *.Gb D%%**+*t * ,*r   