
    [jE                         d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl	m
Z ddlmZ ddlZh dZ G d de          ZdS )	z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.36
    Generated by: https://openapi-generator.tech
    )absolute_importN)http_client)ApiValueError>
   maximumminimumpatternmaxItemsminItems	maxLength	minLength
multipleOfexclusiveMaximumexclusiveMinimumc                   f   e Zd ZdZdZ	 	 	 	 	 	 	 	 ddZd Zd Zed             Z	ed	             Z
ed
             Zej        d             Zed             Zej        d             Zed             Zej        d             ZddZd Zd Zd Zd ZddZed             Zej        d             ZdS )Configurationa  NOTE: This class is auto generated by OpenAPI Generator

    Ref: https://openapi-generator.tech
    Do not edit the class manually.

    :param host: Base url
    :param api_key: Dict to store API key(s).
      Each entry in the dict specifies an API key.
      The dict key is the name of the security scheme in the OAS specification.
      The dict value is the API key secret.
    :param api_key_prefix: Dict to store API prefix (e.g. Bearer)
      The dict key is the name of the security scheme in the OAS specification.
      The dict value is an API key prefix when generating the auth data.
    :param username: Username for HTTP basic authentication
    :param password: Password for HTTP basic authentication
    :param discard_unknown_keys: Boolean value indicating whether to discard
      unknown properties. A server may send a response that includes additional
      properties that are not known by the client in the following scenarios:
      1. The OpenAPI document is incomplete, i.e. it does not match the server
         implementation.
      2. The client was generated using an older version of the OpenAPI document
         and the server has been upgraded since then.
      If a schema in the OpenAPI document defines the additionalProperties attribute,
      then all undeclared properties received by the server are injected into the
      additional properties map. In that case, there are undeclared properties, and
      nothing to discard.
    :param disabled_client_side_validations (string): Comma-separated list of
      JSON schema validation keywords to disable JSON schema structural validation
      rules. The following keywords may be specified: multipleOf, maximum,
      exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern,
      maxItems, minItems.
      By default, the validation is performed for data generated locally by the client
      and data received from the server, independent of any validation performed by
      the server side. If the input data does not satisfy the JSON schema validation
      rules specified in the OpenAPI document, an exception is raised.
      If disabled_client_side_validations is set, structural validation is
      disabled. This can be useful to troubleshoot data validation problem, such as
      when the OpenAPI document validation rules do not match the actual API data
      received by the server.
    :param server_index: Index to servers configuration.
    :param server_variables: Mapping with string values to replace variables in
      templated server configuration. The validation of enums is performed for
      variables with defined enum values before.
    :param server_operation_index: Mapping from operation ID to an index to server
      configuration.
    :param server_operation_variables: Mapping from operation ID to a mapping with
      string values to replace variables in templated server configuration.
      The validation of enums is performed for variables with defined enum values before.
    :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
      in PEM format

    :Example:

    API Key Authentication Example.
    Given the following security scheme in the OpenAPI specification:
      components:
        securitySchemes:
          cookieAuth:         # name for the security scheme
            type: apiKey
            in: cookie
            name: JSESSIONID  # cookie name

    You can programmatically set the cookie:

conf = client.Configuration(
    api_key={'cookieAuth': 'abc123'}
    api_key_prefix={'cookieAuth': 'JSESSIONID'}
)

    The following cookie will be added to the HTTP request:
       Cookie: JSESSIONID abc123
    NF c                    |dn|| _         	 ||dn|| _        |
pi | _        	 |	pi | _        |pi | _        	 d| _        	 i | _        |r|| _        	 i | _        |r|| _        	 d| _        	 || _	        	 || _
        	 || _        || _        i | _        	 t          j        d          | j        d<   t          j        d          | j        d<   d| _        	 d| _        	 d| _        	 d| _        	 d	| _        	 d
| _        	 || _        	 d| _        	 d| _        	 d| _        	 d| _        	 t7          j                    dz  | _        	 d| _        	 d| _        tA          j!        d          rtA          j!        d          | _        tA          j!        d          rtA          j!        d          | _        tA          j!        d          rtA          j!        d          | _        tA          j!        d          rtA          j!        d          | _        tA          j!        d          rtA          j!        d          | _        tA          j!        d          rtA          j!        d          | _        	 d| _"        	 d| _#        	 d| _$        	 d
| _%        d| _&        dS )zConstructor
        Nzhttp://localhostr   clientpackage_loggerurllib3urllib3_loggerz%%(asctime)s %(levelname)s %(message)sFT   HTTPS_PROXYhttps_proxy
