+
    Ti                        ^ RI t ^ RIt^ RIHtHtHt ^ RIHt ^RIH	t	 ^RIH
t
 ^RIHt ^RIHt ^RIHt ^R	I
Ht ^R
I
Ht ^RIHtHt ]P.                  ! R4      tRQR R lltRQR R lltRQR R lltRQR R lltRQR R lltRQR R lltRQR R lltRQR R llt RQR R llt!RQR R  llt"RQR! R" llt#RQR# R$ llt$RQR% R& llt%RQR' R( llt&RQR) R* llt'RQR+ R, llt(RQR- R. llt)RQR/ R0 llt*RQR1 R2 llt+RQR3 R4 llt,RQR5 R6 llt-RQR7 R8 llt.RQR9 R: llt/RQR; R< llt0RQR= R> llt1RQR? R@ llt2RQRA RB llt3RQRC RD llt4RQRE RF llt5RQRG RH llt6RQRI RJ llt7RQRK RL llt8 ! RM RN]	Pr                  4      t: ! RO RP]	Pr                  4      t;R# )R    N)AnyOptionalUnion)	urlencode)_api_module)_common)_transformers)types)BaseApiClient)get_value_by_path)set_value_by_path)
AsyncPagerPagerzgoogle_genai.cachesc                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /#    from_objectparent_objectreturnr   dictstrr   objectr   )formats   "^/home/kuhnn/.local/share/uv/tools/nano-pdf/lib/python3.14/site-packages/google/genai/caches.py__annotate__r   $   M      tCH~v-.DcN+ 
#s(^    c                     / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       V# )datadisplay_name6display_name parameter is not supported in Gemini API.	mime_typemimeTypegetvsetv
ValueErrorr   r   	to_objects   && r   _Blob_to_mldevr+   $   sw     !)	+x ,VHd;9:	+'(4
M
NN	+}%1ZL${[M"BC	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   5   M      tCH~v-.DcN+ 
#s(^r   c                     / p\        V R .4      e3   \        TR .\        V R .4       Uu. uF  p\        W24      NK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       V# u upi )partsrole)r&   r'   _Part_to_mldevr   r   r*   items   &&  r   _Content_to_mldevr4   5   s     !)	+y!-		 [7)4	
4 4+4	
 
+x ,VHd;9:		
s   A.c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   J   sM     6 6tCH~v-.6DcN+6 
#s(^6r   c                 ^   / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      eG   \        TR.\        P                  ! \        V R.4      4       Uu. uF  p\	        W24      NK  	  up4       \        V R.4      e8   \        VR.\	        \        P
                  ! \        V R.4      4      V4      4       \        V R.4      e3   \        TR.\        V R.4       Uu. uF  p\        W24      NK  	  up4       \        V R	.4      e$   \        VR
.\        \        V R	.4      V4      4       \        V R.4      e   \        R4      hV# u upi u upi )ttlexpire_time
expireTimer!   displayNamecontentssystem_instructionsystemInstructiontoolstool_config
toolConfigkms_key_namez6kms_key_name parameter is not supported in Gemini API.)	r&   r'   t
t_contentsr4   	t_content_Tool_to_mldev_ToolConfig_to_mldevr(   r2   s   &&  r   #_CreateCachedContentConfig_to_mldevrG   J   s    !)	+w+kE7!;<	+'3[=/(JK	+'(4kN;K)LM	+
|$0	 T+
|%DE	
E d.E	
 
+,-.:	KK[+?*@ABI	
 
+y!-		 [7)4	
4 4+4	
 
+'3	T+?K 
+'(4
M
NN	G	
&	
s   5F%<F*c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r      sM     1 1tCH~v-.1DcN+1 
#s(^1r   c                 @   / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e=   \        TR.\        P                  ! \        V R.4      4       Uu. uF  q3NK  	  up4       \        V R.4      e.   \        VR.\        P                  ! \        V R.4      4      4       \        V R.4      e3   \        TR.\        V R.4       Uu. uF  p\        W24      NK  	  up4       \        V R	.4      e   \        VR
.\        V R	.4      4       \        V R.4      e   \        VRR.\        V R.4      4       V# u upi u upi )r7   r8   r9   r!   r:   r;   r<   r=   r>   r?   r@   rA   encryption_spec
kmsKeyName)r&   r'   rB   rC   rD   _Tool_to_vertexr2   s   &&  r   $_CreateCachedContentConfig_to_vertexrM      s    !)	+w+kE7!;<	+'3[=/(JK	+'(4kN;K)LM	+
|$0	,,tK*'FGHG$GH 
+,-.:		D';&<=> 
+y!-		 [7)4	
4 D,4	
 
+'3[=/(JK	+'(4	L)[>*+ 
= 	I	
s   5
F(Fc          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# r   
api_clientr   r   r   r   r   r   r   r   r   r   )r   s   "r   r   r      W      tCH~v-. DcN+ 
#s(^	r   c                     / p\        VR .4      e/   \        VR .\        P                  ! V \        VR .4      4      4       \        VR.4      e   \	        \        VR.4      V4       V# modelconfig)r&   r'   rB   t_caches_modelrG   rP   r   r   r*   s   &&& r   '_CreateCachedContentParameters_to_mldevrY      sp    
 !)	+y!-			T+y%AB 
+z".'[8*%y 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rO   rQ   )r   s   "r   r   r      rR   r   c                     / p\        VR .4      e/   \        VR .\        P                  ! V \        VR .4      4      4       \        VR.4      e   \	        \        VR.4      V4       V# rT   )r&   r'   rB   rW   rM   rX   s   &&& r   (_CreateCachedContentParameters_to_vertexr\      sp    
 !)	+y!-			T+y%AB 
+z".([8*%y 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rO   rQ   )r   s   "r   r   r      W      tCH~v-. DcN+ 
#s(^	r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# name_urlr&   r'   rB   t_cached_content_namerX   s   &&& r   '_DeleteCachedContentParameters_to_mldevre      L    
 !)	+x ,		
Dvh,GH 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rO   rQ   )r   s   "r   r   r      r^   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# r`   rc   rX   s   &&& r   (_DeleteCachedContentParameters_to_vertexri      rf   r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     M     
 
tCH~v-.
DcN+
 
#s(^
r   c                 Z    / p\        V R .4      e   \        VR.\        V R .4      4       V# sdkHttpResponsesdk_http_responser&   r'   r)   s   && r   '_DeleteCachedContentResponse_from_mldevrq     @     !)	+)*+7'(${=N<O*P 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     rk   r   c                 Z    / p\        V R .4      e   \        VR.\        V R .4      4       V# rm   rp   r)   s   && r   (_DeleteCachedContentResponse_from_vertexru     rr   r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r   r   c                     / p\        V R .4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )r!   r"   file_urifileUrir#   r$   r&   r(   r'   r)   s   && r   _FileData_to_mldevr{     sw     !)	+'(4
M
NN	+
|$0YKkJ<!@A	+}%1ZL${[M"BC	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   ,  M      tCH~v-.DcN+ 
#s(^r   c                 b   / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        R4      h\        V R.4      e   \        R4      hV# )idargsra   partial_argsz6partial_args parameter is not supported in Gemini API.will_continuez7will_continue parameter is not supported in Gemini API.r%   r)   s   && r   _FunctionCall_to_mldevr   ,  s     !)	+v*TFDtf56	+x ,VHd;9:	+x ,VHd;9:	+'(4
M
NN	+()5
N
OO	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   C  sM      tCH~v-.DcN+ 
#s(^r   c                     / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        R4      hV# )allowed_function_namesallowedFunctionNamesmodestream_function_call_argumentszHstream_function_call_arguments parameter is not supported in Gemini API.r%   r)   s   && r   _FunctionCallingConfig_to_mldevr   C  s     !)	+012>	 [345 
+x ,VHd;9:	+89:F
	 
 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   [  sM     " "tCH~v-."DcN+" 
#s(^"r   c                    / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        R	4      hV# )
descriptionra   
parametersparameters_json_schemaparametersJsonSchemaresponseresponse_json_schemaresponseJsonSchemabehaviorz1behavior parameter is not supported in Vertex AI.r%   r)   s   && r   _FunctionDeclaration_to_vertexr   [  s&    !)	+'3]OT+%GH	+x ,VHd;9:	+~&2\ND|n$EF	+012>	 [345 
+
|$0ZL${ZL"AB	+./0<	[123 
+
|$0
H
II	r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rO   rQ   )r   s   "r   r   r     r^   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# r`   rc   rX   s   &&& r   $_GetCachedContentParameters_to_mldevr     rf   r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rO   rQ   )r   s   "r   r   r     r^   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       V# r`   rc   rX   s   &&& r   %_GetCachedContentParameters_to_vertexr     rf   r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     sM      tCH~v-.DcN+ 
#s(^r   c                     / p\        V R .4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       V# )auth_configz5auth_config parameter is not supported in Gemini API.enable_widgetenableWidgetrz   r)   s   && r   _GoogleMaps_to_mldevr     sS     !)	+'3
L
MM	+()5^$d;8I&JK	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r}   r   c                     / p\        V R .4      e   \        R4      h\        V R.4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       V# )exclude_domainsz9exclude_domains parameter is not supported in Gemini API.blocking_confidencez=blocking_confidence parameter is not supported in Gemini API.time_range_filtertimeRangeFilterrz   r)   s   && r   _GoogleSearch_to_mldevr     s     !)	+)*+7
C  
+-./;
G  
++,-9%&[;N:O(P 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r-   r   c                     / p\        V R .4      e   \        VRR.\        V R .4      4       \        V R.4      e   \        VRR.\        V R.4      4       V# 	page_size_querypageSize
page_token	pageTokenrp   r)   s   && r   "_ListCachedContentsConfig_to_mldevr     m     !)	+}%1*-tK+/O 
+~&2	;[<.) 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r-   r   c                     / p\        V R .4      e   \        VRR.\        V R .4      4       \        V R.4      e   \        VRR.\        V R.4      4       V# r   rp   r)   s   && r   #_ListCachedContentsConfig_to_vertexr     r   r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     sM      tCH~v-.DcN+ 
#s(^r   c                 V    / p\        V R .4      e   \        \        V R .4      V4       V# rV   )r&   r   r)   s   && r   &_ListCachedContentsParameters_to_mldevr     s1     !)	+z".&tK('DiP	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     rk   r   c                 V    / p\        V R .4      e   \        \        V R .4      V4       V# r   )r&   r   r)   s   && r   '_ListCachedContentsParameters_to_vertexr     s6     !)	+z".'[8*%y 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r}   r   c                 "   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e)   \        TR.\        V R.4       Uu. uF  q3NK  	  up4       V# u upi rn   ro   nextPageTokennext_page_tokencachedContentscached_contentsrp   r2   s   &&  r   &_ListCachedContentsResponse_from_mldevr          !)	+)*+7'(${=N<O*P 
+()5&'kO;L)MN	+()*6	{-=,>?@?$?@ 
 	A   9
Bc                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     r}   r   c                 "   / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e)   \        TR.\        V R.4       Uu. uF  q3NK  	  up4       V# u upi r   rp   r2   s   &&  r   '_ListCachedContentsResponse_from_vertexr     r   r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   5  sR     @ @tCH~v-.@DcN+@ 
#s(^@r   c           
         / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e$   \        VR.\        \        V R.4      V4      4       \        V R.4      e$   \        VR	.\        \        V R.4      V4      4       \        V R
.4      e   \        VR.\        V R
.4      4       \        V R.4      e$   \        VR.\	        \        V R.4      V4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# )media_resolutionmediaResolutioncode_execution_resultcodeExecutionResultexecutable_codeexecutableCode	file_datafileDatafunction_callfunctionCallfunction_responsefunctionResponseinline_data
inlineDatatextthoughtthought_signaturethoughtSignaturevideo_metadatavideoMetadata)r&   r'   r{   r   r+   r)   s   && r   r1   r1   5  s    !)	+*+,8%&[;M:N(O 
+/01=	[234 
+)*+7%&[;L:M(NO	+}%1	4k];YG 
+()5	tK/1BCYO 
++,-9	[./0 
+'3	tK-99E 
+x ,VHd;9:	+	{#/YKkI;!?@	++,-9	[./0 
+()*6_%tK:J9K'LM	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   x  sM      tCH~v-.DcN+ 
#s(^r   c           
          / p\        V R .4      e   \        VR.\        V R .4      4       \        V R.4      e$   \        VR.\        \        V R.4      V4      4       V# )retrieval_configretrievalConfigfunction_calling_configfunctionCallingConfig)r&   r'   r   r)   s   && r   rF   rF   x  s|     !)	+*+,8%&[;M:N(O 
+123?	 !'89:I	
 
r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     sM     5 5tCH~v-.5DcN+5 
#s(^5r   c           
      B   / p\        V R .4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        R	4      h\        V R
.4      e)   \        TR.\        V R
.4       Uu. uF  q3NK  	  up4       \        V R.4      e$   \        VR.\        \        V R.4      V4      4       \        V R.4      e$   \        VR.\	        \        V R.4      V4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# u upi )	retrievalz3retrieval parameter is not supported in Gemini API.computer_usecomputerUsefile_search
fileSearchcode_executioncodeExecutionenterprise_web_searchz?enterprise_web_search parameter is not supported in Gemini API.function_declarationsfunctionDeclarationsgoogle_maps
googleMapsgoogle_searchgoogleSearchgoogle_search_retrievalgoogleSearchRetrievalurl_context
urlContext)r&   r(   r'   r   r   r2   s   &&  r   rE   rE     s    !)	+}%1
J
KK	+'(4]OT+7G%HI	+'3\ND}o$FG	+()*6_%tK:J9K'LM	+/01=
I  
+/01=	 {-D,EFGF$FG 
+'3	T+?K 
+()5	tK/1BCYO 
+123?	 ![456 
+'3\ND}o$FG	7 	Hs   
Fc                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     sM     2 2tCH~v-.2DcN+2 
#s(^2r   c                 J   / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        R4      h\        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R	.4      e3   \        TR
.\        V R	.4       Uu. uF  p\        W24      NK  	  up4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       \        V R.4      e   \        VR.\        V R.4      4       V# u upi )r   r   r   r   z4file_search parameter is not supported in Vertex AI.r   r   r   enterpriseWebSearchr   r   r   r   r   r   r   r   r   r   )r&   r'   r(   r   r2   s   &&  r   rL   rL     s    !)	+}%1[M4k]#CD	+'(4]OT+7G%HI	+'3
K
LL	+()*6_%tK:J9K'LM	+/01=	[234 
+/01=	  [+B*CD	
D +4;D	
 
+'3\ND}o$FG	+()5^$d;8I&JK	+123?	 ![456 
+'3\ND}o$FG	-	
s   #F c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r     M      tCH~v-.DcN+ 
#s(^r   c                     / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       V# r7   r8   r9   rp   r)   s   && r   #_UpdateCachedContentConfig_to_mldevr    [     !)	+w+kE7!;<	+'3[=/(JK	r   c                    V ^8  d   QhR\         \        \        \        3,          \        3,          R\
        \        \        \        3,          ,          R\        \        \        3,          /# r   r   )r   s   "r   r   r   
  r   r   c                     / p\        V R .4      e   \        VR .\        V R .4      4       \        V R.4      e   \        VR.\        V R.4      4       V# r   rp   r)   s   && r   $_UpdateCachedContentConfig_to_vertexr  
  r  r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rO   rQ   )r   s   "r   r   r     rR   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      e   \	        \        VR.4      V4       V# ra   rb   rV   )r&   r'   rB   rd   r  rX   s   &&& r   '_UpdateCachedContentParameters_to_mldevr	    ss    
 !)	+x ,		
Dvh,GH 
+z".'[8*%y 
r   c          
          V ^8  d   QhR\         R\        \        \        \        3,          \
        3,          R\        \        \        \        3,          ,          R\        \        \        3,          /# rO   rQ   )r   s   "r   r   r   .  rR   r   c                     / p\        VR .4      e0   \        VRR .\        P                  ! V \        VR .4      4      4       \        VR.4      e   \	        \        VR.4      V4       V# r  )r&   r'   rB   rd   r  rX   s   &&& r   (_UpdateCachedContentParameters_to_vertexr  .  ss    
 !)	+x ,		
