
    E0jU/                         d dl mZ d dlmZmZmZ d dlmZ  G d de          Z	 G d de          Z
 G d d	e          Z G d
 de          Z G d de          ZdS )    )TeaModel)DictAnyBinaryIO)Clientc            '            e Zd Z	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddeeef         deeef         dededeeef         deded	ed
ededededededededededef&dZd Z	 fdZ
ddefdZ xZS )InterceptorContextRequestNheadersquerybodystreamhost_mappathname
product_idactionversionprotocolmethod	auth_type	body_typereq_body_typestyle
credentialsignature_versionsignature_algorithm
user_agentc                    || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        || _
        || _        || _        || _        || _        || _        || _        || _        || _        d S N)r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )selfr
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s                       g/home/rurouni/.hermes/hermes-agent/venv/lib/python3.11/site-packages/alibabacloud_gateway_spi/models.py__init__z"InterceptorContextRequest.__init__
   s    , 
	  $ ""*
$!2#6 $    c                 X   |                      | j        d           |                      | j        d           |                      | j        d           |                      | j        d           |                      | j        d           |                      | j        d           |                      | j        d           |                      | j        d           |                      | j	        d	           |                      | j
        d
           |                      | j        d           d S )Nr   r   r   r   r   r   r   r   r   r   r   )validate_requiredr   r   r   r   r   r   r   r   r   r   r   r   s    r    validatez"InterceptorContextRequest.validate4   s   t}j999t===t{H555t|Y777t}j999t{H555t~{;;;t~{;;;t1?CCCt===t=====r"   c                    t                                                      }||S t                      }| j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j	        
| j	        |d<   | j
        
| j
        |d<   | j        
| j        |d	<   | j        
| j        |d
<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   |S Nr
   r   r   r   hostMapr   	productIdr   r   r   r   authTypebodyTypereqBodyTyper   r   signatureVersionsignatureAlgorithm	userAgent)superto_mapdictr
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   _mapresult	__class__s      r    r2   z InterceptorContextRequest.to_mapA   s   ww~~K<# $F9:!"jF7O9 !YF6N;"#{F8=$ $F9=$!%F:?&"&/F;;"#{F8<# $F9=$!%F:;"#{F8>%!%F:>%!%F:)$($6F=!:!"jF7O?&#'?F< !-)-)?F%&#/+/+CF'(?&"&/F;r"   mc                     |pt                      }|                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _	        |                    d	          |                    d	          | _
        |                    d
          |                    d
          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        | S r(   )r3   getr
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r8   s     r    from_mapz"InterceptorContextRequest.from_mapo   s   K55'55++DL55>>%wDJ55==$fDI55??&%%//DK55'EE),,DM55(EE*--DM55)eeK00DO55??&%%//DK55'55++DL55(EE*--DM55??&%%//DK55(UU:..DN55(UU:..DN55+!"}!5!5D55>>%wDJ55*eeL11DO55#$$0%&UU+=%>%>D"55%&&2'(uu-A'B'BD$55)eeK00DOr"   )NNNNNNNNNNNNNNNNNNNr   )__name__
__module____qualname__r   strr   r   CredentialClientr!   r&   r2   r3   r<   __classcell__r7   s   @r    r	   r	   	   s        #' $#'!'+!%#')(% (%c3h(% CH~(% 	(%
 (% sCx.(% (% (% (% (% (% (% (% (% (%  !(%" %#(%$ %(%& !'(%( )(% (% (% (%T> > >, , , , ,\( ($ ( ( ( ( ( ( ( (r"   r	   c                   v     e Zd Z	 	 	 	 	 	 	 ddedededeeef         dededefd	Zd
 Z fdZddefdZ	 xZ
S )InterceptorContextConfigurationN	region_idendpointendpoint_ruleendpoint_mapendpoint_typenetworksuffixc                 h    || _         || _        || _        || _        || _        || _        || _        d S r   )rF   rG   rH   rI   rJ   rK   rL   )r   rF   rG   rH   rI   rJ   rK   rL   s           r    r!   z(InterceptorContextConfiguration.__init__   s<     # *(*r"   c                 <    |                      | j        d           d S )NrF   )r$   rF   r%   s    r    r&   z(InterceptorContextConfiguration.validate   s     t~{;;;;;r"   c                 Z   t                                                      }||S t                      }| j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j	        
| j	        |d<   |S NregionIdrG   endpointRuleendpointMapendpointTyperK   rL   )
r1   r2   r3   rF   rG   rH   rI   rJ   rK   rL   r4   s      r    r2   z&InterceptorContextConfiguration.to_map   s    ww~~K>%!%F:=$!%F:)%)%7F>"($($5F=!)%)%7F>"<# $F9;"#{F8r"   r8   c                    |pt                      }|                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        | S rP   )	r3   r:   rF   rG   rH   rI   rJ   rK   rL   r;   s     r    r<   z(InterceptorContextConfiguration.from_map   s   K55(UU:..DN55(EE*--DM55  ,!"~!6!6D55+ !m 4 4D55  ,!"~!6!6D55'55++DL55??&%%//DKr"   )NNNNNNNr   )r=   r>   r?   r@   r   r!   r&   r2   r3   r<   rB   rC   s   @r    rE   rE      s         !'+!   	
 38n      $< < <    , $        r"   rE   c            	       d     e Zd Z	 	 	 	 ddedeeef         dedefdZd Z	 fdZ
dd	efd
Z xZS )InterceptorContextResponseNstatus_coder
   r   deserialized_bodyc                 >    || _         || _        || _        || _        d S r   )rX   r
   r   rY   )r   rX   r
   r   rY   s        r    r!   z#InterceptorContextResponse.__init__   s(     '	!2r"   c                     d S r    r%   s    r    r&   z#InterceptorContextResponse.validate   s    r"   c                     t                                                      }||S t                      }| j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   | j        
| j        |d<   |S N
statusCoder
   r   deserializedBody)r1   r2   r3   rX   r
   r   rY   r4   s      r    r2   z!InterceptorContextResponse.to_map   s    ww~~K'#'#3F< <# $F99 !YF6N!-)-)?F%&r"   r8   c                    |pt                      }|                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        |                    d          |                    d          | _        | S r^   )r3   r:   rX   r
   r   rY   r;   s     r    r<   z#InterceptorContextResponse.from_map   s    K55* uu\22D55'55++DL55==$fDI55#$$0%&UU+=%>%>D"r"   )NNNNr   )r=   r>   r?   intr   r@   r   r   r!   r&   r2   r3   r<   rB   rC   s   @r    rW   rW      s          "&!%
3 
3
3 c3h
3 	
3
 
3 
3 
3 
3       
 
$ 
 
 
 
 
 
 
 
r"   rW   c                   N     e Zd Z	 	 	 d
dededefdZd Z fdZdde	fd	Z
 xZS )InterceptorContextNrequestconfigurationresponsec                 0    || _         || _        || _        d S r   )re   rf   rg   )r   re   rf   rg   s       r    r!   zInterceptorContext.__init__  s     * r"   c                 l   |                      | j        d           | j        r| j                                         |                      | j        d           | j        r| j                                         |                      | j        d           | j        r| j                                         d S d S Nre   rf   rg   )r$   re   r&   rf   rg   r%   s    r    r&   zInterceptorContext.validate  s    t|Y777< 	$L!!###t1?CCC 	*'')))t}j999= 	%M""$$$$$	% 	%r"   c                 >   t                                                      }||S t                      }| j        | j                                        |d<   | j        | j                                        |d<   | j        | j                                        |d<   |S rj   )r1   r2   r3   re   rf   rg   r4   s      r    r2   zInterceptorContext.to_map  s    ww~~K<# $ 3 3 5 5F9)&*&8&?&?&A&AF?#=$!%!5!5!7!7F:r"   r8   c                    |pt                      }|                    d          .t                      }|                    |d                   | _        |                    d          .t                      }|                    |d                   | _        |                    d          .t                      }|                    |d                   | _        | S rj   )	r3   r:   r	   r<   re   rE   rf   rW   rg   )r   r8   
