コード例 #1
0
ファイル: api_client.py プロジェクト: Danish1231/python-4
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None,
                 pool_threads=1):
        if configuration is None:
            configuration = Configuration.get_default_copy()
        self.configuration = configuration
        self.pool_threads = pool_threads

        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'OpenAPI-Generator/17.0.0-snapshot/python'
        self.client_side_validation = configuration.client_side_validation
コード例 #2
0
 def __init__(self):
     self.configuration = Configuration.get_default_copy()