Dvh,GH 
+z".([8*%y 
r   c                      a  ] tR tRt o RR/V 3R lR lltRR/V 3R lR lltRR/V 3R lR	 lltRR/V 3R
 lR lltRR/V 3R lR lltRR/V 3R lR llt	Rt
V tR# )CachesiC  rV   Nc                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r   rU   rV   r   r   r   r
   CreateCachedContentConfigOrDictCachedContent)r   __classdict__s   "r   r   Caches.__annotate__E  A     L L L u<<=	L
 Lr   c                  \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWdV4      p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
\         P&                  P)                  WP+                  4       R	7      pV P                  P-                  V4       V# )
a  Creates a cached contents resource.

Usage:

.. code-block:: python

  contents = ... // Initialize the content to cache.
  response = client.caches.create(
      model= ... // The publisher model id
      contents=contents,
      config={
          'display_name': 'test cache',
          'system_instruction': 'What is the sum of the two pdfs?',
          'ttl': '86400s',
      },
  )
rT   rb   r   r   ?rV   Npostr   kwargs)r
   _CreateCachedContentParameters_api_clientvertexair\   get
format_maprY   r   poprV   http_optionsr   convert_to_dictencode_unserializable_typesrequestbodyjsonloadsr  _from_response
model_dump_verify_responseselfrU   rV   parameter_modelrequest_dictrequest_url_dictpathquery_paramsr"  r   response_dictreturn_values   &$$         r   createCaches.createE  s   0 ::O    =


