ó
    €Ïs  ã                   ó2   • S r SSKJr  SSKJr  S rS rS rg)zGUseful commands for interacting with the Cloud Firestore Locations API.é    )Ú
list_pager)Ú	api_utilsc                  ó@   • [         R                  " 5       R                  $ )z[Returns the Firestore Location service for interacting with the Firestore Location service.)r   Ú	GetClientÚprojects_locations© ó    Ú1lib/googlecloudsdk/api_lib/firestore/locations.pyÚ_GetLocationServicer      s   € ä	×	Ò	Ó	×	1Ñ	1Ð1r	   c                 óž   • [         R                  " [        5       [        R                  " 5       R                  SR                  U 5      S9SSS9$ )z”Lists locations available to Google Cloud Firestore.

Args:
  project: the project id to list locations, a string.

Returns:
  a List of Locations.
zprojects/{}©ÚnameÚ	locationsÚpageSize)ÚfieldÚbatch_size_attribute)r   ÚYieldFromListr   r   ÚGetMessagesÚ%FirestoreProjectsLocationsListRequestÚformat)Úprojects    r
   ÚListLocationsr      sP   € ô 
×	!Ò	!ÜÓÜ×ÒÓ×CÑCØ×#Ñ# GÓ,ð Dð ð Ø%ñ
ð r	   c                 ó’   • [        5       R                  [        R                  " 5       R	                  SR                  X5      S95      $ )zíGets a location information for Google Cloud Firestore.

Args:
  project: the project id to get the location information, a string.
  location: the location id to get the location information, a string.

Returns:
  a Firestore Location.
zprojects/{}/locations/{}r   )r   ÚGetr   r   Ú$FirestoreProjectsLocationsGetRequestr   )r   Úlocations     r
   ÚGetLocationr   .   sE   € ô 
Ó	×	"Ñ	"Ü×ÒÓ×BÑBØ)×0Ñ0°ÓCð Cð ó
ð r	   N)Ú__doc__Úapitools.base.pyr   Ú googlecloudsdk.api_lib.firestorer   r   r   r   r   r	   r
   Ú<module>r!      s"   ðñ Nõ (Ý 6ò2ò
ó&r	   