Skip to content

Commit

Permalink
[client] Fix OpenCTIApiClient parameter types (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
OBarronCS authored Feb 13, 2025
1 parent 96ea9d2 commit 53a2461
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pycti/api/opencti_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import datetime
import io
import json
from typing import Union
from typing import Dict, Tuple, Union

import magic
import requests
Expand Down Expand Up @@ -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
Expand All @@ -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,
):
Expand Down

0 comments on commit 53a2461

Please sign in to comment.