MCPcopy Index your code
hub / github.com/kubernetes-client/python / __init__

Method __init__

kubernetes/client/api_client.py:68–82  ·  view source on GitHub ↗
(self, configuration=None, header_name=None, header_value=None,
                 cookie=None, pool_threads=1)

Source from the content-addressed store, hash-verified

66 _pool = None
67
68 def __init__(self, configuration=None, header_name=None, header_value=None,
69 cookie=None, pool_threads=1):
70 if configuration is None:
71 configuration = Configuration.get_default_copy()
72 self.configuration = configuration
73 self.pool_threads = pool_threads
74
75 self.rest_client = rest.RESTClientObject(configuration)
76 self.default_headers = {}
77 if header_name is not None:
78 self.default_headers[header_name] = header_value
79 self.cookie = cookie
80 # Set default User-Agent.
81 self.user_agent = 'OpenAPI-Generator/36.0.2/python'
82 self.client_side_validation = configuration.client_side_validation
83
84 def __enter__(self):
85 return self

Callers

nothing calls this directly

Calls 1

get_default_copyMethod · 0.45

Tested by

no test coverage detected