
    Ii@*                         S r SSKJr  SSKrSSKrSSKrSSKrSSKrSSKrSSK	J
r   " S S\5      r " S S\R                  " \\5      5      rg)	z
Python SDK for Opsgenie REST API

Python SDK for Opsgenie REST API  # noqa: E501

The version of the OpenAPI document: 2.0.0
Contact: support@opsgenie.com
Generated by: https://openapi-generator.tech
    )absolute_importN)http_clientc                   4   ^  \ rS rSrU 4S jrS rS rSrU =r$ )TypeWithDefault   c                 <   > [         [        U ]  XU5        S U l        g N)superr   __init___default)clsnamebasesdct	__class__s       @/venv/lib/python3.13/site-packages/opsgenie_sdk/configuration.pyr   TypeWithDefault.__init__   s    os,T#>    c                     U R                   c  [        R                  U 5      U l         [        R                  " U R                   5      $ r	   )r   type__call__copy)r   s    r   r   TypeWithDefault.__call__   s/    <<==-CLyy&&r   c                 :    [         R                   " U5      U l        g r	   )r   r   )r   defaults     r   set_defaultTypeWithDefault.set_default$   s    yy)r    )	__name__
__module____qualname____firstlineno__r   r   r   __static_attributes____classcell__)r   s   @r   r   r      s    '
* *r   r   c                       \ rS rSrSrS r\S 5       r\R                  S 5       r\S 5       r	\	R                  S 5       r	\S 5       r
\
R                  S	 5       r
S
 rS rS rS rS r0 4S jr0 4S jrSrg)Configuration(   z}NOTE: This class is auto generated by OpenAPI Generator

Ref: https://openapi-generator.tech
Do not edit the class manually.
c                 t   SU l         SU l        0 U l        0 U l        SU R                  S'   SU l        SU l        0 U l        [        R                  " S5      U R                  S'   [        R                  " S5      U R                  S	'   S
U l	        SU l
        SU l        SU l        SU l        SU l        SU l        SU l        SU l        / SQU l        SU l        SU l        SU l        SU l        SU l        SU l        [2        R4                  " 5       S-  U l        SU l        SU l        SU l        SU l        SU l         g)Constructorzhttps://api.opsgenie.comNGenieKeyAuthorization opsgenie_sdkpackage_loggerurllib3urllib3_loggerz%%(asctime)s %(levelname)s %(message)sF      <      )429500z502-599T
   )!hosttemp_folder_pathapi_keyapi_key_prefixusernamepasswordloggerlogging	getLoggerlogger_formatlogger_stream_handlerlogger_file_handlerlogger_filedebugretry_countretry_delayretry_max_delayback_offretry_http_responseretry_enabled
verify_sslssl_ca_cert	cert_filekey_fileassert_hostnamemultiprocessing	cpu_countconnection_pool_maxsizeproxyproxy_headerssafe_chars_for_path_parammetrics_transaction_idshort_polling_max_retriesselfs    r   r   Configuration.__init__/   s=    /	 $  /9O,(/(9(9.(I$%(/(9(9)(D$%D%)"#' 
 !#< !
 # (7'@'@'BQ'F$ 
!)+&&*#)+&r   c                     U R                   $ )The logger file.

If the logger_file is None, then add stream handler and remove file
handler. Otherwise, add file handler and remove stream handler.

:param value: The logger_file path.
:type: str
)_Configuration__logger_filerY   s    r   rD   Configuration.logger_file|   s     !!!r   c                 P   Xl         U R                   (       a  [        R                  " U R                   5      U l        U R                  R	                  U R
                  5        [        R                  " U R                  5       H   u  p#UR                  U R                  5        M"     gg)r]   N)
r^   r?   FileHandlerrC   setFormatterlogger_formattersix	iteritemsr>   
addHandlerrZ   value_r>   s       r   rD   r_      sz     # (/':':4;M;M'ND$$$11$2G2GH ]]4;;7	!!$":":; 8 r   c                     U R                   $ )IDebug status

:param value: The debug status, True or False.
:type: bool
)_Configuration__debugrY   s    r   rE   Configuration.debug   s     ||r   c                    Xl         U R                   (       a^  [        R                  " U R                  5       H$  u  p#UR	                  [
        R                  5        M&     S[        R                  l	        g[        R                  " U R                  5       H$  u  p#UR	                  [
        R                  5        M&     S[        R                  l	        g)rk   r4   r   N)rl   rd   re   r>   setLevelr?   DEBUGhttplibHTTPConnection
debuglevelWARNINGrg   s       r   rE   rm      s     << ]]4;;7	. 8 12G""- !]]4;;7	0 8 12G""-r   c                     U R                   $ )The logger format.

The logger_formatter will be updated when sets logger_format.

:param value: The format string.
:type: str
)_Configuration__logger_formatrY   s    r   rA   Configuration.logger_format   s     ###r   c                 Z    Xl         [        R                  " U R                   5      U l        g)rv   N)rw   r?   	Formatterrc   )rZ   rh   s     r   rA   rx      s#      % ' 1 1$2F2F Gr   c                 &   U R                   R                  U5      (       aB  U R                  R                  U5      (       a"  U R                  U   S-   U R                   U   -   $ U R                   R                  U5      (       a  U R                   U   $ g)zGets API key (with prefix if set).

:param identifier: The identifier of apiKey.
:return: The token for api key authentication.
 N)r:   getr;   )rZ   
