
    a                         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  G d d	ej                        Zy
)z List keyrings within a location.    )absolute_import)division)unicode_literals)
list_pager)base)resource_argsc                   &    e Zd ZdZed        Zd Zy)ListzList keyrings within a location.

  Lists all keyrings within the given location.

  ## EXAMPLES

  The following command lists a maximum of five keyrings in the location
  `global`:

    $ {command} --location=global --limit=5
  c                 h    t        j                  | dd       | j                  j                  d       y )NTz
--locationztable(name))r   AddKmsLocationResourceArgForKMSdisplay_info	AddFormat)parsers     lib/surface/kms/keyrings/list.pyArgsz	List.Args(   s(    11&$M
!!-0    c                 6   t        j                         }t        j                         }|j                  j                  j                         }|j                  |j                               }t        j                  |j                  |d|j                  d      S )N)parentkeyRingspageSize)fieldlimitbatch_size_attribute)cloudkms_baseGetClientInstanceGetMessagesModuleCONCEPTSlocationParse,CloudkmsProjectsLocationsKeyRingsListRequestRelativeNamer   YieldFromListprojects_locations_keyRingsr   )selfargsclientmessageslocation_refrequests         r   RunzList.Run.   s    ,,.F..0H==))//1LCC((* D ,G ##**jj') )r   N)__name__
__module____qualname____doc__staticmethodr   r*    r   r   r
   r
      s     
 1 1
)r   r
   N)r.   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.cloudkmsr   r   googlecloudsdk.calliopegooglecloudsdk.command_lib.kmsr   ListCommandr
   r0   r   r   <module>r7      s1    ' &  ' ' A ( 8 )4  )r   