
                         8   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"                  \R                   R$                  \R                   R&                  5       " S	 S
\R(                  5      5       rg)zList locations.    )absolute_import)division)unicode_literals)
list_pager)base)flags)
propertiesc                   .    \ rS rSrSr\S 5       rS rSrg)List   zOList the project's locations.

Lists all locations available for this project.
c                     U R                   R                  S5        U R                   R                  [        R                  " [
        R                  5      5        g )Nz?table(locationId, metadata.hsmAvailable, metadata.ekmAvailable))display_info	AddFormat
AddUriFunccloudkms_baseMakeGetUriFuncr   LOCATION_COLLECTION)parsers    !lib/surface/kms/locations/list.pyArgs	List.Args$   sC    
!!IK
""$$U%>%>?A    c                 4   [         R                  " 5       n[         R                  " 5       n[        R                  R
                  R                  R                  SS9nUR                  SU-   S9n[        R                  " UR                  USUR                  SS9$ )NT)requiredz	projects/)name	locationspageSize)fieldlimitbatch_size_attribute)r   GetClientInstanceGetMessagesModuler	   VALUEScoreprojectGet$CloudkmsProjectsLocationsListRequestr   YieldFromListprojects_locationsr   )selfargsclientmessagesr%   requests         r   RunList.Run+   s    ,,.F..0H$$,,00$0?G;;7" < $G ##!!jj') )r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r/   __static_attributes__r1   r   r   r   r      s"    
 A A)r   r   N)r6   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.cloudkmsr   r   googlecloudsdk.calliopegooglecloudsdk.command_lib.kmsr   googlecloudsdk.corer	   ReleaseTracksReleaseTrackALPHABETAGAListCommandr   r1   r   r   <module>rE      sy     &  ' ' A ( 0 * D%%++T->->-C-C%%((*)4 )*)r   