
                         l    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 r " S	 S
\5      rg)z%Utilities for Eventarc Locations API.    )
list_pager)common)util)apis)
properties)	resourcesc                 r    [         R                  R                  U R                  SS9nUR	                  5       $ )Nzeventarc.projects.locations)
collection)r   REGISTRYParseRelativeNamenameSelfLink)resourcelocations     0lib/googlecloudsdk/api_lib/eventarc/locations.pyGetLocationsURIr      s6    11mm = 2 ?(				    c                   $    \ rS rSrSrS rS rSrg)LocationsClient    z%Client for locations in Eventarc API.c                     [         R                  " U5      n[        R                  " [         R                  U5      nUR
                  U l        UR                  U l        g )N)	r   GetApiVersionr   GetClientInstanceAPI_NAMEMESSAGES_MODULEmessagesprojects_locations_service)selfrelease_trackapi_versionclients       r   __init__LocationsClient.__init__#   sB    &&}5K##FOO[AF**DM--DMr   c           	         [         R                  " [        R                  R                  R
                  R                  SS95      nU R                  R                  US9n[        R                  " U R                  USUUSS9$ )zList locations in the Eventarc API.

Args:
  limit: int or None, the total number of results to return.
  page_size: int, the number of entries in each batch (affects requests
    made, but not the yielded results).

Returns:
  Generator of locations.
T)required)r   	locationspageSize)field
batch_sizelimitbatch_size_attribute)r   ProjectPathr   VALUEScoreprojectGetr   $EventarcProjectsLocationsListRequestr   YieldFromListr   )r   r+   	page_sizeproject_resource_relnamelist_reqs        r   ListLocationsClient.List)   s~      $//&&**D*9 ;}}AA% B 'H##') )r   )r   r   N)__name__
__module____qualname____firstlineno____doc__r#   r7   __static_attributes__ r   r   r   r       s    -.)r   r   N)r=   apitools.base.pyr   googlecloudsdk.api_lib.eventarcr   %googlecloudsdk.api_lib.runtime_configr   googlecloudsdk.api_lib.utilr   googlecloudsdk.corer   r   r   objectr   r?   r   r   <module>rF      s/    , ( 2 6 , * ))f )r   