
    עi,	                        U d Z ddlZddlmZ ddlmZ dZde Zd	Zd
Z ej                  d ej                  e      dd       ej                  d ej                  e      d       ej                  d ej                  e      dd      gZeej                     ed<    ej                  e e       de      Zej$                  j&                  d        Zy)zTests for batches.cancel().    N   )types   )pytest_helper6339625664542408704z@projects/964831358985/locations/us-central1/batchPredictionJobs/z,batches/0yew7plxupyybd7appsrq5vw7w0lp3l79labinvalid_nametest_cancel_batch_jobnamezInvalid batch job namez2Cannot cancel a batch job multiple times in Vertex)r   
parametersexception_if_mldevskip_in_api_modetest_cancel_batch_operation)r   r   exception_if_vertex'test_cancel_batch_job_with_invalid_name)r   r   r   r   
test_tablezbatches.cancel)fileglobals_for_filetest_methodr   c                    K   | j                   rt        }nt        }| j                  j                  j                  |       d {    y 7 w)Nr
   )vertexai_BATCH_JOB_NAME_MLDEV_BATCH_OPERATION_NAMEaiobatchescancel)clientr   s     g/sites/domain-asset-master/.venv/lib/python3.12/site-packages/google/genai/tests/batches/test_cancel.pytest_async_cancelr   G   s8     __D&D

!!t!,,,s   AAAA)__doc__pytest r   r   r   _BATCH_JOB_FULL_RESOURCE_NAMEr   _INVALID_BATCH_JOB_NAMETestTableItem_CancelBatchJobParametersr   list__annotations__setup__file__globals
pytestmarkmarkasyncior        r   <module>r1      s$  " "    (*+- 
 M ( 
  M$2522 
 4N  M*2522,
 5  M62522(
 44!1
D,,- 4 !]  	Y 	
 - -r0   