|
15 | 15 | from typing import Any, Dict, List, Optional, Tuple, Union |
16 | 16 | from typing_extensions import Annotated |
17 | 17 |
|
18 | | -from pydantic import StrictInt |
19 | | -from typing import Any |
| 18 | +from pydantic import StrictBytes, StrictInt, StrictStr |
| 19 | +from typing import Tuple, Union |
20 | 20 | from revengai.models.base_response_additional_details_status_response import BaseResponseAdditionalDetailsStatusResponse |
21 | 21 | from revengai.models.base_response_binaries_related_status_response import BaseResponseBinariesRelatedStatusResponse |
22 | 22 | from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse |
@@ -59,7 +59,7 @@ def download_zipped_binary( |
59 | 59 | _content_type: Optional[StrictStr] = None, |
60 | 60 | _headers: Optional[Dict[StrictStr, Any]] = None, |
61 | 61 | _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
62 | | - ) -> object: |
| 62 | + ) -> bytearray: |
63 | 63 | """Downloads a zipped binary with password protection |
64 | 64 |
|
65 | 65 |
|
@@ -96,7 +96,7 @@ def download_zipped_binary( |
96 | 96 | ) |
97 | 97 |
|
98 | 98 | _response_types_map: Dict[str, Optional[str]] = { |
99 | | - '200': "object", |
| 99 | + '200': "bytearray", |
100 | 100 | '422': "BaseResponse", |
101 | 101 | } |
102 | 102 | response_data = self.api_client.call_api( |
@@ -126,7 +126,7 @@ def download_zipped_binary_with_http_info( |
126 | 126 | _content_type: Optional[StrictStr] = None, |
127 | 127 | _headers: Optional[Dict[StrictStr, Any]] = None, |
128 | 128 | _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
129 | | - ) -> ApiResponse[object]: |
| 129 | + ) -> ApiResponse[bytearray]: |
130 | 130 | """Downloads a zipped binary with password protection |
131 | 131 |
|
132 | 132 |
|
@@ -163,7 +163,7 @@ def download_zipped_binary_with_http_info( |
163 | 163 | ) |
164 | 164 |
|
165 | 165 | _response_types_map: Dict[str, Optional[str]] = { |
166 | | - '200': "object", |
| 166 | + '200': "bytearray", |
167 | 167 | '422': "BaseResponse", |
168 | 168 | } |
169 | 169 | response_data = self.api_client.call_api( |
@@ -230,7 +230,7 @@ def download_zipped_binary_without_preload_content( |
230 | 230 | ) |
231 | 231 |
|
232 | 232 | _response_types_map: Dict[str, Optional[str]] = { |
233 | | - '200': "object", |
| 233 | + '200': "bytearray", |
234 | 234 | '422': "BaseResponse", |
235 | 235 | } |
236 | 236 | response_data = self.api_client.call_api( |
@@ -276,6 +276,7 @@ def _download_zipped_binary_serialize( |
276 | 276 | if 'Accept' not in _header_params: |
277 | 277 | _header_params['Accept'] = self.api_client.select_header_accept( |
278 | 278 | [ |
| 279 | + 'application/zip', |
279 | 280 | 'application/json' |
280 | 281 | ] |
281 | 282 | ) |
|
0 commit comments