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.
- revengai/__init__.py +1035 -0
- revengai/api/__init__.py +58 -0
- revengai/api/analyses_comments_api.py +1260 -0
- revengai/api/analyses_core_api.py +4305 -0
- revengai/api/analyses_dynamic_execution_api.py +1991 -0
- revengai/api/analyses_results_metadata_api.py +2324 -0
- revengai/api/analyses_security_checks_api.py +909 -0
- revengai/api/authentication_users_api.py +1386 -0
- revengai/api/binaries_api.py +1702 -0
- revengai/api/collections_api.py +2222 -0
- revengai/api/confidence_api.py +1214 -0
- revengai/api/external_sources_api.py +1709 -0
- revengai/api/firmware_api.py +624 -0
- revengai/api/functions_ai_decompilation_api.py +2728 -0
- revengai/api/functions_block_comments_api.py +897 -0
- revengai/api/functions_core_api.py +2216 -0
- revengai/api/functions_data_types_api.py +1838 -0
- revengai/api/functions_decompilation_api.py +2097 -0
- revengai/api/functions_renaming_history_api.py +1214 -0
- revengai/api/functions_threat_score_api.py +610 -0
- revengai/api/models_api.py +303 -0
- revengai/api/search_api.py +1483 -0
- revengai/api/v1_api.py +6373 -0
- revengai/api_client.py +804 -0
- revengai/api_response.py +21 -0
- revengai/configuration.py +602 -0
- revengai/exceptions.py +216 -0
- revengai/models/__init__.py +631 -0
- revengai/models/addr.py +144 -0
- revengai/models/ai_decompilation_rating.py +37 -0
- revengai/models/analyse_created.py +99 -0
- revengai/models/analysis_access_info.py +89 -0
- revengai/models/analysis_config.py +107 -0
- revengai/models/analysis_create_request.py +132 -0
- revengai/models/analysis_create_response.py +89 -0
- revengai/models/analysis_detail_response.py +122 -0
- revengai/models/analysis_form.py +138 -0
- revengai/models/analysis_functions.py +95 -0
- revengai/models/analysis_record.py +123 -0
- revengai/models/analysis_scope.py +37 -0
- revengai/models/analysis_status.py +94 -0
- revengai/models/analysis_strings_response.py +97 -0
- revengai/models/analysis_threat_score_data.py +99 -0
- revengai/models/analysis_update_request.py +109 -0
- revengai/models/analysis_update_tags_request.py +87 -0
- revengai/models/analysis_update_tags_response.py +95 -0
- revengai/models/ann_function.py +121 -0
- revengai/models/ann_input.py +108 -0
- revengai/models/app_api_rest_v1_analyse_schema_model_name.py +44 -0
- revengai/models/app_api_rest_v1_analyse_schema_status.py +40 -0
- revengai/models/app_api_rest_v1_analyse_schema_symbols.py +97 -0
- revengai/models/app_api_rest_v1_analysis_info_responses_logs.py +99 -0
- revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py +88 -0
- revengai/models/app_api_rest_v1_ann_schema_ann_function.py +135 -0
- revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py +39 -0
- revengai/models/app_api_rest_v2_analyses_enums_model_name.py +43 -0
- revengai/models/app_api_rest_v2_analyses_enums_order_by.py +38 -0
- revengai/models/app_api_rest_v2_analyses_enums_status.py +41 -0
- revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py +104 -0
- revengai/models/app_api_rest_v2_analyses_responses_logs.py +87 -0
- revengai/models/app_api_rest_v2_analyses_responses_tag_item.py +96 -0
- revengai/models/app_api_rest_v2_analyses_schemas_symbols.py +97 -0
- revengai/models/app_api_rest_v2_collections_enums_order_by.py +41 -0
- revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py +94 -0
- revengai/models/app_api_rest_v2_functions_responses_function.py +89 -0
- revengai/models/app_api_rest_v2_functions_types_function.py +109 -0
- revengai/models/app_api_rest_v2_info_responses_analysis_tags.py +104 -0
- revengai/models/app_api_rest_v2_similarity_schema_ann_function.py +121 -0
- revengai/models/app_core_responses_base_base_response_analysis_tags1.py +126 -0
- revengai/models/app_core_responses_base_base_response_analysis_tags2.py +126 -0
- revengai/models/app_services_binary_ann_schema_tag_item.py +99 -0
- revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py +87 -0
- revengai/models/argument.py +100 -0
- revengai/models/base_response.py +125 -0
- revengai/models/base_response_analysis_create_response.py +126 -0
- revengai/models/base_response_analysis_detail_response.py +126 -0
- revengai/models/base_response_analysis_functions.py +126 -0
- revengai/models/base_response_analysis_strings_response.py +126 -0
- revengai/models/base_response_analysis_threat_score_data.py +126 -0
- revengai/models/base_response_analysis_update_tags_response.py +126 -0
- revengai/models/base_response_basic.py +126 -0
- revengai/models/base_response_binary_additional_response.py +126 -0
- revengai/models/base_response_binary_ann_list_response.py +126 -0
- revengai/models/base_response_binary_details_response.py +126 -0
- revengai/models/base_response_binary_externals_response.py +126 -0
- revengai/models/base_response_binary_search_response.py +126 -0
- revengai/models/base_response_block_comments_generation_for_function_response.py +126 -0
- revengai/models/base_response_block_comments_overview_generation_response.py +117 -0
- revengai/models/base_response_bool.py +122 -0
- revengai/models/base_response_box_plot_confidence.py +126 -0
- revengai/models/base_response_callees_caller_functions_response.py +126 -0
- revengai/models/base_response_capabilities.py +126 -0
- revengai/models/base_response_check_security_checks_task_response.py +126 -0
- revengai/models/base_response_child_binaries_response.py +126 -0
- revengai/models/base_response_collection_binaries_update_response.py +126 -0
- revengai/models/base_response_collection_response.py +126 -0
- revengai/models/base_response_collection_search_response.py +126 -0
- revengai/models/base_response_collection_tags_update_response.py +126 -0
- revengai/models/base_response_comment_response.py +126 -0
- revengai/models/base_response_communities.py +126 -0
- revengai/models/base_response_created.py +126 -0
- revengai/models/base_response_decompilation_response.py +126 -0
- revengai/models/base_response_dict.py +122 -0
- revengai/models/base_response_dynamic_execution_status.py +126 -0
- revengai/models/base_response_external_response.py +126 -0
- revengai/models/base_response_function_analysis_threat_score_data.py +126 -0
- revengai/models/base_response_function_blocks_response.py +126 -0
- revengai/models/base_response_function_capability_response.py +126 -0
- revengai/models/base_response_function_data_types.py +126 -0
- revengai/models/base_response_function_data_types_list.py +126 -0
- revengai/models/base_response_function_search_response.py +126 -0
- revengai/models/base_response_function_strings_response.py +126 -0
- revengai/models/base_response_function_task_response.py +126 -0
- revengai/models/base_response_function_threat_score.py +126 -0
- revengai/models/base_response_functions_detail_response.py +126 -0
- revengai/models/base_response_generate_function_data_types.py +126 -0
- revengai/models/base_response_generation_status_list.py +126 -0
- revengai/models/base_response_get_ai_decompilation_rating_response.py +126 -0
- revengai/models/base_response_get_ai_decompilation_task.py +126 -0
- revengai/models/base_response_get_public_user_response.py +126 -0
- revengai/models/base_response_get_user_response.py +126 -0
- revengai/models/base_response_list_collection_results.py +126 -0
- revengai/models/base_response_list_comment_response.py +130 -0
- revengai/models/base_response_list_die_match.py +130 -0
- revengai/models/base_response_list_function_box_plot_confidence.py +130 -0
- revengai/models/base_response_list_function_name_history.py +130 -0
- revengai/models/base_response_list_sbom.py +130 -0
- revengai/models/base_response_list_similar_functions_response.py +130 -0
- revengai/models/base_response_list_tag_origin_box_plot_confidence.py +130 -0
- revengai/models/base_response_list_user_activity_response.py +130 -0
- revengai/models/base_response_login_response.py +126 -0
- revengai/models/base_response_logs.py +126 -0
- revengai/models/base_response_models_response.py +126 -0
- revengai/models/base_response_nearest_neighbor_analysis.py +136 -0
- revengai/models/base_response_network_overview_response.py +126 -0
- revengai/models/base_response_params.py +126 -0
- revengai/models/base_response_process_dumps.py +126 -0
- revengai/models/base_response_process_registry.py +126 -0
- revengai/models/base_response_process_tree.py +126 -0
- revengai/models/base_response_queued_security_checks_task_response.py +126 -0
- revengai/models/base_response_recent.py +126 -0
- revengai/models/base_response_security_checks_response.py +126 -0
- revengai/models/base_response_status.py +126 -0
- revengai/models/base_response_str.py +122 -0
- revengai/models/base_response_symbols_info.py +126 -0
- revengai/models/base_response_tag_search_response.py +126 -0
- revengai/models/base_response_task_response.py +126 -0
- revengai/models/base_response_ttps.py +126 -0
- revengai/models/base_response_vulnerabilities.py +126 -0
- revengai/models/basic.py +108 -0
- revengai/models/batch_ann.py +106 -0
- revengai/models/batch_function_rename.py +95 -0
- revengai/models/batch_function_rename_record.py +90 -0
- revengai/models/binary_additional_details_data_response.py +113 -0
- revengai/models/binary_additional_response.py +106 -0
- revengai/models/binary_ann_form.py +94 -0
- revengai/models/binary_ann_list_response.py +95 -0
- revengai/models/binary_config.py +109 -0
- revengai/models/binary_details_response.py +126 -0
- revengai/models/binary_externals_response.py +96 -0
- revengai/models/binary_search_response.py +95 -0
- revengai/models/binary_search_result.py +109 -0
- revengai/models/binary_task_status.py +40 -0
- revengai/models/block.py +87 -0
- revengai/models/block_comments_generation_for_function_response.py +87 -0
- revengai/models/boundary.py +91 -0
- revengai/models/box_plot_confidence.py +99 -0
- revengai/models/callee_function_info.py +107 -0
- revengai/models/callees_caller_functions_response.py +107 -0
- revengai/models/caller_function_info.py +107 -0
- revengai/models/capabilities.py +95 -0
- revengai/models/capability.py +91 -0
- revengai/models/check_security_checks_task_response.py +88 -0
- revengai/models/child_binaries_response.py +105 -0
- revengai/models/code_signature_model.py +99 -0
- revengai/models/collection_binaries_update_request.py +87 -0
- revengai/models/collection_binaries_update_response.py +95 -0
- revengai/models/collection_binary_response.py +98 -0
- revengai/models/collection_count.py +99 -0
- revengai/models/collection_create_request.py +108 -0
- revengai/models/collection_list_item.py +113 -0
- revengai/models/collection_response.py +132 -0
- revengai/models/collection_response_binaries_inner.py +136 -0
- revengai/models/collection_scope.py +39 -0
- revengai/models/collection_search_response.py +95 -0
- revengai/models/collection_search_result.py +125 -0
- revengai/models/collection_tags_update_request.py +87 -0
- revengai/models/collection_tags_update_response.py +87 -0
- revengai/models/collection_update_request.py +107 -0
- revengai/models/collections_count_form.py +88 -0
- revengai/models/comment_base.py +87 -0
- revengai/models/comment_response.py +111 -0
- revengai/models/comment_update_request.py +87 -0
- revengai/models/communities.py +101 -0
- revengai/models/community_match_percentages.py +93 -0
- revengai/models/confidence_type.py +40 -0
- revengai/models/config_settings.py +101 -0
- revengai/models/context.py +142 -0
- revengai/models/create_ai_decompilation_request.py +87 -0
- revengai/models/created.py +91 -0
- revengai/models/decompilation_comment_context.py +99 -0
- revengai/models/decompilation_response.py +91 -0
- revengai/models/deleted_analysis.py +99 -0
- revengai/models/die_match.py +93 -0
- revengai/models/dynamic_execution_status_input.py +39 -0
- revengai/models/elf_dynamic_entry.py +89 -0
- revengai/models/elf_import_model.py +89 -0
- revengai/models/elf_model.py +180 -0
- revengai/models/elf_relocation.py +99 -0
- revengai/models/elf_section.py +105 -0
- revengai/models/elf_security.py +95 -0
- revengai/models/elf_segment.py +103 -0
- revengai/models/elf_symbol.py +99 -0
- revengai/models/entrypoint_model.py +89 -0
- revengai/models/enumeration.py +98 -0
- revengai/models/error_model.py +89 -0
- revengai/models/export_model.py +89 -0
- revengai/models/exported_binary_ann_result.py +111 -0
- revengai/models/external_response.py +92 -0
- revengai/models/file_format.py +38 -0
- revengai/models/file_hashes.py +141 -0
- revengai/models/file_metadata.py +97 -0
- revengai/models/file_options.py +41 -0
- revengai/models/filters.py +40 -0
- revengai/models/function_analysis_threat_score_data.py +99 -0
- revengai/models/function_batch_ann.py +106 -0
- revengai/models/function_block_destination_response.py +96 -0
- revengai/models/function_block_response.py +110 -0
- revengai/models/function_blocks_response.py +122 -0
- revengai/models/function_boundary.py +91 -0
- revengai/models/function_box_plot_confidence.py +93 -0
- revengai/models/function_capability_response.py +87 -0
- revengai/models/function_comment_create_request.py +93 -0
- revengai/models/function_data_types.py +107 -0
- revengai/models/function_data_types_list.py +99 -0
- revengai/models/function_data_types_list_item.py +109 -0
- revengai/models/function_data_types_params.py +87 -0
- revengai/models/function_data_types_status.py +91 -0
- revengai/models/function_dump.py +106 -0
- revengai/models/function_header.py +113 -0
- revengai/models/function_info_input.py +106 -0
- revengai/models/function_info_input_func_deps_inner.py +164 -0
- revengai/models/function_info_output.py +106 -0
- revengai/models/function_list.py +87 -0
- revengai/models/function_list_basic.py +99 -0
- revengai/models/function_local_variable_response.py +95 -0
- revengai/models/function_mapping_full.py +248 -0
- revengai/models/function_name_confidence_body.py +98 -0
- revengai/models/function_name_history.py +97 -0
- revengai/models/function_name_input.py +89 -0
- revengai/models/function_param_mapping.py +89 -0
- revengai/models/function_param_response.py +95 -0
- revengai/models/function_params.py +95 -0
- revengai/models/function_rename.py +94 -0
- revengai/models/function_rename_map.py +96 -0
- revengai/models/function_search_response.py +95 -0
- revengai/models/function_search_result.py +100 -0
- revengai/models/function_string.py +89 -0
- revengai/models/function_strings_response.py +97 -0
- revengai/models/function_task_response.py +95 -0
- revengai/models/function_task_status.py +40 -0
- revengai/models/function_threat_score.py +100 -0
- revengai/models/function_type_input.py +128 -0
- revengai/models/function_type_output.py +128 -0
- revengai/models/functions_detail_response.py +122 -0
- revengai/models/functions_list_rename.py +95 -0
- revengai/models/generate_function_data_types.py +95 -0
- revengai/models/generation_status_list.py +99 -0
- revengai/models/get_ai_decompilation_rating_response.py +88 -0
- revengai/models/get_ai_decompilation_task.py +153 -0
- revengai/models/get_public_user_response.py +89 -0
- revengai/models/get_user_response.py +100 -0
- revengai/models/global_variable.py +102 -0
- revengai/models/icon_model.py +92 -0
- revengai/models/import_model.py +89 -0
- revengai/models/inverse_function_map_item.py +100 -0
- revengai/models/inverse_string_map_item.py +94 -0
- revengai/models/inverse_value.py +87 -0
- revengai/models/isa.py +38 -0
- revengai/models/isa_options.py +39 -0
- revengai/models/list_collection_results.py +95 -0
- revengai/models/login_request.py +90 -0
- revengai/models/login_response.py +87 -0
- revengai/models/logs.py +87 -0
- revengai/models/meta_model.py +96 -0
- revengai/models/model_list.py +99 -0
- revengai/models/model_name.py +43 -0
- revengai/models/models_response.py +87 -0
- revengai/models/nearest_neighbor.py +106 -0
- revengai/models/network_overview_dns.py +99 -0
- revengai/models/network_overview_dns_answer.py +89 -0
- revengai/models/network_overview_metadata.py +100 -0
- revengai/models/network_overview_response.py +105 -0
- revengai/models/order.py +37 -0
- revengai/models/origin.py +43 -0
- revengai/models/pagination_model.py +91 -0
- revengai/models/params.py +104 -0
- revengai/models/pdb_debug_model.py +95 -0
- revengai/models/pe_model.py +216 -0
- revengai/models/platform.py +37 -0
- revengai/models/platform_options.py +40 -0
- revengai/models/process.py +104 -0
- revengai/models/process_dump.py +97 -0
- revengai/models/process_dump_metadata.py +91 -0
- revengai/models/process_dumps.py +93 -0
- revengai/models/process_dumps_data.py +97 -0
- revengai/models/process_registry.py +106 -0
- revengai/models/process_tree.py +97 -0
- revengai/models/queued_security_checks_task_response.py +87 -0
- revengai/models/quick_search.py +99 -0
- revengai/models/re_analysis_form.py +102 -0
- revengai/models/recent.py +95 -0
- revengai/models/recent_analysis.py +99 -0
- revengai/models/recent_analysis_form.py +92 -0
- revengai/models/registry.py +103 -0
- revengai/models/relative_binary_response.py +91 -0
- revengai/models/rename.py +99 -0
- revengai/models/sandbox_options.py +89 -0
- revengai/models/sbom.py +97 -0
- revengai/models/sbom_package.py +89 -0
- revengai/models/scope.py +39 -0
- revengai/models/scrape_third_party_config.py +87 -0
- revengai/models/search_binary_ids.py +138 -0
- revengai/models/search_form.py +97 -0
- revengai/models/search_function_ids.py +138 -0
- revengai/models/search_query.py +99 -0
- revengai/models/section_model.py +97 -0
- revengai/models/security_checks_response.py +99 -0
- revengai/models/security_checks_result.py +104 -0
- revengai/models/security_model.py +107 -0
- revengai/models/severity_type.py +41 -0
- revengai/models/similar_functions_response.py +101 -0
- revengai/models/single_code_certificate_model.py +97 -0
- revengai/models/single_code_signature_model.py +97 -0
- revengai/models/single_pdb_entry_model.py +91 -0
- revengai/models/single_section_model.py +99 -0
- revengai/models/stack_variable.py +102 -0
- revengai/models/status_input.py +41 -0
- revengai/models/status_output.py +89 -0
- revengai/models/string_functions.py +97 -0
- revengai/models/structure.py +118 -0
- revengai/models/structure_member.py +100 -0
- revengai/models/symbols.py +97 -0
- revengai/models/symbols_info.py +103 -0
- revengai/models/tag_confidence_body.py +96 -0
- revengai/models/tag_input.py +87 -0
- revengai/models/tag_origin_box_plot_confidence.py +97 -0
- revengai/models/tag_output.py +89 -0
- revengai/models/tag_response.py +89 -0
- revengai/models/tag_search_response.py +95 -0
- revengai/models/tag_search_result.py +89 -0
- revengai/models/tags.py +90 -0
- revengai/models/task_response.py +95 -0
- revengai/models/task_status.py +40 -0
- revengai/models/threat_score_function_body.py +88 -0
- revengai/models/timestamp_model.py +91 -0
- revengai/models/ttps.py +93 -0
- revengai/models/ttps_attack.py +89 -0
- revengai/models/ttps_data.py +97 -0
- revengai/models/ttps_element.py +109 -0
- revengai/models/ttps_occurance.py +89 -0
- revengai/models/type_definition.py +98 -0
- revengai/models/update_function_data_types.py +93 -0
- revengai/models/upload_success.py +106 -0
- revengai/models/upsert_ai_decomplation_rating_request.py +88 -0
- revengai/models/user_activity_response.py +98 -0
- revengai/models/user_boundaries.py +91 -0
- revengai/models/vulnerabilities.py +95 -0
- revengai/models/vulnerability.py +114 -0
- revengai/models/vulnerability_type.py +41 -0
- revengai/models/workspace.py +38 -0
- revengai/py.typed +0 -0
- revengai/rest.py +258 -0
- revengai/test/__init__.py +0 -0
- revengai/test/test_addr.py +50 -0
- revengai/test/test_ai_decompilation_rating.py +33 -0
- revengai/test/test_analyse_created.py +53 -0
- revengai/test/test_analyses_comments_api.py +59 -0
- revengai/test/test_analyses_core_api.py +136 -0
- revengai/test/test_analyses_dynamic_execution_api.py +80 -0
- revengai/test/test_analyses_results_metadata_api.py +143 -0
- revengai/test/test_analyses_security_checks_api.py +52 -0
- revengai/test/test_analysis_access_info.py +54 -0
- revengai/test/test_analysis_config.py +60 -0
- revengai/test/test_analysis_create_request.py +83 -0
- revengai/test/test_analysis_create_response.py +54 -0
- revengai/test/test_analysis_detail_response.py +83 -0
- revengai/test/test_analysis_form.py +81 -0
- revengai/test/test_analysis_functions.py +78 -0
- revengai/test/test_analysis_record.py +74 -0
- revengai/test/test_analysis_scope.py +33 -0
- revengai/test/test_analysis_status.py +53 -0
- revengai/test/test_analysis_strings_response.py +70 -0
- revengai/test/test_analysis_threat_score_data.py +64 -0
- revengai/test/test_analysis_update_request.py +52 -0
- revengai/test/test_analysis_update_tags_request.py +56 -0
- revengai/test/test_analysis_update_tags_response.py +60 -0
- revengai/test/test_ann_function.py +61 -0
- revengai/test/test_ann_input.py +56 -0
- revengai/test/test_app_api_rest_v1_analyse_schema_model_name.py +33 -0
- revengai/test/test_app_api_rest_v1_analyse_schema_status.py +33 -0
- revengai/test/test_app_api_rest_v1_analyse_schema_symbols.py +57 -0
- revengai/test/test_app_api_rest_v1_analysis_info_responses_logs.py +53 -0
- revengai/test/test_app_api_rest_v1_analysis_info_schema_function_rename.py +52 -0
- revengai/test/test_app_api_rest_v1_ann_schema_ann_function.py +74 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_model_name.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_order_by.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_status.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py +74 -0
- revengai/test/test_app_api_rest_v2_analyses_responses_logs.py +52 -0
- revengai/test/test_app_api_rest_v2_analyses_responses_tag_item.py +55 -0
- revengai/test/test_app_api_rest_v2_analyses_schemas_symbols.py +57 -0
- revengai/test/test_app_api_rest_v2_collections_enums_order_by.py +33 -0
- revengai/test/test_app_api_rest_v2_functions_rename_schema_function_rename.py +52 -0
- revengai/test/test_app_api_rest_v2_functions_responses_function.py +54 -0
- revengai/test/test_app_api_rest_v2_functions_types_function.py +72 -0
- revengai/test/test_app_api_rest_v2_info_responses_analysis_tags.py +70 -0
- revengai/test/test_app_api_rest_v2_similarity_schema_ann_function.py +61 -0
- revengai/test/test_app_core_responses_base_base_response_analysis_tags1.py +73 -0
- revengai/test/test_app_core_responses_base_base_response_analysis_tags2.py +75 -0
- revengai/test/test_app_services_binary_ann_schema_tag_item.py +52 -0
- revengai/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py +52 -0
- revengai/test/test_argument.py +59 -0
- revengai/test/test_authentication_users_api.py +66 -0
- revengai/test/test_base_response.py +63 -0
- revengai/test/test_base_response_analysis_create_response.py +65 -0
- revengai/test/test_base_response_analysis_detail_response.py +81 -0
- revengai/test/test_base_response_analysis_functions.py +77 -0
- revengai/test/test_base_response_analysis_strings_response.py +73 -0
- revengai/test/test_base_response_analysis_threat_score_data.py +70 -0
- revengai/test/test_base_response_analysis_update_tags_response.py +68 -0
- revengai/test/test_base_response_basic.py +74 -0
- revengai/test/test_base_response_binary_additional_response.py +259 -0
- revengai/test/test_base_response_binary_ann_list_response.py +83 -0
- revengai/test/test_base_response_binary_details_response.py +83 -0
- revengai/test/test_base_response_binary_externals_response.py +72 -0
- revengai/test/test_base_response_binary_search_response.py +77 -0
- revengai/test/test_base_response_block_comments_generation_for_function_response.py +64 -0
- revengai/test/test_base_response_block_comments_overview_generation_response.py +63 -0
- revengai/test/test_base_response_bool.py +63 -0
- revengai/test/test_base_response_box_plot_confidence.py +70 -0
- revengai/test/test_base_response_callees_caller_functions_response.py +82 -0
- revengai/test/test_base_response_capabilities.py +71 -0
- revengai/test/test_base_response_check_security_checks_task_response.py +64 -0
- revengai/test/test_base_response_child_binaries_response.py +73 -0
- revengai/test/test_base_response_collection_binaries_update_response.py +72 -0
- revengai/test/test_base_response_collection_response.py +78 -0
- revengai/test/test_base_response_collection_search_response.py +80 -0
- revengai/test/test_base_response_collection_tags_update_response.py +66 -0
- revengai/test/test_base_response_comment_response.py +71 -0
- revengai/test/test_base_response_communities.py +77 -0
- revengai/test/test_base_response_created.py +66 -0
- revengai/test/test_base_response_decompilation_response.py +66 -0
- revengai/test/test_base_response_dict.py +65 -0
- revengai/test/test_base_response_dynamic_execution_status.py +64 -0
- revengai/test/test_base_response_external_response.py +68 -0
- revengai/test/test_base_response_function_analysis_threat_score_data.py +70 -0
- revengai/test/test_base_response_function_blocks_response.py +96 -0
- revengai/test/test_base_response_function_capability_response.py +66 -0
- revengai/test/test_base_response_function_data_types.py +99 -0
- revengai/test/test_base_response_function_data_types_list.py +105 -0
- revengai/test/test_base_response_function_search_response.py +73 -0
- revengai/test/test_base_response_function_strings_response.py +69 -0
- revengai/test/test_base_response_function_task_response.py +65 -0
- revengai/test/test_base_response_function_threat_score.py +73 -0
- revengai/test/test_base_response_functions_detail_response.py +78 -0
- revengai/test/test_base_response_generate_function_data_types.py +74 -0
- revengai/test/test_base_response_generation_status_list.py +71 -0
- revengai/test/test_base_response_get_ai_decompilation_rating_response.py +64 -0
- revengai/test/test_base_response_get_ai_decompilation_task.py +118 -0
- revengai/test/test_base_response_get_public_user_response.py +65 -0
- revengai/test/test_base_response_get_user_response.py +70 -0
- revengai/test/test_base_response_list_collection_results.py +79 -0
- revengai/test/test_base_response_list_comment_response.py +73 -0
- revengai/test/test_base_response_list_die_match.py +69 -0
- revengai/test/test_base_response_list_function_box_plot_confidence.py +74 -0
- revengai/test/test_base_response_list_function_name_history.py +71 -0
- revengai/test/test_base_response_list_sbom.py +73 -0
- revengai/test/test_base_response_list_similar_functions_response.py +77 -0
- revengai/test/test_base_response_list_tag_origin_box_plot_confidence.py +76 -0
- revengai/test/test_base_response_list_user_activity_response.py +71 -0
- revengai/test/test_base_response_login_response.py +64 -0
- revengai/test/test_base_response_logs.py +64 -0
- revengai/test/test_base_response_models_response.py +66 -0
- revengai/test/test_base_response_nearest_neighbor_analysis.py +75 -0
- revengai/test/test_base_response_network_overview_response.py +80 -0
- revengai/test/test_base_response_params.py +70 -0
- revengai/test/test_base_response_process_dumps.py +76 -0
- revengai/test/test_base_response_process_registry.py +73 -0
- revengai/test/test_base_response_process_tree.py +78 -0
- revengai/test/test_base_response_queued_security_checks_task_response.py +64 -0
- revengai/test/test_base_response_recent.py +79 -0
- revengai/test/test_base_response_security_checks_response.py +76 -0
- revengai/test/test_base_response_status.py +65 -0
- revengai/test/test_base_response_str.py +63 -0
- revengai/test/test_base_response_symbols_info.py +68 -0
- revengai/test/test_base_response_tag_search_response.py +68 -0
- revengai/test/test_base_response_task_response.py +65 -0
- revengai/test/test_base_response_ttps.py +81 -0
- revengai/test/test_base_response_vulnerabilities.py +77 -0
- revengai/test/test_basic.py +72 -0
- revengai/test/test_batch_ann.py +55 -0
- revengai/test/test_batch_function_rename.py +60 -0
- revengai/test/test_batch_function_rename_record.py +54 -0
- revengai/test/test_binaries_api.py +73 -0
- revengai/test/test_binary_additional_details_data_response.py +256 -0
- revengai/test/test_binary_additional_response.py +441 -0
- revengai/test/test_binary_ann_form.py +58 -0
- revengai/test/test_binary_ann_list_response.py +90 -0
- revengai/test/test_binary_config.py +53 -0
- revengai/test/test_binary_details_response.py +90 -0
- revengai/test/test_binary_externals_response.py +68 -0
- revengai/test/test_binary_search_response.py +78 -0
- revengai/test/test_binary_search_result.py +72 -0
- revengai/test/test_binary_task_status.py +33 -0
- revengai/test/test_block.py +52 -0
- revengai/test/test_block_comments_generation_for_function_response.py +52 -0
- revengai/test/test_boundary.py +56 -0
- revengai/test/test_box_plot_confidence.py +64 -0
- revengai/test/test_callee_function_info.py +61 -0
- revengai/test/test_callees_caller_functions_response.py +87 -0
- revengai/test/test_caller_function_info.py +61 -0
- revengai/test/test_capabilities.py +66 -0
- revengai/test/test_capability.py +60 -0
- revengai/test/test_check_security_checks_task_response.py +52 -0
- revengai/test/test_child_binaries_response.py +66 -0
- revengai/test/test_code_signature_model.py +80 -0
- revengai/test/test_collection_binaries_update_request.py +56 -0
- revengai/test/test_collection_binaries_update_response.py +68 -0
- revengai/test/test_collection_binary_response.py +62 -0
- revengai/test/test_collection_count.py +53 -0
- revengai/test/test_collection_create_request.py +63 -0
- revengai/test/test_collection_list_item.py +72 -0
- revengai/test/test_collection_response.py +73 -0
- revengai/test/test_collection_response_binaries_inner.py +62 -0
- revengai/test/test_collection_scope.py +33 -0
- revengai/test/test_collection_search_response.py +84 -0
- revengai/test/test_collection_search_result.py +73 -0
- revengai/test/test_collection_tags_update_request.py +56 -0
- revengai/test/test_collection_tags_update_response.py +56 -0
- revengai/test/test_collection_update_request.py +53 -0
- revengai/test/test_collections_api.py +80 -0
- revengai/test/test_collections_count_form.py +52 -0
- revengai/test/test_comment_base.py +52 -0
- revengai/test/test_comment_response.py +65 -0
- revengai/test/test_comment_update_request.py +52 -0
- revengai/test/test_communities.py +78 -0
- revengai/test/test_community_match_percentages.py +58 -0
- revengai/test/test_confidence_api.py +59 -0
- revengai/test/test_confidence_type.py +33 -0
- revengai/test/test_config_settings.py +70 -0
- revengai/test/test_context.py +54 -0
- revengai/test/test_create_ai_decompilation_request.py +52 -0
- revengai/test/test_created.py +56 -0
- revengai/test/test_decompilation_comment_context.py +54 -0
- revengai/test/test_decompilation_response.py +56 -0
- revengai/test/test_deleted_analysis.py +52 -0
- revengai/test/test_die_match.py +58 -0
- revengai/test/test_dynamic_execution_status_input.py +33 -0
- revengai/test/test_elf_dynamic_entry.py +54 -0
- revengai/test/test_elf_import_model.py +58 -0
- revengai/test/test_elf_model.py +236 -0
- revengai/test/test_elf_relocation.py +64 -0
- revengai/test/test_elf_section.py +70 -0
- revengai/test/test_elf_security.py +60 -0
- revengai/test/test_elf_segment.py +68 -0
- revengai/test/test_elf_symbol.py +64 -0
- revengai/test/test_entrypoint_model.py +54 -0
- revengai/test/test_enumeration.py +60 -0
- revengai/test/test_error_model.py +54 -0
- revengai/test/test_export_model.py +62 -0
- revengai/test/test_exported_binary_ann_result.py +79 -0
- revengai/test/test_external_response.py +60 -0
- revengai/test/test_external_sources_api.py +73 -0
- revengai/test/test_file_format.py +33 -0
- revengai/test/test_file_hashes.py +66 -0
- revengai/test/test_file_metadata.py +74 -0
- revengai/test/test_file_options.py +33 -0
- revengai/test/test_filters.py +33 -0
- revengai/test/test_firmware_api.py +45 -0
- revengai/test/test_function_analysis_threat_score_data.py +64 -0
- revengai/test/test_function_batch_ann.py +55 -0
- revengai/test/test_function_block_destination_response.py +56 -0
- revengai/test/test_function_block_response.py +75 -0
- revengai/test/test_function_blocks_response.py +116 -0
- revengai/test/test_function_boundary.py +56 -0
- revengai/test/test_function_box_plot_confidence.py +68 -0
- revengai/test/test_function_capability_response.py +56 -0
- revengai/test/test_function_comment_create_request.py +55 -0
- revengai/test/test_function_data_types.py +88 -0
- revengai/test/test_function_data_types_list.py +132 -0
- revengai/test/test_function_data_types_list_item.py +90 -0
- revengai/test/test_function_data_types_params.py +56 -0
- revengai/test/test_function_data_types_status.py +56 -0
- revengai/test/test_function_dump.py +55 -0
- revengai/test/test_function_header.py +73 -0
- revengai/test/test_function_info_input.py +85 -0
- revengai/test/test_function_info_input_func_deps_inner.py +66 -0
- revengai/test/test_function_info_output.py +85 -0
- revengai/test/test_function_list.py +56 -0
- revengai/test/test_function_list_basic.py +53 -0
- revengai/test/test_function_local_variable_response.py +60 -0
- revengai/test/test_function_mapping_full.py +148 -0
- revengai/test/test_function_name_confidence_body.py +56 -0
- revengai/test/test_function_name_history.py +62 -0
- revengai/test/test_function_name_input.py +54 -0
- revengai/test/test_function_param_mapping.py +54 -0
- revengai/test/test_function_param_response.py +60 -0
- revengai/test/test_function_params.py +60 -0
- revengai/test/test_function_rename.py +52 -0
- revengai/test/test_function_rename_map.py +55 -0
- revengai/test/test_function_search_response.py +70 -0
- revengai/test/test_function_search_result.py +64 -0
- revengai/test/test_function_string.py +54 -0
- revengai/test/test_function_strings_response.py +62 -0
- revengai/test/test_function_task_response.py +52 -0
- revengai/test/test_function_task_status.py +33 -0
- revengai/test/test_function_threat_score.py +70 -0
- revengai/test/test_function_type_input.py +95 -0
- revengai/test/test_function_type_output.py +95 -0
- revengai/test/test_functions_ai_decompilation_api.py +108 -0
- revengai/test/test_functions_block_comments_api.py +73 -0
- revengai/test/test_functions_core_api.py +87 -0
- revengai/test/test_functions_data_types_api.py +101 -0
- revengai/test/test_functions_decompilation_api.py +80 -0
- revengai/test/test_functions_detail_response.py +74 -0
- revengai/test/test_functions_list_rename.py +62 -0
- revengai/test/test_functions_renaming_history_api.py +59 -0
- revengai/test/test_functions_threat_score_api.py +59 -0
- revengai/test/test_generate_function_data_types.py +72 -0
- revengai/test/test_generation_status_list.py +64 -0
- revengai/test/test_get_ai_decompilation_rating_response.py +52 -0
- revengai/test/test_get_ai_decompilation_task.py +157 -0
- revengai/test/test_get_public_user_response.py +54 -0
- revengai/test/test_get_user_response.py +64 -0
- revengai/test/test_global_variable.py +60 -0
- revengai/test/test_icon_model.py +52 -0
- revengai/test/test_import_model.py +66 -0
- revengai/test/test_inverse_function_map_item.py +55 -0
- revengai/test/test_inverse_string_map_item.py +54 -0
- revengai/test/test_inverse_value.py +52 -0
- revengai/test/test_isa.py +33 -0
- revengai/test/test_isa_options.py +33 -0
- revengai/test/test_list_collection_results.py +82 -0
- revengai/test/test_login_request.py +54 -0
- revengai/test/test_login_response.py +52 -0
- revengai/test/test_logs.py +52 -0
- revengai/test/test_meta_model.py +54 -0
- revengai/test/test_model_list.py +53 -0
- revengai/test/test_model_name.py +33 -0
- revengai/test/test_models_api.py +38 -0
- revengai/test/test_models_response.py +56 -0
- revengai/test/test_nearest_neighbor.py +66 -0
- revengai/test/test_network_overview_dns.py +64 -0
- revengai/test/test_network_overview_dns_answer.py +54 -0
- revengai/test/test_network_overview_metadata.py +58 -0
- revengai/test/test_network_overview_response.py +84 -0
- revengai/test/test_order.py +33 -0
- revengai/test/test_origin.py +33 -0
- revengai/test/test_pagination_model.py +56 -0
- revengai/test/test_params.py +64 -0
- revengai/test/test_pdb_debug_model.py +62 -0
- revengai/test/test_pe_model.py +220 -0
- revengai/test/test_platform.py +33 -0
- revengai/test/test_platform_options.py +33 -0
- revengai/test/test_process.py +72 -0
- revengai/test/test_process_dump.py +64 -0
- revengai/test/test_process_dump_metadata.py +56 -0
- revengai/test/test_process_dumps.py +76 -0
- revengai/test/test_process_dumps_data.py +72 -0
- revengai/test/test_process_registry.py +70 -0
- revengai/test/test_process_tree.py +80 -0
- revengai/test/test_queued_security_checks_task_response.py +52 -0
- revengai/test/test_quick_search.py +53 -0
- revengai/test/test_re_analysis_form.py +58 -0
- revengai/test/test_recent.py +82 -0
- revengai/test/test_recent_analysis.py +53 -0
- revengai/test/test_recent_analysis_form.py +53 -0
- revengai/test/test_registry.py +58 -0
- revengai/test/test_relative_binary_response.py +56 -0
- revengai/test/test_rename.py +53 -0
- revengai/test/test_sandbox_options.py +52 -0
- revengai/test/test_sbom.py +66 -0
- revengai/test/test_sbom_package.py +54 -0
- revengai/test/test_scope.py +33 -0
- revengai/test/test_scrape_third_party_config.py +51 -0
- revengai/test/test_search_api.py +59 -0
- revengai/test/test_search_binary_ids.py +50 -0
- revengai/test/test_search_form.py +56 -0
- revengai/test/test_search_function_ids.py +50 -0
- revengai/test/test_search_query.py +52 -0
- revengai/test/test_section_model.py +72 -0
- revengai/test/test_security_checks_response.py +76 -0
- revengai/test/test_security_checks_result.py +66 -0
- revengai/test/test_security_model.py +72 -0
- revengai/test/test_severity_type.py +33 -0
- revengai/test/test_similar_functions_response.py +74 -0
- revengai/test/test_single_code_certificate_model.py +62 -0
- revengai/test/test_single_code_signature_model.py +70 -0
- revengai/test/test_single_pdb_entry_model.py +56 -0
- revengai/test/test_single_section_model.py +64 -0
- revengai/test/test_stack_variable.py +61 -0
- revengai/test/test_status_input.py +33 -0
- revengai/test/test_status_output.py +54 -0
- revengai/test/test_string_functions.py +62 -0
- revengai/test/test_structure.py +71 -0
- revengai/test/test_structure_member.py +59 -0
- revengai/test/test_symbols.py +57 -0
- revengai/test/test_symbols_info.py +55 -0
- revengai/test/test_tag_confidence_body.py +60 -0
- revengai/test/test_tag_input.py +52 -0
- revengai/test/test_tag_origin_box_plot_confidence.py +72 -0
- revengai/test/test_tag_output.py +54 -0
- revengai/test/test_tag_response.py +54 -0
- revengai/test/test_tag_search_response.py +60 -0
- revengai/test/test_tag_search_result.py +54 -0
- revengai/test/test_tags.py +54 -0
- revengai/test/test_task_response.py +52 -0
- revengai/test/test_task_status.py +33 -0
- revengai/test/test_threat_score_function_body.py +53 -0
- revengai/test/test_timestamp_model.py +56 -0
- revengai/test/test_ttps.py +86 -0
- revengai/test/test_ttps_attack.py +54 -0
- revengai/test/test_ttps_data.py +82 -0
- revengai/test/test_ttps_element.py +74 -0
- revengai/test/test_ttps_occurance.py +54 -0
- revengai/test/test_type_definition.py +56 -0
- revengai/test/test_update_function_data_types.py +118 -0
- revengai/test/test_upload_success.py +54 -0
- revengai/test/test_upsert_ai_decomplation_rating_request.py +52 -0
- revengai/test/test_user_activity_response.py +62 -0
- revengai/test/test_user_boundaries.py +56 -0
- revengai/test/test_v1_api.py +185 -0
- revengai/test/test_vulnerabilities.py +78 -0
- revengai/test/test_vulnerability.py +71 -0
- revengai/test/test_vulnerability_type.py +33 -0
- revengai/test/test_workspace.py +33 -0
- revengai-1.1.1.dist-info/METADATA +470 -0
- revengai-1.1.1.dist-info/RECORD +741 -0
- revengai-1.1.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,1991 @@
|
|
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 Any, Optional
|
21
|
+
from typing_extensions import Annotated
|
22
|
+
from revengai.models.base_response_dynamic_execution_status import BaseResponseDynamicExecutionStatus
|
23
|
+
from revengai.models.base_response_network_overview_response import BaseResponseNetworkOverviewResponse
|
24
|
+
from revengai.models.base_response_process_dumps import BaseResponseProcessDumps
|
25
|
+
from revengai.models.base_response_process_registry import BaseResponseProcessRegistry
|
26
|
+
from revengai.models.base_response_process_tree import BaseResponseProcessTree
|
27
|
+
from revengai.models.base_response_ttps import BaseResponseTTPS
|
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 AnalysesDynamicExecutionApi:
|
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 get_dynamic_execution_status(
|
49
|
+
self,
|
50
|
+
analysis_id: StrictInt,
|
51
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
52
|
+
_request_timeout: Union[
|
53
|
+
None,
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
55
|
+
Tuple[
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
57
|
+
Annotated[StrictFloat, Field(gt=0)]
|
58
|
+
]
|
59
|
+
] = None,
|
60
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
61
|
+
_content_type: Optional[StrictStr] = None,
|
62
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
63
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
64
|
+
) -> BaseResponseDynamicExecutionStatus:
|
65
|
+
"""Get the status of a dynamic execution task
|
66
|
+
|
67
|
+
|
68
|
+
:param analysis_id: (required)
|
69
|
+
:type analysis_id: int
|
70
|
+
:param authorization: API Key bearer token
|
71
|
+
:type authorization: str
|
72
|
+
:param _request_timeout: timeout setting for this request. If one
|
73
|
+
number provided, it will be total request
|
74
|
+
timeout. It can also be a pair (tuple) of
|
75
|
+
(connection, read) timeouts.
|
76
|
+
:type _request_timeout: int, tuple(int, int), optional
|
77
|
+
:param _request_auth: set to override the auth_settings for an a single
|
78
|
+
request; this effectively ignores the
|
79
|
+
authentication in the spec for a single request.
|
80
|
+
:type _request_auth: dict, optional
|
81
|
+
:param _content_type: force content-type for the request.
|
82
|
+
:type _content_type: str, Optional
|
83
|
+
:param _headers: set to override the headers for a single
|
84
|
+
request; this effectively ignores the headers
|
85
|
+
in the spec for a single request.
|
86
|
+
:type _headers: dict, optional
|
87
|
+
:param _host_index: set to override the host_index for a single
|
88
|
+
request; this effectively ignores the host_index
|
89
|
+
in the spec for a single request.
|
90
|
+
:type _host_index: int, optional
|
91
|
+
:return: Returns the result object.
|
92
|
+
""" # noqa: E501
|
93
|
+
|
94
|
+
_param = self._get_dynamic_execution_status_serialize(
|
95
|
+
analysis_id=analysis_id,
|
96
|
+
authorization=authorization,
|
97
|
+
_request_auth=_request_auth,
|
98
|
+
_content_type=_content_type,
|
99
|
+
_headers=_headers,
|
100
|
+
_host_index=_host_index
|
101
|
+
)
|
102
|
+
|
103
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
104
|
+
'200': "BaseResponseDynamicExecutionStatus",
|
105
|
+
'422': "BaseResponse",
|
106
|
+
}
|
107
|
+
response_data = self.api_client.call_api(
|
108
|
+
*_param,
|
109
|
+
_request_timeout=_request_timeout
|
110
|
+
)
|
111
|
+
response_data.read()
|
112
|
+
return self.api_client.response_deserialize(
|
113
|
+
response_data=response_data,
|
114
|
+
response_types_map=_response_types_map,
|
115
|
+
).data
|
116
|
+
|
117
|
+
|
118
|
+
@validate_call
|
119
|
+
def get_dynamic_execution_status_with_http_info(
|
120
|
+
self,
|
121
|
+
analysis_id: StrictInt,
|
122
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
123
|
+
_request_timeout: Union[
|
124
|
+
None,
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
126
|
+
Tuple[
|
127
|
+
Annotated[StrictFloat, Field(gt=0)],
|
128
|
+
Annotated[StrictFloat, Field(gt=0)]
|
129
|
+
]
|
130
|
+
] = None,
|
131
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
132
|
+
_content_type: Optional[StrictStr] = None,
|
133
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
134
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
135
|
+
) -> ApiResponse[BaseResponseDynamicExecutionStatus]:
|
136
|
+
"""Get the status of a dynamic execution task
|
137
|
+
|
138
|
+
|
139
|
+
:param analysis_id: (required)
|
140
|
+
:type analysis_id: int
|
141
|
+
:param authorization: API Key bearer token
|
142
|
+
:type authorization: str
|
143
|
+
:param _request_timeout: timeout setting for this request. If one
|
144
|
+
number provided, it will be total request
|
145
|
+
timeout. It can also be a pair (tuple) of
|
146
|
+
(connection, read) timeouts.
|
147
|
+
:type _request_timeout: int, tuple(int, int), optional
|
148
|
+
:param _request_auth: set to override the auth_settings for an a single
|
149
|
+
request; this effectively ignores the
|
150
|
+
authentication in the spec for a single request.
|
151
|
+
:type _request_auth: dict, optional
|
152
|
+
:param _content_type: force content-type for the request.
|
153
|
+
:type _content_type: str, Optional
|
154
|
+
:param _headers: set to override the headers for a single
|
155
|
+
request; this effectively ignores the headers
|
156
|
+
in the spec for a single request.
|
157
|
+
:type _headers: dict, optional
|
158
|
+
:param _host_index: set to override the host_index for a single
|
159
|
+
request; this effectively ignores the host_index
|
160
|
+
in the spec for a single request.
|
161
|
+
:type _host_index: int, optional
|
162
|
+
:return: Returns the result object.
|
163
|
+
""" # noqa: E501
|
164
|
+
|
165
|
+
_param = self._get_dynamic_execution_status_serialize(
|
166
|
+
analysis_id=analysis_id,
|
167
|
+
authorization=authorization,
|
168
|
+
_request_auth=_request_auth,
|
169
|
+
_content_type=_content_type,
|
170
|
+
_headers=_headers,
|
171
|
+
_host_index=_host_index
|
172
|
+
)
|
173
|
+
|
174
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
175
|
+
'200': "BaseResponseDynamicExecutionStatus",
|
176
|
+
'422': "BaseResponse",
|
177
|
+
}
|
178
|
+
response_data = self.api_client.call_api(
|
179
|
+
*_param,
|
180
|
+
_request_timeout=_request_timeout
|
181
|
+
)
|
182
|
+
response_data.read()
|
183
|
+
return self.api_client.response_deserialize(
|
184
|
+
response_data=response_data,
|
185
|
+
response_types_map=_response_types_map,
|
186
|
+
)
|
187
|
+
|
188
|
+
|
189
|
+
@validate_call
|
190
|
+
def get_dynamic_execution_status_without_preload_content(
|
191
|
+
self,
|
192
|
+
analysis_id: StrictInt,
|
193
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
194
|
+
_request_timeout: Union[
|
195
|
+
None,
|
196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
197
|
+
Tuple[
|
198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
199
|
+
Annotated[StrictFloat, Field(gt=0)]
|
200
|
+
]
|
201
|
+
] = None,
|
202
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
203
|
+
_content_type: Optional[StrictStr] = None,
|
204
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
205
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
206
|
+
) -> RESTResponseType:
|
207
|
+
"""Get the status of a dynamic execution task
|
208
|
+
|
209
|
+
|
210
|
+
:param analysis_id: (required)
|
211
|
+
:type analysis_id: int
|
212
|
+
:param authorization: API Key bearer token
|
213
|
+
:type authorization: str
|
214
|
+
:param _request_timeout: timeout setting for this request. If one
|
215
|
+
number provided, it will be total request
|
216
|
+
timeout. It can also be a pair (tuple) of
|
217
|
+
(connection, read) timeouts.
|
218
|
+
:type _request_timeout: int, tuple(int, int), optional
|
219
|
+
:param _request_auth: set to override the auth_settings for an a single
|
220
|
+
request; this effectively ignores the
|
221
|
+
authentication in the spec for a single request.
|
222
|
+
:type _request_auth: dict, optional
|
223
|
+
:param _content_type: force content-type for the request.
|
224
|
+
:type _content_type: str, Optional
|
225
|
+
:param _headers: set to override the headers for a single
|
226
|
+
request; this effectively ignores the headers
|
227
|
+
in the spec for a single request.
|
228
|
+
:type _headers: dict, optional
|
229
|
+
:param _host_index: set to override the host_index for a single
|
230
|
+
request; this effectively ignores the host_index
|
231
|
+
in the spec for a single request.
|
232
|
+
:type _host_index: int, optional
|
233
|
+
:return: Returns the result object.
|
234
|
+
""" # noqa: E501
|
235
|
+
|
236
|
+
_param = self._get_dynamic_execution_status_serialize(
|
237
|
+
analysis_id=analysis_id,
|
238
|
+
authorization=authorization,
|
239
|
+
_request_auth=_request_auth,
|
240
|
+
_content_type=_content_type,
|
241
|
+
_headers=_headers,
|
242
|
+
_host_index=_host_index
|
243
|
+
)
|
244
|
+
|
245
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
246
|
+
'200': "BaseResponseDynamicExecutionStatus",
|
247
|
+
'422': "BaseResponse",
|
248
|
+
}
|
249
|
+
response_data = self.api_client.call_api(
|
250
|
+
*_param,
|
251
|
+
_request_timeout=_request_timeout
|
252
|
+
)
|
253
|
+
return response_data.response
|
254
|
+
|
255
|
+
|
256
|
+
def _get_dynamic_execution_status_serialize(
|
257
|
+
self,
|
258
|
+
analysis_id,
|
259
|
+
authorization,
|
260
|
+
_request_auth,
|
261
|
+
_content_type,
|
262
|
+
_headers,
|
263
|
+
_host_index,
|
264
|
+
) -> RequestSerialized:
|
265
|
+
|
266
|
+
_host = None
|
267
|
+
|
268
|
+
_collection_formats: Dict[str, str] = {
|
269
|
+
}
|
270
|
+
|
271
|
+
_path_params: Dict[str, str] = {}
|
272
|
+
_query_params: List[Tuple[str, str]] = []
|
273
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
274
|
+
_form_params: List[Tuple[str, str]] = []
|
275
|
+
_files: Dict[
|
276
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
277
|
+
] = {}
|
278
|
+
_body_params: Optional[bytes] = None
|
279
|
+
|
280
|
+
# process the path parameters
|
281
|
+
if analysis_id is not None:
|
282
|
+
_path_params['analysis_id'] = analysis_id
|
283
|
+
# process the query parameters
|
284
|
+
# process the header parameters
|
285
|
+
if authorization is not None:
|
286
|
+
_header_params['authorization'] = authorization
|
287
|
+
# process the form parameters
|
288
|
+
# process the body parameter
|
289
|
+
|
290
|
+
|
291
|
+
# set the HTTP header `Accept`
|
292
|
+
if 'Accept' not in _header_params:
|
293
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
294
|
+
[
|
295
|
+
'application/json'
|
296
|
+
]
|
297
|
+
)
|
298
|
+
|
299
|
+
|
300
|
+
# authentication setting
|
301
|
+
_auth_settings: List[str] = [
|
302
|
+
'APIKey'
|
303
|
+
]
|
304
|
+
|
305
|
+
return self.api_client.param_serialize(
|
306
|
+
method='GET',
|
307
|
+
resource_path='/v2/analyses/{analysis_id}/dynamic-execution/status',
|
308
|
+
path_params=_path_params,
|
309
|
+
query_params=_query_params,
|
310
|
+
header_params=_header_params,
|
311
|
+
body=_body_params,
|
312
|
+
post_params=_form_params,
|
313
|
+
files=_files,
|
314
|
+
auth_settings=_auth_settings,
|
315
|
+
collection_formats=_collection_formats,
|
316
|
+
_host=_host,
|
317
|
+
_request_auth=_request_auth
|
318
|
+
)
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
@validate_call
|
324
|
+
def get_network_overview(
|
325
|
+
self,
|
326
|
+
analysis_id: StrictInt,
|
327
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
328
|
+
_request_timeout: Union[
|
329
|
+
None,
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
331
|
+
Tuple[
|
332
|
+
Annotated[StrictFloat, Field(gt=0)],
|
333
|
+
Annotated[StrictFloat, Field(gt=0)]
|
334
|
+
]
|
335
|
+
] = None,
|
336
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
337
|
+
_content_type: Optional[StrictStr] = None,
|
338
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
339
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
340
|
+
) -> BaseResponseNetworkOverviewResponse:
|
341
|
+
"""Get the dynamic execution results for network overview
|
342
|
+
|
343
|
+
|
344
|
+
:param analysis_id: (required)
|
345
|
+
:type analysis_id: int
|
346
|
+
:param authorization: API Key bearer token
|
347
|
+
:type authorization: str
|
348
|
+
:param _request_timeout: timeout setting for this request. If one
|
349
|
+
number provided, it will be total request
|
350
|
+
timeout. It can also be a pair (tuple) of
|
351
|
+
(connection, read) timeouts.
|
352
|
+
:type _request_timeout: int, tuple(int, int), optional
|
353
|
+
:param _request_auth: set to override the auth_settings for an a single
|
354
|
+
request; this effectively ignores the
|
355
|
+
authentication in the spec for a single request.
|
356
|
+
:type _request_auth: dict, optional
|
357
|
+
:param _content_type: force content-type for the request.
|
358
|
+
:type _content_type: str, Optional
|
359
|
+
:param _headers: set to override the headers for a single
|
360
|
+
request; this effectively ignores the headers
|
361
|
+
in the spec for a single request.
|
362
|
+
:type _headers: dict, optional
|
363
|
+
:param _host_index: set to override the host_index for a single
|
364
|
+
request; this effectively ignores the host_index
|
365
|
+
in the spec for a single request.
|
366
|
+
:type _host_index: int, optional
|
367
|
+
:return: Returns the result object.
|
368
|
+
""" # noqa: E501
|
369
|
+
|
370
|
+
_param = self._get_network_overview_serialize(
|
371
|
+
analysis_id=analysis_id,
|
372
|
+
authorization=authorization,
|
373
|
+
_request_auth=_request_auth,
|
374
|
+
_content_type=_content_type,
|
375
|
+
_headers=_headers,
|
376
|
+
_host_index=_host_index
|
377
|
+
)
|
378
|
+
|
379
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
380
|
+
'200': "BaseResponseNetworkOverviewResponse",
|
381
|
+
'422': "BaseResponse",
|
382
|
+
}
|
383
|
+
response_data = self.api_client.call_api(
|
384
|
+
*_param,
|
385
|
+
_request_timeout=_request_timeout
|
386
|
+
)
|
387
|
+
response_data.read()
|
388
|
+
return self.api_client.response_deserialize(
|
389
|
+
response_data=response_data,
|
390
|
+
response_types_map=_response_types_map,
|
391
|
+
).data
|
392
|
+
|
393
|
+
|
394
|
+
@validate_call
|
395
|
+
def get_network_overview_with_http_info(
|
396
|
+
self,
|
397
|
+
analysis_id: StrictInt,
|
398
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
399
|
+
_request_timeout: Union[
|
400
|
+
None,
|
401
|
+
Annotated[StrictFloat, Field(gt=0)],
|
402
|
+
Tuple[
|
403
|
+
Annotated[StrictFloat, Field(gt=0)],
|
404
|
+
Annotated[StrictFloat, Field(gt=0)]
|
405
|
+
]
|
406
|
+
] = None,
|
407
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
408
|
+
_content_type: Optional[StrictStr] = None,
|
409
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
410
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
411
|
+
) -> ApiResponse[BaseResponseNetworkOverviewResponse]:
|
412
|
+
"""Get the dynamic execution results for network overview
|
413
|
+
|
414
|
+
|
415
|
+
:param analysis_id: (required)
|
416
|
+
:type analysis_id: int
|
417
|
+
:param authorization: API Key bearer token
|
418
|
+
:type authorization: str
|
419
|
+
:param _request_timeout: timeout setting for this request. If one
|
420
|
+
number provided, it will be total request
|
421
|
+
timeout. It can also be a pair (tuple) of
|
422
|
+
(connection, read) timeouts.
|
423
|
+
:type _request_timeout: int, tuple(int, int), optional
|
424
|
+
:param _request_auth: set to override the auth_settings for an a single
|
425
|
+
request; this effectively ignores the
|
426
|
+
authentication in the spec for a single request.
|
427
|
+
:type _request_auth: dict, optional
|
428
|
+
:param _content_type: force content-type for the request.
|
429
|
+
:type _content_type: str, Optional
|
430
|
+
:param _headers: set to override the headers for a single
|
431
|
+
request; this effectively ignores the headers
|
432
|
+
in the spec for a single request.
|
433
|
+
:type _headers: dict, optional
|
434
|
+
:param _host_index: set to override the host_index for a single
|
435
|
+
request; this effectively ignores the host_index
|
436
|
+
in the spec for a single request.
|
437
|
+
:type _host_index: int, optional
|
438
|
+
:return: Returns the result object.
|
439
|
+
""" # noqa: E501
|
440
|
+
|
441
|
+
_param = self._get_network_overview_serialize(
|
442
|
+
analysis_id=analysis_id,
|
443
|
+
authorization=authorization,
|
444
|
+
_request_auth=_request_auth,
|
445
|
+
_content_type=_content_type,
|
446
|
+
_headers=_headers,
|
447
|
+
_host_index=_host_index
|
448
|
+
)
|
449
|
+
|
450
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
451
|
+
'200': "BaseResponseNetworkOverviewResponse",
|
452
|
+
'422': "BaseResponse",
|
453
|
+
}
|
454
|
+
response_data = self.api_client.call_api(
|
455
|
+
*_param,
|
456
|
+
_request_timeout=_request_timeout
|
457
|
+
)
|
458
|
+
response_data.read()
|
459
|
+
return self.api_client.response_deserialize(
|
460
|
+
response_data=response_data,
|
461
|
+
response_types_map=_response_types_map,
|
462
|
+
)
|
463
|
+
|
464
|
+
|
465
|
+
@validate_call
|
466
|
+
def get_network_overview_without_preload_content(
|
467
|
+
self,
|
468
|
+
analysis_id: StrictInt,
|
469
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
470
|
+
_request_timeout: Union[
|
471
|
+
None,
|
472
|
+
Annotated[StrictFloat, Field(gt=0)],
|
473
|
+
Tuple[
|
474
|
+
Annotated[StrictFloat, Field(gt=0)],
|
475
|
+
Annotated[StrictFloat, Field(gt=0)]
|
476
|
+
]
|
477
|
+
] = None,
|
478
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
479
|
+
_content_type: Optional[StrictStr] = None,
|
480
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
481
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
482
|
+
) -> RESTResponseType:
|
483
|
+
"""Get the dynamic execution results for network overview
|
484
|
+
|
485
|
+
|
486
|
+
:param analysis_id: (required)
|
487
|
+
:type analysis_id: int
|
488
|
+
:param authorization: API Key bearer token
|
489
|
+
:type authorization: str
|
490
|
+
:param _request_timeout: timeout setting for this request. If one
|
491
|
+
number provided, it will be total request
|
492
|
+
timeout. It can also be a pair (tuple) of
|
493
|
+
(connection, read) timeouts.
|
494
|
+
:type _request_timeout: int, tuple(int, int), optional
|
495
|
+
:param _request_auth: set to override the auth_settings for an a single
|
496
|
+
request; this effectively ignores the
|
497
|
+
authentication in the spec for a single request.
|
498
|
+
:type _request_auth: dict, optional
|
499
|
+
:param _content_type: force content-type for the request.
|
500
|
+
:type _content_type: str, Optional
|
501
|
+
:param _headers: set to override the headers for a single
|
502
|
+
request; this effectively ignores the headers
|
503
|
+
in the spec for a single request.
|
504
|
+
:type _headers: dict, optional
|
505
|
+
:param _host_index: set to override the host_index for a single
|
506
|
+
request; this effectively ignores the host_index
|
507
|
+
in the spec for a single request.
|
508
|
+
:type _host_index: int, optional
|
509
|
+
:return: Returns the result object.
|
510
|
+
""" # noqa: E501
|
511
|
+
|
512
|
+
_param = self._get_network_overview_serialize(
|
513
|
+
analysis_id=analysis_id,
|
514
|
+
authorization=authorization,
|
515
|
+
_request_auth=_request_auth,
|
516
|
+
_content_type=_content_type,
|
517
|
+
_headers=_headers,
|
518
|
+
_host_index=_host_index
|
519
|
+
)
|
520
|
+
|
521
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
522
|
+
'200': "BaseResponseNetworkOverviewResponse",
|
523
|
+
'422': "BaseResponse",
|
524
|
+
}
|
525
|
+
response_data = self.api_client.call_api(
|
526
|
+
*_param,
|
527
|
+
_request_timeout=_request_timeout
|
528
|
+
)
|
529
|
+
return response_data.response
|
530
|
+
|
531
|
+
|
532
|
+
def _get_network_overview_serialize(
|
533
|
+
self,
|
534
|
+
analysis_id,
|
535
|
+
authorization,
|
536
|
+
_request_auth,
|
537
|
+
_content_type,
|
538
|
+
_headers,
|
539
|
+
_host_index,
|
540
|
+
) -> RequestSerialized:
|
541
|
+
|
542
|
+
_host = None
|
543
|
+
|
544
|
+
_collection_formats: Dict[str, str] = {
|
545
|
+
}
|
546
|
+
|
547
|
+
_path_params: Dict[str, str] = {}
|
548
|
+
_query_params: List[Tuple[str, str]] = []
|
549
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
550
|
+
_form_params: List[Tuple[str, str]] = []
|
551
|
+
_files: Dict[
|
552
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
553
|
+
] = {}
|
554
|
+
_body_params: Optional[bytes] = None
|
555
|
+
|
556
|
+
# process the path parameters
|
557
|
+
if analysis_id is not None:
|
558
|
+
_path_params['analysis_id'] = analysis_id
|
559
|
+
# process the query parameters
|
560
|
+
# process the header parameters
|
561
|
+
if authorization is not None:
|
562
|
+
_header_params['authorization'] = authorization
|
563
|
+
# process the form parameters
|
564
|
+
# process the body parameter
|
565
|
+
|
566
|
+
|
567
|
+
# set the HTTP header `Accept`
|
568
|
+
if 'Accept' not in _header_params:
|
569
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
570
|
+
[
|
571
|
+
'application/json'
|
572
|
+
]
|
573
|
+
)
|
574
|
+
|
575
|
+
|
576
|
+
# authentication setting
|
577
|
+
_auth_settings: List[str] = [
|
578
|
+
'APIKey'
|
579
|
+
]
|
580
|
+
|
581
|
+
return self.api_client.param_serialize(
|
582
|
+
method='GET',
|
583
|
+
resource_path='/v2/analyses/{analysis_id}/dynamic-execution/network-overview',
|
584
|
+
path_params=_path_params,
|
585
|
+
query_params=_query_params,
|
586
|
+
header_params=_header_params,
|
587
|
+
body=_body_params,
|
588
|
+
post_params=_form_params,
|
589
|
+
files=_files,
|
590
|
+
auth_settings=_auth_settings,
|
591
|
+
collection_formats=_collection_formats,
|
592
|
+
_host=_host,
|
593
|
+
_request_auth=_request_auth
|
594
|
+
)
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
@validate_call
|
600
|
+
def get_process_dump(
|
601
|
+
self,
|
602
|
+
analysis_id: StrictInt,
|
603
|
+
dump_name: StrictStr,
|
604
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
605
|
+
_request_timeout: Union[
|
606
|
+
None,
|
607
|
+
Annotated[StrictFloat, Field(gt=0)],
|
608
|
+
Tuple[
|
609
|
+
Annotated[StrictFloat, Field(gt=0)],
|
610
|
+
Annotated[StrictFloat, Field(gt=0)]
|
611
|
+
]
|
612
|
+
] = None,
|
613
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
614
|
+
_content_type: Optional[StrictStr] = None,
|
615
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
616
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
617
|
+
) -> object:
|
618
|
+
"""Get the dynamic execution results for a specific process dump
|
619
|
+
|
620
|
+
|
621
|
+
:param analysis_id: (required)
|
622
|
+
:type analysis_id: int
|
623
|
+
:param dump_name: (required)
|
624
|
+
:type dump_name: str
|
625
|
+
:param authorization: API Key bearer token
|
626
|
+
:type authorization: str
|
627
|
+
:param _request_timeout: timeout setting for this request. If one
|
628
|
+
number provided, it will be total request
|
629
|
+
timeout. It can also be a pair (tuple) of
|
630
|
+
(connection, read) timeouts.
|
631
|
+
:type _request_timeout: int, tuple(int, int), optional
|
632
|
+
:param _request_auth: set to override the auth_settings for an a single
|
633
|
+
request; this effectively ignores the
|
634
|
+
authentication in the spec for a single request.
|
635
|
+
:type _request_auth: dict, optional
|
636
|
+
:param _content_type: force content-type for the request.
|
637
|
+
:type _content_type: str, Optional
|
638
|
+
:param _headers: set to override the headers for a single
|
639
|
+
request; this effectively ignores the headers
|
640
|
+
in the spec for a single request.
|
641
|
+
:type _headers: dict, optional
|
642
|
+
:param _host_index: set to override the host_index for a single
|
643
|
+
request; this effectively ignores the host_index
|
644
|
+
in the spec for a single request.
|
645
|
+
:type _host_index: int, optional
|
646
|
+
:return: Returns the result object.
|
647
|
+
""" # noqa: E501
|
648
|
+
|
649
|
+
_param = self._get_process_dump_serialize(
|
650
|
+
analysis_id=analysis_id,
|
651
|
+
dump_name=dump_name,
|
652
|
+
authorization=authorization,
|
653
|
+
_request_auth=_request_auth,
|
654
|
+
_content_type=_content_type,
|
655
|
+
_headers=_headers,
|
656
|
+
_host_index=_host_index
|
657
|
+
)
|
658
|
+
|
659
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
660
|
+
'200': "object",
|
661
|
+
'422': "BaseResponse",
|
662
|
+
}
|
663
|
+
response_data = self.api_client.call_api(
|
664
|
+
*_param,
|
665
|
+
_request_timeout=_request_timeout
|
666
|
+
)
|
667
|
+
response_data.read()
|
668
|
+
return self.api_client.response_deserialize(
|
669
|
+
response_data=response_data,
|
670
|
+
response_types_map=_response_types_map,
|
671
|
+
).data
|
672
|
+
|
673
|
+
|
674
|
+
@validate_call
|
675
|
+
def get_process_dump_with_http_info(
|
676
|
+
self,
|
677
|
+
analysis_id: StrictInt,
|
678
|
+
dump_name: StrictStr,
|
679
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
680
|
+
_request_timeout: Union[
|
681
|
+
None,
|
682
|
+
Annotated[StrictFloat, Field(gt=0)],
|
683
|
+
Tuple[
|
684
|
+
Annotated[StrictFloat, Field(gt=0)],
|
685
|
+
Annotated[StrictFloat, Field(gt=0)]
|
686
|
+
]
|
687
|
+
] = None,
|
688
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
689
|
+
_content_type: Optional[StrictStr] = None,
|
690
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
691
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
692
|
+
) -> ApiResponse[object]:
|
693
|
+
"""Get the dynamic execution results for a specific process dump
|
694
|
+
|
695
|
+
|
696
|
+
:param analysis_id: (required)
|
697
|
+
:type analysis_id: int
|
698
|
+
:param dump_name: (required)
|
699
|
+
:type dump_name: str
|
700
|
+
:param authorization: API Key bearer token
|
701
|
+
:type authorization: str
|
702
|
+
:param _request_timeout: timeout setting for this request. If one
|
703
|
+
number provided, it will be total request
|
704
|
+
timeout. It can also be a pair (tuple) of
|
705
|
+
(connection, read) timeouts.
|
706
|
+
:type _request_timeout: int, tuple(int, int), optional
|
707
|
+
:param _request_auth: set to override the auth_settings for an a single
|
708
|
+
request; this effectively ignores the
|
709
|
+
authentication in the spec for a single request.
|
710
|
+
:type _request_auth: dict, optional
|
711
|
+
:param _content_type: force content-type for the request.
|
712
|
+
:type _content_type: str, Optional
|
713
|
+
:param _headers: set to override the headers for a single
|
714
|
+
request; this effectively ignores the headers
|
715
|
+
in the spec for a single request.
|
716
|
+
:type _headers: dict, optional
|
717
|
+
:param _host_index: set to override the host_index for a single
|
718
|
+
request; this effectively ignores the host_index
|
719
|
+
in the spec for a single request.
|
720
|
+
:type _host_index: int, optional
|
721
|
+
:return: Returns the result object.
|
722
|
+
""" # noqa: E501
|
723
|
+
|
724
|
+
_param = self._get_process_dump_serialize(
|
725
|
+
analysis_id=analysis_id,
|
726
|
+
dump_name=dump_name,
|
727
|
+
authorization=authorization,
|
728
|
+
_request_auth=_request_auth,
|
729
|
+
_content_type=_content_type,
|
730
|
+
_headers=_headers,
|
731
|
+
_host_index=_host_index
|
732
|
+
)
|
733
|
+
|
734
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
735
|
+
'200': "object",
|
736
|
+
'422': "BaseResponse",
|
737
|
+
}
|
738
|
+
response_data = self.api_client.call_api(
|
739
|
+
*_param,
|
740
|
+
_request_timeout=_request_timeout
|
741
|
+
)
|
742
|
+
response_data.read()
|
743
|
+
return self.api_client.response_deserialize(
|
744
|
+
response_data=response_data,
|
745
|
+
response_types_map=_response_types_map,
|
746
|
+
)
|
747
|
+
|
748
|
+
|
749
|
+
@validate_call
|
750
|
+
def get_process_dump_without_preload_content(
|
751
|
+
self,
|
752
|
+
analysis_id: StrictInt,
|
753
|
+
dump_name: StrictStr,
|
754
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
755
|
+
_request_timeout: Union[
|
756
|
+
None,
|
757
|
+
Annotated[StrictFloat, Field(gt=0)],
|
758
|
+
Tuple[
|
759
|
+
Annotated[StrictFloat, Field(gt=0)],
|
760
|
+
Annotated[StrictFloat, Field(gt=0)]
|
761
|
+
]
|
762
|
+
] = None,
|
763
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
764
|
+
_content_type: Optional[StrictStr] = None,
|
765
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
766
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
767
|
+
) -> RESTResponseType:
|
768
|
+
"""Get the dynamic execution results for a specific process dump
|
769
|
+
|
770
|
+
|
771
|
+
:param analysis_id: (required)
|
772
|
+
:type analysis_id: int
|
773
|
+
:param dump_name: (required)
|
774
|
+
:type dump_name: str
|
775
|
+
:param authorization: API Key bearer token
|
776
|
+
:type authorization: str
|
777
|
+
:param _request_timeout: timeout setting for this request. If one
|
778
|
+
number provided, it will be total request
|
779
|
+
timeout. It can also be a pair (tuple) of
|
780
|
+
(connection, read) timeouts.
|
781
|
+
:type _request_timeout: int, tuple(int, int), optional
|
782
|
+
:param _request_auth: set to override the auth_settings for an a single
|
783
|
+
request; this effectively ignores the
|
784
|
+
authentication in the spec for a single request.
|
785
|
+
:type _request_auth: dict, optional
|
786
|
+
:param _content_type: force content-type for the request.
|
787
|
+
:type _content_type: str, Optional
|
788
|
+
:param _headers: set to override the headers for a single
|
789
|
+
request; this effectively ignores the headers
|
790
|
+
in the spec for a single request.
|
791
|
+
:type _headers: dict, optional
|
792
|
+
:param _host_index: set to override the host_index for a single
|
793
|
+
request; this effectively ignores the host_index
|
794
|
+
in the spec for a single request.
|
795
|
+
:type _host_index: int, optional
|
796
|
+
:return: Returns the result object.
|
797
|
+
""" # noqa: E501
|
798
|
+
|
799
|
+
_param = self._get_process_dump_serialize(
|
800
|
+
analysis_id=analysis_id,
|
801
|
+
dump_name=dump_name,
|
802
|
+
authorization=authorization,
|
803
|
+
_request_auth=_request_auth,
|
804
|
+
_content_type=_content_type,
|
805
|
+
_headers=_headers,
|
806
|
+
_host_index=_host_index
|
807
|
+
)
|
808
|
+
|
809
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
810
|
+
'200': "object",
|
811
|
+
'422': "BaseResponse",
|
812
|
+
}
|
813
|
+
response_data = self.api_client.call_api(
|
814
|
+
*_param,
|
815
|
+
_request_timeout=_request_timeout
|
816
|
+
)
|
817
|
+
return response_data.response
|
818
|
+
|
819
|
+
|
820
|
+
def _get_process_dump_serialize(
|
821
|
+
self,
|
822
|
+
analysis_id,
|
823
|
+
dump_name,
|
824
|
+
authorization,
|
825
|
+
_request_auth,
|
826
|
+
_content_type,
|
827
|
+
_headers,
|
828
|
+
_host_index,
|
829
|
+
) -> RequestSerialized:
|
830
|
+
|
831
|
+
_host = None
|
832
|
+
|
833
|
+
_collection_formats: Dict[str, str] = {
|
834
|
+
}
|
835
|
+
|
836
|
+
_path_params: Dict[str, str] = {}
|
837
|
+
_query_params: List[Tuple[str, str]] = []
|
838
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
839
|
+
_form_params: List[Tuple[str, str]] = []
|
840
|
+
_files: Dict[
|
841
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
842
|
+
] = {}
|
843
|
+
_body_params: Optional[bytes] = None
|
844
|
+
|
845
|
+
# process the path parameters
|
846
|
+
if analysis_id is not None:
|
847
|
+
_path_params['analysis_id'] = analysis_id
|
848
|
+
if dump_name is not None:
|
849
|
+
_path_params['dump_name'] = dump_name
|
850
|
+
# process the query parameters
|
851
|
+
# process the header parameters
|
852
|
+
if authorization is not None:
|
853
|
+
_header_params['authorization'] = authorization
|
854
|
+
# process the form parameters
|
855
|
+
# process the body parameter
|
856
|
+
|
857
|
+
|
858
|
+
# set the HTTP header `Accept`
|
859
|
+
if 'Accept' not in _header_params:
|
860
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
861
|
+
[
|
862
|
+
'application/json'
|
863
|
+
]
|
864
|
+
)
|
865
|
+
|
866
|
+
|
867
|
+
# authentication setting
|
868
|
+
_auth_settings: List[str] = [
|
869
|
+
'APIKey'
|
870
|
+
]
|
871
|
+
|
872
|
+
return self.api_client.param_serialize(
|
873
|
+
method='GET',
|
874
|
+
resource_path='/v2/analyses/{analysis_id}/dynamic-execution/process-dumps/{dump_name}',
|
875
|
+
path_params=_path_params,
|
876
|
+
query_params=_query_params,
|
877
|
+
header_params=_header_params,
|
878
|
+
body=_body_params,
|
879
|
+
post_params=_form_params,
|
880
|
+
files=_files,
|
881
|
+
auth_settings=_auth_settings,
|
882
|
+
collection_formats=_collection_formats,
|
883
|
+
_host=_host,
|
884
|
+
_request_auth=_request_auth
|
885
|
+
)
|
886
|
+
|
887
|
+
|
888
|
+
|
889
|
+
|
890
|
+
@validate_call
|
891
|
+
def get_process_dumps(
|
892
|
+
self,
|
893
|
+
analysis_id: StrictInt,
|
894
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
895
|
+
_request_timeout: Union[
|
896
|
+
None,
|
897
|
+
Annotated[StrictFloat, Field(gt=0)],
|
898
|
+
Tuple[
|
899
|
+
Annotated[StrictFloat, Field(gt=0)],
|
900
|
+
Annotated[StrictFloat, Field(gt=0)]
|
901
|
+
]
|
902
|
+
] = None,
|
903
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
904
|
+
_content_type: Optional[StrictStr] = None,
|
905
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
906
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
907
|
+
) -> BaseResponseProcessDumps:
|
908
|
+
"""Get the dynamic execution results for process dumps
|
909
|
+
|
910
|
+
|
911
|
+
:param analysis_id: (required)
|
912
|
+
:type analysis_id: int
|
913
|
+
:param authorization: API Key bearer token
|
914
|
+
:type authorization: str
|
915
|
+
:param _request_timeout: timeout setting for this request. If one
|
916
|
+
number provided, it will be total request
|
917
|
+
timeout. It can also be a pair (tuple) of
|
918
|
+
(connection, read) timeouts.
|
919
|
+
:type _request_timeout: int, tuple(int, int), optional
|
920
|
+
:param _request_auth: set to override the auth_settings for an a single
|
921
|
+
request; this effectively ignores the
|
922
|
+
authentication in the spec for a single request.
|
923
|
+
:type _request_auth: dict, optional
|
924
|
+
:param _content_type: force content-type for the request.
|
925
|
+
:type _content_type: str, Optional
|
926
|
+
:param _headers: set to override the headers for a single
|
927
|
+
request; this effectively ignores the headers
|
928
|
+
in the spec for a single request.
|
929
|
+
:type _headers: dict, optional
|
930
|
+
:param _host_index: set to override the host_index for a single
|
931
|
+
request; this effectively ignores the host_index
|
932
|
+
in the spec for a single request.
|
933
|
+
:type _host_index: int, optional
|
934
|
+
:return: Returns the result object.
|
935
|
+
""" # noqa: E501
|
936
|
+
|
937
|
+
_param = self._get_process_dumps_serialize(
|
938
|
+
analysis_id=analysis_id,
|
939
|
+
authorization=authorization,
|
940
|
+
_request_auth=_request_auth,
|
941
|
+
_content_type=_content_type,
|
942
|
+
_headers=_headers,
|
943
|
+
_host_index=_host_index
|
944
|
+
)
|
945
|
+
|
946
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
947
|
+
'200': "BaseResponseProcessDumps",
|
948
|
+
'422': "BaseResponse",
|
949
|
+
}
|
950
|
+
response_data = self.api_client.call_api(
|
951
|
+
*_param,
|
952
|
+
_request_timeout=_request_timeout
|
953
|
+
)
|
954
|
+
response_data.read()
|
955
|
+
return self.api_client.response_deserialize(
|
956
|
+
response_data=response_data,
|
957
|
+
response_types_map=_response_types_map,
|
958
|
+
).data
|
959
|
+
|
960
|
+
|
961
|
+
@validate_call
|
962
|
+
def get_process_dumps_with_http_info(
|
963
|
+
self,
|
964
|
+
analysis_id: StrictInt,
|
965
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
966
|
+
_request_timeout: Union[
|
967
|
+
None,
|
968
|
+
Annotated[StrictFloat, Field(gt=0)],
|
969
|
+
Tuple[
|
970
|
+
Annotated[StrictFloat, Field(gt=0)],
|
971
|
+
Annotated[StrictFloat, Field(gt=0)]
|
972
|
+
]
|
973
|
+
] = None,
|
974
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
975
|
+
_content_type: Optional[StrictStr] = None,
|
976
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
977
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
978
|
+
) -> ApiResponse[BaseResponseProcessDumps]:
|
979
|
+
"""Get the dynamic execution results for process dumps
|
980
|
+
|
981
|
+
|
982
|
+
:param analysis_id: (required)
|
983
|
+
:type analysis_id: int
|
984
|
+
:param authorization: API Key bearer token
|
985
|
+
:type authorization: str
|
986
|
+
:param _request_timeout: timeout setting for this request. If one
|
987
|
+
number provided, it will be total request
|
988
|
+
timeout. It can also be a pair (tuple) of
|
989
|
+
(connection, read) timeouts.
|
990
|
+
:type _request_timeout: int, tuple(int, int), optional
|
991
|
+
:param _request_auth: set to override the auth_settings for an a single
|
992
|
+
request; this effectively ignores the
|
993
|
+
authentication in the spec for a single request.
|
994
|
+
:type _request_auth: dict, optional
|
995
|
+
:param _content_type: force content-type for the request.
|
996
|
+
:type _content_type: str, Optional
|
997
|
+
:param _headers: set to override the headers for a single
|
998
|
+
request; this effectively ignores the headers
|
999
|
+
in the spec for a single request.
|
1000
|
+
:type _headers: dict, optional
|
1001
|
+
:param _host_index: set to override the host_index for a single
|
1002
|
+
request; this effectively ignores the host_index
|
1003
|
+
in the spec for a single request.
|
1004
|
+
:type _host_index: int, optional
|
1005
|
+
:return: Returns the result object.
|
1006
|
+
""" # noqa: E501
|
1007
|
+
|
1008
|
+
_param = self._get_process_dumps_serialize(
|
1009
|
+
analysis_id=analysis_id,
|
1010
|
+
authorization=authorization,
|
1011
|
+
_request_auth=_request_auth,
|
1012
|
+
_content_type=_content_type,
|
1013
|
+
_headers=_headers,
|
1014
|
+
_host_index=_host_index
|
1015
|
+
)
|
1016
|
+
|
1017
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1018
|
+
'200': "BaseResponseProcessDumps",
|
1019
|
+
'422': "BaseResponse",
|
1020
|
+
}
|
1021
|
+
response_data = self.api_client.call_api(
|
1022
|
+
*_param,
|
1023
|
+
_request_timeout=_request_timeout
|
1024
|
+
)
|
1025
|
+
response_data.read()
|
1026
|
+
return self.api_client.response_deserialize(
|
1027
|
+
response_data=response_data,
|
1028
|
+
response_types_map=_response_types_map,
|
1029
|
+
)
|
1030
|
+
|
1031
|
+
|
1032
|
+
@validate_call
|
1033
|
+
def get_process_dumps_without_preload_content(
|
1034
|
+
self,
|
1035
|
+
analysis_id: StrictInt,
|
1036
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
1037
|
+
_request_timeout: Union[
|
1038
|
+
None,
|
1039
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1040
|
+
Tuple[
|
1041
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1042
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1043
|
+
]
|
1044
|
+
] = None,
|
1045
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1046
|
+
_content_type: Optional[StrictStr] = None,
|
1047
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1048
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1049
|
+
) -> RESTResponseType:
|
1050
|
+
"""Get the dynamic execution results for process dumps
|
1051
|
+
|
1052
|
+
|
1053
|
+
:param analysis_id: (required)
|
1054
|
+
:type analysis_id: int
|
1055
|
+
:param authorization: API Key bearer token
|
1056
|
+
:type authorization: str
|
1057
|
+
:param _request_timeout: timeout setting for this request. If one
|
1058
|
+
number provided, it will be total request
|
1059
|
+
timeout. It can also be a pair (tuple) of
|
1060
|
+
(connection, read) timeouts.
|
1061
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1062
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1063
|
+
request; this effectively ignores the
|
1064
|
+
authentication in the spec for a single request.
|
1065
|
+
:type _request_auth: dict, optional
|
1066
|
+
:param _content_type: force content-type for the request.
|
1067
|
+
:type _content_type: str, Optional
|
1068
|
+
:param _headers: set to override the headers for a single
|
1069
|
+
request; this effectively ignores the headers
|
1070
|
+
in the spec for a single request.
|
1071
|
+
:type _headers: dict, optional
|
1072
|
+
:param _host_index: set to override the host_index for a single
|
1073
|
+
request; this effectively ignores the host_index
|
1074
|
+
in the spec for a single request.
|
1075
|
+
:type _host_index: int, optional
|
1076
|
+
:return: Returns the result object.
|
1077
|
+
""" # noqa: E501
|
1078
|
+
|
1079
|
+
_param = self._get_process_dumps_serialize(
|
1080
|
+
analysis_id=analysis_id,
|
1081
|
+
authorization=authorization,
|
1082
|
+
_request_auth=_request_auth,
|
1083
|
+
_content_type=_content_type,
|
1084
|
+
_headers=_headers,
|
1085
|
+
_host_index=_host_index
|
1086
|
+
)
|
1087
|
+
|
1088
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1089
|
+
'200': "BaseResponseProcessDumps",
|
1090
|
+
'422': "BaseResponse",
|
1091
|
+
}
|
1092
|
+
response_data = self.api_client.call_api(
|
1093
|
+
*_param,
|
1094
|
+
_request_timeout=_request_timeout
|
1095
|
+
)
|
1096
|
+
return response_data.response
|
1097
|
+
|
1098
|
+
|
1099
|
+
def _get_process_dumps_serialize(
|
1100
|
+
self,
|
1101
|
+
analysis_id,
|
1102
|
+
authorization,
|
1103
|
+
_request_auth,
|
1104
|
+
_content_type,
|
1105
|
+
_headers,
|
1106
|
+
_host_index,
|
1107
|
+
) -> RequestSerialized:
|
1108
|
+
|
1109
|
+
_host = None
|
1110
|
+
|
1111
|
+
_collection_formats: Dict[str, str] = {
|
1112
|
+
}
|
1113
|
+
|
1114
|
+
_path_params: Dict[str, str] = {}
|
1115
|
+
_query_params: List[Tuple[str, str]] = []
|
1116
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1117
|
+
_form_params: List[Tuple[str, str]] = []
|
1118
|
+
_files: Dict[
|
1119
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1120
|
+
] = {}
|
1121
|
+
_body_params: Optional[bytes] = None
|
1122
|
+
|
1123
|
+
# process the path parameters
|
1124
|
+
if analysis_id is not None:
|
1125
|
+
_path_params['analysis_id'] = analysis_id
|
1126
|
+
# process the query parameters
|
1127
|
+
# process the header parameters
|
1128
|
+
if authorization is not None:
|
1129
|
+
_header_params['authorization'] = authorization
|
1130
|
+
# process the form parameters
|
1131
|
+
# process the body parameter
|
1132
|
+
|
1133
|
+
|
1134
|
+
# set the HTTP header `Accept`
|
1135
|
+
if 'Accept' not in _header_params:
|
1136
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1137
|
+
[
|
1138
|
+
'application/json'
|
1139
|
+
]
|
1140
|
+
)
|
1141
|
+
|
1142
|
+
|
1143
|
+
# authentication setting
|
1144
|
+
_auth_settings: List[str] = [
|
1145
|
+
'APIKey'
|
1146
|
+
]
|
1147
|
+
|
1148
|
+
return self.api_client.param_serialize(
|
1149
|
+
method='GET',
|
1150
|
+
resource_path='/v2/analyses/{analysis_id}/dynamic-execution/process-dumps',
|
1151
|
+
path_params=_path_params,
|
1152
|
+
query_params=_query_params,
|
1153
|
+
header_params=_header_params,
|
1154
|
+
body=_body_params,
|
1155
|
+
post_params=_form_params,
|
1156
|
+
files=_files,
|
1157
|
+
auth_settings=_auth_settings,
|
1158
|
+
collection_formats=_collection_formats,
|
1159
|
+
_host=_host,
|
1160
|
+
_request_auth=_request_auth
|
1161
|
+
)
|
1162
|
+
|
1163
|
+
|
1164
|
+
|
1165
|
+
|
1166
|
+
@validate_call
|
1167
|
+
def get_process_registry(
|
1168
|
+
self,
|
1169
|
+
analysis_id: StrictInt,
|
1170
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
1171
|
+
_request_timeout: Union[
|
1172
|
+
None,
|
1173
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1174
|
+
Tuple[
|
1175
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1176
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1177
|
+
]
|
1178
|
+
] = None,
|
1179
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1180
|
+
_content_type: Optional[StrictStr] = None,
|
1181
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1182
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1183
|
+
) -> BaseResponseProcessRegistry:
|
1184
|
+
"""Get the dynamic execution results for process registry
|
1185
|
+
|
1186
|
+
|
1187
|
+
:param analysis_id: (required)
|
1188
|
+
:type analysis_id: int
|
1189
|
+
:param authorization: API Key bearer token
|
1190
|
+
:type authorization: str
|
1191
|
+
:param _request_timeout: timeout setting for this request. If one
|
1192
|
+
number provided, it will be total request
|
1193
|
+
timeout. It can also be a pair (tuple) of
|
1194
|
+
(connection, read) timeouts.
|
1195
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1196
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1197
|
+
request; this effectively ignores the
|
1198
|
+
authentication in the spec for a single request.
|
1199
|
+
:type _request_auth: dict, optional
|
1200
|
+
:param _content_type: force content-type for the request.
|
1201
|
+
:type _content_type: str, Optional
|
1202
|
+
:param _headers: set to override the headers for a single
|
1203
|
+
request; this effectively ignores the headers
|
1204
|
+
in the spec for a single request.
|
1205
|
+
:type _headers: dict, optional
|
1206
|
+
:param _host_index: set to override the host_index for a single
|
1207
|
+
request; this effectively ignores the host_index
|
1208
|
+
in the spec for a single request.
|
1209
|
+
:type _host_index: int, optional
|
1210
|
+
:return: Returns the result object.
|
1211
|
+
""" # noqa: E501
|
1212
|
+
|
1213
|
+
_param = self._get_process_registry_serialize(
|
1214
|
+
analysis_id=analysis_id,
|
1215
|
+
authorization=authorization,
|
1216
|
+
_request_auth=_request_auth,
|
1217
|
+
_content_type=_content_type,
|
1218
|
+
_headers=_headers,
|
1219
|
+
_host_index=_host_index
|
1220
|
+
)
|
1221
|
+
|
1222
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1223
|
+
'200': "BaseResponseProcessRegistry",
|
1224
|
+
'422': "BaseResponse",
|
1225
|
+
}
|
1226
|
+
response_data = self.api_client.call_api(
|
1227
|
+
*_param,
|
1228
|
+
_request_timeout=_request_timeout
|
1229
|
+
)
|
1230
|
+
response_data.read()
|
1231
|
+
return self.api_client.response_deserialize(
|
1232
|
+
response_data=response_data,
|
1233
|
+
response_types_map=_response_types_map,
|
1234
|
+
).data
|
1235
|
+
|
1236
|
+
|
1237
|
+
@validate_call
|
1238
|
+
def get_process_registry_with_http_info(
|
1239
|
+
self,
|
1240
|
+
analysis_id: StrictInt,
|
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
|
+
) -> ApiResponse[BaseResponseProcessRegistry]:
|
1255
|
+
"""Get the dynamic execution results for process registry
|
1256
|
+
|
1257
|
+
|
1258
|
+
:param analysis_id: (required)
|
1259
|
+
:type analysis_id: int
|
1260
|
+
:param authorization: API Key bearer token
|
1261
|
+
:type authorization: str
|
1262
|
+
:param _request_timeout: timeout setting for this request. If one
|
1263
|
+
number provided, it will be total request
|
1264
|
+
timeout. It can also be a pair (tuple) of
|
1265
|
+
(connection, read) timeouts.
|
1266
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1267
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1268
|
+
request; this effectively ignores the
|
1269
|
+
authentication in the spec for a single request.
|
1270
|
+
:type _request_auth: dict, optional
|
1271
|
+
:param _content_type: force content-type for the request.
|
1272
|
+
:type _content_type: str, Optional
|
1273
|
+
:param _headers: set to override the headers for a single
|
1274
|
+
request; this effectively ignores the headers
|
1275
|
+
in the spec for a single request.
|
1276
|
+
:type _headers: dict, optional
|
1277
|
+
:param _host_index: set to override the host_index for a single
|
1278
|
+
request; this effectively ignores the host_index
|
1279
|
+
in the spec for a single request.
|
1280
|
+
:type _host_index: int, optional
|
1281
|
+
:return: Returns the result object.
|
1282
|
+
""" # noqa: E501
|
1283
|
+
|
1284
|
+
_param = self._get_process_registry_serialize(
|
1285
|
+
analysis_id=analysis_id,
|
1286
|
+
authorization=authorization,
|
1287
|
+
_request_auth=_request_auth,
|
1288
|
+
_content_type=_content_type,
|
1289
|
+
_headers=_headers,
|
1290
|
+
_host_index=_host_index
|
1291
|
+
)
|
1292
|
+
|
1293
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1294
|
+
'200': "BaseResponseProcessRegistry",
|
1295
|
+
'422': "BaseResponse",
|
1296
|
+
}
|
1297
|
+
response_data = self.api_client.call_api(
|
1298
|
+
*_param,
|
1299
|
+
_request_timeout=_request_timeout
|
1300
|
+
)
|
1301
|
+
response_data.read()
|
1302
|
+
return self.api_client.response_deserialize(
|
1303
|
+
response_data=response_data,
|
1304
|
+
response_types_map=_response_types_map,
|
1305
|
+
)
|
1306
|
+
|
1307
|
+
|
1308
|
+
@validate_call
|
1309
|
+
def get_process_registry_without_preload_content(
|
1310
|
+
self,
|
1311
|
+
analysis_id: StrictInt,
|
1312
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
1313
|
+
_request_timeout: Union[
|
1314
|
+
None,
|
1315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1316
|
+
Tuple[
|
1317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1318
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1319
|
+
]
|
1320
|
+
] = None,
|
1321
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1322
|
+
_content_type: Optional[StrictStr] = None,
|
1323
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1324
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1325
|
+
) -> RESTResponseType:
|
1326
|
+
"""Get the dynamic execution results for process registry
|
1327
|
+
|
1328
|
+
|
1329
|
+
:param analysis_id: (required)
|
1330
|
+
:type analysis_id: int
|
1331
|
+
:param authorization: API Key bearer token
|
1332
|
+
:type authorization: str
|
1333
|
+
:param _request_timeout: timeout setting for this request. If one
|
1334
|
+
number provided, it will be total request
|
1335
|
+
timeout. It can also be a pair (tuple) of
|
1336
|
+
(connection, read) timeouts.
|
1337
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1338
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1339
|
+
request; this effectively ignores the
|
1340
|
+
authentication in the spec for a single request.
|
1341
|
+
:type _request_auth: dict, optional
|
1342
|
+
:param _content_type: force content-type for the request.
|
1343
|
+
:type _content_type: str, Optional
|
1344
|
+
:param _headers: set to override the headers for a single
|
1345
|
+
request; this effectively ignores the headers
|
1346
|
+
in the spec for a single request.
|
1347
|
+
:type _headers: dict, optional
|
1348
|
+
:param _host_index: set to override the host_index for a single
|
1349
|
+
request; this effectively ignores the host_index
|
1350
|
+
in the spec for a single request.
|
1351
|
+
:type _host_index: int, optional
|
1352
|
+
:return: Returns the result object.
|
1353
|
+
""" # noqa: E501
|
1354
|
+
|
1355
|
+
_param = self._get_process_registry_serialize(
|
1356
|
+
analysis_id=analysis_id,
|
1357
|
+
authorization=authorization,
|
1358
|
+
_request_auth=_request_auth,
|
1359
|
+
_content_type=_content_type,
|
1360
|
+
_headers=_headers,
|
1361
|
+
_host_index=_host_index
|
1362
|
+
)
|
1363
|
+
|
1364
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1365
|
+
'200': "BaseResponseProcessRegistry",
|
1366
|
+
'422': "BaseResponse",
|
1367
|
+
}
|
1368
|
+
response_data = self.api_client.call_api(
|
1369
|
+
*_param,
|
1370
|
+
_request_timeout=_request_timeout
|
1371
|
+
)
|
1372
|
+
return response_data.response
|
1373
|
+
|
1374
|
+
|
1375
|
+
def _get_process_registry_serialize(
|
1376
|
+
self,
|
1377
|
+
analysis_id,
|
1378
|
+
authorization,
|
1379
|
+
_request_auth,
|
1380
|
+
_content_type,
|
1381
|
+
_headers,
|
1382
|
+
_host_index,
|
1383
|
+
) -> RequestSerialized:
|
1384
|
+
|
1385
|
+
_host = None
|
1386
|
+
|
1387
|
+
_collection_formats: Dict[str, str] = {
|
1388
|
+
}
|
1389
|
+
|
1390
|
+
_path_params: Dict[str, str] = {}
|
1391
|
+
_query_params: List[Tuple[str, str]] = []
|
1392
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1393
|
+
_form_params: List[Tuple[str, str]] = []
|
1394
|
+
_files: Dict[
|
1395
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1396
|
+
] = {}
|
1397
|
+
_body_params: Optional[bytes] = None
|
1398
|
+
|
1399
|
+
# process the path parameters
|
1400
|
+
if analysis_id is not None:
|
1401
|
+
_path_params['analysis_id'] = analysis_id
|
1402
|
+
# process the query parameters
|
1403
|
+
# process the header parameters
|
1404
|
+
if authorization is not None:
|
1405
|
+
_header_params['authorization'] = authorization
|
1406
|
+
# process the form parameters
|
1407
|
+
# process the body parameter
|
1408
|
+
|
1409
|
+
|
1410
|
+
# set the HTTP header `Accept`
|
1411
|
+
if 'Accept' not in _header_params:
|
1412
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1413
|
+
[
|
1414
|
+
'application/json'
|
1415
|
+
]
|
1416
|
+
)
|
1417
|
+
|
1418
|
+
|
1419
|
+
# authentication setting
|
1420
|
+
_auth_settings: List[str] = [
|
1421
|
+
'APIKey'
|
1422
|
+
]
|
1423
|
+
|
1424
|
+
return self.api_client.param_serialize(
|
1425
|
+
method='GET',
|
1426
|
+
resource_path='/v2/analyses/{analysis_id}/dynamic-execution/process-registry',
|
1427
|
+
path_params=_path_params,
|
1428
|
+
query_params=_query_params,
|
1429
|
+
header_params=_header_params,
|
1430
|
+
body=_body_params,
|
1431
|
+
post_params=_form_params,
|
1432
|
+
files=_files,
|
1433
|
+
auth_settings=_auth_settings,
|
1434
|
+
collection_formats=_collection_formats,
|
1435
|
+
_host=_host,
|
1436
|
+
_request_auth=_request_auth
|
1437
|
+
)
|
1438
|
+
|
1439
|
+
|
1440
|
+
|
1441
|
+
|
1442
|
+
@validate_call
|
1443
|
+
def get_process_tree(
|
1444
|
+
self,
|
1445
|
+
analysis_id: StrictInt,
|
1446
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
1447
|
+
_request_timeout: Union[
|
1448
|
+
None,
|
1449
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1450
|
+
Tuple[
|
1451
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1452
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1453
|
+
]
|
1454
|
+
] = None,
|
1455
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1456
|
+
_content_type: Optional[StrictStr] = None,
|
1457
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1458
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1459
|
+
) -> BaseResponseProcessTree:
|
1460
|
+
"""Get the dynamic execution results for process tree
|
1461
|
+
|
1462
|
+
|
1463
|
+
:param analysis_id: (required)
|
1464
|
+
:type analysis_id: int
|
1465
|
+
:param authorization: API Key bearer token
|
1466
|
+
:type authorization: str
|
1467
|
+
:param _request_timeout: timeout setting for this request. If one
|
1468
|
+
number provided, it will be total request
|
1469
|
+
timeout. It can also be a pair (tuple) of
|
1470
|
+
(connection, read) timeouts.
|
1471
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1472
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1473
|
+
request; this effectively ignores the
|
1474
|
+
authentication in the spec for a single request.
|
1475
|
+
:type _request_auth: dict, optional
|
1476
|
+
:param _content_type: force content-type for the request.
|
1477
|
+
:type _content_type: str, Optional
|
1478
|
+
:param _headers: set to override the headers for a single
|
1479
|
+
request; this effectively ignores the headers
|
1480
|
+
in the spec for a single request.
|
1481
|
+
:type _headers: dict, optional
|
1482
|
+
:param _host_index: set to override the host_index for a single
|
1483
|
+
request; this effectively ignores the host_index
|
1484
|
+
in the spec for a single request.
|
1485
|
+
:type _host_index: int, optional
|
1486
|
+
:return: Returns the result object.
|
1487
|
+
""" # noqa: E501
|
1488
|
+
|
1489
|
+
_param = self._get_process_tree_serialize(
|
1490
|
+
analysis_id=analysis_id,
|
1491
|
+
authorization=authorization,
|
1492
|
+
_request_auth=_request_auth,
|
1493
|
+
_content_type=_content_type,
|
1494
|
+
_headers=_headers,
|
1495
|
+
_host_index=_host_index
|
1496
|
+
)
|
1497
|
+
|
1498
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1499
|
+
'200': "BaseResponseProcessTree",
|
1500
|
+
'422': "BaseResponse",
|
1501
|
+
}
|
1502
|
+
response_data = self.api_client.call_api(
|
1503
|
+
*_param,
|
1504
|
+
_request_timeout=_request_timeout
|
1505
|
+
)
|
1506
|
+
response_data.read()
|
1507
|
+
return self.api_client.response_deserialize(
|
1508
|
+
response_data=response_data,
|
1509
|
+
response_types_map=_response_types_map,
|
1510
|
+
).data
|
1511
|
+
|
1512
|
+
|
1513
|
+
@validate_call
|
1514
|
+
def get_process_tree_with_http_info(
|
1515
|
+
self,
|
1516
|
+
analysis_id: StrictInt,
|
1517
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
1518
|
+
_request_timeout: Union[
|
1519
|
+
None,
|
1520
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1521
|
+
Tuple[
|
1522
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1523
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1524
|
+
]
|
1525
|
+
] = None,
|
1526
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1527
|
+
_content_type: Optional[StrictStr] = None,
|
1528
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1529
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1530
|
+
) -> ApiResponse[BaseResponseProcessTree]:
|
1531
|
+
"""Get the dynamic execution results for process tree
|
1532
|
+
|
1533
|
+
|
1534
|
+
:param analysis_id: (required)
|
1535
|
+
:type analysis_id: int
|
1536
|
+
:param authorization: API Key bearer token
|
1537
|
+
:type authorization: str
|
1538
|
+
:param _request_timeout: timeout setting for this request. If one
|
1539
|
+
number provided, it will be total request
|
1540
|
+
timeout. It can also be a pair (tuple) of
|
1541
|
+
(connection, read) timeouts.
|
1542
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1543
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1544
|
+
request; this effectively ignores the
|
1545
|
+
authentication in the spec for a single request.
|
1546
|
+
:type _request_auth: dict, optional
|
1547
|
+
:param _content_type: force content-type for the request.
|
1548
|
+
:type _content_type: str, Optional
|
1549
|
+
:param _headers: set to override the headers for a single
|
1550
|
+
request; this effectively ignores the headers
|
1551
|
+
in the spec for a single request.
|
1552
|
+
:type _headers: dict, optional
|
1553
|
+
:param _host_index: set to override the host_index for a single
|
1554
|
+
request; this effectively ignores the host_index
|
1555
|
+
in the spec for a single request.
|
1556
|
+
:type _host_index: int, optional
|
1557
|
+
:return: Returns the result object.
|
1558
|
+
""" # noqa: E501
|
1559
|
+
|
1560
|
+
_param = self._get_process_tree_serialize(
|
1561
|
+
analysis_id=analysis_id,
|
1562
|
+
authorization=authorization,
|
1563
|
+
_request_auth=_request_auth,
|
1564
|
+
_content_type=_content_type,
|
1565
|
+
_headers=_headers,
|
1566
|
+
_host_index=_host_index
|
1567
|
+
)
|
1568
|
+
|
1569
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1570
|
+
'200': "BaseResponseProcessTree",
|
1571
|
+
'422': "BaseResponse",
|
1572
|
+
}
|
1573
|
+
response_data = self.api_client.call_api(
|
1574
|
+
*_param,
|
1575
|
+
_request_timeout=_request_timeout
|
1576
|
+
)
|
1577
|
+
response_data.read()
|
1578
|
+
return self.api_client.response_deserialize(
|
1579
|
+
response_data=response_data,
|
1580
|
+
response_types_map=_response_types_map,
|
1581
|
+
)
|
1582
|
+
|
1583
|
+
|
1584
|
+
@validate_call
|
1585
|
+
def get_process_tree_without_preload_content(
|
1586
|
+
self,
|
1587
|
+
analysis_id: StrictInt,
|
1588
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
1589
|
+
_request_timeout: Union[
|
1590
|
+
None,
|
1591
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1592
|
+
Tuple[
|
1593
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1594
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1595
|
+
]
|
1596
|
+
] = None,
|
1597
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1598
|
+
_content_type: Optional[StrictStr] = None,
|
1599
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1600
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1601
|
+
) -> RESTResponseType:
|
1602
|
+
"""Get the dynamic execution results for process tree
|
1603
|
+
|
1604
|
+
|
1605
|
+
:param analysis_id: (required)
|
1606
|
+
:type analysis_id: int
|
1607
|
+
:param authorization: API Key bearer token
|
1608
|
+
:type authorization: str
|
1609
|
+
:param _request_timeout: timeout setting for this request. If one
|
1610
|
+
number provided, it will be total request
|
1611
|
+
timeout. It can also be a pair (tuple) of
|
1612
|
+
(connection, read) timeouts.
|
1613
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1614
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1615
|
+
request; this effectively ignores the
|
1616
|
+
authentication in the spec for a single request.
|
1617
|
+
:type _request_auth: dict, optional
|
1618
|
+
:param _content_type: force content-type for the request.
|
1619
|
+
:type _content_type: str, Optional
|
1620
|
+
:param _headers: set to override the headers for a single
|
1621
|
+
request; this effectively ignores the headers
|
1622
|
+
in the spec for a single request.
|
1623
|
+
:type _headers: dict, optional
|
1624
|
+
:param _host_index: set to override the host_index for a single
|
1625
|
+
request; this effectively ignores the host_index
|
1626
|
+
in the spec for a single request.
|
1627
|
+
:type _host_index: int, optional
|
1628
|
+
:return: Returns the result object.
|
1629
|
+
""" # noqa: E501
|
1630
|
+
|
1631
|
+
_param = self._get_process_tree_serialize(
|
1632
|
+
analysis_id=analysis_id,
|
1633
|
+
authorization=authorization,
|
1634
|
+
_request_auth=_request_auth,
|
1635
|
+
_content_type=_content_type,
|
1636
|
+
_headers=_headers,
|
1637
|
+
_host_index=_host_index
|
1638
|
+
)
|
1639
|
+
|
1640
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1641
|
+
'200': "BaseResponseProcessTree",
|
1642
|
+
'422': "BaseResponse",
|
1643
|
+
}
|
1644
|
+
response_data = self.api_client.call_api(
|
1645
|
+
*_param,
|
1646
|
+
_request_timeout=_request_timeout
|
1647
|
+
)
|
1648
|
+
return response_data.response
|
1649
|
+
|
1650
|
+
|
1651
|
+
def _get_process_tree_serialize(
|
1652
|
+
self,
|
1653
|
+
analysis_id,
|
1654
|
+
authorization,
|
1655
|
+
_request_auth,
|
1656
|
+
_content_type,
|
1657
|
+
_headers,
|
1658
|
+
_host_index,
|
1659
|
+
) -> RequestSerialized:
|
1660
|
+
|
1661
|
+
_host = None
|
1662
|
+
|
1663
|
+
_collection_formats: Dict[str, str] = {
|
1664
|
+
}
|
1665
|
+
|
1666
|
+
_path_params: Dict[str, str] = {}
|
1667
|
+
_query_params: List[Tuple[str, str]] = []
|
1668
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1669
|
+
_form_params: List[Tuple[str, str]] = []
|
1670
|
+
_files: Dict[
|
1671
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1672
|
+
] = {}
|
1673
|
+
_body_params: Optional[bytes] = None
|
1674
|
+
|
1675
|
+
# process the path parameters
|
1676
|
+
if analysis_id is not None:
|
1677
|
+
_path_params['analysis_id'] = analysis_id
|
1678
|
+
# process the query parameters
|
1679
|
+
# process the header parameters
|
1680
|
+
if authorization is not None:
|
1681
|
+
_header_params['authorization'] = authorization
|
1682
|
+
# process the form parameters
|
1683
|
+
# process the body parameter
|
1684
|
+
|
1685
|
+
|
1686
|
+
# set the HTTP header `Accept`
|
1687
|
+
if 'Accept' not in _header_params:
|
1688
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1689
|
+
[
|
1690
|
+
'application/json'
|
1691
|
+
]
|
1692
|
+
)
|
1693
|
+
|
1694
|
+
|
1695
|
+
# authentication setting
|
1696
|
+
_auth_settings: List[str] = [
|
1697
|
+
'APIKey'
|
1698
|
+
]
|
1699
|
+
|
1700
|
+
return self.api_client.param_serialize(
|
1701
|
+
method='GET',
|
1702
|
+
resource_path='/v2/analyses/{analysis_id}/dynamic-execution/process-tree',
|
1703
|
+
path_params=_path_params,
|
1704
|
+
query_params=_query_params,
|
1705
|
+
header_params=_header_params,
|
1706
|
+
body=_body_params,
|
1707
|
+
post_params=_form_params,
|
1708
|
+
files=_files,
|
1709
|
+
auth_settings=_auth_settings,
|
1710
|
+
collection_formats=_collection_formats,
|
1711
|
+
_host=_host,
|
1712
|
+
_request_auth=_request_auth
|
1713
|
+
)
|
1714
|
+
|
1715
|
+
|
1716
|
+
|
1717
|
+
|
1718
|
+
@validate_call
|
1719
|
+
def get_ttps(
|
1720
|
+
self,
|
1721
|
+
analysis_id: StrictInt,
|
1722
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
1723
|
+
_request_timeout: Union[
|
1724
|
+
None,
|
1725
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1726
|
+
Tuple[
|
1727
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1728
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1729
|
+
]
|
1730
|
+
] = None,
|
1731
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1732
|
+
_content_type: Optional[StrictStr] = None,
|
1733
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1734
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1735
|
+
) -> BaseResponseTTPS:
|
1736
|
+
"""Get the dynamic execution results for ttps
|
1737
|
+
|
1738
|
+
|
1739
|
+
:param analysis_id: (required)
|
1740
|
+
:type analysis_id: int
|
1741
|
+
:param authorization: API Key bearer token
|
1742
|
+
:type authorization: str
|
1743
|
+
:param _request_timeout: timeout setting for this request. If one
|
1744
|
+
number provided, it will be total request
|
1745
|
+
timeout. It can also be a pair (tuple) of
|
1746
|
+
(connection, read) timeouts.
|
1747
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1748
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1749
|
+
request; this effectively ignores the
|
1750
|
+
authentication in the spec for a single request.
|
1751
|
+
:type _request_auth: dict, optional
|
1752
|
+
:param _content_type: force content-type for the request.
|
1753
|
+
:type _content_type: str, Optional
|
1754
|
+
:param _headers: set to override the headers for a single
|
1755
|
+
request; this effectively ignores the headers
|
1756
|
+
in the spec for a single request.
|
1757
|
+
:type _headers: dict, optional
|
1758
|
+
:param _host_index: set to override the host_index for a single
|
1759
|
+
request; this effectively ignores the host_index
|
1760
|
+
in the spec for a single request.
|
1761
|
+
:type _host_index: int, optional
|
1762
|
+
:return: Returns the result object.
|
1763
|
+
""" # noqa: E501
|
1764
|
+
|
1765
|
+
_param = self._get_ttps_serialize(
|
1766
|
+
analysis_id=analysis_id,
|
1767
|
+
authorization=authorization,
|
1768
|
+
_request_auth=_request_auth,
|
1769
|
+
_content_type=_content_type,
|
1770
|
+
_headers=_headers,
|
1771
|
+
_host_index=_host_index
|
1772
|
+
)
|
1773
|
+
|
1774
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1775
|
+
'200': "BaseResponseTTPS",
|
1776
|
+
'422': "BaseResponse",
|
1777
|
+
}
|
1778
|
+
response_data = self.api_client.call_api(
|
1779
|
+
*_param,
|
1780
|
+
_request_timeout=_request_timeout
|
1781
|
+
)
|
1782
|
+
response_data.read()
|
1783
|
+
return self.api_client.response_deserialize(
|
1784
|
+
response_data=response_data,
|
1785
|
+
response_types_map=_response_types_map,
|
1786
|
+
).data
|
1787
|
+
|
1788
|
+
|
1789
|
+
@validate_call
|
1790
|
+
def get_ttps_with_http_info(
|
1791
|
+
self,
|
1792
|
+
analysis_id: StrictInt,
|
1793
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
1794
|
+
_request_timeout: Union[
|
1795
|
+
None,
|
1796
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1797
|
+
Tuple[
|
1798
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1799
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1800
|
+
]
|
1801
|
+
] = None,
|
1802
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1803
|
+
_content_type: Optional[StrictStr] = None,
|
1804
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1805
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1806
|
+
) -> ApiResponse[BaseResponseTTPS]:
|
1807
|
+
"""Get the dynamic execution results for ttps
|
1808
|
+
|
1809
|
+
|
1810
|
+
:param analysis_id: (required)
|
1811
|
+
:type analysis_id: int
|
1812
|
+
:param authorization: API Key bearer token
|
1813
|
+
:type authorization: str
|
1814
|
+
:param _request_timeout: timeout setting for this request. If one
|
1815
|
+
number provided, it will be total request
|
1816
|
+
timeout. It can also be a pair (tuple) of
|
1817
|
+
(connection, read) timeouts.
|
1818
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1819
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1820
|
+
request; this effectively ignores the
|
1821
|
+
authentication in the spec for a single request.
|
1822
|
+
:type _request_auth: dict, optional
|
1823
|
+
:param _content_type: force content-type for the request.
|
1824
|
+
:type _content_type: str, Optional
|
1825
|
+
:param _headers: set to override the headers for a single
|
1826
|
+
request; this effectively ignores the headers
|
1827
|
+
in the spec for a single request.
|
1828
|
+
:type _headers: dict, optional
|
1829
|
+
:param _host_index: set to override the host_index for a single
|
1830
|
+
request; this effectively ignores the host_index
|
1831
|
+
in the spec for a single request.
|
1832
|
+
:type _host_index: int, optional
|
1833
|
+
:return: Returns the result object.
|
1834
|
+
""" # noqa: E501
|
1835
|
+
|
1836
|
+
_param = self._get_ttps_serialize(
|
1837
|
+
analysis_id=analysis_id,
|
1838
|
+
authorization=authorization,
|
1839
|
+
_request_auth=_request_auth,
|
1840
|
+
_content_type=_content_type,
|
1841
|
+
_headers=_headers,
|
1842
|
+
_host_index=_host_index
|
1843
|
+
)
|
1844
|
+
|
1845
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1846
|
+
'200': "BaseResponseTTPS",
|
1847
|
+
'422': "BaseResponse",
|
1848
|
+
}
|
1849
|
+
response_data = self.api_client.call_api(
|
1850
|
+
*_param,
|
1851
|
+
_request_timeout=_request_timeout
|
1852
|
+
)
|
1853
|
+
response_data.read()
|
1854
|
+
return self.api_client.response_deserialize(
|
1855
|
+
response_data=response_data,
|
1856
|
+
response_types_map=_response_types_map,
|
1857
|
+
)
|
1858
|
+
|
1859
|
+
|
1860
|
+
@validate_call
|
1861
|
+
def get_ttps_without_preload_content(
|
1862
|
+
self,
|
1863
|
+
analysis_id: StrictInt,
|
1864
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
1865
|
+
_request_timeout: Union[
|
1866
|
+
None,
|
1867
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1868
|
+
Tuple[
|
1869
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1870
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1871
|
+
]
|
1872
|
+
] = None,
|
1873
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1874
|
+
_content_type: Optional[StrictStr] = None,
|
1875
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1876
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1877
|
+
) -> RESTResponseType:
|
1878
|
+
"""Get the dynamic execution results for ttps
|
1879
|
+
|
1880
|
+
|
1881
|
+
:param analysis_id: (required)
|
1882
|
+
:type analysis_id: int
|
1883
|
+
:param authorization: API Key bearer token
|
1884
|
+
:type authorization: str
|
1885
|
+
:param _request_timeout: timeout setting for this request. If one
|
1886
|
+
number provided, it will be total request
|
1887
|
+
timeout. It can also be a pair (tuple) of
|
1888
|
+
(connection, read) timeouts.
|
1889
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1890
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1891
|
+
request; this effectively ignores the
|
1892
|
+
authentication in the spec for a single request.
|
1893
|
+
:type _request_auth: dict, optional
|
1894
|
+
:param _content_type: force content-type for the request.
|
1895
|
+
:type _content_type: str, Optional
|
1896
|
+
:param _headers: set to override the headers for a single
|
1897
|
+
request; this effectively ignores the headers
|
1898
|
+
in the spec for a single request.
|
1899
|
+
:type _headers: dict, optional
|
1900
|
+
:param _host_index: set to override the host_index for a single
|
1901
|
+
request; this effectively ignores the host_index
|
1902
|
+
in the spec for a single request.
|
1903
|
+
:type _host_index: int, optional
|
1904
|
+
:return: Returns the result object.
|
1905
|
+
""" # noqa: E501
|
1906
|
+
|
1907
|
+
_param = self._get_ttps_serialize(
|
1908
|
+
analysis_id=analysis_id,
|
1909
|
+
authorization=authorization,
|
1910
|
+
_request_auth=_request_auth,
|
1911
|
+
_content_type=_content_type,
|
1912
|
+
_headers=_headers,
|
1913
|
+
_host_index=_host_index
|
1914
|
+
)
|
1915
|
+
|
1916
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1917
|
+
'200': "BaseResponseTTPS",
|
1918
|
+
'422': "BaseResponse",
|
1919
|
+
}
|
1920
|
+
response_data = self.api_client.call_api(
|
1921
|
+
*_param,
|
1922
|
+
_request_timeout=_request_timeout
|
1923
|
+
)
|
1924
|
+
return response_data.response
|
1925
|
+
|
1926
|
+
|
1927
|
+
def _get_ttps_serialize(
|
1928
|
+
self,
|
1929
|
+
analysis_id,
|
1930
|
+
authorization,
|
1931
|
+
_request_auth,
|
1932
|
+
_content_type,
|
1933
|
+
_headers,
|
1934
|
+
_host_index,
|
1935
|
+
) -> RequestSerialized:
|
1936
|
+
|
1937
|
+
_host = None
|
1938
|
+
|
1939
|
+
_collection_formats: Dict[str, str] = {
|
1940
|
+
}
|
1941
|
+
|
1942
|
+
_path_params: Dict[str, str] = {}
|
1943
|
+
_query_params: List[Tuple[str, str]] = []
|
1944
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1945
|
+
_form_params: List[Tuple[str, str]] = []
|
1946
|
+
_files: Dict[
|
1947
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1948
|
+
] = {}
|
1949
|
+
_body_params: Optional[bytes] = None
|
1950
|
+
|
1951
|
+
# process the path parameters
|
1952
|
+
if analysis_id is not None:
|
1953
|
+
_path_params['analysis_id'] = analysis_id
|
1954
|
+
# process the query parameters
|
1955
|
+
# process the header parameters
|
1956
|
+
if authorization is not None:
|
1957
|
+
_header_params['authorization'] = authorization
|
1958
|
+
# process the form parameters
|
1959
|
+
# process the body parameter
|
1960
|
+
|
1961
|
+
|
1962
|
+
# set the HTTP header `Accept`
|
1963
|
+
if 'Accept' not in _header_params:
|
1964
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1965
|
+
[
|
1966
|
+
'application/json'
|
1967
|
+
]
|
1968
|
+
)
|
1969
|
+
|
1970
|
+
|
1971
|
+
# authentication setting
|
1972
|
+
_auth_settings: List[str] = [
|
1973
|
+
'APIKey'
|
1974
|
+
]
|
1975
|
+
|
1976
|
+
return self.api_client.param_serialize(
|
1977
|
+
method='GET',
|
1978
|
+
resource_path='/v2/analyses/{analysis_id}/dynamic-execution/ttps',
|
1979
|
+
path_params=_path_params,
|
1980
|
+
query_params=_query_params,
|
1981
|
+
header_params=_header_params,
|
1982
|
+
body=_body_params,
|
1983
|
+
post_params=_form_params,
|
1984
|
+
files=_files,
|
1985
|
+
auth_settings=_auth_settings,
|
1986
|
+
collection_formats=_collection_formats,
|
1987
|
+
_host=_host,
|
1988
|
+
_request_auth=_request_auth
|
1989
|
+
)
|
1990
|
+
|
1991
|
+
|