
    w	                     >   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  \R                  \R                  " \R                  R                  \R                  R                   \R                  R"                  5       " S S	\R$                  5      5       5       rg
)z)The gcloud firestore bulk delete command.    )bulk_delete)
operations)base)flags)
properties)
console_ioc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	
BulkDelete   z&bulk delete Cloud Firestore documents.EXAMPLESaS            To bulk delete a specific set of collections groups asynchronously, run:

            $ {command} --collection-ids='specific collection group1','specific collection group2' --async

          To bulk delete all collection groups from certain namespace, run:

            $ {command} --namespace-ids='specific namespace id'
      c                     [         R                  " U 5        [         R                  " U 5        [         R                  " U 5        [        R
                  R                  U 5        g)z Register flags for this command.N)r   AddCollectionGroupIdsFlagAddNamespaceIdsFlagAddDatabaseIdFlagr   
ASYNC_FLAGAddToParser)parsers    $lib/surface/firestore/bulk_delete.pyArgsBulkDelete.Args+   s@     
##F+	f%	F#OO'    c                    [         R                  R                  R                  R	                  SS9nSR                  UR                  UR                  5      n[        R                  " USSS9  [        R                  " UUR                  UR                  UR                  S9nUR                  (       d  [        R                  " U5        U$ )NT)requiredzNYou are about to bulk delete data from namespace ids:{} and collection ids: {})messagethrow_if_unattendedcancel_on_no)namespace_idscollection_ids)r   VALUEScoreprojectGetformatr   r   r   PromptContinuer   r
   databaseasync_r   WaitForOperation)selfargsr!   r   responses        r   RunBulkDelete.Run3   s    $$,,00$0?G	$fT%7%79L9LM  T %%((**	H ;;!!(+Or    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r+   __static_attributes__r-   r   r   r
   r
      s/    
 /  
 - ( (r   r
   N)r2    googlecloudsdk.api_lib.firestorer   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.firestorer   googlecloudsdk.corer   googlecloudsdk.core.consoler   DefaultUniverseOnlyReleaseTracksReleaseTrackALPHABETAGACommandr
   r-   r   r   <module>rB      s    0 9 7 ( 6 * 2 T..33T5F5F5I5I) ) )r   