revengai 2.74.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. revengai/__init__.py +647 -0
  2. revengai/api/__init__.py +22 -0
  3. revengai/api/analyses_comments_api.py +1198 -0
  4. revengai/api/analyses_core_api.py +3870 -0
  5. revengai/api/analyses_dynamic_execution_api.py +1884 -0
  6. revengai/api/analyses_results_metadata_api.py +2240 -0
  7. revengai/api/analyses_security_checks_api.py +862 -0
  8. revengai/api/authentication_users_api.py +1323 -0
  9. revengai/api/binaries_api.py +1610 -0
  10. revengai/api/collections_api.py +2167 -0
  11. revengai/api/external_sources_api.py +827 -0
  12. revengai/api/firmware_api.py +592 -0
  13. revengai/api/functions_ai_decompilation_api.py +2592 -0
  14. revengai/api/functions_block_comments_api.py +849 -0
  15. revengai/api/functions_core_api.py +3430 -0
  16. revengai/api/functions_data_types_api.py +1746 -0
  17. revengai/api/functions_decompilation_api.py +1198 -0
  18. revengai/api/functions_renaming_history_api.py +1151 -0
  19. revengai/api/models_api.py +284 -0
  20. revengai/api/search_api.py +1454 -0
  21. revengai/api_client.py +803 -0
  22. revengai/api_response.py +21 -0
  23. revengai/configuration.py +605 -0
  24. revengai/exceptions.py +215 -0
  25. revengai/models/__init__.py +298 -0
  26. revengai/models/addr.py +143 -0
  27. revengai/models/ai_decompilation_rating.py +37 -0
  28. revengai/models/ai_unstrip_request.py +86 -0
  29. revengai/models/analysis_access_info.py +88 -0
  30. revengai/models/analysis_config.py +106 -0
  31. revengai/models/analysis_create_request.py +131 -0
  32. revengai/models/analysis_create_response.py +88 -0
  33. revengai/models/analysis_detail_response.py +121 -0
  34. revengai/models/analysis_function_mapping.py +90 -0
  35. revengai/models/analysis_function_matching_request.py +110 -0
  36. revengai/models/analysis_functions.py +94 -0
  37. revengai/models/analysis_functions_list.py +94 -0
  38. revengai/models/analysis_record.py +128 -0
  39. revengai/models/analysis_scope.py +36 -0
  40. revengai/models/analysis_strings_response.py +96 -0
  41. revengai/models/analysis_tags.py +94 -0
  42. revengai/models/analysis_update_request.py +108 -0
  43. revengai/models/analysis_update_tags_request.py +86 -0
  44. revengai/models/analysis_update_tags_response.py +94 -0
  45. revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py +38 -0
  46. revengai/models/app_api_rest_v2_analyses_enums_order_by.py +37 -0
  47. revengai/models/app_api_rest_v2_collections_enums_order_by.py +40 -0
  48. revengai/models/app_api_rest_v2_functions_responses_function.py +93 -0
  49. revengai/models/app_api_rest_v2_functions_types_function.py +110 -0
  50. revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py +86 -0
  51. revengai/models/argument.py +99 -0
  52. revengai/models/auto_unstrip_request.py +99 -0
  53. revengai/models/auto_unstrip_response.py +129 -0
  54. revengai/models/base_response.py +124 -0
  55. revengai/models/base_response_analysis_create_response.py +125 -0
  56. revengai/models/base_response_analysis_detail_response.py +125 -0
  57. revengai/models/base_response_analysis_function_mapping.py +125 -0
  58. revengai/models/base_response_analysis_functions.py +125 -0
  59. revengai/models/base_response_analysis_functions_list.py +125 -0
  60. revengai/models/base_response_analysis_strings_response.py +125 -0
  61. revengai/models/base_response_analysis_tags.py +125 -0
  62. revengai/models/base_response_analysis_update_tags_response.py +125 -0
  63. revengai/models/base_response_basic.py +125 -0
  64. revengai/models/base_response_binary_additional_response.py +125 -0
  65. revengai/models/base_response_binary_details_response.py +125 -0
  66. revengai/models/base_response_binary_externals_response.py +125 -0
  67. revengai/models/base_response_binary_search_response.py +125 -0
  68. revengai/models/base_response_block_comments_generation_for_function_response.py +125 -0
  69. revengai/models/base_response_block_comments_overview_generation_response.py +116 -0
  70. revengai/models/base_response_bool.py +121 -0
  71. revengai/models/base_response_callees_caller_functions_response.py +125 -0
  72. revengai/models/base_response_capabilities.py +125 -0
  73. revengai/models/base_response_check_security_checks_task_response.py +125 -0
  74. revengai/models/base_response_child_binaries_response.py +125 -0
  75. revengai/models/base_response_collection_binaries_update_response.py +125 -0
  76. revengai/models/base_response_collection_response.py +125 -0
  77. revengai/models/base_response_collection_search_response.py +125 -0
  78. revengai/models/base_response_collection_tags_update_response.py +125 -0
  79. revengai/models/base_response_comment_response.py +125 -0
  80. revengai/models/base_response_communities.py +125 -0
  81. revengai/models/base_response_created.py +125 -0
  82. revengai/models/base_response_dict.py +121 -0
  83. revengai/models/base_response_dynamic_execution_status.py +125 -0
  84. revengai/models/base_response_external_response.py +125 -0
  85. revengai/models/base_response_function_blocks_response.py +125 -0
  86. revengai/models/base_response_function_capability_response.py +125 -0
  87. revengai/models/base_response_function_data_types.py +125 -0
  88. revengai/models/base_response_function_data_types_list.py +125 -0
  89. revengai/models/base_response_function_search_response.py +125 -0
  90. revengai/models/base_response_function_strings_response.py +125 -0
  91. revengai/models/base_response_function_task_response.py +125 -0
  92. revengai/models/base_response_functions_detail_response.py +125 -0
  93. revengai/models/base_response_generate_function_data_types.py +125 -0
  94. revengai/models/base_response_generation_status_list.py +125 -0
  95. revengai/models/base_response_get_ai_decompilation_rating_response.py +125 -0
  96. revengai/models/base_response_get_ai_decompilation_task.py +125 -0
  97. revengai/models/base_response_get_me_response.py +125 -0
  98. revengai/models/base_response_get_public_user_response.py +125 -0
  99. revengai/models/base_response_list_collection_results.py +125 -0
  100. revengai/models/base_response_list_comment_response.py +129 -0
  101. revengai/models/base_response_list_die_match.py +129 -0
  102. revengai/models/base_response_list_function_name_history.py +129 -0
  103. revengai/models/base_response_list_sbom.py +129 -0
  104. revengai/models/base_response_list_user_activity_response.py +129 -0
  105. revengai/models/base_response_login_response.py +125 -0
  106. revengai/models/base_response_logs.py +125 -0
  107. revengai/models/base_response_models_response.py +125 -0
  108. revengai/models/base_response_network_overview_response.py +125 -0
  109. revengai/models/base_response_params.py +125 -0
  110. revengai/models/base_response_process_dumps.py +125 -0
  111. revengai/models/base_response_process_registry.py +125 -0
  112. revengai/models/base_response_process_tree.py +125 -0
  113. revengai/models/base_response_queued_security_checks_task_response.py +125 -0
  114. revengai/models/base_response_recent.py +125 -0
  115. revengai/models/base_response_security_checks_response.py +125 -0
  116. revengai/models/base_response_status.py +125 -0
  117. revengai/models/base_response_str.py +121 -0
  118. revengai/models/base_response_tag_search_response.py +125 -0
  119. revengai/models/base_response_task_response.py +125 -0
  120. revengai/models/base_response_ttps.py +125 -0
  121. revengai/models/base_response_upload_response.py +125 -0
  122. revengai/models/base_response_vulnerabilities.py +125 -0
  123. revengai/models/basic.py +116 -0
  124. revengai/models/binary_additional_details_data_response.py +112 -0
  125. revengai/models/binary_additional_response.py +105 -0
  126. revengai/models/binary_config.py +108 -0
  127. revengai/models/binary_details_response.py +125 -0
  128. revengai/models/binary_externals_response.py +95 -0
  129. revengai/models/binary_search_response.py +94 -0
  130. revengai/models/binary_search_result.py +108 -0
  131. revengai/models/binary_task_status.py +39 -0
  132. revengai/models/block.py +86 -0
  133. revengai/models/block_comments_generation_for_function_response.py +86 -0
  134. revengai/models/callee_function_info.py +106 -0
  135. revengai/models/callees_caller_functions_response.py +106 -0
  136. revengai/models/caller_function_info.py +106 -0
  137. revengai/models/capabilities.py +94 -0
  138. revengai/models/capability.py +90 -0
  139. revengai/models/check_security_checks_task_response.py +87 -0
  140. revengai/models/child_binaries_response.py +104 -0
  141. revengai/models/code_signature_model.py +98 -0
  142. revengai/models/collection_binaries_update_request.py +86 -0
  143. revengai/models/collection_binaries_update_response.py +94 -0
  144. revengai/models/collection_binary_response.py +97 -0
  145. revengai/models/collection_create_request.py +107 -0
  146. revengai/models/collection_list_item.py +112 -0
  147. revengai/models/collection_response.py +131 -0
  148. revengai/models/collection_response_binaries_inner.py +135 -0
  149. revengai/models/collection_scope.py +38 -0
  150. revengai/models/collection_search_response.py +94 -0
  151. revengai/models/collection_search_result.py +124 -0
  152. revengai/models/collection_tags_update_request.py +86 -0
  153. revengai/models/collection_tags_update_response.py +86 -0
  154. revengai/models/collection_update_request.py +106 -0
  155. revengai/models/comment_base.py +86 -0
  156. revengai/models/comment_response.py +110 -0
  157. revengai/models/comment_update_request.py +86 -0
  158. revengai/models/communities.py +100 -0
  159. revengai/models/community_match_percentages.py +92 -0
  160. revengai/models/confidence_type.py +39 -0
  161. revengai/models/context.py +141 -0
  162. revengai/models/created.py +90 -0
  163. revengai/models/decompilation_comment_context.py +98 -0
  164. revengai/models/die_match.py +92 -0
  165. revengai/models/dynamic_execution_status_input.py +38 -0
  166. revengai/models/elf_dynamic_entry.py +88 -0
  167. revengai/models/elf_import_model.py +88 -0
  168. revengai/models/elf_model.py +179 -0
  169. revengai/models/elf_relocation.py +98 -0
  170. revengai/models/elf_section.py +104 -0
  171. revengai/models/elf_security.py +94 -0
  172. revengai/models/elf_segment.py +102 -0
  173. revengai/models/elf_symbol.py +98 -0
  174. revengai/models/entrypoint_model.py +88 -0
  175. revengai/models/enumeration.py +97 -0
  176. revengai/models/error_model.py +88 -0
  177. revengai/models/export_model.py +88 -0
  178. revengai/models/external_response.py +91 -0
  179. revengai/models/file_format.py +37 -0
  180. revengai/models/file_hashes.py +140 -0
  181. revengai/models/file_metadata.py +96 -0
  182. revengai/models/filters.py +39 -0
  183. revengai/models/function_block_destination_response.py +95 -0
  184. revengai/models/function_block_response.py +109 -0
  185. revengai/models/function_blocks_response.py +121 -0
  186. revengai/models/function_boundary.py +90 -0
  187. revengai/models/function_capability_response.py +86 -0
  188. revengai/models/function_comment_create_request.py +92 -0
  189. revengai/models/function_data_types.py +106 -0
  190. revengai/models/function_data_types_list.py +98 -0
  191. revengai/models/function_data_types_list_item.py +108 -0
  192. revengai/models/function_data_types_params.py +86 -0
  193. revengai/models/function_data_types_status.py +90 -0
  194. revengai/models/function_header.py +112 -0
  195. revengai/models/function_info_input.py +105 -0
  196. revengai/models/function_info_input_func_deps_inner.py +163 -0
  197. revengai/models/function_info_output.py +105 -0
  198. revengai/models/function_list_item.py +96 -0
  199. revengai/models/function_local_variable_response.py +94 -0
  200. revengai/models/function_mapping.py +90 -0
  201. revengai/models/function_mapping_full.py +275 -0
  202. revengai/models/function_match.py +111 -0
  203. revengai/models/function_matching_filters.py +103 -0
  204. revengai/models/function_matching_request.py +114 -0
  205. revengai/models/function_matching_response.py +157 -0
  206. revengai/models/function_name_history.py +99 -0
  207. revengai/models/function_param_response.py +94 -0
  208. revengai/models/function_rename.py +88 -0
  209. revengai/models/function_rename_map.py +90 -0
  210. revengai/models/function_search_response.py +94 -0
  211. revengai/models/function_search_result.py +99 -0
  212. revengai/models/function_source_type.py +39 -0
  213. revengai/models/function_string.py +88 -0
  214. revengai/models/function_strings_response.py +96 -0
  215. revengai/models/function_task_response.py +94 -0
  216. revengai/models/function_task_status.py +39 -0
  217. revengai/models/function_type_input.py +127 -0
  218. revengai/models/function_type_output.py +127 -0
  219. revengai/models/functions_detail_response.py +125 -0
  220. revengai/models/functions_list_rename.py +94 -0
  221. revengai/models/generate_function_data_types.py +94 -0
  222. revengai/models/generation_status_list.py +98 -0
  223. revengai/models/get_ai_decompilation_rating_response.py +94 -0
  224. revengai/models/get_ai_decompilation_task.py +159 -0
  225. revengai/models/get_me_response.py +108 -0
  226. revengai/models/get_public_user_response.py +88 -0
  227. revengai/models/global_variable.py +101 -0
  228. revengai/models/icon_model.py +91 -0
  229. revengai/models/import_model.py +88 -0
  230. revengai/models/inverse_function_map_item.py +99 -0
  231. revengai/models/inverse_string_map_item.py +93 -0
  232. revengai/models/inverse_value.py +86 -0
  233. revengai/models/isa.py +37 -0
  234. revengai/models/list_collection_results.py +94 -0
  235. revengai/models/login_request.py +89 -0
  236. revengai/models/login_response.py +86 -0
  237. revengai/models/logs.py +86 -0
  238. revengai/models/matched_function.py +116 -0
  239. revengai/models/matched_function_suggestion.py +97 -0
  240. revengai/models/meta_model.py +95 -0
  241. revengai/models/model_name.py +40 -0
  242. revengai/models/models_response.py +86 -0
  243. revengai/models/name_confidence.py +89 -0
  244. revengai/models/network_overview_dns.py +98 -0
  245. revengai/models/network_overview_dns_answer.py +88 -0
  246. revengai/models/network_overview_metadata.py +99 -0
  247. revengai/models/network_overview_response.py +104 -0
  248. revengai/models/order.py +36 -0
  249. revengai/models/pagination_model.py +90 -0
  250. revengai/models/params.py +103 -0
  251. revengai/models/pdb_debug_model.py +94 -0
  252. revengai/models/pe_model.py +215 -0
  253. revengai/models/platform.py +36 -0
  254. revengai/models/process.py +103 -0
  255. revengai/models/process_dump.py +96 -0
  256. revengai/models/process_dump_metadata.py +90 -0
  257. revengai/models/process_dumps.py +92 -0
  258. revengai/models/process_dumps_data.py +96 -0
  259. revengai/models/process_registry.py +105 -0
  260. revengai/models/process_tree.py +96 -0
  261. revengai/models/queued_security_checks_task_response.py +86 -0
  262. revengai/models/re_analysis_form.py +101 -0
  263. revengai/models/recent.py +94 -0
  264. revengai/models/registry.py +102 -0
  265. revengai/models/relative_binary_response.py +90 -0
  266. revengai/models/sandbox_options.py +88 -0
  267. revengai/models/sbom.py +96 -0
  268. revengai/models/sbom_package.py +88 -0
  269. revengai/models/scrape_third_party_config.py +86 -0
  270. revengai/models/section_model.py +96 -0
  271. revengai/models/security_checks_response.py +98 -0
  272. revengai/models/security_checks_result.py +103 -0
  273. revengai/models/security_model.py +106 -0
  274. revengai/models/severity_type.py +40 -0
  275. revengai/models/single_code_certificate_model.py +96 -0
  276. revengai/models/single_code_signature_model.py +96 -0
  277. revengai/models/single_pdb_entry_model.py +90 -0
  278. revengai/models/single_section_model.py +98 -0
  279. revengai/models/stack_variable.py +101 -0
  280. revengai/models/status_input.py +40 -0
  281. revengai/models/status_output.py +88 -0
  282. revengai/models/string_functions.py +96 -0
  283. revengai/models/structure.py +117 -0
  284. revengai/models/structure_member.py +99 -0
  285. revengai/models/symbols.py +96 -0
  286. revengai/models/tag.py +86 -0
  287. revengai/models/tag_item.py +95 -0
  288. revengai/models/tag_response.py +88 -0
  289. revengai/models/tag_search_response.py +94 -0
  290. revengai/models/tag_search_result.py +88 -0
  291. revengai/models/task_response.py +94 -0
  292. revengai/models/task_status.py +39 -0
  293. revengai/models/timestamp_model.py +90 -0
  294. revengai/models/ttps.py +92 -0
  295. revengai/models/ttps_attack.py +88 -0
  296. revengai/models/ttps_data.py +96 -0
  297. revengai/models/ttps_element.py +108 -0
  298. revengai/models/ttps_occurance.py +88 -0
  299. revengai/models/type_definition.py +97 -0
  300. revengai/models/update_function_data_types.py +92 -0
  301. revengai/models/upload_file_type.py +38 -0
  302. revengai/models/upload_response.py +91 -0
  303. revengai/models/upsert_ai_decomplation_rating_request.py +94 -0
  304. revengai/models/user_activity_response.py +97 -0
  305. revengai/models/vulnerabilities.py +94 -0
  306. revengai/models/vulnerability.py +113 -0
  307. revengai/models/vulnerability_type.py +40 -0
  308. revengai/models/workspace.py +37 -0
  309. revengai/py.typed +0 -0
  310. revengai/rest.py +257 -0
  311. revengai-2.74.0.dist-info/METADATA +447 -0
  312. revengai-2.74.0.dist-info/RECORD +314 -0
  313. revengai-2.74.0.dist-info/WHEEL +4 -0
  314. revengai-2.74.0.dist-info/licenses/LICENSE.md +19 -0
