revengai 2.74.0__py3-none-any.whl

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