Ol &))&1	**+;<<


Ol &))&1	**+;<##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''LH 'mmmBHMM1JM&&55'A'A'C 6 L 	%%l3r   c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r   ra   rV   r   r   r   r
   GetCachedContentConfigOrDictr  )r   r  s   "r   r   r    s<     ? ? ? u99:	?
 ?r   c                  \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWdV4      p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
\         P&                  P)                  WP+                  4       R	7      pV P                  P-                  V4       V# )
zGets cached content configurations.

.. code-block:: python

  client.caches.get(name= ... ) // The server-generated resource name.
ra   rV   rb   {name}r   r  rV   Nr  r  )r
   _GetCachedContentParametersr  r  r   r  r   r   r   r!  rV   r"  r   r#  r$  r%  r&  r'  r(  r  r)  r*  r+  r-  ra   rV   r.  r/  r0  r1  r2  r"  r   r3  r4  s   &$$         r   r  
Caches.get  s    77O    :


Ol &))&1	""#349


Ol &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''t<PH&mmmBHMM1JM&&55'A'A'C 6 L 	%%l3r   c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r8  r   r   r
   DeleteCachedContentConfigOrDictDeleteCachedContentResponse)r   r  s   "r   r   r    sA     K K K u<<=	K
 ((Kr   c                  \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWdV4      p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
V P                  P                  '       d   \'        V
4      p
V P                  P                  '       g   \)        V
4      p
\         P*                  P-                  WP/                  4       R	7      p\         P0                  ! V	P2                  R
7      Vn        V P                  P7                  V4       V# )zDeletes cached content.

Usage:

.. code-block:: python

  client.caches.delete(name= ... ) // The server-generated resource name.
r<  rb   r=  r   r  rV   Ndeleter  headers)r
   _DeleteCachedContentParametersr  r  ri   r  r   re   r   r!  rV   r"  r   r#  r$  r%  r&  r'  r(  ru   rq   rD  r)  r*  HttpResponserH  ro   r+  r?  s   &$$         r   rF  Caches.delete  s    ::O    =


Ol &))&1	""#34<


