ó
    €Ï÷  ã            
       ó$  • 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                  R                  4S	 jrS
\S\S\S\	R                  S\	R                  4
S jrS
\S\S\	R"                  4S jrS
\S\S\S\	R                  4S jrg)zEUseful commands for interacting with the Cloud Firestore Indexes API.é    )Úabsolute_import)Údivision)Úunicode_literals)Ú	api_utils)Úfirestore_v1_client)Úfirestore_v1_messagesÚreturnc                  ó@   • [         R                  " 5       R                  $ )zUReturns the Firestore Index service for interacting with the Firestore Admin service.)r   Ú	GetClientÚ+projects_databases_collectionGroups_indexes© ó    Ú/lib/googlecloudsdk/api_lib/firestore/indexes.pyÚ_GetIndexServicer      s   € ô 
×	Ò	Ó	×	JÑ	JÐJr   ÚprojectÚdatabaseÚcollection_idÚindexc           	      óš   • [         R                  " 5       n[        5       R                  UR	                  SR                  XU5      US95      $ )aB  Performs a Firestore Admin v1 Index Creation.

Args:
  project: the project of the database of the index, a string.
  database: the database id of the index, a string.
  collection_id: the current group of the index, a string.
  index: the index to create, a GoogleFirestoreAdminV1Index message.

Returns:
  an Operation.
z,projects/{}/databases/{}/collectionGroups/{})ÚparentÚgoogleFirestoreAdminV1Index)r   ÚGetMessagesr   ÚCreateÚ>FirestoreProjectsDatabasesCollectionGroupsIndexesCreateRequestÚformat)r   r   r   r   Úmessagess        r   ÚCreateIndexr   !   sT   € ô" ×"Ò"Ó$€(Ü	Ó	×	"Ñ	"Ø×MÑMØ?×FÑFØ óð ',ð	 Nð ó
ð r   c                 ó–   • [         R                  " 5       n[        5       R                  UR	                  SR                  X5      S95      $ )zÃPerforms a Firestore Admin v1 Index list.

Args:
  project: the project of the database of the index, a string.
  database: the database id of the index, a string.

Returns:
  a list of Indexes.
z+projects/{}/databases/{}/collectionGroups/-)r   )r   r   r   ÚListÚ<FirestoreProjectsDatabasesCollectionGroupsIndexesListRequestr   )r   r   r   s      r   ÚListIndexesr!   =   sM   € ô ×"Ò"Ó$€(Ü	Ó	×	 Ñ	 Ø×KÑKØ>×EÑEØóð Lð ó
ð r   Úindex_idc           	      óš   • [         R                  " 5       n[        5       R                  UR	                  SR                  U UU5      S95      $ )zòPerforms a Firestore Admin v1 Index Deletion.

Args:
  project: the project of the database of the index, a string.
  database: the database id of the index, a string.
  index_id: the index id of the index, a string

Returns:
  an Operation.
z6projects/{}/databases/{}/collectionGroups/-/indexes/{})Úname)r   r   r   ÚDeleteÚ>FirestoreProjectsDatabasesCollectionGroupsIndexesDeleteRequestr   )r   r   r"   r   s       r   ÚDeleteIndexr'   S   sS   € ô ×"Ò"Ó$€(Ü	Ó	×	"Ñ	"Ø×MÑMàF×MÑMØØØóð Nð ó

ð 
r   N)Ú__doc__Ú
__future__r   r   r   Ú googlecloudsdk.api_lib.firestorer   Ú2googlecloudsdk.generated_clients.apis.firestore.v1r   r   ÚFirestoreV1Ú/ProjectsDatabasesCollectionGroupsIndexesServicer   ÚstrÚGoogleFirestoreAdminV1IndexÚGoogleLongrunningOperationr   Ú)GoogleFirestoreAdminV1ListIndexesResponser!   r'   r   r   r   Ú<module>r2      sÅ   ðñ Lå &Ý Ý 'å 6Ý RÝ TðKØ×#Ñ#×SÑSôKðØðàðð ðð !×<Ñ<ð	ð
 ×5Ñ5ôð8ØðØðà×DÑDôð,ØðØðØ+.ðà×5Ñ5õr   