
    I	                         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SK
Jr  SS	KJr  SS
KJr  SSKJr   " S S\	R"                  5      rg)z/The gcloud firestore operations cancel command.    )absolute_import)division)unicode_literals)	api_utils)
operations)base)flags)
properties)	resources)
console_ioc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Cancel   z;Cancel a currently-running Cloud Firestore admin operation.EXAMPLESz          To cancel the currently-running `exampleOperationId` operation, run:

            $ {command} exampleOperationId
      c                 \    U R                  S[        SSS9  [        R                  " U 5        g)z Register flags for this command.nameNz
        The unique name of the Operation to cancel, formatted as either the full
        or relative resource path:

          projects/my-app-id/databases/(default)/operations/foo

        or:

          foo
        )typedefaulthelp)add_argumentstrr	   AddDatabaseIdFlag)parsers    *lib/surface/firestore/operations/cancel.pyArgsCancel.Args*   s5     		   
F#    c                 t   [         R                  R                  UR                  [        R
                  R                  R                  R                  UR                  S.[        R                  SS9R                  5       n[        R                  " SR                  U5      SS9  [         R"                  " U5      $ )N)
projectsIddatabasesIdz'firestore.projects.databases.operations)paramsapi_version
collectionz%The operation [{}] will be cancelled.T)messagecancel_on_no)r   REGISTRYParser   r
   VALUEScoreproject	GetOrFaildatabaser   FIRESTORE_API_VERSIONRelativeNamer   PromptContinueformatr   CancelOperation)selfargsr   s      r   Run
Cancel.Run=   s    ##		$++0088BB==
 33< $ > ?Kln 	 7>>tD %%d++r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r4   __static_attributes__r6   r   r   r   r      s/    C 
- $ $$,r   r   N)r;   
__future__r   r   r    googlecloudsdk.api_lib.firestorer   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.firestorer	   googlecloudsdk.corer
   r   googlecloudsdk.core.consoler   Commandr   r6   r   r   <module>rF      s8    6 &  ' 6 7 ( 6 * ) 2,,T\\ ,,r   