Ol &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''$lH 'mmmBHMM1JM   >}Mm$$$=mLm44CC'A'A'C D L &+%7%7  &L" 	%%l3r   c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r8  r   r   r
   UpdateCachedContentConfigOrDictr  )r   r  s   "r   r   r  !  A     F F F u<<=	F
 Fr   c                  \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWdV4      p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
\         P&                  P)                  WP+                  4       R	7      pV P                  P-                  V4       V# )
zUpdates cached content configurations.

.. code-block:: python

  response = client.caches.update(
      name= ... // The server-generated resource name.
      config={
          'ttl': '7600s',
      },
  )
r<  rb   r=  r   r  rV   Npatchr  )r
   _UpdateCachedContentParametersr  r  r  r  r   r	  r   r!  rV   r"  r   r#  r$  r%  r&  r'  r(  r  r)  r*  r+  r?  s   &$$         r   updateCaches.update!  s   $ ::O    =


Ol &))&1	""#34<


Ol &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''\H 'mmmBHMM1JM&&55'A'A'C 6 L 	%%l3r   c                ^   < V ^8  d   QhRS[ S[P                  ,          RS[P                  /# r   rV   r   r   r
   ListCachedContentsConfigOrDictListCachedContentsResponse)r   r  s   "r   r   r  i  s.     8 8 D DE8''8r   c                  \         P                  ! VR 7      pV P                  P                  '       d:   \	        V4      pVP                  R4      pV'       d   RP                  V4      pM;RpM8\        V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWSV4      pVP                   '       g   / M\"        P$                  ! VP                   4      p	V P                  P                  '       d   \'        V	4      p	V P                  P                  '       g   \)        V	4      p	\         P*                  P-                  WP/                  4       R7      p
\         P0                  ! VP2                  R	7      V
n        V P                  P7                  V
4       V
# 
r   rb   r   r   r  rV   Nr  r  rG  )r
   _ListCachedContentsParametersr  r  r   r  r   r   r   r!  rV   r"  r   r#  r$  r%  r&  r'  r(  r   r   rY  r)  r*  rJ  rH  ro   r+  r-  rV   r.  r/  r0  r1  r2  r"  r   r3  r4  s   &$         r   _listCaches._listi  s    99O    <_Ml%))&1	**+;<;OLl%))&1	**+;<##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL''t<PH&mmmBHMM1JM   =mLm$$$<]Km33BB'A'A'C C L &+%7%7  &L" 	%%l3r   c                n   < V ^8  d   QhRS[ S[P                  ,          RS[S[P                  ,          /# rV  )r   r
   rX  r   r  )r   r  s   "r   r   r    s3       D DEU  !r   c               V    V P                   p\        RVV P                  VR7      V4      # )a  Lists cached contents.

