diff --git a/pycti/api/opencti_api_client.py b/pycti/api/opencti_api_client.py index ffdc0eb9..365e34cb 100644 --- a/pycti/api/opencti_api_client.py +++ b/pycti/api/opencti_api_client.py @@ -3,7 +3,7 @@ import datetime import io import json -from typing import Union +from typing import Dict, Tuple, Union import magic import requests @@ -83,13 +83,13 @@ class OpenCTIApiClient: :param log_level: log level for the client :type log_level: str, optional :param ssl_verify: Requiring the requests to verify the TLS certificate at the server. - :type ssl_verify: bool, optional + :type ssl_verify: bool, str, optional :param proxies: :type proxies: dict, optional, The proxy configuration, would have `http` and `https` attributes. Defaults to {} ``` proxies: { - "http: "http://my_proxy:8080" - "https: "http://my_proxy:8080" + "http": "http://my_proxy:8080" + "https": "http://my_proxy:8080" } ``` :param json_logging: format the logs as json if set to True @@ -102,14 +102,14 @@ class OpenCTIApiClient: def __init__( self, - url, - token, + url: str, + token: str, log_level="info", - ssl_verify=False, - proxies=None, + ssl_verify: Union[bool, str] = False, + proxies: Union[Dict[str, str], None] = None, json_logging=False, bundle_send_to_queue=True, - cert=None, + cert: Union[str, Tuple[str, str], None] = None, auth=None, perform_health_check=True, ):