temp_models      r    r<   zInterceptorContext.from_map*  s    K55'244J%..q|<<DL55!!-8::J!+!4!4Q5G!H!HD55(355J&//*>>DMr"   )NNNr   )r=   r>   r?   r	   rE   rW   r!   r&   r2   r3   r<   rB   rC   s   @r    rd   rd     s         .29=/3	! !*! 7! -	! ! ! !	% 	% 	%     $        r"   rd   c                   h     e Zd Z	 	 d	deeef         deeef         fdZd Z fdZd
de	fdZ
 xZS )AttributeMapN
attributeskeyc                 "    || _         || _        d S r   )rp   rq   )r   rp   rq   s      r    r!   zAttributeMap.__init__9  s    
 %r"   c                 r    |                      | j        d           |                      | j        d           d S Nrp   rq   )r$   rp   rq   r%   s    r    r&   zAttributeMap.validateA  s8    t===tx/////r"   c                     t                                                      }||S t                      }| j        
| j        |d<   | j        
| j        |d<   |S rt   )r1   r2   r3   rp   rq   r4   s      r    r2   zAttributeMap.to_mapE  sV    ww~~K?&#'?F< 8 HF5Mr"   r8   c                     |pt                      }|                    d          |                    d          | _        |                    d          |                    d          | _        | S rt   )r3   r:   rp   rq   r;   s     r    r<   zAttributeMap.from_mapQ  sZ    K55*eeL11DO55<<#uuU||DHr"   )NNr   )r=   r>   r?   r   r@   r   r!   r&   r2   r3   r<   rB   rC   s   @r    ro   ro   8  s         &*" cN #s(^   0 0 0
 
 
 
 
 $        r"   ro   N)	Tea.modelr   typingr   r   r   alibabacloud_credentials.clientr   rA   r	   rE   rW   rd   ro   r\   r"   r    <module>rz      s1         & & & & & & & & & & F F F F F FN N N N N N N Nb< < < < <h < < <~* * * * * * * *Z/ / / / / / / /d    8     r"   