(
self,
configuration=None,
header_name=None,
header_value=None,
cookie=None
)
| 45 | _pool = None |
| 46 | |
| 47 | def __init__( |
| 48 | self, |
| 49 | configuration=None, |
| 50 | header_name=None, |
| 51 | header_value=None, |
| 52 | cookie=None |
| 53 | ) -> None: |
| 54 | # use default configuration if none is provided |
| 55 | if configuration is None: |
| 56 | configuration = Configuration.get_default() |
| 57 | self.configuration = configuration |
| 58 | |
| 59 | self.rest_client = rest.RESTClientObject(configuration) |
| 60 | self.default_headers = {} |
| 61 | if header_name is not None: |
| 62 | self.default_headers[header_name] = header_value |
| 63 | self.cookie = cookie |
| 64 | # Set default User-Agent. |
| 65 | self.user_agent = 'python-client/2.0.26' |
| 66 | self.client_side_validation = configuration.client_side_validation |
| 67 | |
| 68 | def __enter__(self): |
| 69 | return self |
nothing calls this directly
no test coverage detected