Args:
  config (ListCachedContentsConfig): Optional configuration for the list
    request.

Returns:
  A Pager object that contains one page of cached contents. When iterating
  over
  the pager, it automatically fetches the next page if there are more.

Usage:

.. code-block:: python
  for cached_content in client.caches.list():
    print(cached_content.name)
r   r   )r^  r   r-  rV   list_requests   &$ r   listCaches.list  s1    * ::L

&
!	 r    __name__
__module____qualname____firstlineno__r5  r  rF  rS  r^  rd  __static_attributes____classdictcell__r  s   @r   r  r  C  s     L AE	L L\? >B	? ?BK AE	K KZF AE	F FP8HL8 8tHL  r   r  c                      a  ] tR tRt o RR/V 3R lR lltRR/V 3R lR lltRR/V 3R lR	 lltRR/V 3R
 lR lltRR/V 3R lR lltRR/V 3R lR llt	Rt
V tR# )AsyncCachesi  rV   Nc                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r  r  )r   r  s   "r   r   AsyncCaches.__annotate__  r  r   c                 "   \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWdV4      G Rj  xL
 p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
\         P&                  P)                  WP+                  4       R	7      pV P                  P-                  V4       V#  L5i)
a  Creates a cached contents resource.

Usage:

.. code-block:: python

  contents = ... // Initialize the content to cache.
  response = await client.aio.caches.create(
      model= ... // The publisher model id
      contents=contents,
      config={
          'display_name': 'test cache',
          'system_instruction': 'What is the sum of the two pdfs?',
          'ttl': '86400s',
      },
  )