HTTP_PROXY
http_proxyNO_PROXYno_proxyr   )'
_base_pathserver_indexserver_operation_indexserver_variablesserver_operation_variablestemp_folder_pathapi_keyapi_key_prefixrefresh_api_key_hookusernamepassworddiscard_unknown_keys disabled_client_side_validationsloggerlogging	getLoggerlogger_formatlogger_stream_handlerlogger_file_handlerlogger_filedebug
verify_sslssl_ca_cert	cert_filekey_fileassert_hostnametls_server_namemultiprocessing	cpu_countconnection_pool_maxsizeproxyr   osgetenvproxy_headerssafe_chars_for_path_paramretriesclient_side_validationsocket_options)selfhostr%   r&   r(   r)   r*   r+   r    r"   r!   r#   r5   s                \/var/www/FlaskApp/flask-venv/lib/python3.11/site-packages/kubernetes/client/configuration.py__init__zConfiguration.__init__m   s    15,,$	!-!5$,AAL&<&B#	 0 6B*D*J'	 $	  	#"DL	  	1"0D	$(!	 	 	$8!0P-	(/(9((C(C$%(/(9)(D(D$%D	%)"	#' 		
	 	 '			#	#	 (7'@'B'BQ'F$	 
	9]##J")M2J2JTZ9]##J")M2J2JTZ9\""H<1H1HDJ9\""H<1H1HDJ9Z  G")J2G2G$-9Z  G")J2G2G$-	!	)+&		 '+#"	 	    c           	      \   | j         }|                    |          }||t          |           <   | j                                        D ]-\  }}|dvr$t          ||t          j        ||                     .t          j        | j                  |_        | j	        |_	        | j
        |_
        |S )N)r,   r1   )	__class____new__id__dict__itemssetattrcopydeepcopyr,   r2   r3   )rE   memoclsresultkvs         rG   __deepcopy__zConfiguration.__deepcopy__   s    nS!!RXXM'')) 	; 	;DAq9994=D#9#9:::	$+..!-zrI   c                    t                               | ||           |dk    rit          t          d |                    d                              }|D ]-}|t
          vr"t          d                    |                    .|| _        d S d S )Nr+   ,zInvalid keyword: '{0}'')	object__setattr__setfiltersplitJSON_SCHEMA_VALIDATION_KEYWORDSr   format!_disabled_client_side_validations)rE   namevaluesrW   s        rG   r\   zConfiguration.__setattr__   s    4u---555F4S!1!12233A = =;;;'188;;= = = < 67D222 65rI   c                 8    t          j        |          | _        dS )zSet default instance of configuration.

        It stores default configuration, which can be
        returned by get_default_copy method.

        :param default: object of Configuration
        N)rQ   rR   _default)rT   defaults     rG   set_defaultzConfiguration.set_default  s     }W--rI   c                 ^    | j         t          j        | j                   S t                      S )a  Return new instance of configuration.

        This method returns newly created, based on default constructor,
        object of Configuration class or returns a copy of default
        configuration passed by the set_default method.

        :return: The configuration object.
        )rg   rQ   rR   r   )rT   s    rG   get_default_copyzConfiguration.get_default_copy  s(     <#=...rI   c                     | j         S )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_filerE   s    rG   r2   zConfiguration.logger_file  s     !!rI   c                    || _         | j         rvt          j        | j                   | _        | j                            | j                   t          j        | j                  D ]!\  }}|	                    | j                    dS dS )rm   N)
rn   r-   FileHandlerr1   setFormatterlogger_formattersix	iteritemsr,   
addHandlerrE   rd   _r,   s       rG   r2   zConfiguration.logger_file*  s     # 	< (/':4;M'N'ND$$11$2GHHH ]4;77 < <	6!!$":;;;;	< 	<
< <rI   c                     | j         S )aDebug status

        :param value: The debug status, True or False.
        :type: bool
        )_Configuration__debugro   s    rG   r3   zConfiguration.debug=  s     |rI   c                 b   || _         | j         rQt          j        | j                  D ]$\  }}|                    t
          j                   %dt          j        _	        dS t          j        | j                  D ]$\  }}|                    t
          j
                   %dt          j        _	        dS )rz      r   N)r{   rt   ru   r,   setLevelr-   DEBUGhttplibHTTPConnection
debuglevelWARNINGrw   s       rG   r3   zConfiguration.debugF  s     < 	2 ]4;77 / /	6....01G"--- !]4;77 1 1	6000001G"---rI   c                     | j         S )The logger format.

        The logger_formatter will be updated when sets logger_format.

        :param value: The format string.
        :type: str
        )_Configuration__logger_formatro   s    rG   r/   zConfiguration.logger_format\  s     ##rI   c                 P    || _         t          j        | j                   | _        dS )r   N)r   r-   	Formatterrs   rE   rd   s     rG   r/   zConfiguration.logger_formatg  s(      % ' 1$2F G GrI   c                     | j         |                      |            | j                            ||| j                            |          nd          }|r%| j                            |          }|r|d|S |S dS )zGets API key (with prefix if set).

        :param identifier: The identifier of apiKey.
        :param alias: The alternative identifier of apiKey.
        :return: The token for api key authentication.
        N )r'   r%   getr&   )rE   
