revengai 1.1.1__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 (741) hide show
  1. revengai/__init__.py +1035 -0
  2. revengai/api/__init__.py +58 -0
  3. revengai/api/analyses_comments_api.py +1260 -0
  4. revengai/api/analyses_core_api.py +4305 -0
  5. revengai/api/analyses_dynamic_execution_api.py +1991 -0
  6. revengai/api/analyses_results_metadata_api.py +2324 -0
  7. revengai/api/analyses_security_checks_api.py +909 -0
  8. revengai/api/authentication_users_api.py +1386 -0
  9. revengai/api/binaries_api.py +1702 -0
  10. revengai/api/collections_api.py +2222 -0
  11. revengai/api/confidence_api.py +1214 -0
  12. revengai/api/external_sources_api.py +1709 -0
  13. revengai/api/firmware_api.py +624 -0
  14. revengai/api/functions_ai_decompilation_api.py +2728 -0
  15. revengai/api/functions_block_comments_api.py +897 -0
  16. revengai/api/functions_core_api.py +2216 -0
  17. revengai/api/functions_data_types_api.py +1838 -0
  18. revengai/api/functions_decompilation_api.py +2097 -0
  19. revengai/api/functions_renaming_history_api.py +1214 -0
  20. revengai/api/functions_threat_score_api.py +610 -0
  21. revengai/api/models_api.py +303 -0
  22. revengai/api/search_api.py +1483 -0
  23. revengai/api/v1_api.py +6373 -0
  24. revengai/api_client.py +804 -0
  25. revengai/api_response.py +21 -0
  26. revengai/configuration.py +602 -0
  27. revengai/exceptions.py +216 -0
  28. revengai/models/__init__.py +631 -0
  29. revengai/models/addr.py +144 -0
  30. revengai/models/ai_decompilation_rating.py +37 -0
  31. revengai/models/analyse_created.py +99 -0
  32. revengai/models/analysis_access_info.py +89 -0
  33. revengai/models/analysis_config.py +107 -0
  34. revengai/models/analysis_create_request.py +132 -0
  35. revengai/models/analysis_create_response.py +89 -0
  36. revengai/models/analysis_detail_response.py +122 -0
  37. revengai/models/analysis_form.py +138 -0
  38. revengai/models/analysis_functions.py +95 -0
  39. revengai/models/analysis_record.py +123 -0
  40. revengai/models/analysis_scope.py +37 -0
  41. revengai/models/analysis_status.py +94 -0
  42. revengai/models/analysis_strings_response.py +97 -0
  43. revengai/models/analysis_threat_score_data.py +99 -0
  44. revengai/models/analysis_update_request.py +109 -0
  45. revengai/models/analysis_update_tags_request.py +87 -0
  46. revengai/models/analysis_update_tags_response.py +95 -0
  47. revengai/models/ann_function.py +121 -0
  48. revengai/models/ann_input.py +108 -0
  49. revengai/models/app_api_rest_v1_analyse_schema_model_name.py +44 -0
  50. revengai/models/app_api_rest_v1_analyse_schema_status.py +40 -0
  51. revengai/models/app_api_rest_v1_analyse_schema_symbols.py +97 -0
  52. revengai/models/app_api_rest_v1_analysis_info_responses_logs.py +99 -0
  53. revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py +88 -0
  54. revengai/models/app_api_rest_v1_ann_schema_ann_function.py +135 -0
  55. revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py +39 -0
  56. revengai/models/app_api_rest_v2_analyses_enums_model_name.py +43 -0
  57. revengai/models/app_api_rest_v2_analyses_enums_order_by.py +38 -0
  58. revengai/models/app_api_rest_v2_analyses_enums_status.py +41 -0
  59. revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py +104 -0
  60. revengai/models/app_api_rest_v2_analyses_responses_logs.py +87 -0
  61. revengai/models/app_api_rest_v2_analyses_responses_tag_item.py +96 -0
  62. revengai/models/app_api_rest_v2_analyses_schemas_symbols.py +97 -0
  63. revengai/models/app_api_rest_v2_collections_enums_order_by.py +41 -0
  64. revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py +94 -0
  65. revengai/models/app_api_rest_v2_functions_responses_function.py +89 -0
  66. revengai/models/app_api_rest_v2_functions_types_function.py +109 -0
  67. revengai/models/app_api_rest_v2_info_responses_analysis_tags.py +104 -0
  68. revengai/models/app_api_rest_v2_similarity_schema_ann_function.py +121 -0
  69. revengai/models/app_core_responses_base_base_response_analysis_tags1.py +126 -0
  70. revengai/models/app_core_responses_base_base_response_analysis_tags2.py +126 -0
  71. revengai/models/app_services_binary_ann_schema_tag_item.py +99 -0
  72. revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py +87 -0
  73. revengai/models/argument.py +100 -0
  74. revengai/models/base_response.py +125 -0
  75. revengai/models/base_response_analysis_create_response.py +126 -0
  76. revengai/models/base_response_analysis_detail_response.py +126 -0
  77. revengai/models/base_response_analysis_functions.py +126 -0
  78. revengai/models/base_response_analysis_strings_response.py +126 -0
  79. revengai/models/base_response_analysis_threat_score_data.py +126 -0
  80. revengai/models/base_response_analysis_update_tags_response.py +126 -0
  81. revengai/models/base_response_basic.py +126 -0
  82. revengai/models/base_response_binary_additional_response.py +126 -0
  83. revengai/models/base_response_binary_ann_list_response.py +126 -0
  84. revengai/models/base_response_binary_details_response.py +126 -0
  85. revengai/models/base_response_binary_externals_response.py +126 -0
  86. revengai/models/base_response_binary_search_response.py +126 -0
  87. revengai/models/base_response_block_comments_generation_for_function_response.py +126 -0
  88. revengai/models/base_response_block_comments_overview_generation_response.py +117 -0
  89. revengai/models/base_response_bool.py +122 -0
  90. revengai/models/base_response_box_plot_confidence.py +126 -0
  91. revengai/models/base_response_callees_caller_functions_response.py +126 -0
  92. revengai/models/base_response_capabilities.py +126 -0
  93. revengai/models/base_response_check_security_checks_task_response.py +126 -0
  94. revengai/models/base_response_child_binaries_response.py +126 -0
  95. revengai/models/base_response_collection_binaries_update_response.py +126 -0
  96. revengai/models/base_response_collection_response.py +126 -0
  97. revengai/models/base_response_collection_search_response.py +126 -0
  98. revengai/models/base_response_collection_tags_update_response.py +126 -0
  99. revengai/models/base_response_comment_response.py +126 -0
  100. revengai/models/base_response_communities.py +126 -0
  101. revengai/models/base_response_created.py +126 -0
  102. revengai/models/base_response_decompilation_response.py +126 -0
  103. revengai/models/base_response_dict.py +122 -0
  104. revengai/models/base_response_dynamic_execution_status.py +126 -0
  105. revengai/models/base_response_external_response.py +126 -0
  106. revengai/models/base_response_function_analysis_threat_score_data.py +126 -0
  107. revengai/models/base_response_function_blocks_response.py +126 -0
  108. revengai/models/base_response_function_capability_response.py +126 -0
  109. revengai/models/base_response_function_data_types.py +126 -0
  110. revengai/models/base_response_function_data_types_list.py +126 -0
  111. revengai/models/base_response_function_search_response.py +126 -0
  112. revengai/models/base_response_function_strings_response.py +126 -0
  113. revengai/models/base_response_function_task_response.py +126 -0
  114. revengai/models/base_response_function_threat_score.py +126 -0
  115. revengai/models/base_response_functions_detail_response.py +126 -0
  116. revengai/models/base_response_generate_function_data_types.py +126 -0
  117. revengai/models/base_response_generation_status_list.py +126 -0
  118. revengai/models/base_response_get_ai_decompilation_rating_response.py +126 -0
  119. revengai/models/base_response_get_ai_decompilation_task.py +126 -0
  120. revengai/models/base_response_get_public_user_response.py +126 -0
  121. revengai/models/base_response_get_user_response.py +126 -0
  122. revengai/models/base_response_list_collection_results.py +126 -0
  123. revengai/models/base_response_list_comment_response.py +130 -0
  124. revengai/models/base_response_list_die_match.py +130 -0
  125. revengai/models/base_response_list_function_box_plot_confidence.py +130 -0
  126. revengai/models/base_response_list_function_name_history.py +130 -0
  127. revengai/models/base_response_list_sbom.py +130 -0
  128. revengai/models/base_response_list_similar_functions_response.py +130 -0
  129. revengai/models/base_response_list_tag_origin_box_plot_confidence.py +130 -0
  130. revengai/models/base_response_list_user_activity_response.py +130 -0
  131. revengai/models/base_response_login_response.py +126 -0
  132. revengai/models/base_response_logs.py +126 -0
  133. revengai/models/base_response_models_response.py +126 -0
  134. revengai/models/base_response_nearest_neighbor_analysis.py +136 -0
  135. revengai/models/base_response_network_overview_response.py +126 -0
  136. revengai/models/base_response_params.py +126 -0
  137. revengai/models/base_response_process_dumps.py +126 -0
  138. revengai/models/base_response_process_registry.py +126 -0
  139. revengai/models/base_response_process_tree.py +126 -0
  140. revengai/models/base_response_queued_security_checks_task_response.py +126 -0
  141. revengai/models/base_response_recent.py +126 -0
  142. revengai/models/base_response_security_checks_response.py +126 -0
  143. revengai/models/base_response_status.py +126 -0
  144. revengai/models/base_response_str.py +122 -0
  145. revengai/models/base_response_symbols_info.py +126 -0
  146. revengai/models/base_response_tag_search_response.py +126 -0
  147. revengai/models/base_response_task_response.py +126 -0
  148. revengai/models/base_response_ttps.py +126 -0
  149. revengai/models/base_response_vulnerabilities.py +126 -0
  150. revengai/models/basic.py +108 -0
  151. revengai/models/batch_ann.py +106 -0
  152. revengai/models/batch_function_rename.py +95 -0
  153. revengai/models/batch_function_rename_record.py +90 -0
  154. revengai/models/binary_additional_details_data_response.py +113 -0
  155. revengai/models/binary_additional_response.py +106 -0
  156. revengai/models/binary_ann_form.py +94 -0
  157. revengai/models/binary_ann_list_response.py +95 -0
  158. revengai/models/binary_config.py +109 -0
  159. revengai/models/binary_details_response.py +126 -0
  160. revengai/models/binary_externals_response.py +96 -0
  161. revengai/models/binary_search_response.py +95 -0
  162. revengai/models/binary_search_result.py +109 -0
  163. revengai/models/binary_task_status.py +40 -0
  164. revengai/models/block.py +87 -0
  165. revengai/models/block_comments_generation_for_function_response.py +87 -0
  166. revengai/models/boundary.py +91 -0
  167. revengai/models/box_plot_confidence.py +99 -0
  168. revengai/models/callee_function_info.py +107 -0
  169. revengai/models/callees_caller_functions_response.py +107 -0
  170. revengai/models/caller_function_info.py +107 -0
  171. revengai/models/capabilities.py +95 -0
  172. revengai/models/capability.py +91 -0
  173. revengai/models/check_security_checks_task_response.py +88 -0
  174. revengai/models/child_binaries_response.py +105 -0
  175. revengai/models/code_signature_model.py +99 -0
  176. revengai/models/collection_binaries_update_request.py +87 -0
  177. revengai/models/collection_binaries_update_response.py +95 -0
  178. revengai/models/collection_binary_response.py +98 -0
  179. revengai/models/collection_count.py +99 -0
  180. revengai/models/collection_create_request.py +108 -0
  181. revengai/models/collection_list_item.py +113 -0
  182. revengai/models/collection_response.py +132 -0
  183. revengai/models/collection_response_binaries_inner.py +136 -0
  184. revengai/models/collection_scope.py +39 -0
  185. revengai/models/collection_search_response.py +95 -0
  186. revengai/models/collection_search_result.py +125 -0
  187. revengai/models/collection_tags_update_request.py +87 -0
  188. revengai/models/collection_tags_update_response.py +87 -0
  189. revengai/models/collection_update_request.py +107 -0
  190. revengai/models/collections_count_form.py +88 -0
  191. revengai/models/comment_base.py +87 -0
  192. revengai/models/comment_response.py +111 -0
  193. revengai/models/comment_update_request.py +87 -0
  194. revengai/models/communities.py +101 -0
  195. revengai/models/community_match_percentages.py +93 -0
  196. revengai/models/confidence_type.py +40 -0
  197. revengai/models/config_settings.py +101 -0
  198. revengai/models/context.py +142 -0
  199. revengai/models/create_ai_decompilation_request.py +87 -0
  200. revengai/models/created.py +91 -0
  201. revengai/models/decompilation_comment_context.py +99 -0
  202. revengai/models/decompilation_response.py +91 -0
  203. revengai/models/deleted_analysis.py +99 -0
  204. revengai/models/die_match.py +93 -0
  205. revengai/models/dynamic_execution_status_input.py +39 -0
  206. revengai/models/elf_dynamic_entry.py +89 -0
  207. revengai/models/elf_import_model.py +89 -0
  208. revengai/models/elf_model.py +180 -0
  209. revengai/models/elf_relocation.py +99 -0
  210. revengai/models/elf_section.py +105 -0
  211. revengai/models/elf_security.py +95 -0
  212. revengai/models/elf_segment.py +103 -0
  213. revengai/models/elf_symbol.py +99 -0
  214. revengai/models/entrypoint_model.py +89 -0
  215. revengai/models/enumeration.py +98 -0
  216. revengai/models/error_model.py +89 -0
  217. revengai/models/export_model.py +89 -0
  218. revengai/models/exported_binary_ann_result.py +111 -0
  219. revengai/models/external_response.py +92 -0
  220. revengai/models/file_format.py +38 -0
  221. revengai/models/file_hashes.py +141 -0
  222. revengai/models/file_metadata.py +97 -0
  223. revengai/models/file_options.py +41 -0
  224. revengai/models/filters.py +40 -0
  225. revengai/models/function_analysis_threat_score_data.py +99 -0
  226. revengai/models/function_batch_ann.py +106 -0
  227. revengai/models/function_block_destination_response.py +96 -0
  228. revengai/models/function_block_response.py +110 -0
  229. revengai/models/function_blocks_response.py +122 -0
  230. revengai/models/function_boundary.py +91 -0
  231. revengai/models/function_box_plot_confidence.py +93 -0
  232. revengai/models/function_capability_response.py +87 -0
  233. revengai/models/function_comment_create_request.py +93 -0
  234. revengai/models/function_data_types.py +107 -0
  235. revengai/models/function_data_types_list.py +99 -0
  236. revengai/models/function_data_types_list_item.py +109 -0
  237. revengai/models/function_data_types_params.py +87 -0
  238. revengai/models/function_data_types_status.py +91 -0
  239. revengai/models/function_dump.py +106 -0
  240. revengai/models/function_header.py +113 -0
  241. revengai/models/function_info_input.py +106 -0
  242. revengai/models/function_info_input_func_deps_inner.py +164 -0
  243. revengai/models/function_info_output.py +106 -0
  244. revengai/models/function_list.py +87 -0
  245. revengai/models/function_list_basic.py +99 -0
  246. revengai/models/function_local_variable_response.py +95 -0
  247. revengai/models/function_mapping_full.py +248 -0
  248. revengai/models/function_name_confidence_body.py +98 -0
  249. revengai/models/function_name_history.py +97 -0
  250. revengai/models/function_name_input.py +89 -0
  251. revengai/models/function_param_mapping.py +89 -0
  252. revengai/models/function_param_response.py +95 -0
  253. revengai/models/function_params.py +95 -0
  254. revengai/models/function_rename.py +94 -0
  255. revengai/models/function_rename_map.py +96 -0
  256. revengai/models/function_search_response.py +95 -0
  257. revengai/models/function_search_result.py +100 -0
  258. revengai/models/function_string.py +89 -0
  259. revengai/models/function_strings_response.py +97 -0
  260. revengai/models/function_task_response.py +95 -0
  261. revengai/models/function_task_status.py +40 -0
  262. revengai/models/function_threat_score.py +100 -0
  263. revengai/models/function_type_input.py +128 -0
  264. revengai/models/function_type_output.py +128 -0
  265. revengai/models/functions_detail_response.py +122 -0
  266. revengai/models/functions_list_rename.py +95 -0
  267. revengai/models/generate_function_data_types.py +95 -0
  268. revengai/models/generation_status_list.py +99 -0
  269. revengai/models/get_ai_decompilation_rating_response.py +88 -0
  270. revengai/models/get_ai_decompilation_task.py +153 -0
  271. revengai/models/get_public_user_response.py +89 -0
  272. revengai/models/get_user_response.py +100 -0
  273. revengai/models/global_variable.py +102 -0
  274. revengai/models/icon_model.py +92 -0
  275. revengai/models/import_model.py +89 -0
  276. revengai/models/inverse_function_map_item.py +100 -0
  277. revengai/models/inverse_string_map_item.py +94 -0
  278. revengai/models/inverse_value.py +87 -0
  279. revengai/models/isa.py +38 -0
  280. revengai/models/isa_options.py +39 -0
  281. revengai/models/list_collection_results.py +95 -0
  282. revengai/models/login_request.py +90 -0
  283. revengai/models/login_response.py +87 -0
  284. revengai/models/logs.py +87 -0
  285. revengai/models/meta_model.py +96 -0
  286. revengai/models/model_list.py +99 -0
  287. revengai/models/model_name.py +43 -0
  288. revengai/models/models_response.py +87 -0
  289. revengai/models/nearest_neighbor.py +106 -0
  290. revengai/models/network_overview_dns.py +99 -0
  291. revengai/models/network_overview_dns_answer.py +89 -0
  292. revengai/models/network_overview_metadata.py +100 -0
  293. revengai/models/network_overview_response.py +105 -0
  294. revengai/models/order.py +37 -0
  295. revengai/models/origin.py +43 -0
  296. revengai/models/pagination_model.py +91 -0
  297. revengai/models/params.py +104 -0
  298. revengai/models/pdb_debug_model.py +95 -0
  299. revengai/models/pe_model.py +216 -0
  300. revengai/models/platform.py +37 -0
  301. revengai/models/platform_options.py +40 -0
  302. revengai/models/process.py +104 -0
  303. revengai/models/process_dump.py +97 -0
  304. revengai/models/process_dump_metadata.py +91 -0
  305. revengai/models/process_dumps.py +93 -0
  306. revengai/models/process_dumps_data.py +97 -0
  307. revengai/models/process_registry.py +106 -0
  308. revengai/models/process_tree.py +97 -0
  309. revengai/models/queued_security_checks_task_response.py +87 -0
  310. revengai/models/quick_search.py +99 -0
  311. revengai/models/re_analysis_form.py +102 -0
  312. revengai/models/recent.py +95 -0
  313. revengai/models/recent_analysis.py +99 -0
  314. revengai/models/recent_analysis_form.py +92 -0
  315. revengai/models/registry.py +103 -0
  316. revengai/models/relative_binary_response.py +91 -0
  317. revengai/models/rename.py +99 -0
  318. revengai/models/sandbox_options.py +89 -0
  319. revengai/models/sbom.py +97 -0
  320. revengai/models/sbom_package.py +89 -0
  321. revengai/models/scope.py +39 -0
  322. revengai/models/scrape_third_party_config.py +87 -0
  323. revengai/models/search_binary_ids.py +138 -0
  324. revengai/models/search_form.py +97 -0
  325. revengai/models/search_function_ids.py +138 -0
  326. revengai/models/search_query.py +99 -0
  327. revengai/models/section_model.py +97 -0
  328. revengai/models/security_checks_response.py +99 -0
  329. revengai/models/security_checks_result.py +104 -0
  330. revengai/models/security_model.py +107 -0
  331. revengai/models/severity_type.py +41 -0
  332. revengai/models/similar_functions_response.py +101 -0
  333. revengai/models/single_code_certificate_model.py +97 -0
  334. revengai/models/single_code_signature_model.py +97 -0
  335. revengai/models/single_pdb_entry_model.py +91 -0
  336. revengai/models/single_section_model.py +99 -0
  337. revengai/models/stack_variable.py +102 -0
  338. revengai/models/status_input.py +41 -0
  339. revengai/models/status_output.py +89 -0
  340. revengai/models/string_functions.py +97 -0
  341. revengai/models/structure.py +118 -0
  342. revengai/models/structure_member.py +100 -0
  343. revengai/models/symbols.py +97 -0
  344. revengai/models/symbols_info.py +103 -0
  345. revengai/models/tag_confidence_body.py +96 -0
  346. revengai/models/tag_input.py +87 -0
  347. revengai/models/tag_origin_box_plot_confidence.py +97 -0
  348. revengai/models/tag_output.py +89 -0
  349. revengai/models/tag_response.py +89 -0
  350. revengai/models/tag_search_response.py +95 -0
  351. revengai/models/tag_search_result.py +89 -0
  352. revengai/models/tags.py +90 -0
  353. revengai/models/task_response.py +95 -0
  354. revengai/models/task_status.py +40 -0
  355. revengai/models/threat_score_function_body.py +88 -0
  356. revengai/models/timestamp_model.py +91 -0
  357. revengai/models/ttps.py +93 -0
  358. revengai/models/ttps_attack.py +89 -0
  359. revengai/models/ttps_data.py +97 -0
  360. revengai/models/ttps_element.py +109 -0
  361. revengai/models/ttps_occurance.py +89 -0
  362. revengai/models/type_definition.py +98 -0
  363. revengai/models/update_function_data_types.py +93 -0
  364. revengai/models/upload_success.py +106 -0
  365. revengai/models/upsert_ai_decomplation_rating_request.py +88 -0
  366. revengai/models/user_activity_response.py +98 -0
  367. revengai/models/user_boundaries.py +91 -0
  368. revengai/models/vulnerabilities.py +95 -0
  369. revengai/models/vulnerability.py +114 -0
  370. revengai/models/vulnerability_type.py +41 -0
  371. revengai/models/workspace.py +38 -0
  372. revengai/py.typed +0 -0
  373. revengai/rest.py +258 -0
  374. revengai/test/__init__.py +0 -0
  375. revengai/test/test_addr.py +50 -0
  376. revengai/test/test_ai_decompilation_rating.py +33 -0
  377. revengai/test/test_analyse_created.py +53 -0
  378. revengai/test/test_analyses_comments_api.py +59 -0
  379. revengai/test/test_analyses_core_api.py +136 -0
  380. revengai/test/test_analyses_dynamic_execution_api.py +80 -0
  381. revengai/test/test_analyses_results_metadata_api.py +143 -0
  382. revengai/test/test_analyses_security_checks_api.py +52 -0
  383. revengai/test/test_analysis_access_info.py +54 -0
  384. revengai/test/test_analysis_config.py +60 -0
  385. revengai/test/test_analysis_create_request.py +83 -0
  386. revengai/test/test_analysis_create_response.py +54 -0
  387. revengai/test/test_analysis_detail_response.py +83 -0
  388. revengai/test/test_analysis_form.py +81 -0
  389. revengai/test/test_analysis_functions.py +78 -0
  390. revengai/test/test_analysis_record.py +74 -0
  391. revengai/test/test_analysis_scope.py +33 -0
  392. revengai/test/test_analysis_status.py +53 -0
  393. revengai/test/test_analysis_strings_response.py +70 -0
  394. revengai/test/test_analysis_threat_score_data.py +64 -0
  395. revengai/test/test_analysis_update_request.py +52 -0
  396. revengai/test/test_analysis_update_tags_request.py +56 -0
  397. revengai/test/test_analysis_update_tags_response.py +60 -0
  398. revengai/test/test_ann_function.py +61 -0
  399. revengai/test/test_ann_input.py +56 -0
  400. revengai/test/test_app_api_rest_v1_analyse_schema_model_name.py +33 -0
  401. revengai/test/test_app_api_rest_v1_analyse_schema_status.py +33 -0
  402. revengai/test/test_app_api_rest_v1_analyse_schema_symbols.py +57 -0
  403. revengai/test/test_app_api_rest_v1_analysis_info_responses_logs.py +53 -0
  404. revengai/test/test_app_api_rest_v1_analysis_info_schema_function_rename.py +52 -0
  405. revengai/test/test_app_api_rest_v1_ann_schema_ann_function.py +74 -0
  406. revengai/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py +33 -0
  407. revengai/test/test_app_api_rest_v2_analyses_enums_model_name.py +33 -0
  408. revengai/test/test_app_api_rest_v2_analyses_enums_order_by.py +33 -0
  409. revengai/test/test_app_api_rest_v2_analyses_enums_status.py +33 -0
  410. revengai/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py +74 -0
  411. revengai/test/test_app_api_rest_v2_analyses_responses_logs.py +52 -0
  412. revengai/test/test_app_api_rest_v2_analyses_responses_tag_item.py +55 -0
  413. revengai/test/test_app_api_rest_v2_analyses_schemas_symbols.py +57 -0
  414. revengai/test/test_app_api_rest_v2_collections_enums_order_by.py +33 -0
  415. revengai/test/test_app_api_rest_v2_functions_rename_schema_function_rename.py +52 -0
  416. revengai/test/test_app_api_rest_v2_functions_responses_function.py +54 -0
  417. revengai/test/test_app_api_rest_v2_functions_types_function.py +72 -0
  418. revengai/test/test_app_api_rest_v2_info_responses_analysis_tags.py +70 -0
  419. revengai/test/test_app_api_rest_v2_similarity_schema_ann_function.py +61 -0
  420. revengai/test/test_app_core_responses_base_base_response_analysis_tags1.py +73 -0
  421. revengai/test/test_app_core_responses_base_base_response_analysis_tags2.py +75 -0
  422. revengai/test/test_app_services_binary_ann_schema_tag_item.py +52 -0
  423. revengai/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py +52 -0
  424. revengai/test/test_argument.py +59 -0
  425. revengai/test/test_authentication_users_api.py +66 -0
  426. revengai/test/test_base_response.py +63 -0
  427. revengai/test/test_base_response_analysis_create_response.py +65 -0
  428. revengai/test/test_base_response_analysis_detail_response.py +81 -0
  429. revengai/test/test_base_response_analysis_functions.py +77 -0
  430. revengai/test/test_base_response_analysis_strings_response.py +73 -0
  431. revengai/test/test_base_response_analysis_threat_score_data.py +70 -0
  432. revengai/test/test_base_response_analysis_update_tags_response.py +68 -0
  433. revengai/test/test_base_response_basic.py +74 -0
  434. revengai/test/test_base_response_binary_additional_response.py +259 -0
  435. revengai/test/test_base_response_binary_ann_list_response.py +83 -0
  436. revengai/test/test_base_response_binary_details_response.py +83 -0
  437. revengai/test/test_base_response_binary_externals_response.py +72 -0
  438. revengai/test/test_base_response_binary_search_response.py +77 -0
  439. revengai/test/test_base_response_block_comments_generation_for_function_response.py +64 -0
  440. revengai/test/test_base_response_block_comments_overview_generation_response.py +63 -0
  441. revengai/test/test_base_response_bool.py +63 -0
  442. revengai/test/test_base_response_box_plot_confidence.py +70 -0
  443. revengai/test/test_base_response_callees_caller_functions_response.py +82 -0
  444. revengai/test/test_base_response_capabilities.py +71 -0
  445. revengai/test/test_base_response_check_security_checks_task_response.py +64 -0
  446. revengai/test/test_base_response_child_binaries_response.py +73 -0
  447. revengai/test/test_base_response_collection_binaries_update_response.py +72 -0
  448. revengai/test/test_base_response_collection_response.py +78 -0
  449. revengai/test/test_base_response_collection_search_response.py +80 -0
  450. revengai/test/test_base_response_collection_tags_update_response.py +66 -0
  451. revengai/test/test_base_response_comment_response.py +71 -0
  452. revengai/test/test_base_response_communities.py +77 -0
  453. revengai/test/test_base_response_created.py +66 -0
  454. revengai/test/test_base_response_decompilation_response.py +66 -0
  455. revengai/test/test_base_response_dict.py +65 -0
  456. revengai/test/test_base_response_dynamic_execution_status.py +64 -0
  457. revengai/test/test_base_response_external_response.py +68 -0
  458. revengai/test/test_base_response_function_analysis_threat_score_data.py +70 -0
  459. revengai/test/test_base_response_function_blocks_response.py +96 -0
  460. revengai/test/test_base_response_function_capability_response.py +66 -0
  461. revengai/test/test_base_response_function_data_types.py +99 -0
  462. revengai/test/test_base_response_function_data_types_list.py +105 -0
  463. revengai/test/test_base_response_function_search_response.py +73 -0
  464. revengai/test/test_base_response_function_strings_response.py +69 -0
  465. revengai/test/test_base_response_function_task_response.py +65 -0
  466. revengai/test/test_base_response_function_threat_score.py +73 -0
  467. revengai/test/test_base_response_functions_detail_response.py +78 -0
  468. revengai/test/test_base_response_generate_function_data_types.py +74 -0
  469. revengai/test/test_base_response_generation_status_list.py +71 -0
  470. revengai/test/test_base_response_get_ai_decompilation_rating_response.py +64 -0
  471. revengai/test/test_base_response_get_ai_decompilation_task.py +118 -0
  472. revengai/test/test_base_response_get_public_user_response.py +65 -0
  473. revengai/test/test_base_response_get_user_response.py +70 -0
  474. revengai/test/test_base_response_list_collection_results.py +79 -0
  475. revengai/test/test_base_response_list_comment_response.py +73 -0
  476. revengai/test/test_base_response_list_die_match.py +69 -0
  477. revengai/test/test_base_response_list_function_box_plot_confidence.py +74 -0
  478. revengai/test/test_base_response_list_function_name_history.py +71 -0
  479. revengai/test/test_base_response_list_sbom.py +73 -0
  480. revengai/test/test_base_response_list_similar_functions_response.py +77 -0
  481. revengai/test/test_base_response_list_tag_origin_box_plot_confidence.py +76 -0
  482. revengai/test/test_base_response_list_user_activity_response.py +71 -0
  483. revengai/test/test_base_response_login_response.py +64 -0
  484. revengai/test/test_base_response_logs.py +64 -0
  485. revengai/test/test_base_response_models_response.py +66 -0
  486. revengai/test/test_base_response_nearest_neighbor_analysis.py +75 -0
  487. revengai/test/test_base_response_network_overview_response.py +80 -0
  488. revengai/test/test_base_response_params.py +70 -0
  489. revengai/test/test_base_response_process_dumps.py +76 -0
  490. revengai/test/test_base_response_process_registry.py +73 -0
  491. revengai/test/test_base_response_process_tree.py +78 -0
  492. revengai/test/test_base_response_queued_security_checks_task_response.py +64 -0
  493. revengai/test/test_base_response_recent.py +79 -0
  494. revengai/test/test_base_response_security_checks_response.py +76 -0
  495. revengai/test/test_base_response_status.py +65 -0
  496. revengai/test/test_base_response_str.py +63 -0
  497. revengai/test/test_base_response_symbols_info.py +68 -0
  498. revengai/test/test_base_response_tag_search_response.py +68 -0
  499. revengai/test/test_base_response_task_response.py +65 -0
  500. revengai/test/test_base_response_ttps.py +81 -0
  501. revengai/test/test_base_response_vulnerabilities.py +77 -0
  502. revengai/test/test_basic.py +72 -0
  503. revengai/test/test_batch_ann.py +55 -0
  504. revengai/test/test_batch_function_rename.py +60 -0
  505. revengai/test/test_batch_function_rename_record.py +54 -0
  506. revengai/test/test_binaries_api.py +73 -0
  507. revengai/test/test_binary_additional_details_data_response.py +256 -0
  508. revengai/test/test_binary_additional_response.py +441 -0
  509. revengai/test/test_binary_ann_form.py +58 -0
  510. revengai/test/test_binary_ann_list_response.py +90 -0
  511. revengai/test/test_binary_config.py +53 -0
  512. revengai/test/test_binary_details_response.py +90 -0
  513. revengai/test/test_binary_externals_response.py +68 -0
  514. revengai/test/test_binary_search_response.py +78 -0
  515. revengai/test/test_binary_search_result.py +72 -0
  516. revengai/test/test_binary_task_status.py +33 -0
  517. revengai/test/test_block.py +52 -0
  518. revengai/test/test_block_comments_generation_for_function_response.py +52 -0
  519. revengai/test/test_boundary.py +56 -0
  520. revengai/test/test_box_plot_confidence.py +64 -0
  521. revengai/test/test_callee_function_info.py +61 -0
  522. revengai/test/test_callees_caller_functions_response.py +87 -0
  523. revengai/test/test_caller_function_info.py +61 -0
  524. revengai/test/test_capabilities.py +66 -0
  525. revengai/test/test_capability.py +60 -0
  526. revengai/test/test_check_security_checks_task_response.py +52 -0
  527. revengai/test/test_child_binaries_response.py +66 -0
  528. revengai/test/test_code_signature_model.py +80 -0
  529. revengai/test/test_collection_binaries_update_request.py +56 -0
  530. revengai/test/test_collection_binaries_update_response.py +68 -0
  531. revengai/test/test_collection_binary_response.py +62 -0
  532. revengai/test/test_collection_count.py +53 -0
  533. revengai/test/test_collection_create_request.py +63 -0
  534. revengai/test/test_collection_list_item.py +72 -0
  535. revengai/test/test_collection_response.py +73 -0
  536. revengai/test/test_collection_response_binaries_inner.py +62 -0
  537. revengai/test/test_collection_scope.py +33 -0
  538. revengai/test/test_collection_search_response.py +84 -0
  539. revengai/test/test_collection_search_result.py +73 -0
  540. revengai/test/test_collection_tags_update_request.py +56 -0
  541. revengai/test/test_collection_tags_update_response.py +56 -0
  542. revengai/test/test_collection_update_request.py +53 -0
  543. revengai/test/test_collections_api.py +80 -0
  544. revengai/test/test_collections_count_form.py +52 -0
  545. revengai/test/test_comment_base.py +52 -0
  546. revengai/test/test_comment_response.py +65 -0
  547. revengai/test/test_comment_update_request.py +52 -0
  548. revengai/test/test_communities.py +78 -0
  549. revengai/test/test_community_match_percentages.py +58 -0
  550. revengai/test/test_confidence_api.py +59 -0
  551. revengai/test/test_confidence_type.py +33 -0
  552. revengai/test/test_config_settings.py +70 -0
  553. revengai/test/test_context.py +54 -0
  554. revengai/test/test_create_ai_decompilation_request.py +52 -0
  555. revengai/test/test_created.py +56 -0
  556. revengai/test/test_decompilation_comment_context.py +54 -0
  557. revengai/test/test_decompilation_response.py +56 -0
  558. revengai/test/test_deleted_analysis.py +52 -0
  559. revengai/test/test_die_match.py +58 -0
  560. revengai/test/test_dynamic_execution_status_input.py +33 -0
  561. revengai/test/test_elf_dynamic_entry.py +54 -0
  562. revengai/test/test_elf_import_model.py +58 -0
  563. revengai/test/test_elf_model.py +236 -0
  564. revengai/test/test_elf_relocation.py +64 -0
  565. revengai/test/test_elf_section.py +70 -0
  566. revengai/test/test_elf_security.py +60 -0
  567. revengai/test/test_elf_segment.py +68 -0
  568. revengai/test/test_elf_symbol.py +64 -0
  569. revengai/test/test_entrypoint_model.py +54 -0
  570. revengai/test/test_enumeration.py +60 -0
  571. revengai/test/test_error_model.py +54 -0
  572. revengai/test/test_export_model.py +62 -0
  573. revengai/test/test_exported_binary_ann_result.py +79 -0
  574. revengai/test/test_external_response.py +60 -0
  575. revengai/test/test_external_sources_api.py +73 -0
  576. revengai/test/test_file_format.py +33 -0
  577. revengai/test/test_file_hashes.py +66 -0
  578. revengai/test/test_file_metadata.py +74 -0
  579. revengai/test/test_file_options.py +33 -0
  580. revengai/test/test_filters.py +33 -0
  581. revengai/test/test_firmware_api.py +45 -0
  582. revengai/test/test_function_analysis_threat_score_data.py +64 -0
  583. revengai/test/test_function_batch_ann.py +55 -0
  584. revengai/test/test_function_block_destination_response.py +56 -0
  585. revengai/test/test_function_block_response.py +75 -0
  586. revengai/test/test_function_blocks_response.py +116 -0
  587. revengai/test/test_function_boundary.py +56 -0
  588. revengai/test/test_function_box_plot_confidence.py +68 -0
  589. revengai/test/test_function_capability_response.py +56 -0
  590. revengai/test/test_function_comment_create_request.py +55 -0
  591. revengai/test/test_function_data_types.py +88 -0
  592. revengai/test/test_function_data_types_list.py +132 -0
  593. revengai/test/test_function_data_types_list_item.py +90 -0
  594. revengai/test/test_function_data_types_params.py +56 -0
  595. revengai/test/test_function_data_types_status.py +56 -0
  596. revengai/test/test_function_dump.py +55 -0
  597. revengai/test/test_function_header.py +73 -0
  598. revengai/test/test_function_info_input.py +85 -0
  599. revengai/test/test_function_info_input_func_deps_inner.py +66 -0
  600. revengai/test/test_function_info_output.py +85 -0
  601. revengai/test/test_function_list.py +56 -0
  602. revengai/test/test_function_list_basic.py +53 -0
  603. revengai/test/test_function_local_variable_response.py +60 -0
  604. revengai/test/test_function_mapping_full.py +148 -0
  605. revengai/test/test_function_name_confidence_body.py +56 -0
  606. revengai/test/test_function_name_history.py +62 -0
  607. revengai/test/test_function_name_input.py +54 -0
  608. revengai/test/test_function_param_mapping.py +54 -0
  609. revengai/test/test_function_param_response.py +60 -0
  610. revengai/test/test_function_params.py +60 -0
  611. revengai/test/test_function_rename.py +52 -0
  612. revengai/test/test_function_rename_map.py +55 -0
  613. revengai/test/test_function_search_response.py +70 -0
  614. revengai/test/test_function_search_result.py +64 -0
  615. revengai/test/test_function_string.py +54 -0
  616. revengai/test/test_function_strings_response.py +62 -0
  617. revengai/test/test_function_task_response.py +52 -0
  618. revengai/test/test_function_task_status.py +33 -0
  619. revengai/test/test_function_threat_score.py +70 -0
  620. revengai/test/test_function_type_input.py +95 -0
  621. revengai/test/test_function_type_output.py +95 -0
  622. revengai/test/test_functions_ai_decompilation_api.py +108 -0
  623. revengai/test/test_functions_block_comments_api.py +73 -0
  624. revengai/test/test_functions_core_api.py +87 -0
  625. revengai/test/test_functions_data_types_api.py +101 -0
  626. revengai/test/test_functions_decompilation_api.py +80 -0
  627. revengai/test/test_functions_detail_response.py +74 -0
  628. revengai/test/test_functions_list_rename.py +62 -0
  629. revengai/test/test_functions_renaming_history_api.py +59 -0
  630. revengai/test/test_functions_threat_score_api.py +59 -0
  631. revengai/test/test_generate_function_data_types.py +72 -0
  632. revengai/test/test_generation_status_list.py +64 -0
  633. revengai/test/test_get_ai_decompilation_rating_response.py +52 -0
  634. revengai/test/test_get_ai_decompilation_task.py +157 -0
  635. revengai/test/test_get_public_user_response.py +54 -0
  636. revengai/test/test_get_user_response.py +64 -0
  637. revengai/test/test_global_variable.py +60 -0
  638. revengai/test/test_icon_model.py +52 -0
  639. revengai/test/test_import_model.py +66 -0
  640. revengai/test/test_inverse_function_map_item.py +55 -0
  641. revengai/test/test_inverse_string_map_item.py +54 -0
  642. revengai/test/test_inverse_value.py +52 -0
  643. revengai/test/test_isa.py +33 -0
  644. revengai/test/test_isa_options.py +33 -0
  645. revengai/test/test_list_collection_results.py +82 -0
  646. revengai/test/test_login_request.py +54 -0
  647. revengai/test/test_login_response.py +52 -0
  648. revengai/test/test_logs.py +52 -0
  649. revengai/test/test_meta_model.py +54 -0
  650. revengai/test/test_model_list.py +53 -0
  651. revengai/test/test_model_name.py +33 -0
  652. revengai/test/test_models_api.py +38 -0
  653. revengai/test/test_models_response.py +56 -0
  654. revengai/test/test_nearest_neighbor.py +66 -0
  655. revengai/test/test_network_overview_dns.py +64 -0
  656. revengai/test/test_network_overview_dns_answer.py +54 -0
  657. revengai/test/test_network_overview_metadata.py +58 -0
  658. revengai/test/test_network_overview_response.py +84 -0
  659. revengai/test/test_order.py +33 -0
  660. revengai/test/test_origin.py +33 -0
  661. revengai/test/test_pagination_model.py +56 -0
  662. revengai/test/test_params.py +64 -0
  663. revengai/test/test_pdb_debug_model.py +62 -0
  664. revengai/test/test_pe_model.py +220 -0
  665. revengai/test/test_platform.py +33 -0
  666. revengai/test/test_platform_options.py +33 -0
  667. revengai/test/test_process.py +72 -0
  668. revengai/test/test_process_dump.py +64 -0
  669. revengai/test/test_process_dump_metadata.py +56 -0
  670. revengai/test/test_process_dumps.py +76 -0
  671. revengai/test/test_process_dumps_data.py +72 -0
  672. revengai/test/test_process_registry.py +70 -0
  673. revengai/test/test_process_tree.py +80 -0
  674. revengai/test/test_queued_security_checks_task_response.py +52 -0
  675. revengai/test/test_quick_search.py +53 -0
  676. revengai/test/test_re_analysis_form.py +58 -0
  677. revengai/test/test_recent.py +82 -0
  678. revengai/test/test_recent_analysis.py +53 -0
  679. revengai/test/test_recent_analysis_form.py +53 -0
  680. revengai/test/test_registry.py +58 -0
  681. revengai/test/test_relative_binary_response.py +56 -0
  682. revengai/test/test_rename.py +53 -0
  683. revengai/test/test_sandbox_options.py +52 -0
  684. revengai/test/test_sbom.py +66 -0
  685. revengai/test/test_sbom_package.py +54 -0
  686. revengai/test/test_scope.py +33 -0
  687. revengai/test/test_scrape_third_party_config.py +51 -0
  688. revengai/test/test_search_api.py +59 -0
  689. revengai/test/test_search_binary_ids.py +50 -0
  690. revengai/test/test_search_form.py +56 -0
  691. revengai/test/test_search_function_ids.py +50 -0
  692. revengai/test/test_search_query.py +52 -0
  693. revengai/test/test_section_model.py +72 -0
  694. revengai/test/test_security_checks_response.py +76 -0
  695. revengai/test/test_security_checks_result.py +66 -0
  696. revengai/test/test_security_model.py +72 -0
  697. revengai/test/test_severity_type.py +33 -0
  698. revengai/test/test_similar_functions_response.py +74 -0
  699. revengai/test/test_single_code_certificate_model.py +62 -0
  700. revengai/test/test_single_code_signature_model.py +70 -0
  701. revengai/test/test_single_pdb_entry_model.py +56 -0
  702. revengai/test/test_single_section_model.py +64 -0
  703. revengai/test/test_stack_variable.py +61 -0
  704. revengai/test/test_status_input.py +33 -0
  705. revengai/test/test_status_output.py +54 -0
  706. revengai/test/test_string_functions.py +62 -0
  707. revengai/test/test_structure.py +71 -0
  708. revengai/test/test_structure_member.py +59 -0
  709. revengai/test/test_symbols.py +57 -0
  710. revengai/test/test_symbols_info.py +55 -0
  711. revengai/test/test_tag_confidence_body.py +60 -0
  712. revengai/test/test_tag_input.py +52 -0
  713. revengai/test/test_tag_origin_box_plot_confidence.py +72 -0
  714. revengai/test/test_tag_output.py +54 -0
  715. revengai/test/test_tag_response.py +54 -0
  716. revengai/test/test_tag_search_response.py +60 -0
  717. revengai/test/test_tag_search_result.py +54 -0
  718. revengai/test/test_tags.py +54 -0
  719. revengai/test/test_task_response.py +52 -0
  720. revengai/test/test_task_status.py +33 -0
  721. revengai/test/test_threat_score_function_body.py +53 -0
  722. revengai/test/test_timestamp_model.py +56 -0
  723. revengai/test/test_ttps.py +86 -0
  724. revengai/test/test_ttps_attack.py +54 -0
  725. revengai/test/test_ttps_data.py +82 -0
  726. revengai/test/test_ttps_element.py +74 -0
  727. revengai/test/test_ttps_occurance.py +54 -0
  728. revengai/test/test_type_definition.py +56 -0
  729. revengai/test/test_update_function_data_types.py +118 -0
  730. revengai/test/test_upload_success.py +54 -0
  731. revengai/test/test_upsert_ai_decomplation_rating_request.py +52 -0
  732. revengai/test/test_user_activity_response.py +62 -0
  733. revengai/test/test_user_boundaries.py +56 -0
  734. revengai/test/test_v1_api.py +185 -0
  735. revengai/test/test_vulnerabilities.py +78 -0
  736. revengai/test/test_vulnerability.py +71 -0
  737. revengai/test/test_vulnerability_type.py +33 -0
  738. revengai/test/test_workspace.py +33 -0
  739. revengai-1.1.1.dist-info/METADATA +470 -0
  740. revengai-1.1.1.dist-info/RECORD +741 -0
  741. revengai-1.1.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,1483 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ RevEng.AI API