rT   rb   r   r   r  rV   Nr  r  )r
   r  r  r  r\   r  r   rY   r   r!  rV   r"  r   r#  r$  async_requestr&  r'  r(  r  r)  r*  r+  r,  s   &$$         r   r5  AsyncCaches.create  s    0 ::O    =


Ol &))&1	**+;<<


Ol &))&1	**+;<##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33L H 'mmmBHMM1JM&&55'A'A'C 6 L 	%%l3    CH	B,H	HH	A.H	c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r8  r9  )r   r  s   "r   r   rr    sA     B B B u99:	B
 Br   c                 "   \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWdV4      G Rj  xL
 p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
\         P&                  P)                  WP+                  4       R	7      pV P                  P-                  V4       V#  L5i)
zGets cached content configurations.

.. code-block:: python

  await client.aio.caches.get(name= ... ) // The server-generated resource
  name.
r<  rb   r=  r   r  rV   Nr  r  )r
   r>  r  r  r   r  r   r   r   r!  rV   r"  r   r#  r$  rt  r&  r'  r(  r  r)  r*  r+  r?  s   &$$         r   r  AsyncCaches.get  s     77O    :


Ol &))&1	""#349


Ol &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33t< H 'mmmBHMM1JM&&55'A'A'C 6 L 	%%l3rv  c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r8  rB  )r   r  s   "r   r   rr  U  sA     L L L u<<=	L
 ((Lr   c                 "   \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWdV4      G Rj  xL
 p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
V P                  P                  '       d   \'        V
4      p
V P                  P                  '       g   \)        V
4      p
\         P*                  P-                  WP/                  4       R	7      p\         P0                  ! V	P2                  R
7      Vn        V P                  P7                  V4       V#  L5i)zDeletes cached content.

Usage:

.. code-block:: python

  await client.aio.caches.delete(name= ... ) // The server-generated
  resource name.
r<  rb   r=  r   r  rV   NrF  r  rG  )r
   rI  r  r  ri   r  r   re   r   r!  rV   r"  r   r#  r$  rt  r&  r'  r(  ru   rq   rD  r)  r*  rJ  rH  ro   r+  r?  s   &$$         r   rF  AsyncCaches.deleteU  s      ::O    =


Ol &))&1	""#34<


