|
15 | 15 | from typing import Any, Dict, List, Optional, Tuple, Union |
16 | 16 | from typing_extensions import Annotated |
17 | 17 |
|
18 | | -from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr |
19 | | -from typing import Any, List, Optional, Tuple, Union |
| 18 | +from pydantic import Field, StrictBool, StrictInt, StrictStr |
| 19 | +from typing import Any, List, Optional |
20 | 20 | from typing_extensions import Annotated |
21 | 21 | from revengai.models.analysis_create_request import AnalysisCreateRequest |
22 | 22 | from revengai.models.analysis_update_request import AnalysisUpdateRequest |
@@ -5058,7 +5058,7 @@ def _update_analysis_tags_serialize( |
5058 | 5058 | def upload_file( |
5059 | 5059 | self, |
5060 | 5060 | upload_file_type: UploadFileType, |
5061 | | - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], |
| 5061 | + file: StrictStr, |
5062 | 5062 | packed_password: Optional[StrictStr] = None, |
5063 | 5063 | endpoint_url: Optional[StrictStr] = None, |
5064 | 5064 | local_cache_dir: Optional[StrictStr] = None, |
@@ -5086,7 +5086,7 @@ def upload_file( |
5086 | 5086 | :param upload_file_type: (required) |
5087 | 5087 | :type upload_file_type: UploadFileType |
5088 | 5088 | :param file: (required) |
5089 | | - :type file: bytearray |
| 5089 | + :type file: str |
5090 | 5090 | :param packed_password: |
5091 | 5091 | :type packed_password: str |
5092 | 5092 | :param endpoint_url: |
@@ -5161,7 +5161,7 @@ def upload_file( |
5161 | 5161 | def upload_file_with_http_info( |
5162 | 5162 | self, |
5163 | 5163 | upload_file_type: UploadFileType, |
5164 | | - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], |
| 5164 | + file: StrictStr, |
5165 | 5165 | packed_password: Optional[StrictStr] = None, |
5166 | 5166 | endpoint_url: Optional[StrictStr] = None, |
5167 | 5167 | local_cache_dir: Optional[StrictStr] = None, |
@@ -5189,7 +5189,7 @@ def upload_file_with_http_info( |
5189 | 5189 | :param upload_file_type: (required) |
5190 | 5190 | :type upload_file_type: UploadFileType |
5191 | 5191 | :param file: (required) |
5192 | | - :type file: bytearray |
| 5192 | + :type file: str |
5193 | 5193 | :param packed_password: |
5194 | 5194 | :type packed_password: str |
5195 | 5195 | :param endpoint_url: |
@@ -5264,7 +5264,7 @@ def upload_file_with_http_info( |
5264 | 5264 | def upload_file_without_preload_content( |
5265 | 5265 | self, |
5266 | 5266 | upload_file_type: UploadFileType, |
5267 | | - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], |
| 5267 | + file: StrictStr, |
5268 | 5268 | packed_password: Optional[StrictStr] = None, |
5269 | 5269 | endpoint_url: Optional[StrictStr] = None, |
5270 | 5270 | local_cache_dir: Optional[StrictStr] = None, |
@@ -5292,7 +5292,7 @@ def upload_file_without_preload_content( |
5292 | 5292 | :param upload_file_type: (required) |
5293 | 5293 | :type upload_file_type: UploadFileType |
5294 | 5294 | :param file: (required) |
5295 | | - :type file: bytearray |
| 5295 | + :type file: str |
5296 | 5296 | :param packed_password: |
5297 | 5297 | :type packed_password: str |
5298 | 5298 | :param endpoint_url: |
@@ -5426,7 +5426,7 @@ def _upload_file_serialize( |
5426 | 5426 | if upload_file_type is not None: |
5427 | 5427 | _form_params.append(('upload_file_type', upload_file_type)) |
5428 | 5428 | if file is not None: |
5429 | | - _files['file'] = file |
| 5429 | + _form_params.append(('file', file)) |
5430 | 5430 | if force_overwrite is not None: |
5431 | 5431 | _form_params.append(('force_overwrite', force_overwrite)) |
5432 | 5432 | # process the body parameter |
|
0 commit comments