@@ -0,0 +1,1610 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ RevEng.AI API
5
+
6
+ RevEng.AI is Similarity Search Engine for executable binaries
7
+
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+ import warnings
14
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
+ from typing import Any, Dict, List, Optional, Tuple, Union
16
+ from typing_extensions import Annotated
17
+
18
+ from pydantic import StrictInt
19
+ from typing import Any
20
+ from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse
21
+ from revengai.models.base_response_binary_details_response import BaseResponseBinaryDetailsResponse
22
+ from revengai.models.base_response_binary_externals_response import BaseResponseBinaryExternalsResponse
23
+ from revengai.models.base_response_child_binaries_response import BaseResponseChildBinariesResponse
24
+ from revengai.models.base_response_list_die_match import BaseResponseListDieMatch
25
+
26
+ from revengai.api_client import ApiClient, RequestSerialized
27
+ from revengai.api_response import ApiResponse
28
+ from revengai.rest import RESTResponseType
29
+
30
+
31
+ class BinariesApi:
32
+ """NOTE: This class is auto generated by OpenAPI Generator
33
+ Ref: https://openapi-generator.tech
34
+
35
+ Do not edit the class manually.
36
+ """
37
+
38
+ def __init__(self, api_client=None) -> None:
39
+ if api_client is None:
40
+ api_client = ApiClient.get_default()
41
+ self.api_client = api_client
42
+
43
+
44
+ @validate_call
45
+ def download_zipped_binary(
46
+ self,
47
+ binary_id: StrictInt,
48
+ _request_timeout: Union[
49
+ None,
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Tuple[
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Annotated[StrictFloat, Field(gt=0)]
54
+ ]
55
+ ] = None,
56
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
+ _content_type: Optional[StrictStr] = None,
58
+ _headers: Optional[Dict[StrictStr, Any]] = None,
59
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
+ ) -> object:
61
+ """Downloads a zipped binary with password protection
62
+
63
+
64
+ :param binary_id: (required)
65
+ :type binary_id: int
66
+ :param _request_timeout: timeout setting for this request. If one
67
+ number provided, it will be total request
68
+ timeout. It can also be a pair (tuple) of
69
+ (connection, read) timeouts.
70
+ :type _request_timeout: int, tuple(int, int), optional
71
+ :param _request_auth: set to override the auth_settings for an a single
72
+ request; this effectively ignores the
73
+ authentication in the spec for a single request.
74
+ :type _request_auth: dict, optional
75
+ :param _content_type: force content-type for the request.
76
+ :type _content_type: str, Optional
77
+ :param _headers: set to override the headers for a single
78
+ request; this effectively ignores the headers
79
+ in the spec for a single request.
80
+ :type _headers: dict, optional
81
+ :param _host_index: set to override the host_index for a single
82
+ request; this effectively ignores the host_index
83
+ in the spec for a single request.
84
+ :type _host_index: int, optional
85
+ :return: Returns the result object.
86
+ """ # noqa: E501
87
+
88
+ _param = self._download_zipped_binary_serialize(
89
+ binary_id=binary_id,
90
+ _request_auth=_request_auth,
91
+ _content_type=_content_type,
92
+ _headers=_headers,
93
+ _host_index=_host_index
94
+ )
95
+
96
+ _response_types_map: Dict[str, Optional[str]] = {
97
+ '200': "object",
98
+ '422': "BaseResponse",
99
+ }
100
+ response_data = self.api_client.call_api(
101
+ *_param,
102
+ _request_timeout=_request_timeout
103
+ )
104
+ response_data.read()
105
+ return self.api_client.response_deserialize(
106
+ response_data=response_data,
107
+ response_types_map=_response_types_map,
108
+ ).data
109
+
110
+
111
+ @validate_call
112
+ def download_zipped_binary_with_http_info(
113
+ self,
114
+ binary_id: StrictInt,
115
+ _request_timeout: Union[
116
+ None,
117
+ Annotated[StrictFloat, Field(gt=0)],
118
+ Tuple[
119
+ Annotated[StrictFloat, Field(gt=0)],
120
+ Annotated[StrictFloat, Field(gt=0)]
121
+ ]
122
+ ] = None,
123
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
124
+ _content_type: Optional[StrictStr] = None,
125
+ _headers: Optional[Dict[StrictStr, Any]] = None,
126
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
+ ) -> ApiResponse[object]:
128
+ """Downloads a zipped binary with password protection
129
+
130
+
131
+ :param binary_id: (required)
132
+ :type binary_id: int
133
+ :param _request_timeout: timeout setting for this request. If one
134
+ number provided, it will be total request
135
+ timeout. It can also be a pair (tuple) of
136
+ (connection, read) timeouts.
137
+ :type _request_timeout: int, tuple(int, int), optional
138
+ :param _request_auth: set to override the auth_settings for an a single
139
+ request; this effectively ignores the
140
+ authentication in the spec for a single request.
141
+ :type _request_auth: dict, optional
142
+ :param _content_type: force content-type for the request.
143
+ :type _content_type: str, Optional
144
+ :param _headers: set to override the headers for a single
145
+ request; this effectively ignores the headers
146
+ in the spec for a single request.
147
+ :type _headers: dict, optional
148
+ :param _host_index: set to override the host_index for a single
149
+ request; this effectively ignores the host_index
150
+ in the spec for a single request.
151
+ :type _host_index: int, optional
152
+ :return: Returns the result object.
153
+ """ # noqa: E501
154
+
155
+ _param = self._download_zipped_binary_serialize(
156
+ binary_id=binary_id,
157
+ _request_auth=_request_auth,
158
+ _content_type=_content_type,
159
+ _headers=_headers,
160
+ _host_index=_host_index
161
+ )
162
+
163
+ _response_types_map: Dict[str, Optional[str]] = {
164
+ '200': "object",
165
+ '422': "BaseResponse",
166
+ }
167
+ response_data = self.api_client.call_api(
168
+ *_param,
169
+ _request_timeout=_request_timeout
170
+ )
171
+ response_data.read()
172
+ return self.api_client.response_deserialize(
173
+ response_data=response_data,
174
+ response_types_map=_response_types_map,
175
+ )
176
+
177
+
178
+ @validate_call
179
+ def download_zipped_binary_without_preload_content(
180
+ self,
181
+ binary_id: StrictInt,
182
+ _request_timeout: Union[
183
+ None,
184
+ Annotated[StrictFloat, Field(gt=0)],
185
+ Tuple[
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Annotated[StrictFloat, Field(gt=0)]
188
+ ]
189
+ ] = None,
190
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
191
+ _content_type: Optional[StrictStr] = None,
192
+ _headers: Optional[Dict[StrictStr, Any]] = None,
193
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
194
+ ) -> RESTResponseType:
195
+ """Downloads a zipped binary with password protection
196
+
197
+
198
+ :param binary_id: (required)
199
+ :type binary_id: int
200
+ :param _request_timeout: timeout setting for this request. If one
201
+ number provided, it will be total request
202
+ timeout. It can also be a pair (tuple) of
203
+ (connection, read) timeouts.
204
+ :type _request_timeout: int, tuple(int, int), optional
205
+ :param _request_auth: set to override the auth_settings for an a single
206
+ request; this effectively ignores the
207
+ authentication in the spec for a single request.
208
+ :type _request_auth: dict, optional
209
+ :param _content_type: force content-type for the request.
210
+ :type _content_type: str, Optional
211
+ :param _headers: set to override the headers for a single
212
+ request; this effectively ignores the headers
213
+ in the spec for a single request.
214
+ :type _headers: dict, optional
215
+ :param _host_index: set to override the host_index for a single
216
+ request; this effectively ignores the host_index
217
+ in the spec for a single request.
218
+ :type _host_index: int, optional
219
+ :return: Returns the result object.
220
+ """ # noqa: E501
221
+
222
+ _param = self._download_zipped_binary_serialize(
223
+ binary_id=binary_id,
224
+ _request_auth=_request_auth,
225
+ _content_type=_content_type,
226
+ _headers=_headers,
227
+ _host_index=_host_index
228
+ )
229
+
230
+ _response_types_map: Dict[str, Optional[str]] = {
231
+ '200': "object",
232
+ '422': "BaseResponse",
233
+ }
234
+ response_data = self.api_client.call_api(
235
+ *_param,
236
+ _request_timeout=_request_timeout
237
+ )
238
+ return response_data.response
239
+
240
+
241
+ def _download_zipped_binary_serialize(
242
+ self,
243
+ binary_id,
244
+ _request_auth,
245
+ _content_type,
246
+ _headers,
247
+ _host_index,
248
+ ) -> RequestSerialized:
249
+
250
+ _host = None
251
+
252
+ _collection_formats: Dict[str, str] = {
253
+ }
254
+
255
+ _path_params: Dict[str, str] = {}
256
+ _query_params: List[Tuple[str, str]] = []
257
+ _header_params: Dict[str, Optional[str]] = _headers or {}
258
+ _form_params: List[Tuple[str, str]] = []
259
+ _files: Dict[
260
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
261
+ ] = {}
262
+ _body_params: Optional[bytes] = None
263
+
264
+ # process the path parameters
265
+ if binary_id is not None:
266
+ _path_params['binary_id'] = binary_id
267
+ # process the query parameters
268
+ # process the header parameters
269
+ # process the form parameters
270
+ # process the body parameter
271
+
272
+
273
+ # set the HTTP header `Accept`
274
+ if 'Accept' not in _header_params:
275
+ _header_params['Accept'] = self.api_client.select_header_accept(
276
+ [
277
+ 'application/json'
278
+ ]
279
+ )
280
+
281
+
282
+ # authentication setting
283
+ _auth_settings: List[str] = [
284
+ 'APIKey'
285
+ ]
286
+
287
+ return self.api_client.param_serialize(
288
+ method='GET',
289
+ resource_path='/v2/binaries/{binary_id}/download-zipped',
290
+ path_params=_path_params,
291
+ query_params=_query_params,
292
+ header_params=_header_params,
293
+ body=_body_params,
294
+ post_params=_form_params,
295
+ files=_files,
296
+ auth_settings=_auth_settings,
297
+ collection_formats=_collection_formats,
298
+ _host=_host,
299
+ _request_auth=_request_auth
300
+ )
301
+
302
+
303
+
304
+
305
+ @validate_call
306
+ def get_binary_additional_details(
307
+ self,
308
+ binary_id: StrictInt,
309
+ _request_timeout: Union[
310
+ None,
311
+ Annotated[StrictFloat, Field(gt=0)],
312
+ Tuple[
313
+ Annotated[StrictFloat, Field(gt=0)],
314
+ Annotated[StrictFloat, Field(gt=0)]
315
+ ]
316
+ ] = None,
317
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
318
+ _content_type: Optional[StrictStr] = None,
319
+ _headers: Optional[Dict[StrictStr, Any]] = None,
320
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
321
+ ) -> BaseResponseBinaryAdditionalResponse:
322
+ """Gets the additional details of a binary
323
+
324
+
325
+ :param binary_id: (required)
326
+ :type binary_id: int
327
+ :param _request_timeout: timeout setting for this request. If one
328
+ number provided, it will be total request
329
+ timeout. It can also be a pair (tuple) of
330
+ (connection, read) timeouts.
331
+ :type _request_timeout: int, tuple(int, int), optional
332
+ :param _request_auth: set to override the auth_settings for an a single
333
+ request; this effectively ignores the
334
+ authentication in the spec for a single request.
335
+ :type _request_auth: dict, optional
336
+ :param _content_type: force content-type for the request.
337
+ :type _content_type: str, Optional
338
+ :param _headers: set to override the headers for a single
339
+ request; this effectively ignores the headers
340
+ in the spec for a single request.
341
+ :type _headers: dict, optional
342
+ :param _host_index: set to override the host_index for a single
343
+ request; this effectively ignores the host_index
344
+ in the spec for a single request.
345
+ :type _host_index: int, optional
346
+ :return: Returns the result object.
347
+ """ # noqa: E501
348
+
349
+ _param = self._get_binary_additional_details_serialize(
350
+ binary_id=binary_id,
351
+ _request_auth=_request_auth,
352
+ _content_type=_content_type,
353
+ _headers=_headers,
354
+ _host_index=_host_index
355
+ )
356
+
357
+ _response_types_map: Dict[str, Optional[str]] = {
358
+ '200': "BaseResponseBinaryAdditionalResponse",
359
+ '422': "BaseResponse",
360
+ }
361
+ response_data = self.api_client.call_api(
362
+ *_param,
363
+ _request_timeout=_request_timeout
364
+ )
365
+ response_data.read()
366
+ return self.api_client.response_deserialize(
367
+ response_data=response_data,
368
+ response_types_map=_response_types_map,
369
+ ).data
370
+
371
+
372
+ @validate_call
373
+ def get_binary_additional_details_with_http_info(
374
+ self,
375
+ binary_id: StrictInt,
376
+ _request_timeout: Union[
377
+ None,
378
+ Annotated[StrictFloat, Field(gt=0)],
379
+ Tuple[
380
+ Annotated[StrictFloat, Field(gt=0)],
381
+ Annotated[StrictFloat, Field(gt=0)]
382
+ ]
383
+ ] = None,
384
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
385
+ _content_type: Optional[StrictStr] = None,
386
+ _headers: Optional[Dict[StrictStr, Any]] = None,
387
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
388
+ ) -> ApiResponse[BaseResponseBinaryAdditionalResponse]:
389
+ """Gets the additional details of a binary
390
+
391
+
392
+ :param binary_id: (required)
393
+ :type binary_id: int
394
+ :param _request_timeout: timeout setting for this request. If one
395
+ number provided, it will be total request
396
+ timeout. It can also be a pair (tuple) of
397
+ (connection, read) timeouts.
398
+ :type _request_timeout: int, tuple(int, int), optional
399
+ :param _request_auth: set to override the auth_settings for an a single
400
+ request; this effectively ignores the
401
+ authentication in the spec for a single request.
402
+ :type _request_auth: dict, optional
403
+ :param _content_type: force content-type for the request.
404
+ :type _content_type: str, Optional
405
+ :param _headers: set to override the headers for a single
406
+ request; this effectively ignores the headers
407
+ in the spec for a single request.
408
+ :type _headers: dict, optional
409
+ :param _host_index: set to override the host_index for a single
410
+ request; this effectively ignores the host_index
411
+ in the spec for a single request.
412
+ :type _host_index: int, optional
413
+ :return: Returns the result object.
414
+ """ # noqa: E501
415
+
416
+ _param = self._get_binary_additional_details_serialize(
417
+ binary_id=binary_id,
418
+ _request_auth=_request_auth,
419
+ _content_type=_content_type,
420
+ _headers=_headers,
421
+ _host_index=_host_index
422
+ )
423
+
424
+ _response_types_map: Dict[str, Optional[str]] = {
425
+ '200': "BaseResponseBinaryAdditionalResponse",
426
+ '422': "BaseResponse",
427
+ }
428
+ response_data = self.api_client.call_api(
429
+ *_param,
430
+ _request_timeout=_request_timeout
431
+ )
432
+ response_data.read()
433
+ return self.api_client.response_deserialize(
434
+ response_data=response_data,
435
+ response_types_map=_response_types_map,
436
+ )
437
+
438
+
439
+ @validate_call
440
+ def get_binary_additional_details_without_preload_content(
441
+ self,
442
+ binary_id: StrictInt,
443
+ _request_timeout: Union[
444
+ None,
445
+ Annotated[StrictFloat, Field(gt=0)],
446
+ Tuple[
447
+ Annotated[StrictFloat, Field(gt=0)],
448
+ Annotated[StrictFloat, Field(gt=0)]
449
+ ]
450
+ ] = None,
451
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
452
+ _content_type: Optional[StrictStr] = None,
453
+ _headers: Optional[Dict[StrictStr, Any]] = None,
454
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
455
+ ) -> RESTResponseType:
456
+ """Gets the additional details of a binary
457
+
458
+
459
+ :param binary_id: (required)
460
+ :type binary_id: int
461
+ :param _request_timeout: timeout setting for this request. If one
462
+ number provided, it will be total request
463
+ timeout. It can also be a pair (tuple) of
464
+ (connection, read) timeouts.
465
+ :type _request_timeout: int, tuple(int, int), optional
466
+ :param _request_auth: set to override the auth_settings for an a single
467
+ request; this effectively ignores the
468
+ authentication in the spec for a single request.
469
+ :type _request_auth: dict, optional
470
+ :param _content_type: force content-type for the request.
471
+ :type _content_type: str, Optional
472
+ :param _headers: set to override the headers for a single
473
+ request; this effectively ignores the headers
474
+ in the spec for a single request.
475
+ :type _headers: dict, optional
476
+ :param _host_index: set to override the host_index for a single
477
+ request; this effectively ignores the host_index
478
+ in the spec for a single request.
479
+ :type _host_index: int, optional
480
+ :return: Returns the result object.
481
+ """ # noqa: E501
482
+
483
+ _param = self._get_binary_additional_details_serialize(
484
+ binary_id=binary_id,
485
+ _request_auth=_request_auth,
486
+ _content_type=_content_type,
487
+ _headers=_headers,
488
+ _host_index=_host_index
489
+ )
490
+
491
+ _response_types_map: Dict[str, Optional[str]] = {
492
+ '200': "BaseResponseBinaryAdditionalResponse",
493
+ '422': "BaseResponse",
494
+ }
495
+ response_data = self.api_client.call_api(
496
+ *_param,
497
+ _request_timeout=_request_timeout
498
+ )
499
+ return response_data.response
500
+
501
+
502
+ def _get_binary_additional_details_serialize(
503
+ self,
504
+ binary_id,
505
+ _request_auth,
506
+ _content_type,
507
+ _headers,
508
+ _host_index,
509
+ ) -> RequestSerialized:
510
+
511
+ _host = None
512
+
513
+ _collection_formats: Dict[str, str] = {
514
+ }
515
+
516
+ _path_params: Dict[str, str] = {}
517
+ _query_params: List[Tuple[str, str]] = []
518
+ _header_params: Dict[str, Optional[str]] = _headers or {}
519
+ _form_params: List[Tuple[str, str]] = []
520
+ _files: Dict[
521
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
522
+ ] = {}
523
+ _body_params: Optional[bytes] = None
524
+
525
+ # process the path parameters
526
+ if binary_id is not None:
527
+ _path_params['binary_id'] = binary_id
528
+ # process the query parameters
529
+ # process the header parameters
530
+ # process the form parameters
531
+ # process the body parameter
532
+
533
+
534
+ # set the HTTP header `Accept`
535
+ if 'Accept' not in _header_params:
536
+ _header_params['Accept'] = self.api_client.select_header_accept(
537
+ [
538
+ 'application/json'
539
+ ]
540
+ )
541
+
542
+
543
+ # authentication setting
544
+ _auth_settings: List[str] = [
545
+ 'APIKey'
546
+ ]
547
+
548
+ return self.api_client.param_serialize(
549
+ method='GET',
550
+ resource_path='/v2/binaries/{binary_id}/additional-details',
551
+ path_params=_path_params,
552
+ query_params=_query_params,
553
+ header_params=_header_params,
554
+ body=_body_params,
555
+ post_params=_form_params,
556
+ files=_files,
557
+ auth_settings=_auth_settings,
558
+ collection_formats=_collection_formats,
559
+ _host=_host,
560
+ _request_auth=_request_auth
561
+ )
562
+
563
+
564
+
565
+
566
+ @validate_call
567
+ def get_binary_details(
568
+ self,
569
+ binary_id: StrictInt,
570
+ _request_timeout: Union[
571
+ None,
572
+ Annotated[StrictFloat, Field(gt=0)],
573
+ Tuple[
574
+ Annotated[StrictFloat, Field(gt=0)],
575
+ Annotated[StrictFloat, Field(gt=0)]
576
+ ]
577
+ ] = None,
578
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
579
+ _content_type: Optional[StrictStr] = None,
580
+ _headers: Optional[Dict[StrictStr, Any]] = None,
581
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
582
+ ) -> BaseResponseBinaryDetailsResponse:
583
+ """Gets the details of a binary
584
+
585
+
586
+ :param binary_id: (required)
587
+ :type binary_id: int
588
+ :param _request_timeout: timeout setting for this request. If one
589
+ number provided, it will be total request
590
+ timeout. It can also be a pair (tuple) of
591
+ (connection, read) timeouts.
592
+ :type _request_timeout: int, tuple(int, int), optional
593
+ :param _request_auth: set to override the auth_settings for an a single
594
+ request; this effectively ignores the
595
+ authentication in the spec for a single request.
596
+ :type _request_auth: dict, optional
597
+ :param _content_type: force content-type for the request.
598
+ :type _content_type: str, Optional
599
+ :param _headers: set to override the headers for a single
600
+ request; this effectively ignores the headers
601
+ in the spec for a single request.
602
+ :type _headers: dict, optional
603
+ :param _host_index: set to override the host_index for a single
604
+ request; this effectively ignores the host_index
605
+ in the spec for a single request.
606
+ :type _host_index: int, optional
607
+ :return: Returns the result object.
608
+ """ # noqa: E501
609
+
610
+ _param = self._get_binary_details_serialize(
611
+ binary_id=binary_id,
612
+ _request_auth=_request_auth,
613
+ _content_type=_content_type,
614
+ _headers=_headers,
615
+ _host_index=_host_index
616
+ )
617
+
618
+ _response_types_map: Dict[str, Optional[str]] = {
619
+ '200': "BaseResponseBinaryDetailsResponse",
620
+ '422': "BaseResponse",
621
+ }
622
+ response_data = self.api_client.call_api(
623
+ *_param,
624
+ _request_timeout=_request_timeout
625
+ )
626
+ response_data.read()
627
+ return self.api_client.response_deserialize(
628
+ response_data=response_data,
629
+ response_types_map=_response_types_map,
630
+ ).data
631
+
632
+
633
+ @validate_call
634
+ def get_binary_details_with_http_info(
635
+ self,
636
+ binary_id: StrictInt,
637
+ _request_timeout: Union[
638
+ None,
639
+ Annotated[StrictFloat, Field(gt=0)],
640
+ Tuple[
641
+ Annotated[StrictFloat, Field(gt=0)],
642
+ Annotated[StrictFloat, Field(gt=0)]
643
+ ]
644
+ ] = None,
645
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
646
+ _content_type: Optional[StrictStr] = None,
647
+ _headers: Optional[Dict[StrictStr, Any]] = None,
648
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
649
+ ) -> ApiResponse[BaseResponseBinaryDetailsResponse]:
650
+ """Gets the details of a binary
651
+
652
+
653
+ :param binary_id: (required)
654
+ :type binary_id: int
655
+ :param _request_timeout: timeout setting for this request. If one
656
+ number provided, it will be total request
657
+ timeout. It can also be a pair (tuple) of
658
+ (connection, read) timeouts.
659
+ :type _request_timeout: int, tuple(int, int), optional
660
+ :param _request_auth: set to override the auth_settings for an a single
661
+ request; this effectively ignores the
662
+ authentication in the spec for a single request.
663
+ :type _request_auth: dict, optional
664
+ :param _content_type: force content-type for the request.
665
+ :type _content_type: str, Optional
666
+ :param _headers: set to override the headers for a single
667
+ request; this effectively ignores the headers
668
+ in the spec for a single request.
669
+ :type _headers: dict, optional
670
+ :param _host_index: set to override the host_index for a single
671
+ request; this effectively ignores the host_index
672
+ in the spec for a single request.
673
+ :type _host_index: int, optional
674
+ :return: Returns the result object.
675
+ """ # noqa: E501
676
+
677
+ _param = self._get_binary_details_serialize(
678
+ binary_id=binary_id,
679
+ _request_auth=_request_auth,
680
+ _content_type=_content_type,
681
+ _headers=_headers,
682
+ _host_index=_host_index
683
+ )
684
+
685
+ _response_types_map: Dict[str, Optional[str]] = {
686
+ '200': "BaseResponseBinaryDetailsResponse",
687
+ '422': "BaseResponse",
688
+ }
689
+ response_data = self.api_client.call_api(
690
+ *_param,
691
+ _request_timeout=_request_timeout
692
+ )
693
+ response_data.read()
694
+ return self.api_client.response_deserialize(
695
+ response_data=response_data,
696
+ response_types_map=_response_types_map,
697
+ )
698
+
699
+
700
+ @validate_call
701
+ def get_binary_details_without_preload_content(
702
+ self,
703
+ binary_id: StrictInt,
704
+ _request_timeout: Union[
705
+ None,
706
+ Annotated[StrictFloat, Field(gt=0)],
707
+ Tuple[
708
+ Annotated[StrictFloat, Field(gt=0)],
709
+ Annotated[StrictFloat, Field(gt=0)]
710
+ ]
711
+ ] = None,
712
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
713
+ _content_type: Optional[StrictStr] = None,
714
+ _headers: Optional[Dict[StrictStr, Any]] = None,
715
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
716
+ ) -> RESTResponseType:
717
+ """Gets the details of a binary
718
+
719
+
720
+ :param binary_id: (required)
721
+ :type binary_id: int
722
+ :param _request_timeout: timeout setting for this request. If one
723
+ number provided, it will be total request
724
+ timeout. It can also be a pair (tuple) of
725
+ (connection, read) timeouts.
726
+ :type _request_timeout: int, tuple(int, int), optional
727
+ :param _request_auth: set to override the auth_settings for an a single
728
+ request; this effectively ignores the
729
+ authentication in the spec for a single request.
730
+ :type _request_auth: dict, optional
731
+ :param _content_type: force content-type for the request.
732
+ :type _content_type: str, Optional
733
+ :param _headers: set to override the headers for a single
734
+ request; this effectively ignores the headers
735
+ in the spec for a single request.
736
+ :type _headers: dict, optional
737
+ :param _host_index: set to override the host_index for a single
738
+ request; this effectively ignores the host_index
739
+ in the spec for a single request.
740
+ :type _host_index: int, optional
741
+ :return: Returns the result object.
742
+ """ # noqa: E501
743
+
744
+ _param = self._get_binary_details_serialize(
745
+ binary_id=binary_id,
746
+ _request_auth=_request_auth,
747
+ _content_type=_content_type,
748
+ _headers=_headers,
749
+ _host_index=_host_index
750
+ )
751
+
752
+ _response_types_map: Dict[str, Optional[str]] = {
753
+ '200': "BaseResponseBinaryDetailsResponse",
754
+ '422': "BaseResponse",
755
+ }
756
+ response_data = self.api_client.call_api(
757
+ *_param,
758
+ _request_timeout=_request_timeout
759
+ )
760
+ return response_data.response
761
+
762
+
763
+ def _get_binary_details_serialize(
764
+ self,
765
+ binary_id,
766
+ _request_auth,
767
+ _content_type,
768
+ _headers,
769
+ _host_index,
770
+ ) -> RequestSerialized:
771
+
772
+ _host = None
773
+
774
+ _collection_formats: Dict[str, str] = {
775
+ }
776
+
777
+ _path_params: Dict[str, str] = {}
778
+ _query_params: List[Tuple[str, str]] = []
779
+ _header_params: Dict[str, Optional[str]] = _headers or {}
780
+ _form_params: List[Tuple[str, str]] = []
781
+ _files: Dict[
782
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
783
+ ] = {}
784
+ _body_params: Optional[bytes] = None
785
+
786
+ # process the path parameters
787
+ if binary_id is not None:
788
+ _path_params['binary_id'] = binary_id
789
+ # process the query parameters
790
+ # process the header parameters
791
+ # process the form parameters
792
+ # process the body parameter
793
+
794
+
795
+ # set the HTTP header `Accept`
796
+ if 'Accept' not in _header_params:
797
+ _header_params['Accept'] = self.api_client.select_header_accept(
798
+ [
799
+ 'application/json'
800
+ ]
801
+ )
802
+
803
+
804
+ # authentication setting
805
+ _auth_settings: List[str] = [
806
+ 'APIKey'
807
+ ]
808
+
809
+ return self.api_client.param_serialize(
810
+ method='GET',
811
+ resource_path='/v2/binaries/{binary_id}/details',
812
+ path_params=_path_params,
813
+ query_params=_query_params,
814
+ header_params=_header_params,
815
+ body=_body_params,
816
+ post_params=_form_params,
817
+ files=_files,
818
+ auth_settings=_auth_settings,
819
+ collection_formats=_collection_formats,
820
+ _host=_host,
821
+ _request_auth=_request_auth
822
+ )
823
+
824
+
825
+
826
+
827
+ @validate_call
828
+ def get_binary_die_info(
829
+ self,
830
+ binary_id: StrictInt,
831
+ _request_timeout: Union[
832
+ None,
833
+ Annotated[StrictFloat, Field(gt=0)],
834
+ Tuple[
835
+ Annotated[StrictFloat, Field(gt=0)],
836
+ Annotated[StrictFloat, Field(gt=0)]
837
+ ]
838
+ ] = None,
839
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
840
+ _content_type: Optional[StrictStr] = None,
841
+ _headers: Optional[Dict[StrictStr, Any]] = None,
842
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
843
+ ) -> BaseResponseListDieMatch:
844
+ """Gets the die info of a binary
845
+
846
+
847
+ :param binary_id: (required)
848
+ :type binary_id: int
849
+ :param _request_timeout: timeout setting for this request. If one
850
+ number provided, it will be total request
851
+ timeout. It can also be a pair (tuple) of
852
+ (connection, read) timeouts.
853
+ :type _request_timeout: int, tuple(int, int), optional
854
+ :param _request_auth: set to override the auth_settings for an a single
855
+ request; this effectively ignores the
856
+ authentication in the spec for a single request.
857
+ :type _request_auth: dict, optional
858
+ :param _content_type: force content-type for the request.
859
+ :type _content_type: str, Optional
860
+ :param _headers: set to override the headers for a single
861
+ request; this effectively ignores the headers
862
+ in the spec for a single request.
863
+ :type _headers: dict, optional
864
+ :param _host_index: set to override the host_index for a single
865
+ request; this effectively ignores the host_index
866
+ in the spec for a single request.
867
+ :type _host_index: int, optional
868
+ :return: Returns the result object.
869
+ """ # noqa: E501
870
+
871
+ _param = self._get_binary_die_info_serialize(
872
+ binary_id=binary_id,
873
+ _request_auth=_request_auth,
874
+ _content_type=_content_type,
875
+ _headers=_headers,
876
+ _host_index=_host_index
877
+ )
878
+
879
+ _response_types_map: Dict[str, Optional[str]] = {
880
+ '200': "BaseResponseListDieMatch",
881
+ '422': "BaseResponse",
882
+ }
883
+ response_data = self.api_client.call_api(
884
+ *_param,
885
+ _request_timeout=_request_timeout
886
+ )
887
+ response_data.read()
888
+ return self.api_client.response_deserialize(
889
+ response_data=response_data,
890
+ response_types_map=_response_types_map,
891
+ ).data
892
+
893
+
894
+ @validate_call
895
+ def get_binary_die_info_with_http_info(
896
+ self,
897
+ binary_id: StrictInt,
898
+ _request_timeout: Union[
899
+ None,
900
+ Annotated[StrictFloat, Field(gt=0)],
901
+ Tuple[
902
+ Annotated[StrictFloat, Field(gt=0)],
903
+ Annotated[StrictFloat, Field(gt=0)]
904
+ ]
905
+ ] = None,
906
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
907
+ _content_type: Optional[StrictStr] = None,
908
+ _headers: Optional[Dict[StrictStr, Any]] = None,
909
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
910
+ ) -> ApiResponse[BaseResponseListDieMatch]:
911
+ """Gets the die info of a binary
912
+
913
+
914
+ :param binary_id: (required)
915
+ :type binary_id: int
916
+ :param _request_timeout: timeout setting for this request. If one
917
+ number provided, it will be total request
918
+ timeout. It can also be a pair (tuple) of
919
+ (connection, read) timeouts.
920
+ :type _request_timeout: int, tuple(int, int), optional
921
+ :param _request_auth: set to override the auth_settings for an a single
922
+ request; this effectively ignores the
923
+ authentication in the spec for a single request.
924
+ :type _request_auth: dict, optional
925
+ :param _content_type: force content-type for the request.
926
+ :type _content_type: str, Optional
927
+ :param _headers: set to override the headers for a single
928
+ request; this effectively ignores the headers
929
+ in the spec for a single request.
930
+ :type _headers: dict, optional
931
+ :param _host_index: set to override the host_index for a single
932
+ request; this effectively ignores the host_index
933
+ in the spec for a single request.
934
+ :type _host_index: int, optional
935
+ :return: Returns the result object.
936
+ """ # noqa: E501
937
+
938
+ _param = self._get_binary_die_info_serialize(
939
+ binary_id=binary_id,
940
+ _request_auth=_request_auth,
941
+ _content_type=_content_type,
942
+ _headers=_headers,
943
+ _host_index=_host_index
944
+ )
945
+
946
+ _response_types_map: Dict[str, Optional[str]] = {
947
+ '200': "BaseResponseListDieMatch",
948
+ '422': "BaseResponse",
949
+ }
950
+ response_data = self.api_client.call_api(
951
+ *_param,
952
+ _request_timeout=_request_timeout
953
+ )
954
+ response_data.read()
955
+ return self.api_client.response_deserialize(
956
+ response_data=response_data,
957
+ response_types_map=_response_types_map,
958
+ )
959
+
960
+
961
+ @validate_call
962
+ def get_binary_die_info_without_preload_content(
963
+ self,
964
+ binary_id: StrictInt,
965
+ _request_timeout: Union[
966
+ None,
967
+ Annotated[StrictFloat, Field(gt=0)],
968
+ Tuple[
969
+ Annotated[StrictFloat, Field(gt=0)],
970
+ Annotated[StrictFloat, Field(gt=0)]
971
+ ]
972
+ ] = None,
973
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
974
+ _content_type: Optional[StrictStr] = None,
975
+ _headers: Optional[Dict[StrictStr, Any]] = None,
976
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
977
+ ) -> RESTResponseType:
978
+ """Gets the die info of a binary
979
+
980
+
981
+ :param binary_id: (required)
982
+ :type binary_id: int
983
+ :param _request_timeout: timeout setting for this request. If one
984
+ number provided, it will be total request
985
+ timeout. It can also be a pair (tuple) of
986
+ (connection, read) timeouts.
987
+ :type _request_timeout: int, tuple(int, int), optional
988
+ :param _request_auth: set to override the auth_settings for an a single
989
+ request; this effectively ignores the
990
+ authentication in the spec for a single request.
991
+ :type _request_auth: dict, optional
992
+ :param _content_type: force content-type for the request.
993
+ :type _content_type: str, Optional
994
+ :param _headers: set to override the headers for a single
995
+ request; this effectively ignores the headers
996
+ in the spec for a single request.
997
+ :type _headers: dict, optional
998
+ :param _host_index: set to override the host_index for a single
999
+ request; this effectively ignores the host_index
1000
+ in the spec for a single request.
1001
+ :type _host_index: int, optional
1002
+ :return: Returns the result object.
1003
+ """ # noqa: E501
1004
+
1005
+ _param = self._get_binary_die_info_serialize(
1006
+ binary_id=binary_id,
1007
+ _request_auth=_request_auth,
1008
+ _content_type=_content_type,
1009
+ _headers=_headers,
1010
+ _host_index=_host_index
1011
+ )
1012
+
1013
+ _response_types_map: Dict[str, Optional[str]] = {
1014
+ '200': "BaseResponseListDieMatch",
1015
+ '422': "BaseResponse",
1016
+ }
1017
+ response_data = self.api_client.call_api(
1018
+ *_param,
1019
+ _request_timeout=_request_timeout
1020
+ )
1021
+ return response_data.response
1022
+
1023
+
1024
+ def _get_binary_die_info_serialize(
1025
+ self,
1026
+ binary_id,
1027
+ _request_auth,
1028
+ _content_type,
1029
+ _headers,
1030
+ _host_index,
1031
+ ) -> RequestSerialized:
1032
+
1033
+ _host = None
1034
+
1035
+ _collection_formats: Dict[str, str] = {
1036
+ }
1037
+
1038
+ _path_params: Dict[str, str] = {}
1039
+ _query_params: List[Tuple[str, str]] = []
1040
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1041
+ _form_params: List[Tuple[str, str]] = []
1042
+ _files: Dict[
1043
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1044
+ ] = {}
1045
+ _body_params: Optional[bytes] = None
1046
+
1047
+ # process the path parameters
1048
+ if binary_id is not None:
1049
+ _path_params['binary_id'] = binary_id
1050
+ # process the query parameters
1051
+ # process the header parameters
1052
+ # process the form parameters
1053
+ # process the body parameter
1054
+
1055
+
1056
+ # set the HTTP header `Accept`
1057
+ if 'Accept' not in _header_params:
1058
+ _header_params['Accept'] = self.api_client.select_header_accept(
1059
+ [
1060
+ 'application/json'
1061
+ ]
1062
+ )
1063
+
1064
+
1065
+ # authentication setting
1066
+ _auth_settings: List[str] = [
1067
+ 'APIKey'
1068
+ ]
1069
+
1070
+ return self.api_client.param_serialize(
1071
+ method='GET',
1072
+ resource_path='/v2/binaries/{binary_id}/die-info',
1073
+ path_params=_path_params,
1074
+ query_params=_query_params,
1075
+ header_params=_header_params,
1076
+ body=_body_params,
1077
+ post_params=_form_params,
1078
+ files=_files,
1079
+ auth_settings=_auth_settings,
1080
+ collection_formats=_collection_formats,
1081
+ _host=_host,
1082
+ _request_auth=_request_auth
1083
+ )
1084
+
1085
+
1086
+
1087
+
1088
+ @validate_call
1089
+ def get_binary_externals(
1090
+ self,
1091
+ binary_id: StrictInt,
1092
+ _request_timeout: Union[
1093
+ None,
1094
+ Annotated[StrictFloat, Field(gt=0)],
1095
+ Tuple[
1096
+ Annotated[StrictFloat, Field(gt=0)],
1097
+ Annotated[StrictFloat, Field(gt=0)]
1098
+ ]
1099
+ ] = None,
1100
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1101
+ _content_type: Optional[StrictStr] = None,
1102
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1103
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1104
+ ) -> BaseResponseBinaryExternalsResponse:
1105
+ """Gets the external details of a binary
1106
+
1107
+
1108
+ :param binary_id: (required)
1109
+ :type binary_id: int
1110
+ :param _request_timeout: timeout setting for this request. If one
1111
+ number provided, it will be total request
1112
+ timeout. It can also be a pair (tuple) of
1113
+ (connection, read) timeouts.
1114
+ :type _request_timeout: int, tuple(int, int), optional
1115
+ :param _request_auth: set to override the auth_settings for an a single
1116
+ request; this effectively ignores the
1117
+ authentication in the spec for a single request.
1118
+ :type _request_auth: dict, optional
1119
+ :param _content_type: force content-type for the request.
1120
+ :type _content_type: str, Optional
1121
+ :param _headers: set to override the headers for a single
1122
+ request; this effectively ignores the headers
1123
+ in the spec for a single request.
1124
+ :type _headers: dict, optional
1125
+ :param _host_index: set to override the host_index for a single
1126
+ request; this effectively ignores the host_index
1127
+ in the spec for a single request.
1128
+ :type _host_index: int, optional
1129
+ :return: Returns the result object.
1130
+ """ # noqa: E501
1131
+
1132
+ _param = self._get_binary_externals_serialize(
1133
+ binary_id=binary_id,
1134
+ _request_auth=_request_auth,
1135
+ _content_type=_content_type,
1136
+ _headers=_headers,
1137
+ _host_index=_host_index
1138
+ )
1139
+
1140
+ _response_types_map: Dict[str, Optional[str]] = {
1141
+ '200': "BaseResponseBinaryExternalsResponse",
1142
+ '422': "BaseResponse",
1143
+ }
1144
+ response_data = self.api_client.call_api(
1145
+ *_param,
1146
+ _request_timeout=_request_timeout
1147
+ )
1148
+ response_data.read()
1149
+ return self.api_client.response_deserialize(
1150
+ response_data=response_data,
1151
+ response_types_map=_response_types_map,
1152
+ ).data
1153
+
1154
+
1155
+ @validate_call
1156
+ def get_binary_externals_with_http_info(
1157
+ self,
1158
+ binary_id: StrictInt,
1159
+ _request_timeout: Union[
1160
+ None,
1161
+ Annotated[StrictFloat, Field(gt=0)],
1162
+ Tuple[
1163
+ Annotated[StrictFloat, Field(gt=0)],
1164
+ Annotated[StrictFloat, Field(gt=0)]
1165
+ ]
1166
+ ] = None,
1167
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1168
+ _content_type: Optional[StrictStr] = None,
1169
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1170
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1171
+ ) -> ApiResponse[BaseResponseBinaryExternalsResponse]:
1172
+ """Gets the external details of a binary
1173
+
1174
+
1175
+ :param binary_id: (required)
1176
+ :type binary_id: int
1177
+ :param _request_timeout: timeout setting for this request. If one
1178
+ number provided, it will be total request
1179
+ timeout. It can also be a pair (tuple) of
1180
+ (connection, read) timeouts.
1181
+ :type _request_timeout: int, tuple(int, int), optional
1182
+ :param _request_auth: set to override the auth_settings for an a single
1183
+ request; this effectively ignores the
1184
+ authentication in the spec for a single request.
1185
+ :type _request_auth: dict, optional
1186
+ :param _content_type: force content-type for the request.
1187
+ :type _content_type: str, Optional
1188
+ :param _headers: set to override the headers for a single
1189
+ request; this effectively ignores the headers
1190
+ in the spec for a single request.
1191
+ :type _headers: dict, optional
1192
+ :param _host_index: set to override the host_index for a single
1193
+ request; this effectively ignores the host_index
1194
+ in the spec for a single request.
1195
+ :type _host_index: int, optional
1196
+ :return: Returns the result object.
1197
+ """ # noqa: E501
1198
+
1199
+ _param = self._get_binary_externals_serialize(
1200
+ binary_id=binary_id,
1201
+ _request_auth=_request_auth,
1202
+ _content_type=_content_type,
1203
+ _headers=_headers,
1204
+ _host_index=_host_index
1205
+ )
1206
+
1207
+ _response_types_map: Dict[str, Optional[str]] = {
1208
+ '200': "BaseResponseBinaryExternalsResponse",
1209
+ '422': "BaseResponse",
1210
+ }
1211
+ response_data = self.api_client.call_api(
1212
+ *_param,
1213
+ _request_timeout=_request_timeout
1214
+ )
1215
+ response_data.read()
1216
+ return self.api_client.response_deserialize(
1217
+ response_data=response_data,
1218
+ response_types_map=_response_types_map,
1219
+ )
1220
+
1221
+
1222
+ @validate_call
1223
+ def get_binary_externals_without_preload_content(
1224
+ self,
1225
+ binary_id: StrictInt,
1226
+ _request_timeout: Union[
1227
+ None,
1228
+ Annotated[StrictFloat, Field(gt=0)],
1229
+ Tuple[
1230
+ Annotated[StrictFloat, Field(gt=0)],
1231
+ Annotated[StrictFloat, Field(gt=0)]
1232
+ ]
1233
+ ] = None,
1234
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1235
+ _content_type: Optional[StrictStr] = None,
1236
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1237
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1238
+ ) -> RESTResponseType:
1239
+ """Gets the external details of a binary
1240
+
1241
+
1242
+ :param binary_id: (required)
1243
+ :type binary_id: int
1244
+ :param _request_timeout: timeout setting for this request. If one
1245
+ number provided, it will be total request
1246
+ timeout. It can also be a pair (tuple) of
1247
+ (connection, read) timeouts.
1248
+ :type _request_timeout: int, tuple(int, int), optional
1249
+ :param _request_auth: set to override the auth_settings for an a single
1250
+ request; this effectively ignores the
1251
+ authentication in the spec for a single request.
1252
+ :type _request_auth: dict, optional
1253
+ :param _content_type: force content-type for the request.
1254
+ :type _content_type: str, Optional
1255
+ :param _headers: set to override the headers for a single
1256
+ request; this effectively ignores the headers
1257
+ in the spec for a single request.
1258
+ :type _headers: dict, optional
1259
+ :param _host_index: set to override the host_index for a single
1260
+ request; this effectively ignores the host_index
1261
+ in the spec for a single request.
1262
+ :type _host_index: int, optional
1263
+ :return: Returns the result object.
1264
+ """ # noqa: E501
1265
+
1266
+ _param = self._get_binary_externals_serialize(
1267
+ binary_id=binary_id,
1268
+ _request_auth=_request_auth,
1269
+ _content_type=_content_type,
1270
+ _headers=_headers,
1271
+ _host_index=_host_index
1272
+ )
1273
+
1274
+ _response_types_map: Dict[str, Optional[str]] = {
1275
+ '200': "BaseResponseBinaryExternalsResponse",
1276
+ '422': "BaseResponse",
1277
+ }
1278
+ response_data = self.api_client.call_api(
1279
+ *_param,
1280
+ _request_timeout=_request_timeout
1281
+ )
1282
+ return response_data.response
1283
+
1284
+
1285
+ def _get_binary_externals_serialize(
1286
+ self,
1287
+ binary_id,
1288
+ _request_auth,
1289
+ _content_type,
1290
+ _headers,
1291
+ _host_index,
1292
+ ) -> RequestSerialized:
1293
+
1294
+ _host = None
1295
+
1296
+ _collection_formats: Dict[str, str] = {
1297
+ }
1298
+
1299
+ _path_params: Dict[str, str] = {}
1300
+ _query_params: List[Tuple[str, str]] = []
1301
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1302
+ _form_params: List[Tuple[str, str]] = []
1303
+ _files: Dict[
1304
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1305
+ ] = {}
1306
+ _body_params: Optional[bytes] = None
1307
+
1308
+ # process the path parameters
1309
+ if binary_id is not None:
1310
+ _path_params['binary_id'] = binary_id
1311
+ # process the query parameters
1312
+ # process the header parameters
1313
+ # process the form parameters
1314
+ # process the body parameter
1315
+
1316
+
1317
+ # set the HTTP header `Accept`
1318
+ if 'Accept' not in _header_params:
1319
+ _header_params['Accept'] = self.api_client.select_header_accept(
1320
+ [
1321
+ 'application/json'
1322
+ ]
1323
+ )
1324
+
1325
+
1326
+ # authentication setting
1327
+ _auth_settings: List[str] = [
1328
+ 'APIKey'
1329
+ ]
1330
+
1331
+ return self.api_client.param_serialize(
1332
+ method='GET',
1333
+ resource_path='/v2/binaries/{binary_id}/externals',
1334
+ path_params=_path_params,
1335
+ query_params=_query_params,
1336
+ header_params=_header_params,
1337
+ body=_body_params,
1338
+ post_params=_form_params,
1339
+ files=_files,
1340
+ auth_settings=_auth_settings,
1341
+ collection_formats=_collection_formats,
1342
+ _host=_host,
1343
+ _request_auth=_request_auth
1344
+ )
1345
+
1346
+
1347
+
1348
+
1349
+ @validate_call
1350
+ def get_related_binaries(
1351
+ self,
1352
+ binary_id: StrictInt,
1353
+ _request_timeout: Union[
1354
+ None,
1355
+ Annotated[StrictFloat, Field(gt=0)],
1356
+ Tuple[
1357
+ Annotated[StrictFloat, Field(gt=0)],
1358
+ Annotated[StrictFloat, Field(gt=0)]
1359
+ ]
1360
+ ] = None,
1361
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1362
+ _content_type: Optional[StrictStr] = None,
1363
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1364
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1365
+ ) -> BaseResponseChildBinariesResponse:
1366
+ """Gets the related binaries of a binary.
1367
+
1368
+
1369
+ :param binary_id: (required)
1370
+ :type binary_id: int
1371
+ :param _request_timeout: timeout setting for this request. If one
1372
+ number provided, it will be total request
1373
+ timeout. It can also be a pair (tuple) of
1374
+ (connection, read) timeouts.
1375
+ :type _request_timeout: int, tuple(int, int), optional
1376
+ :param _request_auth: set to override the auth_settings for an a single
1377
+ request; this effectively ignores the
1378
+ authentication in the spec for a single request.
1379
+ :type _request_auth: dict, optional
1380
+ :param _content_type: force content-type for the request.
1381
+ :type _content_type: str, Optional
1382
+ :param _headers: set to override the headers for a single
1383
+ request; this effectively ignores the headers
1384
+ in the spec for a single request.
1385
+ :type _headers: dict, optional
1386
+ :param _host_index: set to override the host_index for a single
1387
+ request; this effectively ignores the host_index
1388
+ in the spec for a single request.
1389
+ :type _host_index: int, optional
1390
+ :return: Returns the result object.
1391
+ """ # noqa: E501
1392
+
1393
+ _param = self._get_related_binaries_serialize(
1394
+ binary_id=binary_id,
1395
+ _request_auth=_request_auth,
1396
+ _content_type=_content_type,
1397
+ _headers=_headers,
1398
+ _host_index=_host_index
1399
+ )
1400
+
1401
+ _response_types_map: Dict[str, Optional[str]] = {
1402
+ '200': "BaseResponseChildBinariesResponse",
1403
+ '422': "BaseResponse",
1404
+ '403': "BaseResponse",
1405
+ }
1406
+ response_data = self.api_client.call_api(
1407
+ *_param,
1408
+ _request_timeout=_request_timeout
1409
+ )
1410
+ response_data.read()
1411
+ return self.api_client.response_deserialize(
1412
+ response_data=response_data,
1413
+ response_types_map=_response_types_map,
1414
+ ).data
1415
+
1416
+
1417
+ @validate_call
1418
+ def get_related_binaries_with_http_info(
1419
+ self,
1420
+ binary_id: StrictInt,
1421
+ _request_timeout: Union[
1422
+ None,
1423
+ Annotated[StrictFloat, Field(gt=0)],
1424
+ Tuple[
1425
+ Annotated[StrictFloat, Field(gt=0)],
1426
+ Annotated[StrictFloat, Field(gt=0)]
1427
+ ]
1428
+ ] = None,
1429
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1430
+ _content_type: Optional[StrictStr] = None,
1431
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1432
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1433
+ ) -> ApiResponse[BaseResponseChildBinariesResponse]:
1434
+ """Gets the related binaries of a binary.
1435
+
1436
+
1437
+ :param binary_id: (required)
1438
+ :type binary_id: int
1439
+ :param _request_timeout: timeout setting for this request. If one
1440
+ number provided, it will be total request
1441
+ timeout. It can also be a pair (tuple) of
1442
+ (connection, read) timeouts.
1443
+ :type _request_timeout: int, tuple(int, int), optional
1444
+ :param _request_auth: set to override the auth_settings for an a single
1445
+ request; this effectively ignores the
1446
+ authentication in the spec for a single request.
1447
+ :type _request_auth: dict, optional
1448
+ :param _content_type: force content-type for the request.
1449
+ :type _content_type: str, Optional
1450
+ :param _headers: set to override the headers for a single
1451
+ request; this effectively ignores the headers
1452
+ in the spec for a single request.
1453
+ :type _headers: dict, optional
1454
+ :param _host_index: set to override the host_index for a single
1455
+ request; this effectively ignores the host_index
1456
+ in the spec for a single request.
1457
+ :type _host_index: int, optional
1458
+ :return: Returns the result object.
1459
+ """ # noqa: E501
1460
+
1461
+ _param = self._get_related_binaries_serialize(
1462
+ binary_id=binary_id,
1463
+ _request_auth=_request_auth,
1464
+ _content_type=_content_type,
1465
+ _headers=_headers,
1466
+ _host_index=_host_index
1467
+ )
1468
+
1469
+ _response_types_map: Dict[str, Optional[str]] = {
1470
+ '200': "BaseResponseChildBinariesResponse",
1471
+ '422': "BaseResponse",
1472
+ '403': "BaseResponse",
1473
+ }
1474
+ response_data = self.api_client.call_api(
1475
+ *_param,
1476
+ _request_timeout=_request_timeout
1477
+ )
1478
+ response_data.read()
1479
+ return self.api_client.response_deserialize(
1480
+ response_data=response_data,
1481
+ response_types_map=_response_types_map,
1482
+ )
1483
+
1484
+
1485
+ @validate_call
1486
+ def get_related_binaries_without_preload_content(
1487
+ self,
1488
+ binary_id: StrictInt,
1489
+ _request_timeout: Union[
1490
+ None,
1491
+ Annotated[StrictFloat, Field(gt=0)],
1492
+ Tuple[
1493
+ Annotated[StrictFloat, Field(gt=0)],
1494
+ Annotated[StrictFloat, Field(gt=0)]
1495
+ ]
1496
+ ] = None,
1497
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1498
+ _content_type: Optional[StrictStr] = None,
1499
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1500
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1501
+ ) -> RESTResponseType:
1502
+ """Gets the related binaries of a binary.
1503
+
1504
+
1505
+ :param binary_id: (required)
1506
+ :type binary_id: int
1507
+ :param _request_timeout: timeout setting for this request. If one
1508
+ number provided, it will be total request
1509
+ timeout. It can also be a pair (tuple) of
1510
+ (connection, read) timeouts.
1511
+ :type _request_timeout: int, tuple(int, int), optional
1512
+ :param _request_auth: set to override the auth_settings for an a single
1513
+ request; this effectively ignores the
1514
+ authentication in the spec for a single request.
1515
+ :type _request_auth: dict, optional
1516
+ :param _content_type: force content-type for the request.
1517
+ :type _content_type: str, Optional
1518
+ :param _headers: set to override the headers for a single
1519
+ request; this effectively ignores the headers
1520
+ in the spec for a single request.
1521
+ :type _headers: dict, optional
1522
+ :param _host_index: set to override the host_index for a single
1523
+ request; this effectively ignores the host_index
1524
+ in the spec for a single request.
1525
+ :type _host_index: int, optional
1526
+ :return: Returns the result object.
1527
+ """ # noqa: E501
1528
+
1529
+ _param = self._get_related_binaries_serialize(
1530
+ binary_id=binary_id,
1531
+ _request_auth=_request_auth,
1532
+ _content_type=_content_type,
1533
+ _headers=_headers,
1534
+ _host_index=_host_index
1535
+ )
1536
+
1537
+ _response_types_map: Dict[str, Optional[str]] = {
1538
+ '200': "BaseResponseChildBinariesResponse",
1539
+ '422': "BaseResponse",
1540
+ '403': "BaseResponse",
1541
+ }
1542
+ response_data = self.api_client.call_api(
1543
+ *_param,
1544
+ _request_timeout=_request_timeout
1545
+ )
1546
+ return response_data.response
1547
+
1548
+
1549
+ def _get_related_binaries_serialize(
1550
+ self,
1551
+ binary_id,
1552
+ _request_auth,
1553
+ _content_type,
1554
+ _headers,
1555
+ _host_index,
1556
+ ) -> RequestSerialized:
1557
+
1558
+ _host = None
1559
+
1560
+ _collection_formats: Dict[str, str] = {
1561
+ }
1562
+
1563
+ _path_params: Dict[str, str] = {}
1564
+ _query_params: List[Tuple[str, str]] = []
1565
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1566
+ _form_params: List[Tuple[str, str]] = []
1567
+ _files: Dict[
1568
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1569
+ ] = {}
1570
+ _body_params: Optional[bytes] = None
1571
+
1572
+ # process the path parameters
1573
+ if binary_id is not None:
1574
+ _path_params['binary_id'] = binary_id
1575
+ # process the query parameters
1576
+ # process the header parameters
1577
+ # process the form parameters
1578
+ # process the body parameter
1579
+
1580
+
1581
+ # set the HTTP header `Accept`
1582
+ if 'Accept' not in _header_params:
1583
+ _header_params['Accept'] = self.api_client.select_header_accept(
1584
+ [
1585
+ 'application/json'
1586
+ ]
1587
+ )
1588
+
1589
+
1590
+ # authentication setting
1591
+ _auth_settings: List[str] = [
1592
+ 'APIKey'
1593
+ ]
1594
+
1595
+ return self.api_client.param_serialize(
1596
+ method='GET',
1597
+ resource_path='/v2/binaries/{binary_id}/related',
1598
+ path_params=_path_params,
1599
+ query_params=_query_params,
1600
+ header_params=_header_params,
1601
+ body=_body_params,
1602
+ post_params=_form_params,
1603
+ files=_files,
1604
+ auth_settings=_auth_settings,
1605
+ collection_formats=_collection_formats,
1606
+ _host=_host,
1607
+ _request_auth=_request_auth
1608
+ )
1609
+
1610
+