identifieraliaskeyprefixs        rG   get_api_key_with_prefixz%Configuration.get_api_key_with_prefixs  s     $0%%d+++lzeFW4<+;+;E+B+B+B]abb 	(,,Z88F "(&&##..
	 	rI   c                     d}| j         | j         }d}| j        | j        }t          j                            |dz   |z                                 d          S )zsGets HTTP basic authentication header (string).

        :return: The token for basic HTTP authentication.
        r   N:)
basic_authauthorization)r(   r)   r   utilmake_headersr   )rE   r(   r)   s      rG   get_basic_auth_tokenz"Configuration.get_basic_auth_token  sd    
 =$}H=$}H|((#~0 ) 
 

#o

	rI   c                 V    i }d| j         v rddd|                     d          d|d<   |S )zfGets Auth Settings dict for api client.

        :return: The Auth Settings information dict.
        BearerTokenr%   headerr   )typeinr   rd   )r%   r   )rE   auths     rG   auth_settingszConfiguration.auth_settings  sM    
 DL((!&55! 	# #D rI   c                 X    d                     t          j        t          j                  S )zbGets the essential information for debugging.

        :return: The report for debugging.
        z{Python SDK Debug Report:
OS: {env}
Python Version: {pyversion}
Version of the API: release-1.36
SDK Package Version: 36.0.0)env	pyversion)ra   sysplatformversionro   s    rG   to_debug_reportzConfiguration.to_debug_report  s#    
-
 v#,#+v>>	?rI   c                     dddgS )zSGets an array of host settings

        :return: An array of host settings
        r   zNo description provided)urldescription ro   s    rG   get_host_settingszConfiguration.get_host_settings  s     8 
 	
rI   c           	      <   || j         S |i n|}||                                 n|}	 ||         }n># t          $ r1 t          d                    |t          |                              w xY w|d         }|                    di                                           D ]{\  }}|                    ||d                   }d|v r:||d         vr0t          d                    |||         |d                             |                    d|z   d	z   |          }||S )
a  Gets 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
        :param servers: an array of host settings or None
        :return: URL based on host settings
        NzIInvalid index {0} when selecting the host settings. Must be less than {1}r   	variablesdefault_valueenum_valueszFThe variable `{0}` in the host URL has invalid value {1}. Must be {2}.{})	r   r   
IndexError
ValueErrorra   lenr   rO   replace)	rE   indexr   serversserverr   variable_namevariable
used_values	            rG   get_host_from_settingsz$Configuration.get_host_from_settings  sm    =?"#+BB	.5o$((***7	EU^FF 	E 	E 	E((.uc'll(C(CE E E	E
 Um (.zz+r'B'B'H'H'J'J 	E 	E#M8"x8: :J (("(=*AAA ((.%y'? /)1 )12 2 2 ++cM1C7DDCC
s	   2 ;A-c                 D    |                      | j        | j                  S )zReturn generated host.)r   )r   r    r"   ro   s    rG   rF   zConfiguration.host  s#     **4+<H]*^^^rI   c                 "    || _         d| _        dS )zFix base path.N)r   r    r   s     rG   rF   zConfiguration.host  s       rI   )NNNNNFr   NNNNN)N)NN)__name__
__module____qualname____doc__rg   rH   rX   r\   classmethodri   rk   propertyr2   setterr3   r/   r   r   r   r   r   r   rF   r   rI   rG   r   r   !   s       G GR H .2)-&+2459IM!~ ~ ~ ~@  7 7 7 . . [.   [ 	" 	" X	" < < <$   X \2 2 \2* $ $ X$ 	H 	H 	H   "    "
? 
? 
?

 

 

% % % %N _ _ X_ 
[! ! [! ! !rI   r   )r   
__future__r   rQ   r-   r:   r   r   rt   	six.movesr   r   kubernetes.client.exceptionsr   r>   r`   r[   r   r   rI   rG   <module>r      s     ' & & & & &       



  



 , , , , , , 6 6 6 6 6 6 				# # # K! K! K! K! K!F K! K! K! K! K!rI   