Ol &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33$l H 'mmmBHMM1JM   >}Mm$$$=mLm44CC'A'A'C D L &+%7%7  &L" 	%%l3's,   CI=B,I=I;I==I=&I=?A=I=c                d   < V ^8  d   QhRS[ RS[S[P                  ,          RS[P                  /# r8  rM  )r   r  s   "r   r   rr    rO  r   c                 "   \         P                  ! VVR7      pV P                  P                  '       dE   \	        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMFRpMC\        V P                  V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWdV4      G Rj  xL
 p	V	P                   '       g   / M\"        P$                  ! V	P                   4      p
\         P&                  P)                  WP+                  4       R	7      pV P                  P-                  V4       V#  L5i)
zUpdates cached content configurations.

.. code-block:: python

  response = await client.aio.caches.update(
      name= ... // The server-generated resource name.
      config={
          'ttl': '7600s',
      },
  )
r<  rb   r=  r   r  rV   NrQ  r  )r
   rR  r  r  r  r  r   r	  r   r!  rV   r"  r   r#  r$  rt  r&  r'  r(  r  r)  r*  r+  r?  s   &$$         r   rS  AsyncCaches.update  s    $ ::O    =


Ol &))&1	""#34<


Ol &))&1	""#34##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33\ H 'mmmBHMM1JM&&55'A'A'C 6 L 	%%l3rv  c                ^   < V ^8  d   QhRS[ S[P                  ,          RS[P                  /# rV  rW  )r   r  s   "r   r   rr    s.     : : D DE:'':r   c                 "   \         P                  ! VR 7      pV P                  P                  '       d:   \	        V4      pVP                  R4      pV'       d   RP                  V4      pM;RpM8\        V4      pVP                  R4      pV'       d   RP                  V4      pMRpVP                  R4      pV'       d   V R\        V4       2pVP                  RR4       RpVP                  e/   VP                  P                  e   VP                  P                  p\        P                  ! V4      p\        P                  ! V4      pV P                  P                  RWSV4      G Rj  xL
 pVP                   '       g   / M\"        P$                  ! VP                   4      p	V P                  P                  '       d   \'        V	4      p	V P                  P                  '       g   \)        V	4      p	\         P*                  P-                  WP/                  4       R7      p
