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