
    G                         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 ekmconnections 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 ekmconnections within a location.

  Lists all ekmconnections within the given location.

  ## EXAMPLES

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

    $ {command} --location=global --limit=5
  c                 h    t        j                  | dd       | j                  j                  d       y )NTz
--locationz
       table(
         name,
         service_resolvers[0].serviceDirectoryService,
         service_resolvers[0].hostname)
    )r   AddKmsLocationResourceArgForKMSdisplay_info	AddFormat)parsers    'lib/surface/kms/ekm_connections/list.pyArgsz	List.Args(   s/    11&$M !! # 	    c                 6   t        j                         }t        j                         }|j                  j                  j                         }|j                  |j                               }t        j                  |j                  |d|j                  d      S )N)parentekmConnectionspageSize)fieldlimitbatch_size_attribute)cloudkms_baseGetClientInstanceGetMessagesModuleCONCEPTSlocationParse2CloudkmsProjectsLocationsEkmConnectionsListRequestRelativeNamer   YieldFromList!projects_locations_ekmConnectionsr   )selfargsclientmessageslocation_refrequests         r   RunzList.Run4   s    ,,.F..0H==))//1LII((* J ,G ##00jj') )r   N)__name__
__module____qualname____doc__staticmethodr   r*    r   r   r
   r
      s     
 		 		)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   