\         P0                  ! VP2                  R	7      V
n        V P                  P7                  V
4       V
#  L5ir[  )r
   r\  r  r  r   r  r   r   r   r!  rV   r"  r   r#  r$  rt  r&  r'  r(  r   r   rY  r)  r*  rJ  rH  ro   r+  r]  s   &$         r   r^  AsyncCaches._list  s     99O    <_Ml%))&1	**+;<;OLl%))&1	**+;<##H-LvQy./0dXt$04L*""//;$++88l**<8L66|DL%%33t< H 'mmmBHMM1JM   =mLm$$$<]Km33BB'A'A'C C L &+%7%7  &L" 	%%l3's,   B=I& B,I&,I$-I&=I&&I&(A=I&c                n   < V ^8  d   QhRS[ S[P                  ,          RS[S[P                  ,          /# rV  )r   r
   rX  r   r  )r   r  s   "r   r   rr  '  s3       D DE%%%&r   c               r   "   V P                   p\        RTV P                  VR7      G Rj  xL
 V4      #  L	5i)a  Lists cached contents asynchronously.

Args:
  config (ListCachedContentsConfig): Optional configuration for the list
    request.

Returns:
  A Pager object that contains one page of cached contents. When iterating
  over
  the pager, it automatically fetches the next page if there are more.

Usage:

.. code-block:: python
  async for cached_content in await client.aio.caches.list():
    print(cached_content.name)
r   r   N)r^  r   rb  s   &$ r   rd  AsyncCaches.list'  s<     * ::Ljjj''	  	(s   )75
7rf  rg  rn  s   @r   rp  rp    s     L AE	L L\B >B	B BHL AE	L L\F AE	F FP:HL: :xHL  r   rp  )N)<r'  loggingtypingr   r   r   urllib.parser    r   r   r	   rB   r
   r  r   r   r&   r   r'   pagersr   r   	getLoggerloggerr+   r4   rG   rM   rY   r\   re   ri   rq   ru   r{   r   r   r   r   r   r   r   r   r   r   r   r   r   r1   rF   rE   rL   r  r  r	  r  
BaseModuler  rp  rf  r   r   <module>r     s  $   ' ' "      & . . % 
		0	1"*6r1h**  

".0"J  .**
..@F,5p2j**{[## {|A+(( Ar   