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,1838 @@
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, StrictInt, StrictStr
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from revengai.models.base_response_function_data_types import BaseResponseFunctionDataTypes
23
+ from revengai.models.base_response_function_data_types_list import BaseResponseFunctionDataTypesList
24
+ from revengai.models.base_response_generate_function_data_types import BaseResponseGenerateFunctionDataTypes
25
+ from revengai.models.base_response_generation_status_list import BaseResponseGenerationStatusList
26
+ from revengai.models.function_data_types_params import FunctionDataTypesParams
27
+ from revengai.models.update_function_data_types import UpdateFunctionDataTypes
28
+
29
+ from revengai.api_client import ApiClient, RequestSerialized
30
+ from revengai.api_response import ApiResponse
31
+ from revengai.rest import RESTResponseType
32
+
33
+
34
+ class FunctionsDataTypesApi:
35
+ """NOTE: This class is auto generated by OpenAPI Generator
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+ """
40
+
41
+ def __init__(self, api_client=None) -> None:
42
+ if api_client is None:
43
+ api_client = ApiClient.get_default()
44
+ self.api_client = api_client
45
+
46
+
47
+ @validate_call
48
+ def generate_function_data_types_for_analysis(
49
+ self,
50
+ analysis_id: StrictInt,
51
+ function_data_types_params: FunctionDataTypesParams,
52
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
53
+ _request_timeout: Union[
54
+ None,
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Tuple[
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Annotated[StrictFloat, Field(gt=0)]
59
+ ]
60
+ ] = None,
61
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
62
+ _content_type: Optional[StrictStr] = None,
63
+ _headers: Optional[Dict[StrictStr, Any]] = None,
64
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
+ ) -> BaseResponseGenerateFunctionDataTypes:
66
+ """Generate Function Data Types
67
+
68
+ Submits a request to generate the function data types
69
+
70
+ :param analysis_id: (required)
71
+ :type analysis_id: int
72
+ :param function_data_types_params: (required)
73
+ :type function_data_types_params: FunctionDataTypesParams
74
+ :param authorization: API Key bearer token
75
+ :type authorization: str
76
+ :param _request_timeout: timeout setting for this request. If one
77
+ number provided, it will be total request
78
+ timeout. It can also be a pair (tuple) of
79
+ (connection, read) timeouts.
80
+ :type _request_timeout: int, tuple(int, int), optional
81
+ :param _request_auth: set to override the auth_settings for an a single
82
+ request; this effectively ignores the
83
+ authentication in the spec for a single request.
84
+ :type _request_auth: dict, optional
85
+ :param _content_type: force content-type for the request.
86
+ :type _content_type: str, Optional
87
+ :param _headers: set to override the headers for a single
88
+ request; this effectively ignores the headers
89
+ in the spec for a single request.
90
+ :type _headers: dict, optional
91
+ :param _host_index: set to override the host_index for a single
92
+ request; this effectively ignores the host_index
93
+ in the spec for a single request.
94
+ :type _host_index: int, optional
95
+ :return: Returns the result object.
96
+ """ # noqa: E501
97
+
98
+ _param = self._generate_function_data_types_for_analysis_serialize(
99
+ analysis_id=analysis_id,
100
+ function_data_types_params=function_data_types_params,
101
+ authorization=authorization,
102
+ _request_auth=_request_auth,
103
+ _content_type=_content_type,
104
+ _headers=_headers,
105
+ _host_index=_host_index
106
+ )
107
+
108
+ _response_types_map: Dict[str, Optional[str]] = {
109
+ '201': "BaseResponseGenerateFunctionDataTypes",
110
+ '422': "BaseResponse",
111
+ }
112
+ response_data = self.api_client.call_api(
113
+ *_param,
114
+ _request_timeout=_request_timeout
115
+ )
116
+ response_data.read()
117
+ return self.api_client.response_deserialize(
118
+ response_data=response_data,
119
+ response_types_map=_response_types_map,
120
+ ).data
121
+
122
+
123
+ @validate_call
124
+ def generate_function_data_types_for_analysis_with_http_info(
125
+ self,
126
+ analysis_id: StrictInt,
127
+ function_data_types_params: FunctionDataTypesParams,
128
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
129
+ _request_timeout: Union[
130
+ None,
131
+ Annotated[StrictFloat, Field(gt=0)],
132
+ Tuple[
133
+ Annotated[StrictFloat, Field(gt=0)],
134
+ Annotated[StrictFloat, Field(gt=0)]
135
+ ]
136
+ ] = None,
137
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
138
+ _content_type: Optional[StrictStr] = None,
139
+ _headers: Optional[Dict[StrictStr, Any]] = None,
140
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
141
+ ) -> ApiResponse[BaseResponseGenerateFunctionDataTypes]:
142
+ """Generate Function Data Types
143
+
144
+ Submits a request to generate the function data types
145
+
146
+ :param analysis_id: (required)
147
+ :type analysis_id: int
148
+ :param function_data_types_params: (required)
149
+ :type function_data_types_params: FunctionDataTypesParams
150
+ :param authorization: API Key bearer token
151
+ :type authorization: str
152
+ :param _request_timeout: timeout setting for this request. If one
153
+ number provided, it will be total request
154
+ timeout. It can also be a pair (tuple) of
155
+ (connection, read) timeouts.
156
+ :type _request_timeout: int, tuple(int, int), optional
157
+ :param _request_auth: set to override the auth_settings for an a single
158
+ request; this effectively ignores the
159
+ authentication in the spec for a single request.
160
+ :type _request_auth: dict, optional
161
+ :param _content_type: force content-type for the request.
162
+ :type _content_type: str, Optional
163
+ :param _headers: set to override the headers for a single
164
+ request; this effectively ignores the headers
165
+ in the spec for a single request.
166
+ :type _headers: dict, optional
167
+ :param _host_index: set to override the host_index for a single
168
+ request; this effectively ignores the host_index
169
+ in the spec for a single request.
170
+ :type _host_index: int, optional
171
+ :return: Returns the result object.
172
+ """ # noqa: E501
173
+
174
+ _param = self._generate_function_data_types_for_analysis_serialize(
175
+ analysis_id=analysis_id,
176
+ function_data_types_params=function_data_types_params,
177
+ authorization=authorization,
178
+ _request_auth=_request_auth,
179
+ _content_type=_content_type,
180
+ _headers=_headers,
181
+ _host_index=_host_index
182
+ )
183
+
184
+ _response_types_map: Dict[str, Optional[str]] = {
185
+ '201': "BaseResponseGenerateFunctionDataTypes",
186
+ '422': "BaseResponse",
187
+ }
188
+ response_data = self.api_client.call_api(
189
+ *_param,
190
+ _request_timeout=_request_timeout
191
+ )
192
+ response_data.read()
193
+ return self.api_client.response_deserialize(
194
+ response_data=response_data,
195
+ response_types_map=_response_types_map,
196
+ )
197
+
198
+
199
+ @validate_call
200
+ def generate_function_data_types_for_analysis_without_preload_content(
201
+ self,
202
+ analysis_id: StrictInt,
203
+ function_data_types_params: FunctionDataTypesParams,
204
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
205
+ _request_timeout: Union[
206
+ None,
207
+ Annotated[StrictFloat, Field(gt=0)],
208
+ Tuple[
209
+ Annotated[StrictFloat, Field(gt=0)],
210
+ Annotated[StrictFloat, Field(gt=0)]
211
+ ]
212
+ ] = None,
213
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
214
+ _content_type: Optional[StrictStr] = None,
215
+ _headers: Optional[Dict[StrictStr, Any]] = None,
216
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
217
+ ) -> RESTResponseType:
218
+ """Generate Function Data Types
219
+
220
+ Submits a request to generate the function data types
221
+
222
+ :param analysis_id: (required)
223
+ :type analysis_id: int
224
+ :param function_data_types_params: (required)
225
+ :type function_data_types_params: FunctionDataTypesParams
226
+ :param authorization: API Key bearer token
227
+ :type authorization: str
228
+ :param _request_timeout: timeout setting for this request. If one
229
+ number provided, it will be total request
230
+ timeout. It can also be a pair (tuple) of
231
+ (connection, read) timeouts.
232
+ :type _request_timeout: int, tuple(int, int), optional
233
+ :param _request_auth: set to override the auth_settings for an a single
234
+ request; this effectively ignores the
235
+ authentication in the spec for a single request.
236
+ :type _request_auth: dict, optional
237
+ :param _content_type: force content-type for the request.
238
+ :type _content_type: str, Optional
239
+ :param _headers: set to override the headers for a single
240
+ request; this effectively ignores the headers
241
+ in the spec for a single request.
242
+ :type _headers: dict, optional
243
+ :param _host_index: set to override the host_index for a single
244
+ request; this effectively ignores the host_index
245
+ in the spec for a single request.
246
+ :type _host_index: int, optional
247
+ :return: Returns the result object.
248
+ """ # noqa: E501
249
+
250
+ _param = self._generate_function_data_types_for_analysis_serialize(
251
+ analysis_id=analysis_id,
252
+ function_data_types_params=function_data_types_params,
253
+ authorization=authorization,
254
+ _request_auth=_request_auth,
255
+ _content_type=_content_type,
256
+ _headers=_headers,
257
+ _host_index=_host_index
258
+ )
259
+
260
+ _response_types_map: Dict[str, Optional[str]] = {
261
+ '201': "BaseResponseGenerateFunctionDataTypes",
262
+ '422': "BaseResponse",
263
+ }
264
+ response_data = self.api_client.call_api(
265
+ *_param,
266
+ _request_timeout=_request_timeout
267
+ )
268
+ return response_data.response
269
+
270
+
271
+ def _generate_function_data_types_for_analysis_serialize(
272
+ self,
273
+ analysis_id,
274
+ function_data_types_params,
275
+ authorization,
276
+ _request_auth,
277
+ _content_type,
278
+ _headers,
279
+ _host_index,
280
+ ) -> RequestSerialized:
281
+
282
+ _host = None
283
+
284
+ _collection_formats: Dict[str, str] = {
285
+ }
286
+
287
+ _path_params: Dict[str, str] = {}
288
+ _query_params: List[Tuple[str, str]] = []
289
+ _header_params: Dict[str, Optional[str]] = _headers or {}
290
+ _form_params: List[Tuple[str, str]] = []
291
+ _files: Dict[
292
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
293
+ ] = {}
294
+ _body_params: Optional[bytes] = None
295
+
296
+ # process the path parameters
297
+ if analysis_id is not None:
298
+ _path_params['analysis_id'] = analysis_id
299
+ # process the query parameters
300
+ # process the header parameters
301
+ if authorization is not None:
302
+ _header_params['authorization'] = authorization
303
+ # process the form parameters
304
+ # process the body parameter
305
+ if function_data_types_params is not None:
306
+ _body_params = function_data_types_params
307
+
308
+
309
+ # set the HTTP header `Accept`
310
+ if 'Accept' not in _header_params:
311
+ _header_params['Accept'] = self.api_client.select_header_accept(
312
+ [
313
+ 'application/json'
314
+ ]
315
+ )
316
+
317
+ # set the HTTP header `Content-Type`
318
+ if _content_type:
319
+ _header_params['Content-Type'] = _content_type
320
+ else:
321
+ _default_content_type = (
322
+ self.api_client.select_header_content_type(
323
+ [
324
+ 'application/json'
325
+ ]
326
+ )
327
+ )
328
+ if _default_content_type is not None:
329
+ _header_params['Content-Type'] = _default_content_type
330
+
331
+ # authentication setting
332
+ _auth_settings: List[str] = [
333
+ 'APIKey'
334
+ ]
335
+
336
+ return self.api_client.param_serialize(
337
+ method='POST',
338
+ resource_path='/v2/analyses/{analysis_id}/functions/data_types',
339
+ path_params=_path_params,
340
+ query_params=_query_params,
341
+ header_params=_header_params,
342
+ body=_body_params,
343
+ post_params=_form_params,
344
+ files=_files,
345
+ auth_settings=_auth_settings,
346
+ collection_formats=_collection_formats,
347
+ _host=_host,
348
+ _request_auth=_request_auth
349
+ )
350
+
351
+
352
+
353
+
354
+ @validate_call
355
+ def generate_function_data_types_for_functions(
356
+ self,
357
+ function_data_types_params: FunctionDataTypesParams,
358
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
359
+ _request_timeout: Union[
360
+ None,
361
+ Annotated[StrictFloat, Field(gt=0)],
362
+ Tuple[
363
+ Annotated[StrictFloat, Field(gt=0)],
364
+ Annotated[StrictFloat, Field(gt=0)]
365
+ ]
366
+ ] = None,
367
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
368
+ _content_type: Optional[StrictStr] = None,
369
+ _headers: Optional[Dict[StrictStr, Any]] = None,
370
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
371
+ ) -> BaseResponseGenerationStatusList:
372
+ """Generate Function Data Types for an arbitrary list of functions
373
+
374
+ Submits a request to generate the function data types
375
+
376
+ :param function_data_types_params: (required)
377
+ :type function_data_types_params: FunctionDataTypesParams
378
+ :param authorization: API Key bearer token
379
+ :type authorization: str
380
+ :param _request_timeout: timeout setting for this request. If one
381
+ number provided, it will be total request
382
+ timeout. It can also be a pair (tuple) of
383
+ (connection, read) timeouts.
384
+ :type _request_timeout: int, tuple(int, int), optional
385
+ :param _request_auth: set to override the auth_settings for an a single
386
+ request; this effectively ignores the
387
+ authentication in the spec for a single request.
388
+ :type _request_auth: dict, optional
389
+ :param _content_type: force content-type for the request.
390
+ :type _content_type: str, Optional
391
+ :param _headers: set to override the headers for a single
392
+ request; this effectively ignores the headers
393
+ in the spec for a single request.
394
+ :type _headers: dict, optional
395
+ :param _host_index: set to override the host_index for a single
396
+ request; this effectively ignores the host_index
397
+ in the spec for a single request.
398
+ :type _host_index: int, optional
399
+ :return: Returns the result object.
400
+ """ # noqa: E501
401
+
402
+ _param = self._generate_function_data_types_for_functions_serialize(
403
+ function_data_types_params=function_data_types_params,
404
+ authorization=authorization,
405
+ _request_auth=_request_auth,
406
+ _content_type=_content_type,
407
+ _headers=_headers,
408
+ _host_index=_host_index
409
+ )
410
+
411
+ _response_types_map: Dict[str, Optional[str]] = {
412
+ '201': "BaseResponseGenerationStatusList",
413
+ '422': "BaseResponse",
414
+ }
415
+ response_data = self.api_client.call_api(
416
+ *_param,
417
+ _request_timeout=_request_timeout
418
+ )
419
+ response_data.read()
420
+ return self.api_client.response_deserialize(
421
+ response_data=response_data,
422
+ response_types_map=_response_types_map,
423
+ ).data
424
+
425
+
426
+ @validate_call
427
+ def generate_function_data_types_for_functions_with_http_info(
428
+ self,
429
+ function_data_types_params: FunctionDataTypesParams,
430
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
431
+ _request_timeout: Union[
432
+ None,
433
+ Annotated[StrictFloat, Field(gt=0)],
434
+ Tuple[
435
+ Annotated[StrictFloat, Field(gt=0)],
436
+ Annotated[StrictFloat, Field(gt=0)]
437
+ ]
438
+ ] = None,
439
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
440
+ _content_type: Optional[StrictStr] = None,
441
+ _headers: Optional[Dict[StrictStr, Any]] = None,
442
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
443
+ ) -> ApiResponse[BaseResponseGenerationStatusList]:
444
+ """Generate Function Data Types for an arbitrary list of functions
445
+
446
+ Submits a request to generate the function data types
447
+
448
+ :param function_data_types_params: (required)
449
+ :type function_data_types_params: FunctionDataTypesParams
450
+ :param authorization: API Key bearer token
451
+ :type authorization: str
452
+ :param _request_timeout: timeout setting for this request. If one
453
+ number provided, it will be total request
454
+ timeout. It can also be a pair (tuple) of
455
+ (connection, read) timeouts.
456
+ :type _request_timeout: int, tuple(int, int), optional
457
+ :param _request_auth: set to override the auth_settings for an a single
458
+ request; this effectively ignores the
459
+ authentication in the spec for a single request.
460
+ :type _request_auth: dict, optional
461
+ :param _content_type: force content-type for the request.
462
+ :type _content_type: str, Optional
463
+ :param _headers: set to override the headers for a single
464
+ request; this effectively ignores the headers
465
+ in the spec for a single request.
466
+ :type _headers: dict, optional
467
+ :param _host_index: set to override the host_index for a single
468
+ request; this effectively ignores the host_index
469
+ in the spec for a single request.
470
+ :type _host_index: int, optional
471
+ :return: Returns the result object.
472
+ """ # noqa: E501
473
+
474
+ _param = self._generate_function_data_types_for_functions_serialize(
475
+ function_data_types_params=function_data_types_params,
476
+ authorization=authorization,
477
+ _request_auth=_request_auth,
478
+ _content_type=_content_type,
479
+ _headers=_headers,
480
+ _host_index=_host_index
481
+ )
482
+
483
+ _response_types_map: Dict[str, Optional[str]] = {
484
+ '201': "BaseResponseGenerationStatusList",
485
+ '422': "BaseResponse",
486
+ }
487
+ response_data = self.api_client.call_api(
488
+ *_param,
489
+ _request_timeout=_request_timeout
490
+ )
491
+ response_data.read()
492
+ return self.api_client.response_deserialize(
493
+ response_data=response_data,
494
+ response_types_map=_response_types_map,
495
+ )
496
+
497
+
498
+ @validate_call
499
+ def generate_function_data_types_for_functions_without_preload_content(
500
+ self,
501
+ function_data_types_params: FunctionDataTypesParams,
502
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
503
+ _request_timeout: Union[
504
+ None,
505
+ Annotated[StrictFloat, Field(gt=0)],
506
+ Tuple[
507
+ Annotated[StrictFloat, Field(gt=0)],
508
+ Annotated[StrictFloat, Field(gt=0)]
509
+ ]
510
+ ] = None,
511
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
512
+ _content_type: Optional[StrictStr] = None,
513
+ _headers: Optional[Dict[StrictStr, Any]] = None,
514
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
515
+ ) -> RESTResponseType:
516
+ """Generate Function Data Types for an arbitrary list of functions
517
+
518
+ Submits a request to generate the function data types
519
+
520
+ :param function_data_types_params: (required)
521
+ :type function_data_types_params: FunctionDataTypesParams
522
+ :param authorization: API Key bearer token
523
+ :type authorization: str
524
+ :param _request_timeout: timeout setting for this request. If one
525
+ number provided, it will be total request
526
+ timeout. It can also be a pair (tuple) of
527
+ (connection, read) timeouts.
528
+ :type _request_timeout: int, tuple(int, int), optional
529
+ :param _request_auth: set to override the auth_settings for an a single
530
+ request; this effectively ignores the
531
+ authentication in the spec for a single request.
532
+ :type _request_auth: dict, optional
533
+ :param _content_type: force content-type for the request.
534
+ :type _content_type: str, Optional
535
+ :param _headers: set to override the headers for a single
536
+ request; this effectively ignores the headers
537
+ in the spec for a single request.
538
+ :type _headers: dict, optional
539
+ :param _host_index: set to override the host_index for a single
540
+ request; this effectively ignores the host_index
541
+ in the spec for a single request.
542
+ :type _host_index: int, optional
543
+ :return: Returns the result object.
544
+ """ # noqa: E501
545
+
546
+ _param = self._generate_function_data_types_for_functions_serialize(
547
+ function_data_types_params=function_data_types_params,
548
+ authorization=authorization,
549
+ _request_auth=_request_auth,
550
+ _content_type=_content_type,
551
+ _headers=_headers,
552
+ _host_index=_host_index
553
+ )
554
+
555
+ _response_types_map: Dict[str, Optional[str]] = {
556
+ '201': "BaseResponseGenerationStatusList",
557
+ '422': "BaseResponse",
558
+ }
559
+ response_data = self.api_client.call_api(
560
+ *_param,
561
+ _request_timeout=_request_timeout
562
+ )
563
+ return response_data.response
564
+
565
+
566
+ def _generate_function_data_types_for_functions_serialize(
567
+ self,
568
+ function_data_types_params,
569
+ authorization,
570
+ _request_auth,
571
+ _content_type,
572
+ _headers,
573
+ _host_index,
574
+ ) -> RequestSerialized:
575
+
576
+ _host = None
577
+
578
+ _collection_formats: Dict[str, str] = {
579
+ }
580
+
581
+ _path_params: Dict[str, str] = {}
582
+ _query_params: List[Tuple[str, str]] = []
583
+ _header_params: Dict[str, Optional[str]] = _headers or {}
584
+ _form_params: List[Tuple[str, str]] = []
585
+ _files: Dict[
586
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
587
+ ] = {}
588
+ _body_params: Optional[bytes] = None
589
+
590
+ # process the path parameters
591
+ # process the query parameters
592
+ # process the header parameters
593
+ if authorization is not None:
594
+ _header_params['authorization'] = authorization
595
+ # process the form parameters
596
+ # process the body parameter
597
+ if function_data_types_params is not None:
598
+ _body_params = function_data_types_params
599
+
600
+
601
+ # set the HTTP header `Accept`
602
+ if 'Accept' not in _header_params:
603
+ _header_params['Accept'] = self.api_client.select_header_accept(
604
+ [
605
+ 'application/json'
606
+ ]
607
+ )
608
+
609
+ # set the HTTP header `Content-Type`
610
+ if _content_type:
611
+ _header_params['Content-Type'] = _content_type
612
+ else:
613
+ _default_content_type = (
614
+ self.api_client.select_header_content_type(
615
+ [
616
+ 'application/json'
617
+ ]
618
+ )
619
+ )
620
+ if _default_content_type is not None:
621
+ _header_params['Content-Type'] = _default_content_type
622
+
623
+ # authentication setting
624
+ _auth_settings: List[str] = [
625
+ 'APIKey'
626
+ ]
627
+
628
+ return self.api_client.param_serialize(
629
+ method='POST',
630
+ resource_path='/v2/functions/data_types',
631
+ path_params=_path_params,
632
+ query_params=_query_params,
633
+ header_params=_header_params,
634
+ body=_body_params,
635
+ post_params=_form_params,
636
+ files=_files,
637
+ auth_settings=_auth_settings,
638
+ collection_formats=_collection_formats,
639
+ _host=_host,
640
+ _request_auth=_request_auth
641
+ )
642
+
643
+
644
+
645
+
646
+ @validate_call
647
+ def get_function_data_types(
648
+ self,
649
+ analysis_id: StrictInt,
650
+ function_id: StrictInt,
651
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
652
+ _request_timeout: Union[
653
+ None,
654
+ Annotated[StrictFloat, Field(gt=0)],
655
+ Tuple[
656
+ Annotated[StrictFloat, Field(gt=0)],
657
+ Annotated[StrictFloat, Field(gt=0)]
658
+ ]
659
+ ] = None,
660
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
661
+ _content_type: Optional[StrictStr] = None,
662
+ _headers: Optional[Dict[StrictStr, Any]] = None,
663
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
664
+ ) -> BaseResponseFunctionDataTypes:
665
+ """Get Function Data Types
666
+
667
+ Polling endpoint which returns the current status of function generation and once completed the data type information
668
+
669
+ :param analysis_id: (required)
670
+ :type analysis_id: int
671
+ :param function_id: (required)
672
+ :type function_id: int
673
+ :param authorization: API Key bearer token
674
+ :type authorization: str
675
+ :param _request_timeout: timeout setting for this request. If one
676
+ number provided, it will be total request
677
+ timeout. It can also be a pair (tuple) of
678
+ (connection, read) timeouts.
679
+ :type _request_timeout: int, tuple(int, int), optional
680
+ :param _request_auth: set to override the auth_settings for an a single
681
+ request; this effectively ignores the
682
+ authentication in the spec for a single request.
683
+ :type _request_auth: dict, optional
684
+ :param _content_type: force content-type for the request.
685
+ :type _content_type: str, Optional
686
+ :param _headers: set to override the headers for a single
687
+ request; this effectively ignores the headers
688
+ in the spec for a single request.
689
+ :type _headers: dict, optional
690
+ :param _host_index: set to override the host_index for a single
691
+ request; this effectively ignores the host_index
692
+ in the spec for a single request.
693
+ :type _host_index: int, optional
694
+ :return: Returns the result object.
695
+ """ # noqa: E501
696
+
697
+ _param = self._get_function_data_types_serialize(
698
+ analysis_id=analysis_id,
699
+ function_id=function_id,
700
+ authorization=authorization,
701
+ _request_auth=_request_auth,
702
+ _content_type=_content_type,
703
+ _headers=_headers,
704
+ _host_index=_host_index
705
+ )
706
+
707
+ _response_types_map: Dict[str, Optional[str]] = {
708
+ '200': "BaseResponseFunctionDataTypes",
709
+ '422': "BaseResponse",
710
+ }
711
+ response_data = self.api_client.call_api(
712
+ *_param,
713
+ _request_timeout=_request_timeout
714
+ )
715
+ response_data.read()
716
+ return self.api_client.response_deserialize(
717
+ response_data=response_data,
718
+ response_types_map=_response_types_map,
719
+ ).data
720
+
721
+
722
+ @validate_call
723
+ def get_function_data_types_with_http_info(
724
+ self,
725
+ analysis_id: StrictInt,
726
+ function_id: StrictInt,
727
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
728
+ _request_timeout: Union[
729
+ None,
730
+ Annotated[StrictFloat, Field(gt=0)],
731
+ Tuple[
732
+ Annotated[StrictFloat, Field(gt=0)],
733
+ Annotated[StrictFloat, Field(gt=0)]
734
+ ]
735
+ ] = None,
736
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
737
+ _content_type: Optional[StrictStr] = None,
738
+ _headers: Optional[Dict[StrictStr, Any]] = None,
739
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
740
+ ) -> ApiResponse[BaseResponseFunctionDataTypes]:
741
+ """Get Function Data Types
742
+
743
+ Polling endpoint which returns the current status of function generation and once completed the data type information
744
+
745
+ :param analysis_id: (required)
746
+ :type analysis_id: int
747
+ :param function_id: (required)
748
+ :type function_id: int
749
+ :param authorization: API Key bearer token
750
+ :type authorization: str
751
+ :param _request_timeout: timeout setting for this request. If one
752
+ number provided, it will be total request
753
+ timeout. It can also be a pair (tuple) of
754
+ (connection, read) timeouts.
755
+ :type _request_timeout: int, tuple(int, int), optional
756
+ :param _request_auth: set to override the auth_settings for an a single
757
+ request; this effectively ignores the
758
+ authentication in the spec for a single request.
759
+ :type _request_auth: dict, optional
760
+ :param _content_type: force content-type for the request.
761
+ :type _content_type: str, Optional
762
+ :param _headers: set to override the headers for a single
763
+ request; this effectively ignores the headers
764
+ in the spec for a single request.
765
+ :type _headers: dict, optional
766
+ :param _host_index: set to override the host_index for a single
767
+ request; this effectively ignores the host_index
768
+ in the spec for a single request.
769
+ :type _host_index: int, optional
770
+ :return: Returns the result object.
771
+ """ # noqa: E501
772
+
773
+ _param = self._get_function_data_types_serialize(
774
+ analysis_id=analysis_id,
775
+ function_id=function_id,
776
+ authorization=authorization,
777
+ _request_auth=_request_auth,
778
+ _content_type=_content_type,
779
+ _headers=_headers,
780
+ _host_index=_host_index
781
+ )
782
+
783
+ _response_types_map: Dict[str, Optional[str]] = {
784
+ '200': "BaseResponseFunctionDataTypes",
785
+ '422': "BaseResponse",
786
+ }
787
+ response_data = self.api_client.call_api(
788
+ *_param,
789
+ _request_timeout=_request_timeout
790
+ )
791
+ response_data.read()
792
+ return self.api_client.response_deserialize(
793
+ response_data=response_data,
794
+ response_types_map=_response_types_map,
795
+ )
796
+
797
+
798
+ @validate_call
799
+ def get_function_data_types_without_preload_content(
800
+ self,
801
+ analysis_id: StrictInt,
802
+ function_id: StrictInt,
803
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
804
+ _request_timeout: Union[
805
+ None,
806
+ Annotated[StrictFloat, Field(gt=0)],
807
+ Tuple[
808
+ Annotated[StrictFloat, Field(gt=0)],
809
+ Annotated[StrictFloat, Field(gt=0)]
810
+ ]
811
+ ] = None,
812
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
813
+ _content_type: Optional[StrictStr] = None,
814
+ _headers: Optional[Dict[StrictStr, Any]] = None,
815
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
816
+ ) -> RESTResponseType:
817
+ """Get Function Data Types
818
+
819
+ Polling endpoint which returns the current status of function generation and once completed the data type information
820
+
821
+ :param analysis_id: (required)
822
+ :type analysis_id: int
823
+ :param function_id: (required)
824
+ :type function_id: int
825
+ :param authorization: API Key bearer token
826
+ :type authorization: str
827
+ :param _request_timeout: timeout setting for this request. If one
828
+ number provided, it will be total request
829
+ timeout. It can also be a pair (tuple) of
830
+ (connection, read) timeouts.
831
+ :type _request_timeout: int, tuple(int, int), optional
832
+ :param _request_auth: set to override the auth_settings for an a single
833
+ request; this effectively ignores the
834
+ authentication in the spec for a single request.
835
+ :type _request_auth: dict, optional
836
+ :param _content_type: force content-type for the request.
837
+ :type _content_type: str, Optional
838
+ :param _headers: set to override the headers for a single
839
+ request; this effectively ignores the headers
840
+ in the spec for a single request.
841
+ :type _headers: dict, optional
842
+ :param _host_index: set to override the host_index for a single
843
+ request; this effectively ignores the host_index
844
+ in the spec for a single request.
845
+ :type _host_index: int, optional
846
+ :return: Returns the result object.
847
+ """ # noqa: E501
848
+
849
+ _param = self._get_function_data_types_serialize(
850
+ analysis_id=analysis_id,
851
+ function_id=function_id,
852
+ authorization=authorization,
853
+ _request_auth=_request_auth,
854
+ _content_type=_content_type,
855
+ _headers=_headers,
856
+ _host_index=_host_index
857
+ )
858
+
859
+ _response_types_map: Dict[str, Optional[str]] = {
860
+ '200': "BaseResponseFunctionDataTypes",
861
+ '422': "BaseResponse",
862
+ }
863
+ response_data = self.api_client.call_api(
864
+ *_param,
865
+ _request_timeout=_request_timeout
866
+ )
867
+ return response_data.response
868
+
869
+
870
+ def _get_function_data_types_serialize(
871
+ self,
872
+ analysis_id,
873
+ function_id,
874
+ authorization,
875
+ _request_auth,
876
+ _content_type,
877
+ _headers,
878
+ _host_index,
879
+ ) -> RequestSerialized:
880
+
881
+ _host = None
882
+
883
+ _collection_formats: Dict[str, str] = {
884
+ }
885
+
886
+ _path_params: Dict[str, str] = {}
887
+ _query_params: List[Tuple[str, str]] = []
888
+ _header_params: Dict[str, Optional[str]] = _headers or {}
889
+ _form_params: List[Tuple[str, str]] = []
890
+ _files: Dict[
891
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
892
+ ] = {}
893
+ _body_params: Optional[bytes] = None
894
+
895
+ # process the path parameters
896
+ if analysis_id is not None:
897
+ _path_params['analysis_id'] = analysis_id
898
+ if function_id is not None:
899
+ _path_params['function_id'] = function_id
900
+ # process the query parameters
901
+ # process the header parameters
902
+ if authorization is not None:
903
+ _header_params['authorization'] = authorization
904
+ # process the form parameters
905
+ # process the body parameter
906
+
907
+
908
+ # set the HTTP header `Accept`
909
+ if 'Accept' not in _header_params:
910
+ _header_params['Accept'] = self.api_client.select_header_accept(
911
+ [
912
+ 'application/json'
913
+ ]
914
+ )
915
+
916
+
917
+ # authentication setting
918
+ _auth_settings: List[str] = [
919
+ 'APIKey'
920
+ ]
921
+
922
+ return self.api_client.param_serialize(
923
+ method='GET',
924
+ resource_path='/v2/analyses/{analysis_id}/functions/{function_id}/data_types',
925
+ path_params=_path_params,
926
+ query_params=_query_params,
927
+ header_params=_header_params,
928
+ body=_body_params,
929
+ post_params=_form_params,
930
+ files=_files,
931
+ auth_settings=_auth_settings,
932
+ collection_formats=_collection_formats,
933
+ _host=_host,
934
+ _request_auth=_request_auth
935
+ )
936
+
937
+
938
+
939
+
940
+ @validate_call
941
+ def list_function_data_types_for_analysis(
942
+ self,
943
+ analysis_id: StrictInt,
944
+ function_ids: Optional[List[Optional[StrictInt]]] = 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
+ ) -> BaseResponseFunctionDataTypesList:
959
+ """List Function Data Types
960
+
961
+ Returns data types for multiple functions with optional function ID filtering
962
+
963
+ :param analysis_id: (required)
964
+ :type analysis_id: int
965
+ :param function_ids:
966
+ :type function_ids: List[Optional[int]]
967
+ :param authorization: API Key bearer token
968
+ :type authorization: str
969
+ :param _request_timeout: timeout setting for this request. If one
970
+ number provided, it will be total request
971
+ timeout. It can also be a pair (tuple) of
972
+ (connection, read) timeouts.
973
+ :type _request_timeout: int, tuple(int, int), optional
974
+ :param _request_auth: set to override the auth_settings for an a single
975
+ request; this effectively ignores the
976
+ authentication in the spec for a single request.
977
+ :type _request_auth: dict, optional
978
+ :param _content_type: force content-type for the request.
979
+ :type _content_type: str, Optional
980
+ :param _headers: set to override the headers for a single
981
+ request; this effectively ignores the headers
982
+ in the spec for a single request.
983
+ :type _headers: dict, optional
984
+ :param _host_index: set to override the host_index for a single
985
+ request; this effectively ignores the host_index
986
+ in the spec for a single request.
987
+ :type _host_index: int, optional
988
+ :return: Returns the result object.
989
+ """ # noqa: E501
990
+
991
+ _param = self._list_function_data_types_for_analysis_serialize(
992
+ analysis_id=analysis_id,
993
+ function_ids=function_ids,
994
+ authorization=authorization,
995
+ _request_auth=_request_auth,
996
+ _content_type=_content_type,
997
+ _headers=_headers,
998
+ _host_index=_host_index
999
+ )
1000
+
1001
+ _response_types_map: Dict[str, Optional[str]] = {
1002
+ '200': "BaseResponseFunctionDataTypesList",
1003
+ '422': "BaseResponse",
1004
+ }
1005
+ response_data = self.api_client.call_api(
1006
+ *_param,
1007
+ _request_timeout=_request_timeout
1008
+ )
1009
+ response_data.read()
1010
+ return self.api_client.response_deserialize(
1011
+ response_data=response_data,
1012
+ response_types_map=_response_types_map,
1013
+ ).data
1014
+
1015
+
1016
+ @validate_call
1017
+ def list_function_data_types_for_analysis_with_http_info(
1018
+ self,
1019
+ analysis_id: StrictInt,
1020
+ function_ids: Optional[List[Optional[StrictInt]]] = None,
1021
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1022
+ _request_timeout: Union[
1023
+ None,
1024
+ Annotated[StrictFloat, Field(gt=0)],
1025
+ Tuple[
1026
+ Annotated[StrictFloat, Field(gt=0)],
1027
+ Annotated[StrictFloat, Field(gt=0)]
1028
+ ]
1029
+ ] = None,
1030
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1031
+ _content_type: Optional[StrictStr] = None,
1032
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1033
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1034
+ ) -> ApiResponse[BaseResponseFunctionDataTypesList]:
1035
+ """List Function Data Types
1036
+
1037
+ Returns data types for multiple functions with optional function ID filtering
1038
+
1039
+ :param analysis_id: (required)
1040
+ :type analysis_id: int
1041
+ :param function_ids:
1042
+ :type function_ids: List[Optional[int]]
1043
+ :param authorization: API Key bearer token
1044
+ :type authorization: str
1045
+ :param _request_timeout: timeout setting for this request. If one
1046
+ number provided, it will be total request
1047
+ timeout. It can also be a pair (tuple) of
1048
+ (connection, read) timeouts.
1049
+ :type _request_timeout: int, tuple(int, int), optional
1050
+ :param _request_auth: set to override the auth_settings for an a single
1051
+ request; this effectively ignores the
1052
+ authentication in the spec for a single request.
1053
+ :type _request_auth: dict, optional
1054
+ :param _content_type: force content-type for the request.
1055
+ :type _content_type: str, Optional
1056
+ :param _headers: set to override the headers for a single
1057
+ request; this effectively ignores the headers
1058
+ in the spec for a single request.
1059
+ :type _headers: dict, optional
1060
+ :param _host_index: set to override the host_index for a single
1061
+ request; this effectively ignores the host_index
1062
+ in the spec for a single request.
1063
+ :type _host_index: int, optional
1064
+ :return: Returns the result object.
1065
+ """ # noqa: E501
1066
+
1067
+ _param = self._list_function_data_types_for_analysis_serialize(
1068
+ analysis_id=analysis_id,
1069
+ function_ids=function_ids,
1070
+ authorization=authorization,
1071
+ _request_auth=_request_auth,
1072
+ _content_type=_content_type,
1073
+ _headers=_headers,
1074
+ _host_index=_host_index
1075
+ )
1076
+
1077
+ _response_types_map: Dict[str, Optional[str]] = {
1078
+ '200': "BaseResponseFunctionDataTypesList",
1079
+ '422': "BaseResponse",
1080
+ }
1081
+ response_data = self.api_client.call_api(
1082
+ *_param,
1083
+ _request_timeout=_request_timeout
1084
+ )
1085
+ response_data.read()
1086
+ return self.api_client.response_deserialize(
1087
+ response_data=response_data,
1088
+ response_types_map=_response_types_map,
1089
+ )
1090
+
1091
+
1092
+ @validate_call
1093
+ def list_function_data_types_for_analysis_without_preload_content(
1094
+ self,
1095
+ analysis_id: StrictInt,
1096
+ function_ids: Optional[List[Optional[StrictInt]]] = None,
1097
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1098
+ _request_timeout: Union[
1099
+ None,
1100
+ Annotated[StrictFloat, Field(gt=0)],
1101
+ Tuple[
1102
+ Annotated[StrictFloat, Field(gt=0)],
1103
+ Annotated[StrictFloat, Field(gt=0)]
1104
+ ]
1105
+ ] = None,
1106
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1107
+ _content_type: Optional[StrictStr] = None,
1108
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1109
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1110
+ ) -> RESTResponseType:
1111
+ """List Function Data Types
1112
+
1113
+ Returns data types for multiple functions with optional function ID filtering
1114
+
1115
+ :param analysis_id: (required)
1116
+ :type analysis_id: int
1117
+ :param function_ids:
1118
+ :type function_ids: List[Optional[int]]
1119
+ :param authorization: API Key bearer token
1120
+ :type authorization: str
1121
+ :param _request_timeout: timeout setting for this request. If one
1122
+ number provided, it will be total request
1123
+ timeout. It can also be a pair (tuple) of
1124
+ (connection, read) timeouts.
1125
+ :type _request_timeout: int, tuple(int, int), optional
1126
+ :param _request_auth: set to override the auth_settings for an a single
1127
+ request; this effectively ignores the
1128
+ authentication in the spec for a single request.
1129
+ :type _request_auth: dict, optional
1130
+ :param _content_type: force content-type for the request.
1131
+ :type _content_type: str, Optional
1132
+ :param _headers: set to override the headers for a single
1133
+ request; this effectively ignores the headers
1134
+ in the spec for a single request.
1135
+ :type _headers: dict, optional
1136
+ :param _host_index: set to override the host_index for a single
1137
+ request; this effectively ignores the host_index
1138
+ in the spec for a single request.
1139
+ :type _host_index: int, optional
1140
+ :return: Returns the result object.
1141
+ """ # noqa: E501
1142
+
1143
+ _param = self._list_function_data_types_for_analysis_serialize(
1144
+ analysis_id=analysis_id,
1145
+ function_ids=function_ids,
1146
+ authorization=authorization,
1147
+ _request_auth=_request_auth,
1148
+ _content_type=_content_type,
1149
+ _headers=_headers,
1150
+ _host_index=_host_index
1151
+ )
1152
+
1153
+ _response_types_map: Dict[str, Optional[str]] = {
1154
+ '200': "BaseResponseFunctionDataTypesList",
1155
+ '422': "BaseResponse",
1156
+ }
1157
+ response_data = self.api_client.call_api(
1158
+ *_param,
1159
+ _request_timeout=_request_timeout
1160
+ )
1161
+ return response_data.response
1162
+
1163
+
1164
+ def _list_function_data_types_for_analysis_serialize(
1165
+ self,
1166
+ analysis_id,
1167
+ function_ids,
1168
+ authorization,
1169
+ _request_auth,
1170
+ _content_type,
1171
+ _headers,
1172
+ _host_index,
1173
+ ) -> RequestSerialized:
1174
+
1175
+ _host = None
1176
+
1177
+ _collection_formats: Dict[str, str] = {
1178
+ 'function_ids': 'multi',
1179
+ }
1180
+
1181
+ _path_params: Dict[str, str] = {}
1182
+ _query_params: List[Tuple[str, str]] = []
1183
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1184
+ _form_params: List[Tuple[str, str]] = []
1185
+ _files: Dict[
1186
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1187
+ ] = {}
1188
+ _body_params: Optional[bytes] = None
1189
+
1190
+ # process the path parameters
1191
+ if analysis_id is not None:
1192
+ _path_params['analysis_id'] = analysis_id
1193
+ # process the query parameters
1194
+ if function_ids is not None:
1195
+
1196
+ _query_params.append(('function_ids', function_ids))
1197
+
1198
+ # process the header parameters
1199
+ if authorization is not None:
1200
+ _header_params['authorization'] = authorization
1201
+ # process the form parameters
1202
+ # process the body parameter
1203
+
1204
+
1205
+ # set the HTTP header `Accept`
1206
+ if 'Accept' not in _header_params:
1207
+ _header_params['Accept'] = self.api_client.select_header_accept(
1208
+ [
1209
+ 'application/json'
1210
+ ]
1211
+ )
1212
+
1213
+
1214
+ # authentication setting
1215
+ _auth_settings: List[str] = [
1216
+ 'APIKey'
1217
+ ]
1218
+
1219
+ return self.api_client.param_serialize(
1220
+ method='GET',
1221
+ resource_path='/v2/analyses/{analysis_id}/functions/data_types',
1222
+ path_params=_path_params,
1223
+ query_params=_query_params,
1224
+ header_params=_header_params,
1225
+ body=_body_params,
1226
+ post_params=_form_params,
1227
+ files=_files,
1228
+ auth_settings=_auth_settings,
1229
+ collection_formats=_collection_formats,
1230
+ _host=_host,
1231
+ _request_auth=_request_auth
1232
+ )
1233
+
1234
+
1235
+
1236
+
1237
+ @validate_call
1238
+ def list_function_data_types_for_functions(
1239
+ self,
1240
+ function_ids: Optional[List[Optional[StrictInt]]] = None,
1241
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1242
+ _request_timeout: Union[
1243
+ None,
1244
+ Annotated[StrictFloat, Field(gt=0)],
1245
+ Tuple[
1246
+ Annotated[StrictFloat, Field(gt=0)],
1247
+ Annotated[StrictFloat, Field(gt=0)]
1248
+ ]
1249
+ ] = None,
1250
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1251
+ _content_type: Optional[StrictStr] = None,
1252
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1253
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1254
+ ) -> BaseResponseFunctionDataTypesList:
1255
+ """List Function Data Types
1256
+
1257
+ Returns data types for multiple function IDs
1258
+
1259
+ :param function_ids:
1260
+ :type function_ids: List[Optional[int]]
1261
+ :param authorization: API Key bearer token
1262
+ :type authorization: str
1263
+ :param _request_timeout: timeout setting for this request. If one
1264
+ number provided, it will be total request
1265
+ timeout. It can also be a pair (tuple) of
1266
+ (connection, read) timeouts.
1267
+ :type _request_timeout: int, tuple(int, int), optional
1268
+ :param _request_auth: set to override the auth_settings for an a single
1269
+ request; this effectively ignores the
1270
+ authentication in the spec for a single request.
1271
+ :type _request_auth: dict, optional
1272
+ :param _content_type: force content-type for the request.
1273
+ :type _content_type: str, Optional
1274
+ :param _headers: set to override the headers for a single
1275
+ request; this effectively ignores the headers
1276
+ in the spec for a single request.
1277
+ :type _headers: dict, optional
1278
+ :param _host_index: set to override the host_index for a single
1279
+ request; this effectively ignores the host_index
1280
+ in the spec for a single request.
1281
+ :type _host_index: int, optional
1282
+ :return: Returns the result object.
1283
+ """ # noqa: E501
1284
+
1285
+ _param = self._list_function_data_types_for_functions_serialize(
1286
+ function_ids=function_ids,
1287
+ authorization=authorization,
1288
+ _request_auth=_request_auth,
1289
+ _content_type=_content_type,
1290
+ _headers=_headers,
1291
+ _host_index=_host_index
1292
+ )
1293
+
1294
+ _response_types_map: Dict[str, Optional[str]] = {
1295
+ '200': "BaseResponseFunctionDataTypesList",
1296
+ '422': "BaseResponse",
1297
+ }
1298
+ response_data = self.api_client.call_api(
1299
+ *_param,
1300
+ _request_timeout=_request_timeout
1301
+ )
1302
+ response_data.read()
1303
+ return self.api_client.response_deserialize(
1304
+ response_data=response_data,
1305
+ response_types_map=_response_types_map,
1306
+ ).data
1307
+
1308
+
1309
+ @validate_call
1310
+ def list_function_data_types_for_functions_with_http_info(
1311
+ self,
1312
+ function_ids: Optional[List[Optional[StrictInt]]] = None,
1313
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1314
+ _request_timeout: Union[
1315
+ None,
1316
+ Annotated[StrictFloat, Field(gt=0)],
1317
+ Tuple[
1318
+ Annotated[StrictFloat, Field(gt=0)],
1319
+ Annotated[StrictFloat, Field(gt=0)]
1320
+ ]
1321
+ ] = None,
1322
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1323
+ _content_type: Optional[StrictStr] = None,
1324
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1325
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1326
+ ) -> ApiResponse[BaseResponseFunctionDataTypesList]:
1327
+ """List Function Data Types
1328
+
1329
+ Returns data types for multiple function IDs
1330
+
1331
+ :param function_ids:
1332
+ :type function_ids: List[Optional[int]]
1333
+ :param authorization: API Key bearer token
1334
+ :type authorization: str
1335
+ :param _request_timeout: timeout setting for this request. If one
1336
+ number provided, it will be total request
1337
+ timeout. It can also be a pair (tuple) of
1338
+ (connection, read) timeouts.
1339
+ :type _request_timeout: int, tuple(int, int), optional
1340
+ :param _request_auth: set to override the auth_settings for an a single
1341
+ request; this effectively ignores the
1342
+ authentication in the spec for a single request.
1343
+ :type _request_auth: dict, optional
1344
+ :param _content_type: force content-type for the request.
1345
+ :type _content_type: str, Optional
1346
+ :param _headers: set to override the headers for a single
1347
+ request; this effectively ignores the headers
1348
+ in the spec for a single request.
1349
+ :type _headers: dict, optional
1350
+ :param _host_index: set to override the host_index for a single
1351
+ request; this effectively ignores the host_index
1352
+ in the spec for a single request.
1353
+ :type _host_index: int, optional
1354
+ :return: Returns the result object.
1355
+ """ # noqa: E501
1356
+
1357
+ _param = self._list_function_data_types_for_functions_serialize(
1358
+ function_ids=function_ids,
1359
+ authorization=authorization,
1360
+ _request_auth=_request_auth,
1361
+ _content_type=_content_type,
1362
+ _headers=_headers,
1363
+ _host_index=_host_index
1364
+ )
1365
+
1366
+ _response_types_map: Dict[str, Optional[str]] = {
1367
+ '200': "BaseResponseFunctionDataTypesList",
1368
+ '422': "BaseResponse",
1369
+ }
1370
+ response_data = self.api_client.call_api(
1371
+ *_param,
1372
+ _request_timeout=_request_timeout
1373
+ )
1374
+ response_data.read()
1375
+ return self.api_client.response_deserialize(
1376
+ response_data=response_data,
1377
+ response_types_map=_response_types_map,
1378
+ )
1379
+
1380
+
1381
+ @validate_call
1382
+ def list_function_data_types_for_functions_without_preload_content(
1383
+ self,
1384
+ function_ids: Optional[List[Optional[StrictInt]]] = None,
1385
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1386
+ _request_timeout: Union[
1387
+ None,
1388
+ Annotated[StrictFloat, Field(gt=0)],
1389
+ Tuple[
1390
+ Annotated[StrictFloat, Field(gt=0)],
1391
+ Annotated[StrictFloat, Field(gt=0)]
1392
+ ]
1393
+ ] = None,
1394
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1395
+ _content_type: Optional[StrictStr] = None,
1396
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1397
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1398
+ ) -> RESTResponseType:
1399
+ """List Function Data Types
1400
+
1401
+ Returns data types for multiple function IDs
1402
+
1403
+ :param function_ids:
1404
+ :type function_ids: List[Optional[int]]
1405
+ :param authorization: API Key bearer token
1406
+ :type authorization: str
1407
+ :param _request_timeout: timeout setting for this request. If one
1408
+ number provided, it will be total request
1409
+ timeout. It can also be a pair (tuple) of
1410
+ (connection, read) timeouts.
1411
+ :type _request_timeout: int, tuple(int, int), optional
1412
+ :param _request_auth: set to override the auth_settings for an a single
1413
+ request; this effectively ignores the
1414
+ authentication in the spec for a single request.
1415
+ :type _request_auth: dict, optional
1416
+ :param _content_type: force content-type for the request.
1417
+ :type _content_type: str, Optional
1418
+ :param _headers: set to override the headers for a single
1419
+ request; this effectively ignores the headers
1420
+ in the spec for a single request.
1421
+ :type _headers: dict, optional
1422
+ :param _host_index: set to override the host_index for a single
1423
+ request; this effectively ignores the host_index
1424
+ in the spec for a single request.
1425
+ :type _host_index: int, optional
1426
+ :return: Returns the result object.
1427
+ """ # noqa: E501
1428
+
1429
+ _param = self._list_function_data_types_for_functions_serialize(
1430
+ function_ids=function_ids,
1431
+ authorization=authorization,
1432
+ _request_auth=_request_auth,
1433
+ _content_type=_content_type,
1434
+ _headers=_headers,
1435
+ _host_index=_host_index
1436
+ )
1437
+
1438
+ _response_types_map: Dict[str, Optional[str]] = {
1439
+ '200': "BaseResponseFunctionDataTypesList",
1440
+ '422': "BaseResponse",
1441
+ }
1442
+ response_data = self.api_client.call_api(
1443
+ *_param,
1444
+ _request_timeout=_request_timeout
1445
+ )
1446
+ return response_data.response
1447
+
1448
+
1449
+ def _list_function_data_types_for_functions_serialize(
1450
+ self,
1451
+ function_ids,
1452
+ authorization,
1453
+ _request_auth,
1454
+ _content_type,
1455
+ _headers,
1456
+ _host_index,
1457
+ ) -> RequestSerialized:
1458
+
1459
+ _host = None
1460
+
1461
+ _collection_formats: Dict[str, str] = {
1462
+ 'function_ids': 'multi',
1463
+ }
1464
+
1465
+ _path_params: Dict[str, str] = {}
1466
+ _query_params: List[Tuple[str, str]] = []
1467
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1468
+ _form_params: List[Tuple[str, str]] = []
1469
+ _files: Dict[
1470
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1471
+ ] = {}
1472
+ _body_params: Optional[bytes] = None
1473
+
1474
+ # process the path parameters
1475
+ # process the query parameters
1476
+ if function_ids is not None:
1477
+
1478
+ _query_params.append(('function_ids', function_ids))
1479
+
1480
+ # process the header parameters
1481
+ if authorization is not None:
1482
+ _header_params['authorization'] = authorization
1483
+ # process the form parameters
1484
+ # process the body parameter
1485
+
1486
+
1487
+ # set the HTTP header `Accept`
1488
+ if 'Accept' not in _header_params:
1489
+ _header_params['Accept'] = self.api_client.select_header_accept(
1490
+ [
1491
+ 'application/json'
1492
+ ]
1493
+ )
1494
+
1495
+
1496
+ # authentication setting
1497
+ _auth_settings: List[str] = [
1498
+ 'APIKey'
1499
+ ]
1500
+
1501
+ return self.api_client.param_serialize(
1502
+ method='GET',
1503
+ resource_path='/v2/functions/data_types',
1504
+ path_params=_path_params,
1505
+ query_params=_query_params,
1506
+ header_params=_header_params,
1507
+ body=_body_params,
1508
+ post_params=_form_params,
1509
+ files=_files,
1510
+ auth_settings=_auth_settings,
1511
+ collection_formats=_collection_formats,
1512
+ _host=_host,
1513
+ _request_auth=_request_auth
1514
+ )
1515
+
1516
+
1517
+
1518
+
1519
+ @validate_call
1520
+ def update_function_data_types(
1521
+ self,
1522
+ analysis_id: StrictInt,
1523
+ function_id: StrictInt,
1524
+ update_function_data_types: UpdateFunctionDataTypes,
1525
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1526
+ _request_timeout: Union[
1527
+ None,
1528
+ Annotated[StrictFloat, Field(gt=0)],
1529
+ Tuple[
1530
+ Annotated[StrictFloat, Field(gt=0)],
1531
+ Annotated[StrictFloat, Field(gt=0)]
1532
+ ]
1533
+ ] = None,
1534
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1535
+ _content_type: Optional[StrictStr] = None,
1536
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1537
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1538
+ ) -> BaseResponseFunctionDataTypes:
1539
+ """Update Function Data Types
1540
+
1541
+ Updates the function data types for a given function
1542
+
1543
+ :param analysis_id: (required)
1544
+ :type analysis_id: int
1545
+ :param function_id: (required)
1546
+ :type function_id: int
1547
+ :param update_function_data_types: (required)
1548
+ :type update_function_data_types: UpdateFunctionDataTypes
1549
+ :param authorization: API Key bearer token
1550
+ :type authorization: str
1551
+ :param _request_timeout: timeout setting for this request. If one
1552
+ number provided, it will be total request
1553
+ timeout. It can also be a pair (tuple) of
1554
+ (connection, read) timeouts.
1555
+ :type _request_timeout: int, tuple(int, int), optional
1556
+ :param _request_auth: set to override the auth_settings for an a single
1557
+ request; this effectively ignores the
1558
+ authentication in the spec for a single request.
1559
+ :type _request_auth: dict, optional
1560
+ :param _content_type: force content-type for the request.
1561
+ :type _content_type: str, Optional
1562
+ :param _headers: set to override the headers for a single
1563
+ request; this effectively ignores the headers
1564
+ in the spec for a single request.
1565
+ :type _headers: dict, optional
1566
+ :param _host_index: set to override the host_index for a single
1567
+ request; this effectively ignores the host_index
1568
+ in the spec for a single request.
1569
+ :type _host_index: int, optional
1570
+ :return: Returns the result object.
1571
+ """ # noqa: E501
1572
+
1573
+ _param = self._update_function_data_types_serialize(
1574
+ analysis_id=analysis_id,
1575
+ function_id=function_id,
1576
+ update_function_data_types=update_function_data_types,
1577
+ authorization=authorization,
1578
+ _request_auth=_request_auth,
1579
+ _content_type=_content_type,
1580
+ _headers=_headers,
1581
+ _host_index=_host_index
1582
+ )
1583
+
1584
+ _response_types_map: Dict[str, Optional[str]] = {
1585
+ '200': "BaseResponseFunctionDataTypes",
1586
+ '422': "BaseResponse",
1587
+ }
1588
+ response_data = self.api_client.call_api(
1589
+ *_param,
1590
+ _request_timeout=_request_timeout
1591
+ )
1592
+ response_data.read()
1593
+ return self.api_client.response_deserialize(
1594
+ response_data=response_data,
1595
+ response_types_map=_response_types_map,
1596
+ ).data
1597
+
1598
+
1599
+ @validate_call
1600
+ def update_function_data_types_with_http_info(
1601
+ self,
1602
+ analysis_id: StrictInt,
1603
+ function_id: StrictInt,
1604
+ update_function_data_types: UpdateFunctionDataTypes,
1605
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1606
+ _request_timeout: Union[
1607
+ None,
1608
+ Annotated[StrictFloat, Field(gt=0)],
1609
+ Tuple[
1610
+ Annotated[StrictFloat, Field(gt=0)],
1611
+ Annotated[StrictFloat, Field(gt=0)]
1612
+ ]
1613
+ ] = None,
1614
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1615
+ _content_type: Optional[StrictStr] = None,
1616
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1617
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1618
+ ) -> ApiResponse[BaseResponseFunctionDataTypes]:
1619
+ """Update Function Data Types
1620
+
1621
+ Updates the function data types for a given function
1622
+
1623
+ :param analysis_id: (required)
1624
+ :type analysis_id: int
1625
+ :param function_id: (required)
1626
+ :type function_id: int
1627
+ :param update_function_data_types: (required)
1628
+ :type update_function_data_types: UpdateFunctionDataTypes
1629
+ :param authorization: API Key bearer token
1630
+ :type authorization: str
1631
+ :param _request_timeout: timeout setting for this request. If one
1632
+ number provided, it will be total request
1633
+ timeout. It can also be a pair (tuple) of
1634
+ (connection, read) timeouts.
1635
+ :type _request_timeout: int, tuple(int, int), optional
1636
+ :param _request_auth: set to override the auth_settings for an a single
1637
+ request; this effectively ignores the
1638
+ authentication in the spec for a single request.
1639
+ :type _request_auth: dict, optional
1640
+ :param _content_type: force content-type for the request.
1641
+ :type _content_type: str, Optional
1642
+ :param _headers: set to override the headers for a single
1643
+ request; this effectively ignores the headers
1644
+ in the spec for a single request.
1645
+ :type _headers: dict, optional
1646
+ :param _host_index: set to override the host_index for a single
1647
+ request; this effectively ignores the host_index
1648
+ in the spec for a single request.
1649
+ :type _host_index: int, optional
1650
+ :return: Returns the result object.
1651
+ """ # noqa: E501
1652
+
1653
+ _param = self._update_function_data_types_serialize(
1654
+ analysis_id=analysis_id,
1655
+ function_id=function_id,
1656
+ update_function_data_types=update_function_data_types,
1657
+ authorization=authorization,
1658
+ _request_auth=_request_auth,
1659
+ _content_type=_content_type,
1660
+ _headers=_headers,
1661
+ _host_index=_host_index
1662
+ )
1663
+
1664
+ _response_types_map: Dict[str, Optional[str]] = {
1665
+ '200': "BaseResponseFunctionDataTypes",
1666
+ '422': "BaseResponse",
1667
+ }
1668
+ response_data = self.api_client.call_api(
1669
+ *_param,
1670
+ _request_timeout=_request_timeout
1671
+ )
1672
+ response_data.read()
1673
+ return self.api_client.response_deserialize(
1674
+ response_data=response_data,
1675
+ response_types_map=_response_types_map,
1676
+ )
1677
+
1678
+
1679
+ @validate_call
1680
+ def update_function_data_types_without_preload_content(
1681
+ self,
1682
+ analysis_id: StrictInt,
1683
+ function_id: StrictInt,
1684
+ update_function_data_types: UpdateFunctionDataTypes,
1685
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1686
+ _request_timeout: Union[
1687
+ None,
1688
+ Annotated[StrictFloat, Field(gt=0)],
1689
+ Tuple[
1690
+ Annotated[StrictFloat, Field(gt=0)],
1691
+ Annotated[StrictFloat, Field(gt=0)]
1692
+ ]
1693
+ ] = None,
1694
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1695
+ _content_type: Optional[StrictStr] = None,
1696
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1697
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1698
+ ) -> RESTResponseType:
1699
+ """Update Function Data Types
1700
+
1701
+ Updates the function data types for a given function
1702
+
1703
+ :param analysis_id: (required)
1704
+ :type analysis_id: int
1705
+ :param function_id: (required)
1706
+ :type function_id: int
1707
+ :param update_function_data_types: (required)
1708
+ :type update_function_data_types: UpdateFunctionDataTypes
1709
+ :param authorization: API Key bearer token
1710
+ :type authorization: str
1711
+ :param _request_timeout: timeout setting for this request. If one
1712
+ number provided, it will be total request
1713
+ timeout. It can also be a pair (tuple) of
1714
+ (connection, read) timeouts.
1715
+ :type _request_timeout: int, tuple(int, int), optional
1716
+ :param _request_auth: set to override the auth_settings for an a single
1717
+ request; this effectively ignores the
1718
+ authentication in the spec for a single request.
1719
+ :type _request_auth: dict, optional
1720
+ :param _content_type: force content-type for the request.
1721
+ :type _content_type: str, Optional
1722
+ :param _headers: set to override the headers for a single
1723
+ request; this effectively ignores the headers
1724
+ in the spec for a single request.
1725
+ :type _headers: dict, optional
1726
+ :param _host_index: set to override the host_index for a single
1727
+ request; this effectively ignores the host_index
1728
+ in the spec for a single request.
1729
+ :type _host_index: int, optional
1730
+ :return: Returns the result object.
1731
+ """ # noqa: E501
1732
+
1733
+ _param = self._update_function_data_types_serialize(
1734
+ analysis_id=analysis_id,
1735
+ function_id=function_id,
1736
+ update_function_data_types=update_function_data_types,
1737
+ authorization=authorization,
1738
+ _request_auth=_request_auth,
1739
+ _content_type=_content_type,
1740
+ _headers=_headers,
1741
+ _host_index=_host_index
1742
+ )
1743
+
1744
+ _response_types_map: Dict[str, Optional[str]] = {
1745
+ '200': "BaseResponseFunctionDataTypes",
1746
+ '422': "BaseResponse",
1747
+ }
1748
+ response_data = self.api_client.call_api(
1749
+ *_param,
1750
+ _request_timeout=_request_timeout
1751
+ )
1752
+ return response_data.response
1753
+
1754
+
1755
+ def _update_function_data_types_serialize(
1756
+ self,
1757
+ analysis_id,
1758
+ function_id,
1759
+ update_function_data_types,
1760
+ authorization,
1761
+ _request_auth,
1762
+ _content_type,
1763
+ _headers,
1764
+ _host_index,
1765
+ ) -> RequestSerialized:
1766
+
1767
+ _host = None
1768
+
1769
+ _collection_formats: Dict[str, str] = {
1770
+ }
1771
+
1772
+ _path_params: Dict[str, str] = {}
1773
+ _query_params: List[Tuple[str, str]] = []
1774
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1775
+ _form_params: List[Tuple[str, str]] = []
1776
+ _files: Dict[
1777
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1778
+ ] = {}
1779
+ _body_params: Optional[bytes] = None
1780
+
1781
+ # process the path parameters
1782
+ if analysis_id is not None:
1783
+ _path_params['analysis_id'] = analysis_id
1784
+ if function_id is not None:
1785
+ _path_params['function_id'] = function_id
1786
+ # process the query parameters
1787
+ # process the header parameters
1788
+ if authorization is not None:
1789
+ _header_params['authorization'] = authorization
1790
+ # process the form parameters
1791
+ # process the body parameter
1792
+ if update_function_data_types is not None:
1793
+ _body_params = update_function_data_types
1794
+
1795
+
1796
+ # set the HTTP header `Accept`
1797
+ if 'Accept' not in _header_params:
1798
+ _header_params['Accept'] = self.api_client.select_header_accept(
1799
+ [
1800
+ 'application/json'
1801
+ ]
1802
+ )
1803
+
1804
+ # set the HTTP header `Content-Type`
1805
+ if _content_type:
1806
+ _header_params['Content-Type'] = _content_type
1807
+ else:
1808
+ _default_content_type = (
1809
+ self.api_client.select_header_content_type(
1810
+ [
1811
+ 'application/json'
1812
+ ]
1813
+ )
1814
+ )
1815
+ if _default_content_type is not None:
1816
+ _header_params['Content-Type'] = _default_content_type
1817
+
1818
+ # authentication setting
1819
+ _auth_settings: List[str] = [
1820
+ 'APIKey'
1821
+ ]
1822
+
1823
+ return self.api_client.param_serialize(
1824
+ method='PUT',
1825
+ resource_path='/v2/analyses/{analysis_id}/functions/{function_id}/data_types',
1826
+ path_params=_path_params,
1827
+ query_params=_query_params,
1828
+ header_params=_header_params,
1829
+ body=_body_params,
1830
+ post_params=_form_params,
1831
+ files=_files,
1832
+ auth_settings=_auth_settings,
1833
+ collection_formats=_collection_formats,
1834
+ _host=_host,
1835
+ _request_auth=_request_auth
1836
+ )
1837
+
1838
+