identifiers     r   get_api_key_with_prefix%Configuration.get_api_key_with_prefix   s}     LLZ((##''
33&&z2S84<<
;SSS\\j))<<
++ *r   c                     [         R                  R                  U R                  S-   U R                  -   S9R                  S5      $ )zcGets HTTP basic authentication header (string).

:return: The token for basic HTTP authentication.
:)
basic_authauthorization)r/   utilmake_headersr<   r=   r}   rY   s    r   get_basic_auth_token"Configuration.get_basic_auth_token   s?    
 ||((}}s*T]]: ) 

#o
	r   c                 2    SSSSU R                  S5      S.0$ )zVGets Auth Settings dict for api client.

:return: The Auth Settings information dict.
r*   r:   headerr+   )r   inkeyrh   )r   rY   s    r   auth_settingsConfiguration.auth_settings   s-     %"*!99/J		
 		
r   c                 Z    SR                  [        R                  [        R                  S9$ )zRGets the essential information for debugging.

:return: The report for debugging.
zsPython SDK Debug Report:
OS: {env}
Python Version: {pyversion}
Version of the API: 2.0.0
SDK Package Version: 2.1.5)env	pyversion)formatsysplatformversionrY   s    r   to_debug_reportConfiguration.to_debug_report   s$    
,
 v#,,#++v>	?r   c                     SSS./$ )zCGets an array of host settings

:return: An array of host settings
zhttps://api.opsgenie.com/zNo description provided)urldescriptionr   rY   s    r   get_host_settingsConfiguration.get_host_settings  s     38
 	
r   c           	         U R                  5       nUS:  d  U[        U5      :  a$  [        SR                  U[        U5      5      5      eX1   nUS   nUS    H}  nXb;   aT  X&   US   U   S   ;   a  UR	                  SU-   S-   X&   5      nM5  [        SR                  XbU   US   U   S   5      5      eUR	                  SU-   S-   US   U   S	   5      nM     U$ )
zGets host URL based on the index and variables
:param index: array index of the host settings
:param variables: hash of variable and the corresponding value
:return: URL based on host settings
r   zGInvalid index {} when selecting the host settings. Must be less than {}r   	variablesenum_values{}zCThe variable `{}` in the host URL has invalid value {}. Must be {}.default_value)r   len
ValueErrorr   replace)rZ   indexr   serversserverr   variable_names          r   get_host_from_settings$Configuration.get_host_from_settings  s"    ((* 19W-Ys7|,. . Um $K0M)+vk/B%0''406 6++cM&9C&?&/&>@C %])]+C";/>}MOP P kk-'#-;'6GI 1$ 
r   c                 n   SUR                  5       ;   a
  US   U l        SUR                  5       ;   a
  US   U l        SUR                  5       ;   a
  US   U l        SUR                  5       ;   a
  US   U l        SUR                  5       ;   a
  US   U l        SUR                  5       ;   a  US   U l        g g )NrF   rG   rI   rJ   rH   rK   )keysrF   rG   rI   rJ   rH   rK   )rZ   customs     r   set_retry_policyConfiguration.set_retry_policy6  s    FKKM)%m4DFKKM)%m4D&":.DM FKKM1'-.C'DD$-#)*;#<D fkkm+!'!8D ,r   )!__debug__logger_file__logger_formatr:   r;   rP   rI   rN   rS   rE   r8   rO   r>   rD   rC   rA   rc   rB   rW   r=   rT   rU   rF   rG   rK   rJ   rH   rV   rX   rM   r9   r<   rL   N)r   r    r!   r"   __doc__r   propertyrD   setterrE   rA   r   r   r   r   r   r   r   r#   r   r   r   r&   r&   (   s    K,Z 	" 	" < <$   \\2 2* $ $ 	H 	H
,
 
?

 79 %P ') 9r   r&   )r   
__future__r   r   r?   rQ   r   r/   rd   	six.movesr   rq   r   r   with_metaclassobjectr&   r   r   r   <module>r      sK    '    
  
 ,*d *`9C&&? `9r   