5
+
6
+ RevEng.AI is Similarity Search Engine for executable binaries
7
+
8
+ The version of the OpenAPI document: 0.0.1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictStr
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy
23
+ from revengai.models.base_response_binary_search_response import BaseResponseBinarySearchResponse
24
+ from revengai.models.base_response_collection_search_response import BaseResponseCollectionSearchResponse
25
+ from revengai.models.base_response_function_search_response import BaseResponseFunctionSearchResponse
26
+ from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse
27
+ from revengai.models.filters import Filters
28
+ from revengai.models.order import Order
29
+
30
+ from revengai.api_client import ApiClient, RequestSerialized
31
+ from revengai.api_response import ApiResponse
32
+ from revengai.rest import RESTResponseType
33
+
34
+
35
+ class SearchApi:
36
+ """NOTE: This class is auto generated by OpenAPI Generator
37
+ Ref: https://openapi-generator.tech
38
+
39
+ Do not edit the class manually.
40
+ """
41
+
42
+ def __init__(self, api_client=None) -> None:
43
+ if api_client is None:
44
+ api_client = ApiClient.get_default()
45
+ self.api_client = api_client
46
+
47
+
48
+ @validate_call
49
+ def search_binaries(
50
+ self,
51
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
52
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
53
+ partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary being searched")] = None,
54
+ partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None,
55
+ tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None,
56
+ model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
57
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
58
+ _request_timeout: Union[
59
+ None,
60
+ Annotated[StrictFloat, Field(gt=0)],
61
+ Tuple[
62
+ Annotated[StrictFloat, Field(gt=0)],
63
+ Annotated[StrictFloat, Field(gt=0)]
64
+ ]
65
+ ] = None,
66
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
67
+ _content_type: Optional[StrictStr] = None,
68
+ _headers: Optional[Dict[StrictStr, Any]] = None,
69
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
70
+ ) -> BaseResponseBinarySearchResponse:
71
+ """Binaries search
72
+
73
+ Searches for a specific binary
74
+
75
+ :param page: The page number to retrieve.
76
+ :type page: int
77
+ :param page_size: Number of items per page.
78
+ :type page_size: int
79
+ :param partial_name: The partial or full name of the binary being searched
80
+ :type partial_name: str
81
+ :param partial_sha256: The partial or full sha256 of the binary being searched
82
+ :type partial_sha256: str
83
+ :param tags: The tags to be searched for
84
+ :type tags: List[str]
85
+ :param model_name: The name of the model used to analyze the binary the function belongs to
86
+ :type model_name: str
87
+ :param authorization: API Key bearer token
88
+ :type authorization: str
89
+ :param _request_timeout: timeout setting for this request. If one
90
+ number provided, it will be total request
91
+ timeout. It can also be a pair (tuple) of
92
+ (connection, read) timeouts.
93
+ :type _request_timeout: int, tuple(int, int), optional
94
+ :param _request_auth: set to override the auth_settings for an a single
95
+ request; this effectively ignores the
96
+ authentication in the spec for a single request.
97
+ :type _request_auth: dict, optional
98
+ :param _content_type: force content-type for the request.
99
+ :type _content_type: str, Optional
100
+ :param _headers: set to override the headers for a single
101
+ request; this effectively ignores the headers
102
+ in the spec for a single request.
103
+ :type _headers: dict, optional
104
+ :param _host_index: set to override the host_index for a single
105
+ request; this effectively ignores the host_index
106
+ in the spec for a single request.
107
+ :type _host_index: int, optional
108
+ :return: Returns the result object.
109
+ """ # noqa: E501
110
+
111
+ _param = self._search_binaries_serialize(
112
+ page=page,
113
+ page_size=page_size,
114
+ partial_name=partial_name,
115
+ partial_sha256=partial_sha256,
116
+ tags=tags,
117
+ model_name=model_name,
118
+ authorization=authorization,
119
+ _request_auth=_request_auth,
120
+ _content_type=_content_type,
121
+ _headers=_headers,
122
+ _host_index=_host_index
123
+ )
124
+
125
+ _response_types_map: Dict[str, Optional[str]] = {
126
+ '200': "BaseResponseBinarySearchResponse",
127
+ '422': "BaseResponse",
128
+ }
129
+ response_data = self.api_client.call_api(
130
+ *_param,
131
+ _request_timeout=_request_timeout
132
+ )
133
+ response_data.read()
134
+ return self.api_client.response_deserialize(
135
+ response_data=response_data,
136
+ response_types_map=_response_types_map,
137
+ ).data
138
+
139
+
140
+ @validate_call
141
+ def search_binaries_with_http_info(
142
+ self,
143
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
144
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
145
+ partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary being searched")] = None,
146
+ partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None,
147
+ tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None,
148
+ model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
149
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
150
+ _request_timeout: Union[
151
+ None,
152
+ Annotated[StrictFloat, Field(gt=0)],
153
+ Tuple[
154
+ Annotated[StrictFloat, Field(gt=0)],
155
+ Annotated[StrictFloat, Field(gt=0)]
156
+ ]
157
+ ] = None,
158
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
159
+ _content_type: Optional[StrictStr] = None,
160
+ _headers: Optional[Dict[StrictStr, Any]] = None,
161
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
162
+ ) -> ApiResponse[BaseResponseBinarySearchResponse]:
163
+ """Binaries search
164
+
165
+ Searches for a specific binary
166
+
167
+ :param page: The page number to retrieve.
168
+ :type page: int
169
+ :param page_size: Number of items per page.
170
+ :type page_size: int
171
+ :param partial_name: The partial or full name of the binary being searched
172
+ :type partial_name: str
173
+ :param partial_sha256: The partial or full sha256 of the binary being searched
174
+ :type partial_sha256: str
175
+ :param tags: The tags to be searched for
176
+ :type tags: List[str]
177
+ :param model_name: The name of the model used to analyze the binary the function belongs to
178
+ :type model_name: str
179
+ :param authorization: API Key bearer token
180
+ :type authorization: str
181
+ :param _request_timeout: timeout setting for this request. If one
182
+ number provided, it will be total request
183
+ timeout. It can also be a pair (tuple) of
184
+ (connection, read) timeouts.
185
+ :type _request_timeout: int, tuple(int, int), optional
186
+ :param _request_auth: set to override the auth_settings for an a single
187
+ request; this effectively ignores the
188
+ authentication in the spec for a single request.
189
+ :type _request_auth: dict, optional
190
+ :param _content_type: force content-type for the request.
191
+ :type _content_type: str, Optional
192
+ :param _headers: set to override the headers for a single
193
+ request; this effectively ignores the headers
194
+ in the spec for a single request.
195
+ :type _headers: dict, optional
196
+ :param _host_index: set to override the host_index for a single
197
+ request; this effectively ignores the host_index
198
+ in the spec for a single request.
199
+ :type _host_index: int, optional
200
+ :return: Returns the result object.
201
+ """ # noqa: E501
202
+
203
+ _param = self._search_binaries_serialize(
204
+ page=page,
205
+ page_size=page_size,
206
+ partial_name=partial_name,
207
+ partial_sha256=partial_sha256,
208
+ tags=tags,
209
+ model_name=model_name,
210
+ authorization=authorization,
211
+ _request_auth=_request_auth,
212
+ _content_type=_content_type,
213
+ _headers=_headers,
214
+ _host_index=_host_index
215
+ )
216
+
217
+ _response_types_map: Dict[str, Optional[str]] = {
218
+ '200': "BaseResponseBinarySearchResponse",
219
+ '422': "BaseResponse",
220
+ }
221
+ response_data = self.api_client.call_api(
222
+ *_param,
223
+ _request_timeout=_request_timeout
224
+ )
225
+ response_data.read()
226
+ return self.api_client.response_deserialize(
227
+ response_data=response_data,
228
+ response_types_map=_response_types_map,
229
+ )
230
+
231
+
232
+ @validate_call
233
+ def search_binaries_without_preload_content(
234
+ self,
235
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
236
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
237
+ partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary being searched")] = None,
238
+ partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None,
239
+ tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None,
240
+ model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
241
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
242
+ _request_timeout: Union[
243
+ None,
244
+ Annotated[StrictFloat, Field(gt=0)],
245
+ Tuple[
246
+ Annotated[StrictFloat, Field(gt=0)],
247
+ Annotated[StrictFloat, Field(gt=0)]
248
+ ]
249
+ ] = None,
250
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
251
+ _content_type: Optional[StrictStr] = None,
252
+ _headers: Optional[Dict[StrictStr, Any]] = None,
253
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
254
+ ) -> RESTResponseType:
255
+ """Binaries search
256
+
257
+ Searches for a specific binary
258
+
259
+ :param page: The page number to retrieve.
260
+ :type page: int
261
+ :param page_size: Number of items per page.
262
+ :type page_size: int
263
+ :param partial_name: The partial or full name of the binary being searched
264
+ :type partial_name: str
265
+ :param partial_sha256: The partial or full sha256 of the binary being searched
266
+ :type partial_sha256: str
267
+ :param tags: The tags to be searched for
268
+ :type tags: List[str]
269
+ :param model_name: The name of the model used to analyze the binary the function belongs to
270
+ :type model_name: str
271
+ :param authorization: API Key bearer token
272
+ :type authorization: str
273
+ :param _request_timeout: timeout setting for this request. If one
274
+ number provided, it will be total request
275
+ timeout. It can also be a pair (tuple) of
276
+ (connection, read) timeouts.
277
+ :type _request_timeout: int, tuple(int, int), optional
278
+ :param _request_auth: set to override the auth_settings for an a single
279
+ request; this effectively ignores the
280
+ authentication in the spec for a single request.
281
+ :type _request_auth: dict, optional
282
+ :param _content_type: force content-type for the request.
283
+ :type _content_type: str, Optional
284
+ :param _headers: set to override the headers for a single
285
+ request; this effectively ignores the headers
286
+ in the spec for a single request.
287
+ :type _headers: dict, optional
288
+ :param _host_index: set to override the host_index for a single
289
+ request; this effectively ignores the host_index
290
+ in the spec for a single request.
291
+ :type _host_index: int, optional
292
+ :return: Returns the result object.
293
+ """ # noqa: E501
294
+
295
+ _param = self._search_binaries_serialize(
296
+ page=page,
297
+ page_size=page_size,
298
+ partial_name=partial_name,
299
+ partial_sha256=partial_sha256,
300
+ tags=tags,
301
+ model_name=model_name,
302
+ authorization=authorization,
303
+ _request_auth=_request_auth,
304
+ _content_type=_content_type,
305
+ _headers=_headers,
306
+ _host_index=_host_index
307
+ )
308
+
309
+ _response_types_map: Dict[str, Optional[str]] = {
310
+ '200': "BaseResponseBinarySearchResponse",
311
+ '422': "BaseResponse",
312
+ }
313
+ response_data = self.api_client.call_api(
314
+ *_param,
315
+ _request_timeout=_request_timeout
316
+ )
317
+ return response_data.response
318
+
319
+
320
+ def _search_binaries_serialize(
321
+ self,
322
+ page,
323
+ page_size,
324
+ partial_name,
325
+ partial_sha256,
326
+ tags,
327
+ model_name,
328
+ authorization,
329
+ _request_auth,
330
+ _content_type,
331
+ _headers,
332
+ _host_index,
333
+ ) -> RequestSerialized:
334
+
335
+ _host = None
336
+
337
+ _collection_formats: Dict[str, str] = {
338
+ 'tags': 'multi',
339
+ }
340
+
341
+ _path_params: Dict[str, str] = {}
342
+ _query_params: List[Tuple[str, str]] = []
343
+ _header_params: Dict[str, Optional[str]] = _headers or {}
344
+ _form_params: List[Tuple[str, str]] = []
345
+ _files: Dict[
346
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
347
+ ] = {}
348
+ _body_params: Optional[bytes] = None
349
+
350
+ # process the path parameters
351
+ # process the query parameters
352
+ if page is not None:
353
+
354
+ _query_params.append(('page', page))
355
+
356
+ if page_size is not None:
357
+
358
+ _query_params.append(('page_size', page_size))
359
+
360
+ if partial_name is not None:
361
+
362
+ _query_params.append(('partial_name', partial_name))
363
+
364
+ if partial_sha256 is not None:
365
+
366
+ _query_params.append(('partial_sha256', partial_sha256))
367
+
368
+ if tags is not None:
369
+
370
+ _query_params.append(('tags', tags))
371
+
372
+ if model_name is not None:
373
+
374
+ _query_params.append(('model_name', model_name))
375
+
376
+ # process the header parameters
377
+ if authorization is not None:
378
+ _header_params['authorization'] = authorization
379
+ # process the form parameters
380
+ # process the body parameter
381
+
382
+
383
+ # set the HTTP header `Accept`
384
+ if 'Accept' not in _header_params:
385
+ _header_params['Accept'] = self.api_client.select_header_accept(
386
+ [
387
+ 'application/json'
388
+ ]
389
+ )
390
+
391
+
392
+ # authentication setting
393
+ _auth_settings: List[str] = [
394
+ 'APIKey'
395
+ ]
396
+
397
+ return self.api_client.param_serialize(
398
+ method='GET',
399
+ resource_path='/v2/search/binaries',
400
+ path_params=_path_params,
401
+ query_params=_query_params,
402
+ header_params=_header_params,
403
+ body=_body_params,
404
+ post_params=_form_params,
405
+ files=_files,
406
+ auth_settings=_auth_settings,
407
+ collection_formats=_collection_formats,
408
+ _host=_host,
409
+ _request_auth=_request_auth
410
+ )
411
+
412
+
413
+
414
+
415
+ @validate_call
416
+ def search_collections(
417
+ self,
418
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
419
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
420
+ partial_collection_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the collection being searched")] = None,
421
+ partial_binary_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary belonging to the collection")] = None,
422
+ partial_binary_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary belonging to the collection")] = None,
423
+ tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None,
424
+ model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
425
+ filters: Annotated[Optional[List[Filters]], Field(description="The filters to be used for the search")] = None,
426
+ order_by: Annotated[Optional[AppApiRestV2CollectionsEnumsOrderBy], Field(description="The field to sort the order by in the results")] = None,
427
+ order_by_direction: Annotated[Optional[Order], Field(description="The order direction in which to return results")] = None,
428
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
429
+ _request_timeout: Union[
430
+ None,
431
+ Annotated[StrictFloat, Field(gt=0)],
432
+ Tuple[
433
+ Annotated[StrictFloat, Field(gt=0)],
434
+ Annotated[StrictFloat, Field(gt=0)]
435
+ ]
436
+ ] = None,
437
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
438
+ _content_type: Optional[StrictStr] = None,
439
+ _headers: Optional[Dict[StrictStr, Any]] = None,
440
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
441
+ ) -> BaseResponseCollectionSearchResponse:
442
+ """Collections search
443
+
444
+ Searches for a specific collection
445
+
446
+ :param page: The page number to retrieve.
447
+ :type page: int
448
+ :param page_size: Number of items per page.
449
+ :type page_size: int
450
+ :param partial_collection_name: The partial or full name of the collection being searched
451
+ :type partial_collection_name: str
452
+ :param partial_binary_name: The partial or full name of the binary belonging to the collection
453
+ :type partial_binary_name: str
454
+ :param partial_binary_sha256: The partial or full sha256 of the binary belonging to the collection
455
+ :type partial_binary_sha256: str
456
+ :param tags: The tags to be searched for
457
+ :type tags: List[str]
458
+ :param model_name: The name of the model used to analyze the binary the function belongs to
459
+ :type model_name: str
460
+ :param filters: The filters to be used for the search
461
+ :type filters: List[Filters]
462
+ :param order_by: The field to sort the order by in the results
463
+ :type order_by: AppApiRestV2CollectionsEnumsOrderBy
464
+ :param order_by_direction: The order direction in which to return results
465
+ :type order_by_direction: Order
466
+ :param authorization: API Key bearer token
467
+ :type authorization: str
468
+ :param _request_timeout: timeout setting for this request. If one
469
+ number provided, it will be total request
470
+ timeout. It can also be a pair (tuple) of
471
+ (connection, read) timeouts.
472
+ :type _request_timeout: int, tuple(int, int), optional
473
+ :param _request_auth: set to override the auth_settings for an a single
474
+ request; this effectively ignores the
475
+ authentication in the spec for a single request.
476
+ :type _request_auth: dict, optional
477
+ :param _content_type: force content-type for the request.
478
+ :type _content_type: str, Optional
479
+ :param _headers: set to override the headers for a single
480
+ request; this effectively ignores the headers
481
+ in the spec for a single request.
482
+ :type _headers: dict, optional
483
+ :param _host_index: set to override the host_index for a single
484
+ request; this effectively ignores the host_index
485
+ in the spec for a single request.
486
+ :type _host_index: int, optional
487
+ :return: Returns the result object.
488
+ """ # noqa: E501
489
+
490
+ _param = self._search_collections_serialize(
491
+ page=page,
492
+ page_size=page_size,
493
+ partial_collection_name=partial_collection_name,
494
+ partial_binary_name=partial_binary_name,
495
+ partial_binary_sha256=partial_binary_sha256,
496
+ tags=tags,
497
+ model_name=model_name,
498
+ filters=filters,
499
+ order_by=order_by,
500
+ order_by_direction=order_by_direction,
501
+ authorization=authorization,
502
+ _request_auth=_request_auth,
503
+ _content_type=_content_type,
504
+ _headers=_headers,
505
+ _host_index=_host_index
506
+ )
507
+
508
+ _response_types_map: Dict[str, Optional[str]] = {
509
+ '200': "BaseResponseCollectionSearchResponse",
510
+ '422': "BaseResponse",
511
+ '404': "BaseResponse",
512
+ }
513
+ response_data = self.api_client.call_api(
514
+ *_param,
515
+ _request_timeout=_request_timeout
516
+ )
517
+ response_data.read()
518
+ return self.api_client.response_deserialize(
519
+ response_data=response_data,
520
+ response_types_map=_response_types_map,
521
+ ).data
522
+
523
+
524
+ @validate_call
525
+ def search_collections_with_http_info(
526
+ self,
527
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
528
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
529
+ partial_collection_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the collection being searched")] = None,
530
+ partial_binary_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary belonging to the collection")] = None,
531
+ partial_binary_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary belonging to the collection")] = None,
532
+ tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None,
533
+ model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
534
+ filters: Annotated[Optional[List[Filters]], Field(description="The filters to be used for the search")] = None,
535
+ order_by: Annotated[Optional[AppApiRestV2CollectionsEnumsOrderBy], Field(description="The field to sort the order by in the results")] = None,
536
+ order_by_direction: Annotated[Optional[Order], Field(description="The order direction in which to return results")] = None,
537
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
538
+ _request_timeout: Union[
539
+ None,
540
+ Annotated[StrictFloat, Field(gt=0)],
541
+ Tuple[
542
+ Annotated[StrictFloat, Field(gt=0)],
543
+ Annotated[StrictFloat, Field(gt=0)]
544
+ ]
545
+ ] = None,
546
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
547
+ _content_type: Optional[StrictStr] = None,
548
+ _headers: Optional[Dict[StrictStr, Any]] = None,
549
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
550
+ ) -> ApiResponse[BaseResponseCollectionSearchResponse]:
551
+ """Collections search
552
+
553
+ Searches for a specific collection
554
+
555
+ :param page: The page number to retrieve.
556
+ :type page: int
557
+ :param page_size: Number of items per page.
558
+ :type page_size: int
559
+ :param partial_collection_name: The partial or full name of the collection being searched
560
+ :type partial_collection_name: str
561
+ :param partial_binary_name: The partial or full name of the binary belonging to the collection
562
+ :type partial_binary_name: str
563
+ :param partial_binary_sha256: The partial or full sha256 of the binary belonging to the collection
564
+ :type partial_binary_sha256: str
565
+ :param tags: The tags to be searched for
566
+ :type tags: List[str]
567
+ :param model_name: The name of the model used to analyze the binary the function belongs to
568
+ :type model_name: str
569
+ :param filters: The filters to be used for the search
570
+ :type filters: List[Filters]
571
+ :param order_by: The field to sort the order by in the results
572
+ :type order_by: AppApiRestV2CollectionsEnumsOrderBy
573
+ :param order_by_direction: The order direction in which to return results
574
+ :type order_by_direction: Order
575
+ :param authorization: API Key bearer token
576
+ :type authorization: str
577
+ :param _request_timeout: timeout setting for this request. If one
578
+ number provided, it will be total request
579
+ timeout. It can also be a pair (tuple) of
580
+ (connection, read) timeouts.
581
+ :type _request_timeout: int, tuple(int, int), optional
582
+ :param _request_auth: set to override the auth_settings for an a single
583
+ request; this effectively ignores the
584
+ authentication in the spec for a single request.
585
+ :type _request_auth: dict, optional
586
+ :param _content_type: force content-type for the request.
587
+ :type _content_type: str, Optional
588
+ :param _headers: set to override the headers for a single
589
+ request; this effectively ignores the headers
590
+ in the spec for a single request.
591
+ :type _headers: dict, optional
592
+ :param _host_index: set to override the host_index for a single
593
+ request; this effectively ignores the host_index
594
+ in the spec for a single request.
595
+ :type _host_index: int, optional
596
+ :return: Returns the result object.
597
+ """ # noqa: E501
598
+
599
+ _param = self._search_collections_serialize(
600
+ page=page,
601
+ page_size=page_size,
602
+ partial_collection_name=partial_collection_name,
603
+ partial_binary_name=partial_binary_name,
604
+ partial_binary_sha256=partial_binary_sha256,
605
+ tags=tags,
606
+ model_name=model_name,
607
+ filters=filters,
608
+ order_by=order_by,
609
+ order_by_direction=order_by_direction,
610
+ authorization=authorization,
611
+ _request_auth=_request_auth,
612
+ _content_type=_content_type,
613
+ _headers=_headers,
614
+ _host_index=_host_index
615
+ )
616
+
617
+ _response_types_map: Dict[str, Optional[str]] = {
618
+ '200': "BaseResponseCollectionSearchResponse",
619
+ '422': "BaseResponse",
620
+ '404': "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
+ )
631
+
632
+
633
+ @validate_call
634
+ def search_collections_without_preload_content(
635
+ self,
636
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
637
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
638
+ partial_collection_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the collection being searched")] = None,
639
+ partial_binary_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the binary belonging to the collection")] = None,
640
+ partial_binary_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary belonging to the collection")] = None,
641
+ tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None,
642
+ model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
643
+ filters: Annotated[Optional[List[Filters]], Field(description="The filters to be used for the search")] = None,
644
+ order_by: Annotated[Optional[AppApiRestV2CollectionsEnumsOrderBy], Field(description="The field to sort the order by in the results")] = None,
645
+ order_by_direction: Annotated[Optional[Order], Field(description="The order direction in which to return results")] = None,
646
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
647
+ _request_timeout: Union[
648
+ None,
649
+ Annotated[StrictFloat, Field(gt=0)],
650
+ Tuple[
651
+ Annotated[StrictFloat, Field(gt=0)],
652
+ Annotated[StrictFloat, Field(gt=0)]
653
+ ]
654
+ ] = None,
655
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
656
+ _content_type: Optional[StrictStr] = None,
657
+ _headers: Optional[Dict[StrictStr, Any]] = None,
658
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
659
+ ) -> RESTResponseType:
660
+ """Collections search
661
+
662
+ Searches for a specific collection
663
+
664
+ :param page: The page number to retrieve.
665
+ :type page: int
666
+ :param page_size: Number of items per page.
667
+ :type page_size: int
668
+ :param partial_collection_name: The partial or full name of the collection being searched
669
+ :type partial_collection_name: str
670
+ :param partial_binary_name: The partial or full name of the binary belonging to the collection
671
+ :type partial_binary_name: str
672
+ :param partial_binary_sha256: The partial or full sha256 of the binary belonging to the collection
673
+ :type partial_binary_sha256: str
674
+ :param tags: The tags to be searched for
675
+ :type tags: List[str]
676
+ :param model_name: The name of the model used to analyze the binary the function belongs to
677
+ :type model_name: str
678
+ :param filters: The filters to be used for the search
679
+ :type filters: List[Filters]
680
+ :param order_by: The field to sort the order by in the results
681
+ :type order_by: AppApiRestV2CollectionsEnumsOrderBy
682
+ :param order_by_direction: The order direction in which to return results
683
+ :type order_by_direction: Order
684
+ :param authorization: API Key bearer token
685
+ :type authorization: str
686
+ :param _request_timeout: timeout setting for this request. If one
687
+ number provided, it will be total request
688
+ timeout. It can also be a pair (tuple) of
689
+ (connection, read) timeouts.
690
+ :type _request_timeout: int, tuple(int, int), optional
691
+ :param _request_auth: set to override the auth_settings for an a single
692
+ request; this effectively ignores the
693
+ authentication in the spec for a single request.
694
+ :type _request_auth: dict, optional
695
+ :param _content_type: force content-type for the request.
696
+ :type _content_type: str, Optional
697
+ :param _headers: set to override the headers for a single
698
+ request; this effectively ignores the headers
699
+ in the spec for a single request.
700
+ :type _headers: dict, optional
701
+ :param _host_index: set to override the host_index for a single
702
+ request; this effectively ignores the host_index
703
+ in the spec for a single request.
704
+ :type _host_index: int, optional
705
+ :return: Returns the result object.
706
+ """ # noqa: E501
707
+
708
+ _param = self._search_collections_serialize(
709
+ page=page,
710
+ page_size=page_size,
711
+ partial_collection_name=partial_collection_name,
712
+ partial_binary_name=partial_binary_name,
713
+ partial_binary_sha256=partial_binary_sha256,
714
+ tags=tags,
715
+ model_name=model_name,
716
+ filters=filters,
717
+ order_by=order_by,
718
+ order_by_direction=order_by_direction,
719
+ authorization=authorization,
720
+ _request_auth=_request_auth,
721
+ _content_type=_content_type,
722
+ _headers=_headers,
723
+ _host_index=_host_index
724
+ )
725
+
726
+ _response_types_map: Dict[str, Optional[str]] = {
727
+ '200': "BaseResponseCollectionSearchResponse",
728
+ '422': "BaseResponse",
729
+ '404': "BaseResponse",
730
+ }
731
+ response_data = self.api_client.call_api(
732
+ *_param,
733
+ _request_timeout=_request_timeout
734
+ )
735
+ return response_data.response
736
+
737
+
738
+ def _search_collections_serialize(
739
+ self,
740
+ page,
741
+ page_size,
742
+ partial_collection_name,
743
+ partial_binary_name,
744
+ partial_binary_sha256,
745
+ tags,
746
+ model_name,
747
+ filters,
748
+ order_by,
749
+ order_by_direction,
750
+ authorization,
751
+ _request_auth,
752
+ _content_type,
753
+ _headers,
754
+ _host_index,
755
+ ) -> RequestSerialized:
756
+
757
+ _host = None
758
+
759
+ _collection_formats: Dict[str, str] = {
760
+ 'tags': 'multi',
761
+ 'filters': 'multi',
762
+ }
763
+
764
+ _path_params: Dict[str, str] = {}
765
+ _query_params: List[Tuple[str, str]] = []
766
+ _header_params: Dict[str, Optional[str]] = _headers or {}
767
+ _form_params: List[Tuple[str, str]] = []
768
+ _files: Dict[
769
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
770
+ ] = {}
771
+ _body_params: Optional[bytes] = None
772
+
773
+ # process the path parameters
774
+ # process the query parameters
775
+ if page is not None:
776
+
777
+ _query_params.append(('page', page))
778
+
779
+ if page_size is not None:
780
+
781
+ _query_params.append(('page_size', page_size))
782
+
783
+ if partial_collection_name is not None:
784
+
785
+ _query_params.append(('partial_collection_name', partial_collection_name))
786
+
787
+ if partial_binary_name is not None:
788
+
789
+ _query_params.append(('partial_binary_name', partial_binary_name))
790
+
791
+ if partial_binary_sha256 is not None:
792
+
793
+ _query_params.append(('partial_binary_sha256', partial_binary_sha256))
794
+
795
+ if tags is not None:
796
+
797
+ _query_params.append(('tags', tags))
798
+
799
+ if model_name is not None:
800
+
801
+ _query_params.append(('model_name', model_name))
802
+
803
+ if filters is not None:
804
+
805
+ _query_params.append(('filters', filters))
806
+
807
+ if order_by is not None:
808
+
809
+ _query_params.append(('order_by', order_by.value))
810
+
811
+ if order_by_direction is not None:
812
+
813
+ _query_params.append(('order_by_direction', order_by_direction.value))
814
+
815
+ # process the header parameters
816
+ if authorization is not None:
817
+ _header_params['authorization'] = authorization
818
+ # process the form parameters
819
+ # process the body parameter
820
+
821
+
822
+ # set the HTTP header `Accept`
823
+ if 'Accept' not in _header_params:
824
+ _header_params['Accept'] = self.api_client.select_header_accept(
825
+ [
826
+ 'application/json'
827
+ ]
828
+ )
829
+
830
+
831
+ # authentication setting
832
+ _auth_settings: List[str] = [
833
+ 'APIKey'
834
+ ]
835
+
836
+ return self.api_client.param_serialize(
837
+ method='GET',
838
+ resource_path='/v2/search/collections',
839
+ path_params=_path_params,
840
+ query_params=_query_params,
841
+ header_params=_header_params,
842
+ body=_body_params,
843
+ post_params=_form_params,
844
+ files=_files,
845
+ auth_settings=_auth_settings,
846
+ collection_formats=_collection_formats,
847
+ _host=_host,
848
+ _request_auth=_request_auth
849
+ )
850
+
851
+
852
+
853
+
854
+ @validate_call
855
+ def search_functions(
856
+ self,
857
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
858
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
859
+ partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the function being searched")] = None,
860
+ model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
861
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
862
+ _request_timeout: Union[
863
+ None,
864
+ Annotated[StrictFloat, Field(gt=0)],
865
+ Tuple[
866
+ Annotated[StrictFloat, Field(gt=0)],
867
+ Annotated[StrictFloat, Field(gt=0)]
868
+ ]
869
+ ] = None,
870
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
871
+ _content_type: Optional[StrictStr] = None,
872
+ _headers: Optional[Dict[StrictStr, Any]] = None,
873
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
874
+ ) -> BaseResponseFunctionSearchResponse:
875
+ """Functions search
876
+
877
+ Searches for a specific function
878
+
879
+ :param page: The page number to retrieve.
880
+ :type page: int
881
+ :param page_size: Number of items per page.
882
+ :type page_size: int
883
+ :param partial_name: The partial or full name of the function being searched
884
+ :type partial_name: str
885
+ :param model_name: The name of the model used to analyze the binary the function belongs to
886
+ :type model_name: str
887
+ :param authorization: API Key bearer token
888
+ :type authorization: str
889
+ :param _request_timeout: timeout setting for this request. If one
890
+ number provided, it will be total request
891
+ timeout. It can also be a pair (tuple) of
892
+ (connection, read) timeouts.
893
+ :type _request_timeout: int, tuple(int, int), optional
894
+ :param _request_auth: set to override the auth_settings for an a single
895
+ request; this effectively ignores the
896
+ authentication in the spec for a single request.
897
+ :type _request_auth: dict, optional
898
+ :param _content_type: force content-type for the request.
899
+ :type _content_type: str, Optional
900
+ :param _headers: set to override the headers for a single
901
+ request; this effectively ignores the headers
902
+ in the spec for a single request.
903
+ :type _headers: dict, optional
904
+ :param _host_index: set to override the host_index for a single
905
+ request; this effectively ignores the host_index
906
+ in the spec for a single request.
907
+ :type _host_index: int, optional
908
+ :return: Returns the result object.
909
+ """ # noqa: E501
910
+
911
+ _param = self._search_functions_serialize(
912
+ page=page,
913
+ page_size=page_size,
914
+ partial_name=partial_name,
915
+ model_name=model_name,
916
+ authorization=authorization,
917
+ _request_auth=_request_auth,
918
+ _content_type=_content_type,
919
+ _headers=_headers,
920
+ _host_index=_host_index
921
+ )
922
+
923
+ _response_types_map: Dict[str, Optional[str]] = {
924
+ '200': "BaseResponseFunctionSearchResponse",
925
+ '422': "BaseResponse",
926
+ }
927
+ response_data = self.api_client.call_api(
928
+ *_param,
929
+ _request_timeout=_request_timeout
930
+ )
931
+ response_data.read()
932
+ return self.api_client.response_deserialize(
933
+ response_data=response_data,
934
+ response_types_map=_response_types_map,
935
+ ).data
936
+
937
+
938
+ @validate_call
939
+ def search_functions_with_http_info(
940
+ self,
941
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
942
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
943
+ partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the function being searched")] = None,
944
+ model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
945
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
946
+ _request_timeout: Union[
947
+ None,
948
+ Annotated[StrictFloat, Field(gt=0)],
949
+ Tuple[
950
+ Annotated[StrictFloat, Field(gt=0)],
951
+ Annotated[StrictFloat, Field(gt=0)]
952
+ ]
953
+ ] = None,
954
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
955
+ _content_type: Optional[StrictStr] = None,
956
+ _headers: Optional[Dict[StrictStr, Any]] = None,
957
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
958
+ ) -> ApiResponse[BaseResponseFunctionSearchResponse]:
959
+ """Functions search
960
+
961
+ Searches for a specific function
962
+
963
+ :param page: The page number to retrieve.
964
+ :type page: int
965
+ :param page_size: Number of items per page.
966
+ :type page_size: int
967
+ :param partial_name: The partial or full name of the function being searched
968
+ :type partial_name: str
969
+ :param model_name: The name of the model used to analyze the binary the function belongs to
970
+ :type model_name: str
971
+ :param authorization: API Key bearer token
972
+ :type authorization: str
973
+ :param _request_timeout: timeout setting for this request. If one
974
+ number provided, it will be total request
975
+ timeout. It can also be a pair (tuple) of
976
+ (connection, read) timeouts.
977
+ :type _request_timeout: int, tuple(int, int), optional
978
+ :param _request_auth: set to override the auth_settings for an a single
979
+ request; this effectively ignores the
980
+ authentication in the spec for a single request.
981
+ :type _request_auth: dict, optional
982
+ :param _content_type: force content-type for the request.
983
+ :type _content_type: str, Optional
984
+ :param _headers: set to override the headers for a single
985
+ request; this effectively ignores the headers
986
+ in the spec for a single request.
987
+ :type _headers: dict, optional
988
+ :param _host_index: set to override the host_index for a single
989
+ request; this effectively ignores the host_index
990
+ in the spec for a single request.
991
+ :type _host_index: int, optional
992
+ :return: Returns the result object.
993
+ """ # noqa: E501
994
+
995
+ _param = self._search_functions_serialize(
996
+ page=page,
997
+ page_size=page_size,
998
+ partial_name=partial_name,
999
+ model_name=model_name,
1000
+ authorization=authorization,
1001
+ _request_auth=_request_auth,
1002
+ _content_type=_content_type,
1003
+ _headers=_headers,
1004
+ _host_index=_host_index
1005
+ )
1006
+
1007
+ _response_types_map: Dict[str, Optional[str]] = {
1008
+ '200': "BaseResponseFunctionSearchResponse",
1009
+ '422': "BaseResponse",
1010
+ }
1011
+ response_data = self.api_client.call_api(
1012
+ *_param,
1013
+ _request_timeout=_request_timeout
1014
+ )
1015
+ response_data.read()
1016
+ return self.api_client.response_deserialize(
1017
+ response_data=response_data,
1018
+ response_types_map=_response_types_map,
1019
+ )
1020
+
1021
+
1022
+ @validate_call
1023
+ def search_functions_without_preload_content(
1024
+ self,
1025
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1026
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1027
+ partial_name: Annotated[Optional[StrictStr], Field(description="The partial or full name of the function being searched")] = None,
1028
+ model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
1029
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1030
+ _request_timeout: Union[
1031
+ None,
1032
+ Annotated[StrictFloat, Field(gt=0)],
1033
+ Tuple[
1034
+ Annotated[StrictFloat, Field(gt=0)],
1035
+ Annotated[StrictFloat, Field(gt=0)]
1036
+ ]
1037
+ ] = None,
1038
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1039
+ _content_type: Optional[StrictStr] = None,
1040
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1041
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1042
+ ) -> RESTResponseType:
1043
+ """Functions search
1044
+
1045
+ Searches for a specific function
1046
+
1047
+ :param page: The page number to retrieve.
1048
+ :type page: int
1049
+ :param page_size: Number of items per page.
1050
+ :type page_size: int
1051
+ :param partial_name: The partial or full name of the function being searched
1052
+ :type partial_name: str
1053
+ :param model_name: The name of the model used to analyze the binary the function belongs to
1054
+ :type model_name: str
1055
+ :param authorization: API Key bearer token
1056
+ :type authorization: str
1057
+ :param _request_timeout: timeout setting for this request. If one
1058
+ number provided, it will be total request
1059
+ timeout. It can also be a pair (tuple) of
1060
+ (connection, read) timeouts.
1061
+ :type _request_timeout: int, tuple(int, int), optional
1062
+ :param _request_auth: set to override the auth_settings for an a single
1063
+ request; this effectively ignores the
1064
+ authentication in the spec for a single request.
1065
+ :type _request_auth: dict, optional
1066
+ :param _content_type: force content-type for the request.
1067
+ :type _content_type: str, Optional
1068
+ :param _headers: set to override the headers for a single
1069
+ request; this effectively ignores the headers
1070
+ in the spec for a single request.
1071
+ :type _headers: dict, optional
1072
+ :param _host_index: set to override the host_index for a single
1073
+ request; this effectively ignores the host_index
1074
+ in the spec for a single request.
1075
+ :type _host_index: int, optional
1076
+ :return: Returns the result object.
1077
+ """ # noqa: E501
1078
+
1079
+ _param = self._search_functions_serialize(
1080
+ page=page,
1081
+ page_size=page_size,
1082
+ partial_name=partial_name,
1083
+ model_name=model_name,
1084
+ authorization=authorization,
1085
+ _request_auth=_request_auth,
1086
+ _content_type=_content_type,
1087
+ _headers=_headers,
1088
+ _host_index=_host_index
1089
+ )
1090
+
1091
+ _response_types_map: Dict[str, Optional[str]] = {
1092
+ '200': "BaseResponseFunctionSearchResponse",
1093
+ '422': "BaseResponse",
1094
+ }
1095
+ response_data = self.api_client.call_api(
1096
+ *_param,
1097
+ _request_timeout=_request_timeout
1098
+ )
1099
+ return response_data.response
1100
+
1101
+
1102
+ def _search_functions_serialize(
1103
+ self,
1104
+ page,
1105
+ page_size,
1106
+ partial_name,
1107
+ model_name,
1108
+ authorization,
1109
+ _request_auth,
1110
+ _content_type,
1111
+ _headers,
1112
+ _host_index,
1113
+ ) -> RequestSerialized:
1114
+
1115
+ _host = None
1116
+
1117
+ _collection_formats: Dict[str, str] = {
1118
+ }
1119
+
1120
+ _path_params: Dict[str, str] = {}
1121
+ _query_params: List[Tuple[str, str]] = []
1122
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1123
+ _form_params: List[Tuple[str, str]] = []
1124
+ _files: Dict[
1125
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1126
+ ] = {}
1127
+ _body_params: Optional[bytes] = None
1128
+
1129
+ # process the path parameters
1130
+ # process the query parameters
1131
+ if page is not None:
1132
+
1133
+ _query_params.append(('page', page))
1134
+
1135
+ if page_size is not None:
1136
+
1137
+ _query_params.append(('page_size', page_size))
1138
+
1139
+ if partial_name is not None:
1140
+
1141
+ _query_params.append(('partial_name', partial_name))
1142
+
1143
+ if model_name is not None:
1144
+
1145
+ _query_params.append(('model_name', model_name))
1146
+
1147
+ # process the header parameters
1148
+ if authorization is not None:
1149
+ _header_params['authorization'] = authorization
1150
+ # process the form parameters
1151
+ # process the body parameter
1152
+
1153
+
1154
+ # set the HTTP header `Accept`
1155
+ if 'Accept' not in _header_params:
1156
+ _header_params['Accept'] = self.api_client.select_header_accept(
1157
+ [
1158
+ 'application/json'
1159
+ ]
1160
+ )
1161
+
1162
+
1163
+ # authentication setting
1164
+ _auth_settings: List[str] = [
1165
+ 'APIKey'
1166
+ ]
1167
+
1168
+ return self.api_client.param_serialize(
1169
+ method='GET',
1170
+ resource_path='/v2/search/functions',
1171
+ path_params=_path_params,
1172
+ query_params=_query_params,
1173
+ header_params=_header_params,
1174
+ body=_body_params,
1175
+ post_params=_form_params,
1176
+ files=_files,
1177
+ auth_settings=_auth_settings,
1178
+ collection_formats=_collection_formats,
1179
+ _host=_host,
1180
+ _request_auth=_request_auth
1181
+ )
1182
+
1183
+
1184
+
1185
+
1186
+ @validate_call
1187
+ def search_tags(
1188
+ self,
1189
+ partial_name: Annotated[StrictStr, Field(description="The partial or full name of the tag to search for")],
1190
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1191
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1192
+ _request_timeout: Union[
1193
+ None,
1194
+ Annotated[StrictFloat, Field(gt=0)],
1195
+ Tuple[
1196
+ Annotated[StrictFloat, Field(gt=0)],
1197
+ Annotated[StrictFloat, Field(gt=0)]
1198
+ ]
1199
+ ] = None,
1200
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1201
+ _content_type: Optional[StrictStr] = None,
1202
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1203
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1204
+ ) -> BaseResponseTagSearchResponse:
1205
+ """Tags search
1206
+
1207
+ Searches for tags by there name
1208
+
1209
+ :param partial_name: The partial or full name of the tag to search for (required)
1210
+ :type partial_name: str
1211
+ :param page: The page number to retrieve.
1212
+ :type page: int
1213
+ :param page_size: Number of items per page.
1214
+ :type page_size: int
1215
+ :param _request_timeout: timeout setting for this request. If one
1216
+ number provided, it will be total request
1217
+ timeout. It can also be a pair (tuple) of
1218
+ (connection, read) timeouts.
1219
+ :type _request_timeout: int, tuple(int, int), optional
1220
+ :param _request_auth: set to override the auth_settings for an a single
1221
+ request; this effectively ignores the
1222
+ authentication in the spec for a single request.
1223
+ :type _request_auth: dict, optional
1224
+ :param _content_type: force content-type for the request.
1225
+ :type _content_type: str, Optional
1226
+ :param _headers: set to override the headers for a single
1227
+ request; this effectively ignores the headers
1228
+ in the spec for a single request.
1229
+ :type _headers: dict, optional
1230
+ :param _host_index: set to override the host_index for a single
1231
+ request; this effectively ignores the host_index
1232
+ in the spec for a single request.
1233
+ :type _host_index: int, optional
1234
+ :return: Returns the result object.
1235
+ """ # noqa: E501
1236
+
1237
+ _param = self._search_tags_serialize(
1238
+ partial_name=partial_name,
1239
+ page=page,
1240
+ page_size=page_size,
1241
+ _request_auth=_request_auth,
1242
+ _content_type=_content_type,
1243
+ _headers=_headers,
1244
+ _host_index=_host_index
1245
+ )
1246
+
1247
+ _response_types_map: Dict[str, Optional[str]] = {
1248
+ '200': "BaseResponseTagSearchResponse",
1249
+ '422': "BaseResponse",
1250
+ }
1251
+ response_data = self.api_client.call_api(
1252
+ *_param,
1253
+ _request_timeout=_request_timeout
1254
+ )
1255
+ response_data.read()
1256
+ return self.api_client.response_deserialize(
1257
+ response_data=response_data,
1258
+ response_types_map=_response_types_map,
1259
+ ).data
1260
+
1261
+
1262
+ @validate_call
1263
+ def search_tags_with_http_info(
1264
+ self,
1265
+ partial_name: Annotated[StrictStr, Field(description="The partial or full name of the tag to search for")],
1266
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1267
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1268
+ _request_timeout: Union[
1269
+ None,
1270
+ Annotated[StrictFloat, Field(gt=0)],
1271
+ Tuple[
1272
+ Annotated[StrictFloat, Field(gt=0)],
1273
+ Annotated[StrictFloat, Field(gt=0)]
1274
+ ]
1275
+ ] = None,
1276
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1277
+ _content_type: Optional[StrictStr] = None,
1278
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1279
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1280
+ ) -> ApiResponse[BaseResponseTagSearchResponse]:
1281
+ """Tags search
1282
+
1283
+ Searches for tags by there name
1284
+
1285
+ :param partial_name: The partial or full name of the tag to search for (required)
1286
+ :type partial_name: str
1287
+ :param page: The page number to retrieve.
1288
+ :type page: int
1289
+ :param page_size: Number of items per page.
1290
+ :type page_size: int
1291
+ :param _request_timeout: timeout setting for this request. If one
1292
+ number provided, it will be total request
1293
+ timeout. It can also be a pair (tuple) of
1294
+ (connection, read) timeouts.
1295
+ :type _request_timeout: int, tuple(int, int), optional
1296
+ :param _request_auth: set to override the auth_settings for an a single
1297
+ request; this effectively ignores the
1298
+ authentication in the spec for a single request.
1299
+ :type _request_auth: dict, optional
1300
+ :param _content_type: force content-type for the request.
1301
+ :type _content_type: str, Optional
1302
+ :param _headers: set to override the headers for a single
1303
+ request; this effectively ignores the headers
1304
+ in the spec for a single request.
1305
+ :type _headers: dict, optional
1306
+ :param _host_index: set to override the host_index for a single
1307
+ request; this effectively ignores the host_index
1308
+ in the spec for a single request.
1309
+ :type _host_index: int, optional
1310
+ :return: Returns the result object.
1311
+ """ # noqa: E501
1312
+
1313
+ _param = self._search_tags_serialize(
1314
+ partial_name=partial_name,
1315
+ page=page,
1316
+ page_size=page_size,
1317
+ _request_auth=_request_auth,
1318
+ _content_type=_content_type,
1319
+ _headers=_headers,
1320
+ _host_index=_host_index
1321
+ )
1322
+
1323
+ _response_types_map: Dict[str, Optional[str]] = {
1324
+ '200': "BaseResponseTagSearchResponse",
1325
+ '422': "BaseResponse",
1326
+ }
1327
+ response_data = self.api_client.call_api(
1328
+ *_param,
1329
+ _request_timeout=_request_timeout
1330
+ )
1331
+ response_data.read()
1332
+ return self.api_client.response_deserialize(
1333
+ response_data=response_data,
1334
+ response_types_map=_response_types_map,
1335
+ )
1336
+
1337
+
1338
+ @validate_call
1339
+ def search_tags_without_preload_content(
1340
+ self,
1341
+ partial_name: Annotated[StrictStr, Field(description="The partial or full name of the tag to search for")],
1342
+ page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None,
1343
+ page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None,
1344
+ _request_timeout: Union[
1345
+ None,
1346
+ Annotated[StrictFloat, Field(gt=0)],
1347
+ Tuple[
1348
+ Annotated[StrictFloat, Field(gt=0)],
1349
+ Annotated[StrictFloat, Field(gt=0)]
1350
+ ]
1351
+ ] = None,
1352
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1353
+ _content_type: Optional[StrictStr] = None,
1354
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1355
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1356
+ ) -> RESTResponseType:
1357
+ """Tags search
1358
+
1359
+ Searches for tags by there name
1360
+
1361
+ :param partial_name: The partial or full name of the tag to search for (required)
1362
+ :type partial_name: str
1363
+ :param page: The page number to retrieve.
1364
+ :type page: int
1365
+ :param page_size: Number of items per page.
1366
+ :type page_size: int
1367
+ :param _request_timeout: timeout setting for this request. If one
1368
+ number provided, it will be total request
1369
+ timeout. It can also be a pair (tuple) of
1370
+ (connection, read) timeouts.
1371
+ :type _request_timeout: int, tuple(int, int), optional
1372
+ :param _request_auth: set to override the auth_settings for an a single
1373
+ request; this effectively ignores the
1374
+ authentication in the spec for a single request.
1375
+ :type _request_auth: dict, optional
1376
+ :param _content_type: force content-type for the request.
1377
+ :type _content_type: str, Optional
1378
+ :param _headers: set to override the headers for a single
1379
+ request; this effectively ignores the headers
1380
+ in the spec for a single request.
1381
+ :type _headers: dict, optional
1382
+ :param _host_index: set to override the host_index for a single
1383
+ request; this effectively ignores the host_index
1384
+ in the spec for a single request.
1385
+ :type _host_index: int, optional
1386
+ :return: Returns the result object.
1387
+ """ # noqa: E501
1388
+
1389
+ _param = self._search_tags_serialize(
1390
+ partial_name=partial_name,
1391
+ page=page,
1392
+ page_size=page_size,
1393
+ _request_auth=_request_auth,
1394
+ _content_type=_content_type,
1395
+ _headers=_headers,
1396
+ _host_index=_host_index
1397
+ )
1398
+
1399
+ _response_types_map: Dict[str, Optional[str]] = {
1400
+ '200': "BaseResponseTagSearchResponse",
1401
+ '422': "BaseResponse",
1402
+ }
1403
+ response_data = self.api_client.call_api(
1404
+ *_param,
1405
+ _request_timeout=_request_timeout
1406
+ )
1407
+ return response_data.response
1408
+
1409
+
1410
+ def _search_tags_serialize(
1411
+ self,
1412
+ partial_name,
1413
+ page,
1414
+ page_size,
1415
+ _request_auth,
1416
+ _content_type,
1417
+ _headers,
1418
+ _host_index,
1419
+ ) -> RequestSerialized:
1420
+
1421
+ _host = None
1422
+
1423
+ _collection_formats: Dict[str, str] = {
1424
+ }
1425
+
1426
+ _path_params: Dict[str, str] = {}
1427
+ _query_params: List[Tuple[str, str]] = []
1428
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1429
+ _form_params: List[Tuple[str, str]] = []
1430
+ _files: Dict[
1431
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1432
+ ] = {}
1433
+ _body_params: Optional[bytes] = None
1434
+
1435
+ # process the path parameters
1436
+ # process the query parameters
1437
+ if page is not None:
1438
+
1439
+ _query_params.append(('page', page))
1440
+
1441
+ if page_size is not None:
1442
+
1443
+ _query_params.append(('page_size', page_size))
1444
+
1445
+ if partial_name is not None:
1446
+
1447
+ _query_params.append(('partial_name', partial_name))
1448
+
1449
+ # process the header parameters
1450
+ # process the form parameters
1451
+ # process the body parameter
1452
+
1453
+
1454
+ # set the HTTP header `Accept`
1455
+ if 'Accept' not in _header_params:
1456
+ _header_params['Accept'] = self.api_client.select_header_accept(
1457
+ [
1458
+ 'application/json'
1459
+ ]
1460
+ )
1461
+
1462
+
1463
+ # authentication setting
1464
+ _auth_settings: List[str] = [
1465
+ 'APIKey'
1466
+ ]
1467
+
1468
+ return self.api_client.param_serialize(
1469
+ method='GET',
1470
+ resource_path='/v2/search/tags',
1471
+ path_params=_path_params,
1472
+ query_params=_query_params,
1473
+ header_params=_header_params,
1474
+ body=_body_params,
1475
+ post_params=_form_params,
1476
+ files=_files,
1477
+ auth_settings=_auth_settings,
1478
+ collection_formats=_collection_formats,
1479
+ _host=_host,
1480
+ _request_auth=_request_auth
1481
+ )
1482
+
1483
+