File tree 1 file changed +4
-0
lines changed
src/unstract/api_deployments
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ def __init__(
54
54
api_timeout : int = 300 ,
55
55
logging_level : str = "INFO" ,
56
56
include_metadata : bool = False ,
57
+ verify : bool = True
57
58
):
58
59
"""Initializes the APIClient class.
59
60
@@ -86,6 +87,7 @@ def __init__(
86
87
self .api_url = api_url
87
88
self .__save_base_url (api_url )
88
89
self .include_metadata = include_metadata
90
+ self .verify = verify
89
91
90
92
def __save_base_url (self , full_url : str ):
91
93
"""Extracts the base URL from the full URL and saves it.
@@ -136,6 +138,7 @@ def structure_file(self, file_paths: list[str]) -> dict:
136
138
headers = headers ,
137
139
data = data ,
138
140
files = files ,
141
+ verify = self .verify ,
139
142
)
140
143
self .logger .debug (response .status_code )
141
144
self .logger .debug (response .text )
@@ -222,6 +225,7 @@ def check_execution_status(self, status_check_api_endpoint: str) -> dict:
222
225
status_call_url ,
223
226
headers = headers ,
224
227
params = {"include_metadata" : self .include_metadata },
228
+ verify = self .verify ,
225
229
)
226
230
self .logger .debug (response .status_code )
227
231
self .logger .debug (response .text )
You can’t perform that action at this time.
0 commit comments