
                         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 tasks locations`.    )absolute_import)division)unicode_literals)
list_pagerc                   $    e Zd ZdZd Zd ZddZy)	Locationsz4Client for locations service in the Cloud Tasks API.c                      || _         || _        y )N)messageslocations_service)selfr
   r   s      -lib/googlecloudsdk/api_lib/tasks/locations.py__init__zLocations.__init__   s    DM.D    c                     | j                   j                  |j                               }| j                  j	                  |      S )Nname)r
   %CloudtasksProjectsLocationsGetRequestRelativeNamer   Get)r   location_refrequests      r   r   zLocations.Get   s?    mmAA&&( B *G!!%%g..r   Nc                     | j                   j                  |j                               }t        j                  | j
                  |||dd      S )Nr   	locationspageSize)
batch_sizelimitfieldbatch_size_attribute)r
   &CloudtasksProjectsLocationsListRequestr   r   YieldFromListr   )r   project_refr   	page_sizer   s        r   ListzLocations.List$   sO    mmBB%%' C )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"    0 &  ' '< <r   