
                             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m	Z	 ddlm
Z
 ddlmZ  G d de      Z G d	 d
 e
ee            Zy)z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )absolute_importN)	iteritems)with_metaclass)http_clientc                   *     e Zd Z fdZd Zd Z xZS )TypeWithDefaultc                 >    t         t        |   |||       d | _        y N)superr   __init___default)clsnamebasesdct	__class__s       2lib/third_party/kubernetes/client/configuration.pyr   zTypeWithDefault.__init__   s    	/3(uc:CL    c                     | j                   d k(  rt        j                  |       | _         t        j                  | j                         S r
   )r   type__call__copy)r   s    r   r   zTypeWithDefault.__call__!   s1    
||t]]3'cl99S\\""r   c                 8    t        j                   |      | _        y r
   )r   r   )r   defaults     r   set_defaultzTypeWithDefault.set_default&   s    99W%CLr   )__name__
__module____qualname__r   r   r   __classcell__)r   s   @r   r   r      s    #
&r   r   c                       e Zd ZdZd Zed        Zej                  d        Zed        Zej                  d        Zed        Z	e	j                  d        Z	d	 Z
d
 Zd Zd Zy)Configurationz
    NOTE: This class is auto generated by the swagger code generator program.
    Ref: https://github.com/swagger-api/swagger-codegen
    Do not edit the class manually.
    c                    d| _         d| _        i | _        i | _        d| _        d| _        i | _        t        j                  d      | j                  d<   t        j                  d      | j                  d<   d| _	        d| _
        d| _        d| _        d	| _        d
| _        d| _        d| _        d| _        d| _        t'        j(                         dz  | _        d| _        d| _        y)z
        Constructor
        zhttps://localhostN clientpackage_loggerurllib3urllib3_loggerz%%(asctime)s %(levelname)s %(message)sFT   )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
verify_sslssl_ca_cert	cert_filekey_fileassert_hostnamemultiprocessing	cpu_countconnection_pool_maxsizeproxysafe_chars_for_path_paramselfs    r   r   zConfiguration.__init__1   s    
 $DI D DLDDMDM DK$+$5$5h$?DKK !$+$5$5i$@DKK !@D!%D#DDDJ DODDNDMD $3#<#<#>#BD  DJ%'D"r   c                     | j                   S )z'
        Gets the logger_file.
        )_Configuration__logger_filerA   s    r   r5   zConfiguration.logger_filek   s    
 r   c                    || _         | j                   rt        j                  | j                         | _        | j                  j	                  | j
                         t        | j                        D ]H  \  }}|j                  | j                         | j                  s.|j                  | j                         J yt        j                         | _	        | j                  j	                  | j
                         t        | j                        D ]H  \  }}|j                  | j                         | j                  s.|j                  | j                         J y)a  
        Sets 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
        N)rD   r0   FileHandlerr4   setFormatterlogger_formatterr   r/   
addHandlerr3   removeHandlerStreamHandlerrB   value_r/   s       r   r5   zConfiguration.logger_filer   s    D ")!4!4T5G5G!Hd
++D,A,AB -)!V$223%%


t99
: . $+#8#8#:d 
  --d.C.CD -)!V$445##


t77
8 .r   c                     | j                   S )z(
        Gets the debug status.
        )_Configuration__debugrA   s    r   r6   zConfiguration.debug   s    
 <<r   c                 p   || _         | j                   rRt        | j                        D ]$  \  }}|j                  t        j
                         & dt        j                  _        yt        | j                        D ]$  \  }}|j                  t        j                         & dt        j                  _        y)zt
        Sets the debug status.

        :param value: The debug status, True or False.
        :type: bool
           r   N)
rP   r   r/   setLevelr0   DEBUGhttplibHTTPConnection
debuglevelWARNINGrL   s       r   r6   zConfiguration.debug   s     DL|| -)!V& . +,g' !-)!V( . +,g'r   c                     | j                   S )z)
        Gets the logger_format.
        )_Configuration__logger_formatrA   s    r   r2   zConfiguration.logger_format   s    
 r   c                 Z    || _         t        j                  | j                         | _        y)z
        Sets the logger_format.

        The logger_formatter will be updated when sets logger_format.

        :param value: The format string.
        :type: str
        N)rZ   r0   	FormatterrH   )rB   rM   s     r   r2   zConfiguration.logger_format   s%     !D#--d.B.BCDr   c                    | j                   j                  |      r=| j                  j                  |      r"| j                  |   dz   | j                   |   z   S | j                   j                  |      r| j                   |   S y)z
        Gets API key (with prefix if set).

        :param identifier: The identifier of apiKey.
        :return: The token for api key authentication.
         N)r+   getr,   )rB   
identifiers     r   get_api_key_with_prefixz%Configuration.get_api_key_with_prefix   ss     ||
#(;(;(?(?
(K  ,s2T\\*5MMM			*	%\\*%% 
&r   c                     t         j                  j                  | j                  dz   | j                  z         j                  d      S )z|
        Gets HTTP basic authentication header (string).

        :return: The token for basic HTTP authentication.
        :)
basic_authauthorization)r&   utilmake_headersr-   r.   r_   rA   s    r   get_basic_auth_tokenz"Configuration.get_basic_auth_token   s:     <<$$0Cdmm0S$TO,-r   c                 2    dddd| j                  d      diS )zo
        Gets Auth Settings dict for api client.

        :return: The Auth Settings information dict.
        BearerTokenr+   headerre   )r   inkeyrM   )ra   rA   s    r   auth_settingszConfiguration.auth_settings   s-     	"11/B	
 r   c                 `    dj                  t        j                  t        j                        S )zk
        Gets the essential information for debugging.

        :return: The report for debugging.
        zPython SDK Debug Report:
OS: {env}
Python Version: {pyversion}
Version of the API: v1.14.4
SDK Package Version: 10.0.0-snapshot)env	pyversion)formatsysplatformversionrA   s    r   to_debug_reportzConfiguration.to_debug_report   s$    2
 6cllckk6:;r   N)r   r   r   __doc__r   propertyr5   setterr6   r2   ra   rh   rn   rv    r   r   r!   r!   *   s    8(t   9 9>   	<<, ,,     
D 
D
&-;r   r!   )rw   
__future__r   r&   r   r0   r<   rs   sixr   r   	six.movesr   rU   r   r   objectr!   rz   r   r   <module>r      sH   	 '     
   ,&d &I;N?F; I;r   