
    עi              
          U d dl Z ddlmZ ddlmZ ddlmZ  ej
                  dd	d
 ej                  ej                               ej
                  ddd ej                  ej                               ej
                  ddd ej                  d            gZ	e
ej
                     ed<    ej                  e e       de	      Ze j                   j"                  d        Zd Zy)    N   )types   )pytest_helper   )	constantsz(Get is not reproducible in the API mode.&test_caches_get_with_vertex_cache_namePERMISSION_DENIEDname)skip_in_api_moder   exception_if_mldev
parameters%test_caches_get_with_mldev_cache_name	NOT_FOUND)r   r   exception_if_vertexr   /test_caches_get_with_mldev_cache_name_partial_17cachedContents/o239k1gxzz0juy9wqstndhncr85krehehf551hqh
test_tablez
caches.get)fileglobals_for_filetest_methodr   c                 :  K   | j                   j                  rA| j                  j                  j	                  t
        j                         d {   }|sJ y | j                  j                  j	                  t
        j                         d {    y 7 F7 w)Nr   )_api_clientvertexaiaiocachesgetr   CACHED_CONTENT_NAME_VERTEXCACHED_CONTENT_NAME_MLDEV)clientresponses     c/sites/domain-asset-master/.venv/lib/python3.12/site-packages/google/genai/tests/caches/test_get.pytest_async_getr$   9   s~       ZZ&&**11 +  H O8
**



Y%H%H

III
 Js%   ABBA BBBBc                    | j                   j                  r| j                  j                  d      }|sJ | j                  j                  d      }|sJ | j                  j                  d      }|sJ | j                  j                  d      }|sJ y | j                  j                  d      }|sJ | j                  j                  d      }|sJ y )NzNprojects/964831358985/locations/us-central1/cachedContents/2164089915711684608r   z8locations/us-central1/cachedContents/2164089915711684608z"cachedContents/21640899157116846082164089915711684608r   (o239k1gxzz0juy9wqstndhncr85krehehf551hqh)r   r   r   r   )r!   	response1	response2	response3	response4s        r#   !test_different_cache_name_formatsr,   D   s      !!] " I 9!!G " I 9!!1 " I 9!!" " I 9!!F " I 9!!7 " I 9    )pytest r   r   r   TestTableItem_GetCachedContentParametersr   r    r   list__annotations__setup__file__globals
pytestmarkmarkasyncior$   r,    r-   r#   <module>r;      s	  "      MC5.454455
	  MC4'454444
	  MC>'4544J
	#1
D,,- 4 !]  	Y	
 J Jr-   