ó
    €Ïˆ	  ã                   ó,   • S r SSKJr  S r SS jrS rg)zIUseful commands for interacting with the Cloud Firestore Bulk Delete API.é    )Ú	api_utilsc                  ó@   • [         R                  " 5       R                  $ )zEReturns the service for interacting with the Datastore Admin service.)r   Ú	GetClientÚprojects_databases© ó    Ú3lib/googlecloudsdk/api_lib/firestore/bulk_delete.pyÚ_GetDatabaseServicer
      s   € ä	×	Ò	Ó	×	1Ñ	1Ð1r   Nc                 ó¤   • [         R                  " 5       nUR                  n0 nU(       a  X%S'   U(       a  XS'   U" S0 UD6nUR                  U US9$ )a  Returns a request for a Firestore Admin Bulk Delete.

Args:
  database: the database id to bulk delete, a string.
  namespace_ids: a string list of namespace ids to delete.
  collection_ids: a string list of collection ids to delete.

Returns:
  a BulkDeleteDocumentsRequest message.
ÚcollectionIdsÚnamespaceIds)ÚnameÚ0googleFirestoreAdminV1BulkDeleteDocumentsRequestr   )r   ÚGetMessagesÚ0GoogleFirestoreAdminV1BulkDeleteDocumentsRequestÚ4FirestoreProjectsDatabasesBulkDeleteDocumentsRequest)ÚdatabaseÚnamespace_idsÚcollection_idsÚmessagesÚrequest_classÚkwargsÚbulk_delete_requests          r	   ÚGetBulkDeleteDocumentsRequestr      se   € ô ×"Ò"Ó$€(Ø×KÑK€-à€&ÞØ,ˆ?ÑæØ*ˆ>Ñá%Ñ/¨Ñ/Ðà	×	FÑ	FØØ7Jð 
Gð 
ð r   c                 óh   • SR                  X5      n[        5       R                  [        UUUS95      $ )a  Performs a Firestore Admin v1 Bulk Delete.

Args:
  project: the project id, a string.
  database: the databae id, a string.
  namespace_ids: a string list of namespace ids to bulk delete.
  collection_ids: a string list of collections to bulk delete.

Returns:
  an Operation.
zprojects/{}/databases/{})r   r   r   )Úformatr
   ÚBulkDeleteDocumentsr   )Úprojectr   r   r   Údbnames        r	   Ú
BulkDeleter    9   s;   € ð &×,Ñ,¨WÓ?€&Ü	Ó	×	2Ñ	2Ü#ØØ%Ø'ñó
ð r   )NN)Ú__doc__Ú googlecloudsdk.api_lib.firestorer   r
   r   r    r   r   r	   Ú<module>r#      s$   ðñ Põ 7ò2ð 26ôó>r   