
    %                     N    d 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      Zy)	z#API Library for `gcloud scheduler`.    )absolute_import)division)unicode_literals)
list_pagerc                   $    e Zd ZdZd Zd ZddZy)	Locationsz8Client for locations service in the Cloud Scheduler API.c                      || _         || _        y )N)messageslocations_service)selfr
   r   s      1lib/googlecloudsdk/api_lib/scheduler/locations.py__init__zLocations.__init__   s    DM.D    c                     | j                   j                  |j                               }| j                  j	                  |      S )Nname)r
   )CloudschedulerProjectsLocationsGetRequestRelativeNamer   Get)r   location_refrequests      r   r   zLocations.Get   s?    mmEE&&( F *G!!%%g..r   Nc                     | j                   j                  |j                               }t        j                  | j
                  |||dd      S )Nr   	locationspageSize)
batch_sizelimitfieldbatch_size_attribute)r
   *CloudschedulerProjectsLocationsListRequestr   r   YieldFromListr   )r   project_refr   	page_sizer   s        r   ListzLocations.List$   sO    mmFF%%' G )G##IU
< <r   )Nd   )__name__
__module____qualname____doc__r   r   r#    r   r   r   r      s    @//
<r   r   N)	r(   
__future__r   r   r   apitools.base.pyr   objectr   r)   r   r   <module>r-      s"    * &  ' '< <r   